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


Performing analysis on: 4FGL_J1224.7-8313_daily_bin1020
RA = 186.199, Dec = -83.2259
tmin = 503712001, tmax = 503971201
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='593712', job_status='RUN', time_executed='2021-09-05 13:06:24.606933', time_epoch_executed='1630872384.61' WHERE source_name='4FGL J1224.7-8313' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593712/ft1_4FGL_J1224.7-8313_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593712/ft1_4FGL_J1224.7-8313_daily_bin1020.fits outfile=/scratch/kocevski/593712/ft1_filteredMKT_4FGL_J1224.7-8313_daily_bin1020.fits ra=186.199 dec=-83.2259 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.68
user 5.29
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.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/593712/ft1_filteredMKT_4FGL_J1224.7-8313_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.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.79
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/593712/ltcube_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.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/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits
.....................!
real 13.28
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/593712/ltcube_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.fits outfile=/scratch/kocevski/593712/expmap_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.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/593712/ltcube_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.fits
.....................!
real 192.55
user 185.89
sys 4.77

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/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits scfile=/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits outfile=/scratch/kocevski/593712/cmap_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits scfile=/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits outfile=/scratch/kocevski/593712/cmap_HighResolution_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593712/Model_4FGL_J1224.7-8313_daily_bin1020.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/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits.....................!
real 101.78
user 99.59
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits', '/scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits', expMap='/scratch/kocevski/593712/expmap_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.fits', expCube='/scratch/kocevski/593712/ltcube_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/593712/Model_4FGL_J1224.7-8313_daily_bin1020.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/593712/ft1_filtered_4FGL_J1224.7-8313_daily_bin1020.fits
Spacecraft file(s): /scratch/kocevski/593712/ft2_4FGL_J1224.7-8313_daily_bin1020.fits
Exposure map: /scratch/kocevski/593712/expmap_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.fits
Exposure cube: /scratch/kocevski/593712/ltcube_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/593712/Model_4FGL_J1224.7-8313_daily_bin1020.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) = 7352.97953279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5218       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20644E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21942E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4185       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16666E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.3164       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .91970       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7352.977     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     1316 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.990        30.703        .99744E-04    .10895E-03
   2  Prefactor     16.280        69.545       -.19304E-03   -.31061E-04
   3  Prefactor     .10000E-03    12.918       -.91903E-07** at limit **
   4  norm          1.9644        3.7355       -.40089E-06   -.69345E-03
   5  Prefactor     6.5216        7.6652        .10193E-05   -.17820E-03
   6  Prefactor     .10000E-03    41.923       -.22293E-04** at limit **
   7  Prefactor     2.5825        36.103       -.27147E-05   -.51608E-04
   8  Prefactor     .10000E-03    30.885        .37982E-05** at limit **
   9  norm          .10000E-03    19.491        .26486E-06** at limit **
  10  Prefactor     .10000E-03    2.8944       -.24468E-07** at limit **
  11  Prefactor     .10000E-03    4.7886       -.11623E-07** at limit **
  12  norm          4.4186        2.1050       -.14952E-06   -.54092E-03
  13  Prefactor     .10000E-03    42.942        .17394E-04** at limit **
  14  Normalizat    1.3162        .32137        .16769E-05   -.12757E-04
  15  Prefactor     .91976        .82561E-01   -.48248E-06    .22455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9898
  Prefactor  = 16.2802
  Prefactor  = 0.0001
  norm       = 1.9644
  Prefactor  = 6.52162
  Prefactor  = 0.0001
  Prefactor  = 2.58249
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.41863
  Prefactor  = 0.0001
  Normalizat = 1.31615
  Prefactor  = 0.919758
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.977     FROM HESSE     STATUS=OK           178 CALLS     1494 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.990        30.702        .83545E-04   -1.4749    
   2  Prefactor     16.280        70.034        .98555E-04   -1.4901    
   3  Prefactor     .10000E-03    12.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9644        3.7117        .22157E-03   -1.5428    
   5  Prefactor     6.5216        7.6593        .15715E-03   -1.5197    
   6  Prefactor     .10000E-03    42.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5825        36.249        .25386E-03   -1.5387    
   8  Prefactor     .10000E-03    30.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    19.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9459        .14242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4186        2.1034        .82847E-04   -1.5288    
  13  Prefactor     .10000E-03    42.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3162        .36461        .46306E-03   -.83085    
  15  Prefactor     .91976        .94201E-01    .14003E-03   -.95454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3017e-10
Minuit parameter uncertainties:
  1  30.7234
  2  67.667
  3  1.92368e-05
  4  3.71216
  5  7.66045
  6  5.98734e-05
  7  19.3645
  8  2.2154e-06
  9  5.11445e-08
  10  3.42494e-06
  11  2.84005e-07
  12  2.1034
  13  1.87537e-05
  14  0.365327
  15  0.0942176
Done.

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

Extracting fit parameters...

4FGL J1224.7-8313
   Spectrum: PowerLaw
308    Prefactor:  6.522e+00  7.660e+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

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  9.198e-01  9.422e-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:  1.316e+00  3.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 186.199 -83.226
Photon Flux Upper Limit: 2.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593712/likelihoodResults_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.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): 0
logL (Free Index) = 7352.44059836
delta logL = 0.535935923092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7352.43921674
delta logL = 0.537317545808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.315       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9530       1.0000          .0000       10.000    
     3 'Normalizat'    1.3429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91277       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7352.439     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      281 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.316        9.4754        .24841E-05   -.18713E-02
   2  Index         1.9529        .43762       -.89057E-05   -.50011E-03
   3  Normalizat    1.3428        .31620        .41706E-06    .68285E-04
   4  Prefactor     .91280        .81994E-01   -.17812E-06    .18963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3158
  Index      = 1.95292
  Normalizat = 1.34284
  Prefactor  = 0.9128
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.439     FROM HESSE     STATUS=OK            29 CALLS      310 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.316        10.983        .11415E-03   -1.5006    
   2  Index         1.9529        .55259        .98511E-02   -.65532    
   3  Normalizat    1.3428        .35973        .45906E-03   -.82296    
   4  Prefactor     .91280        .93522E-01    .14043E-03   -.95695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85289e-09
Minuit parameter uncertainties:
  1  10.9852
  2  0.554399
  3  0.360404
  4  0.0935385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593712': 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) = 7352.43921663
delta logL = 0.537317655382

Extracting fit parameters...

4FGL J1224.7-8313
   Spectrum: PowerLaw
308    Prefactor:  1.232e+01  1.099e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.953e+00  5.544e-01  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:  9.128e-01  9.354e-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:  1.343e+00  3.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 186.199 -83.226
Photon Index (Free Index): 1.95 +/- 0.55
Photon Flux (Free Index): 5.30e-08 +/- 5.46e-08
Energy Flux (Free Index): 4.13e-05 +/- 5.30e-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/593712/cmap_HighResolution_503712001_503971201_4FGL_J1224.7-8313_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', comment='SUCCESS', energy_flux2='4.13e-05', dlogl='5.37e-01', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-05 13:18:10.529017', photon_index_error2='0.55', photon_index2='1.95', ts='0.91', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='5.30e-05', EG='1.32', time_epoch_completed='1630873090.53', return_code='0', job_id='593712', GAL2='0.91', EG2='1.34', return_code2='0', photon_flux_error2='5.46e-08', ts2='1.99', photon_index='2.64' WHERE bin_id='1020' AND source_name='4FGL J1224.7-8313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:18:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 593712: <4FGL_J1224.7-8313_daily_bin1020> in cluster <slac> Done

Job <4FGL_J1224.7-8313_daily_bin1020> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:05:42 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:05:46 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:05:46 2021
Terminated at Sun Sep  5 13:18:11 2021
Results reported at Sun Sep  5 13:18:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.7-8313_daily_bin1020 186.199 -83.2259 503712001 503971201 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 :                                   686.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            749 sec.

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

