/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.8+4210_daily_bin197
RA = 350.975, Dec = 42.1826
tmin = 290390401, tmax = 290649601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='822205', job_status='RUN', time_executed='2021-09-29 15:10:41.929255', time_epoch_executed='1632953441.93' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822205

Creating custom pfile directory:
/scratch/kocevski/822205/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=290390401.0 && nMetStart<290649601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=290390401.0 && nMetStart<290649601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822205/ft1_4FGL_J2323.8+4210_daily_bin197.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=290390401.0 && nMetStart<290649601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822205/ft1_4FGL_J2323.8+4210_daily_bin197.fits outfile=/scratch/kocevski/822205/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin197.fits ra=350.975 dec=42.1826 rad=12.0 tmin=290390401.0 tmax=290649601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.48
user 3.22
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/822205/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin197.fits evtable="EVENTS" outfile="/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits" evtable="EVENTS" scfile=/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits sctable="SC_DATA" outfile=/scratch/kocevski/822205/ltcube_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits
.....................!
real 11.97
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/822205/ltcube_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits outfile=/scratch/kocevski/822205/expmap_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/822205/ltcube_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits
.....................!
real 191.86
user 186.37
sys 5.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2323.8+4210 @ 350.975 42.1826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits scfile=/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits outfile=/scratch/kocevski/822205/cmap_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.975 yref=42.1826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits scfile=/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits outfile=/scratch/kocevski/822205/cmap_HighResolution_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.975 yref=42.1826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/822205/Model_4FGL_J2323.8+4210_daily_bin197.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits.....................!
real 131.50
user 129.98
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits', '/scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits', expMap='/scratch/kocevski/822205/expmap_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits', expCube='/scratch/kocevski/822205/ltcube_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822205/Model_4FGL_J2323.8+4210_daily_bin197.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.8+4210'

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  5.154e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/822205/ft1_filtered_4FGL_J2323.8+4210_daily_bin197.fits
Spacecraft file(s): /scratch/kocevski/822205/ft2_4FGL_J2323.8+4210_daily_bin197.fits
Exposure map: /scratch/kocevski/822205/expmap_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits
Exposure cube: /scratch/kocevski/822205/ltcube_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822205/Model_4FGL_J2323.8+4210_daily_bin197.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 11145.4171278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 11145.3495042

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.441       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.842       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.612       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.024       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    16 'norm      '    .13439E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.629       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.343       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.062       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2212       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11145.35     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3085 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.444        35.185        .52837E-05    .84557E-05
   2  Prefactor     .10000E-03    23.378       -.31014E-05** at limit **
   3  norm          25.592        21.007        .33611E-05   -.12277E-04
   4  Prefactor     12.842        8.2567       -.95835E-07   -.63721E-04
   5  norm          .10000E-03    .81344        .65312E-09** at limit **
   6  Prefactor     .10000E-03    1.7001        .89711E-07** at limit **
   7  Prefactor     8.5297        18.996       -.27275E-05   -.67866E-03
   8  Prefactor     .10000E-03    18.068        .10970E-05** at limit **
   9  Prefactor     13.616        8.9268        .43801E-06   -.76062E-04
  10  norm          2.0909        3.7849       -.56803E-06   -.86291E-03
  11  Prefactor     13.590        14.706        .25117E-06    .60764E-06
  12  Prefactor     .10000E-03    2.0690        .22802E-07** at limit **
  13  Prefactor     21.023        23.090       -.86657E-06   -.46701E-05
  14  norm          5.9200        1.7912       -.18324E-06   -.76092E-04
  15  Prefactor     18.356        14.326        .71394E-06   -.46969E-04
  16  norm          .10000E-03    4.1288       -.95248E-06** at limit **
  17  norm          14.628        9.6433        .71009E-07   -.24408E-06
  18  Prefactor     36.361        23.495        .10357E-04    .38658E-04
  19  norm          1.8887        1.6461        .10325E-07    .10689E-04
  20  Prefactor     .10000E-03    6.0566       -.69019E-07** at limit **
  21  norm          .10000E-03    5.2926        .74674E-07** at limit **
  22  Prefactor     .10000E-03    36.637        .37390E-05** at limit **
  23  Prefactor     16.055        45.711       -.13816E-04   -.88402E-05
  24  Prefactor     .10000E-03    3.1483        .92020E-07** at limit **
  25  Normalizat    1.2210        .22165       -.38252E-05    .10556E-03
  26  Prefactor     .82241        .68052E-01    .56637E-06   -.27257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.4444
  Prefactor  = 0.0001
  norm       = 25.5918
  Prefactor  = 12.8423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.52972
  Prefactor  = 0.0001
  Prefactor  = 13.6157
  norm       = 2.09094
  Prefactor  = 13.5896
  Prefactor  = 0.0001
  Prefactor  = 21.0227
  norm       = 5.92002
  Prefactor  = 18.3559
  norm       = 0.000100002
  norm       = 14.6284
  Prefactor  = 36.3615
  norm       = 1.88869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0548
  Prefactor  = 0.0001
  Normalizat = 1.22097
  Prefactor  = 0.822406
 **********
 **   18 **HESSE 
 **********

 FCN=   11145.35     FROM HESSE     STATUS=OK           458 CALLS     3543 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.444        35.210        .69294E-04   -1.4551    
   2  Prefactor     .10000E-03    23.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.592        20.967        .79192E-04   -1.4696    
   4  Prefactor     12.842        8.2592        .11178E-03   -1.4991    
   5  norm          .10000E-03    .83494        .18593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7176        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5297        19.524        .68618E-03   -1.5124    
   8  Prefactor     .10000E-03    18.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.616        8.8051        .10856E-03   -1.4970    
  10  norm          2.0909        3.7268        .22193E-03   -1.5419    
  11  Prefactor     13.590        14.703        .10866E-03   -1.4971    
  12  Prefactor     .10000E-03    2.0769        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.023        23.083        .87355E-04   -1.4791    
  14  norm          5.9200        1.7935        .74138E-04   -1.5221    
  15  Prefactor     18.356        14.378        .93492E-04   -1.4851    
  16  norm          .10000E-03    4.2194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.628        9.6422        .10472E-03   -1.4943    
  18  Prefactor     36.361        23.088        .66478E-04   -1.4501    
  19  norm          1.8887        1.6433        .12248E-03   -1.5433    
  20  Prefactor     .10000E-03    6.0676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    36.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.055        45.560        .99936E-04   -1.4906    
  24  Prefactor     .10000E-03    3.1570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2210        .25477        .39710E-03   -.85957    
  26  Prefactor     .82241        .78639E-01    .15777E-03   -.98908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41379e-09
Minuit parameter uncertainties:
  1  35.2322
  2  3.78999e-05
  3  20.9728
  4  8.25994
  5  7.34179e-08
  6  1.01885e-05
  7  19.5388
  8  3.86158e-06
  9  8.80589
  10  3.72726
  11  14.7073
  12  2.46755e-06
  13  23.0932
  14  1.79354
  15  14.3805
  16  0.000194324
  17  9.64326
  18  23.0935
  19  1.6433
  20  3.59988e-06
  21  3.18842e-06
  22  8.55277e-06
  23  45.6593
  24  1.52136e-05
  25  0.255035
  26  0.0786499
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 11145.3494987

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.463e+01  9.643e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.224e-01  7.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.221e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.32
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 2.26e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11145.3469357
delta logL = 0.00256295771032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11145.3468654
delta logL = 0.0026333256028

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.703       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7375       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11145.35     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      224 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.728        231.45        .26114E-02   -.49874E-04
   2  alpha         1.7394        3.1427        .43879       -.30656E-04
   3  Normalizat    1.2221        .15418        .89631E-01    .40116E-04
   4  Prefactor     .82235        .31490E-01    .44007E-01   -.54746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.7282
  alpha      = 1.73944
  Normalizat = 1.2221
  Prefactor  = 0.822346
 **********
 **   18 **HESSE 
 **********

 FCN=   11145.35     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.728        9.8270        .10446E-03   -1.4940    
   2  alpha         1.7394        .53235        .15850E-01   -.30912    
   3  Normalizat    1.2221        .23034        .39695E-03   -.85923    
   4  Prefactor     .82235        .77171E-01    .15777E-03   -.98910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10506e-11
Minuit parameter uncertainties:
  1  9.82804
  2  0.536889
  3  0.230528
  4  0.0771807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822205': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11145.3468535
delta logL = 0.00264515210074

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.473e+01  9.828e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.739e+00  5.369e-01  0.000e+00  5.000e+00 ( 1.000e+00)
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.223e-01  7.718e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.222e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.32
Ra Dec: 350.975 42.183
Photon Index (Free Index): 1.74 +/- 0.54
Photon Flux (Free Index): 2.64e-08 +/- 2.56e-08
Energy Flux (Free Index): 3.59e-05 +/- 3.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/822205/cmap_HighResolution_290390401_290649601_4FGL_J2323.8+4210_daily_bin197.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/822205

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='3.59e-05', photon_flux_error='1.83e-08', dlogl='2.65e-03', energy_flux='3.42e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-29 15:26:37.113712', photon_index_error2='0.54', photon_index2='1.74', ts='8.32', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='1.22', time_epoch_completed='1632954397.11', return_code='0', job_id='822205', GAL2='0.82', EG2='1.22', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='2.56e-08', ts2='8.32', photon_index='1.78' WHERE bin_id='197' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:26:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 822205: <4FGL_J2323.8+4210_daily_bin197> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin197> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:10:27 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:10:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:10:29 2021
Terminated at Wed Sep 29 15:26:37 2021
Results reported at Wed Sep 29 15:26:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin197 350.975 42.1826 290390401 290649601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.8+4210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   948.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

The output (if any) is above this job summary.

