/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 8 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 = 7406
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.7-8313_daily_bin1347
RA = 186.199, Dec = -83.2259
tmin = 588470401, tmax = 588729601
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='595429', job_status='RUN', time_executed='2021-09-05 13:11:09.155120', time_epoch_executed='1630872669.16' WHERE source_name='4FGL J1224.7-8313' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595429/ft1_4FGL_J1224.7-8313_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595429/ft1_4FGL_J1224.7-8313_daily_bin1347.fits outfile=/scratch/kocevski/595429/ft1_filteredMKT_4FGL_J1224.7-8313_daily_bin1347.fits ra=186.199 dec=-83.2259 rad=12.0 tmin=588470401.0 tmax=588729601.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 4.86
user 4.57
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.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/595429/ft1_filteredMKT_4FGL_J1224.7-8313_daily_bin1347.fits evtable="EVENTS" outfile="/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/595429/ltcube_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.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/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits
.....................!
real 12.02
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/595429/ltcube_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.fits outfile=/scratch/kocevski/595429/expmap_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.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/595429/ltcube_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.fits
.....................!
real 193.38
user 187.82
sys 4.28

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 FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Added 216 point sources and 4 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 J1224.7-8313 @ 186.199 -83.2259

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits scfile=/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits outfile=/scratch/kocevski/595429/cmap_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.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=186.199 yref=-83.2259 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.66
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits scfile=/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits outfile=/scratch/kocevski/595429/cmap_HighResolution_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.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=186.199 yref=-83.2259 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.62
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595429/Model_4FGL_J1224.7-8313_daily_bin1347.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 EG_v02
adding source FGES J1213.3-6240
adding source FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
Working on...
/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits.....................!
real 157.28
user 155.62
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits', '/scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits', expMap='/scratch/kocevski/595429/expmap_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.fits', expCube='/scratch/kocevski/595429/ltcube_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595429/Model_4FGL_J1224.7-8313_daily_bin1347.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.7-8313'

4FGL J1224.7-8313
   Spectrum: PowerLaw
308    Prefactor:  2.420e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.702e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/595429/ft1_filtered_4FGL_J1224.7-8313_daily_bin1347.fits
Spacecraft file(s): /scratch/kocevski/595429/ft2_4FGL_J1224.7-8313_daily_bin1347.fits
Exposure map: /scratch/kocevski/595429/expmap_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.fits
Exposure cube: /scratch/kocevski/595429/ltcube_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595429/Model_4FGL_J1224.7-8313_daily_bin1347.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) = 12923.9258416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85737       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6141       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66486E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10769E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4373       1.0000         .10000E-03   10000.    
    12 'norm      '    .29850       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .75870       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12923.92     FROM MIGRAD    STATUS=CONVERGED    266 CALLS     1320 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8634        20.952        .31904E-02   -.12883E-02
   2  Prefactor     .10006E-03    28.348        .90712E-02** at limit **
   3  Prefactor     .78885        11.576        .12652        .65353E-03
   4  norm          1.6141        2.1152        .83328E-02    .51739E-03
   5  Prefactor     .10000E-03    2.3572        .56151E-01** at limit **
   6  Prefactor     .10004E-03    29.964        .90712E-02** at limit **
   7  Prefactor     .10000E-03    11.449        .90712E-02** at limit **
   8  Prefactor     .10001E-03    35.286        .90712E-02** at limit **
   9  norm          .10002E-03    34.300        .90712E-02** at limit **
  10  Prefactor     .10000E-03    1.4713        .90712E-02** at limit **
  11  Prefactor     8.4351        8.9956        .34502E-02    .45342E-03
  12  norm          .29909        .81759        .10418E-01    .46438E-02
  13  Prefactor     .10001E-03    29.459        .90712E-02** at limit **
  14  Normalizat    .75878        .24337        .12620        .35942E-04
  15  Prefactor     1.0899        .66087E-01    .37982E-01   -.33373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.8634
  Prefactor  = 0.000100061
  Prefactor  = 0.788845
  norm       = 1.61411
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 8.43507
  norm       = 0.29909
  Prefactor  = 0.00010001
  Normalizat = 0.758781
  Prefactor  = 1.08993
 **********
 **   18 **HESSE 
 **********

 FCN=   12923.92     FROM HESSE     STATUS=OK           182 CALLS     1502 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8634        20.922        .12762E-03   -1.5080    
   2  Prefactor     .10006E-03    28.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .78885        72.671        .73278E-02   -1.5530    
   4  norm          1.6141        2.0965        .18425E-03   -1.5454    
   5  Prefactor     .10000E-03    9.1827        .33577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    30.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    35.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    34.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4899        .13460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4351        8.9526        .13801E-03   -1.5127    
  12  norm          .29909        .81796        .16100E-03   -1.5599    
  13  Prefactor     .10001E-03    29.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .75878        .25908        .55989E-03   -1.0162    
  15  Prefactor     1.0899        .72127E-01    .13319E-03   -.89789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42521e-08
Minuit parameter uncertainties:
  1  20.9377
  2  0.00263766
  3  15.1609
  4  2.09661
  5  1.03929e-05
  6  0.00224098
  7  7.2404e-06
  8  0.00129703
  9  0.00174443
  10  1.79283e-05
  11  8.95407
  12  0.817993
  13  0.00106525
  14  0.259505
  15  0.0721334
Done.

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

Extracting fit parameters...

4FGL J1224.7-8313
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.039e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.702e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.090e+00  7.213e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  7.588e-01  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.199 -83.226
Photon Flux Upper Limit: 8.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595429/likelihoodResults_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.txt

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): 102
logL (Free Index) = 12923.9249989
delta logL = -0.000513289360242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12923.9244843
delta logL = 1.39217991091e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15180E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5273       1.0000          .0000       10.000    
     3 'Normalizat'    .75861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12923.89     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      347 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87057        3.5877        .18142E-02    .16418E-02
   2  Index         1.8264        1.3902        .19610E-01   -.14528E-03
   3  Normalizat    .75967        .25417        .55960E-03   -.14514E-03
   4  Prefactor     1.0890        .72096E-01    .13324E-03   -.89621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.870568
  Index      = 1.82637
  Normalizat = 0.759666
  Prefactor  = 1.08895
 **********
 **   18 **HESSE 
 **********

 FCN=   12923.89     FROM HESSE     STATUS=OK            27 CALLS      374 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87057        3.6635        .36285E-03   -1.5521    
   2  Index         1.8264        1.4069        .39221E-02   -.68765    
   3  Normalizat    .75967        .25419        .22384E-04   -1.0158    
   4  Prefactor     1.0890        .72103E-01    .26647E-04   -.89820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41792e-10
Minuit parameter uncertainties:
  1  3.57192
  2  1.44
  3  0.254591
  4  0.0721095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595429': 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) = 12923.8875951
delta logL = 0.0368905553896

Extracting fit parameters...

4FGL J1224.7-8313
   Spectrum: PowerLaw
308    Prefactor:  8.706e-01  3.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.826e+00  1.440e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  6.702e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.089e+00  7.211e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  7.597e-01  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.199 -83.226

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/595429/cmap_HighResolution_588470401_588729601_4FGL_J1224.7-8313_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-05 13:27:08.498154', job_id='595429', GAL2='1.09', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630873628.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.69e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1347' AND source_name='4FGL J1224.7-8313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 595429: <4FGL_J1224.7-8313_daily_bin1347> in cluster <slac> Done

Job <4FGL_J1224.7-8313_daily_bin1347> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:10:52 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:10:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:10:53 2021
Terminated at Sun Sep  5 13:27:09 2021
Results reported at Sun Sep  5 13:27:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.7-8313_daily_bin1347 186.199 -83.2259 588470401 588729601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.7-8313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   951.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

