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


Performing analysis on: 4FGL_J1224.7-8313_daily_bin1074
RA = 186.199, Dec = -83.2259
tmin = 517708801, tmax = 517968001
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='593801', job_status='RUN', time_executed='2021-09-05 13:06:57.274148', time_epoch_executed='1630872417.27' WHERE source_name='4FGL J1224.7-8313' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593801/ft1_4FGL_J1224.7-8313_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593801/ft2_4FGL_J1224.7-8313_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593801/ft1_4FGL_J1224.7-8313_daily_bin1074.fits outfile=/scratch/kocevski/593801/ft1_filteredMKT_4FGL_J1224.7-8313_daily_bin1074.fits ra=186.199 dec=-83.2259 rad=12.0 tmin=517708801.0 tmax=517968001.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.77
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593801/ft1_filtered_4FGL_J1224.7-8313_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/593801/ft2_4FGL_J1224.7-8313_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/593801/ltcube_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.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/593801/ft2_4FGL_J1224.7-8313_daily_bin1074.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593801/ft1_filtered_4FGL_J1224.7-8313_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/593801/ft2_4FGL_J1224.7-8313_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/593801/ltcube_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.fits outfile=/scratch/kocevski/593801/expmap_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.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/593801/ltcube_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.fits
.....................!
real 191.23
user 186.08
sys 4.74

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/593801/ft1_filtered_4FGL_J1224.7-8313_daily_bin1074.fits scfile=/scratch/kocevski/593801/ft2_4FGL_J1224.7-8313_daily_bin1074.fits outfile=/scratch/kocevski/593801/cmap_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593801/ft1_filtered_4FGL_J1224.7-8313_daily_bin1074.fits scfile=/scratch/kocevski/593801/ft2_4FGL_J1224.7-8313_daily_bin1074.fits outfile=/scratch/kocevski/593801/cmap_HighResolution_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593801/ft1_filtered_4FGL_J1224.7-8313_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/593801/ft2_4FGL_J1224.7-8313_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593801/Model_4FGL_J1224.7-8313_daily_bin1074.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/593801/ft1_filtered_4FGL_J1224.7-8313_daily_bin1074.fits.....................!
real 148.47
user 146.44
sys 1.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19582E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .68224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6974       1.0000         .10000E-03   10000.    
    12 'norm      '    .60805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0362       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1121       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96274       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=   11749.69     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1200 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.995        .15628E-04** at limit **
   2  Prefactor     .10000E-03    22.888        .53517E-05** at limit **
   3  Prefactor     .10000E-03    10.019        .27416E-06** at limit **
   4  norm          .68225        4.6949        .38460E-05   -.11796E-03
   5  Prefactor     .10000E-03    4.4811        .25101E-06** at limit **
   6  Prefactor     .10000E-03    31.053       -.90648E-05** at limit **
   7  Prefactor     .10000E-03    7.8842        .39030E-07** at limit **
   8  Prefactor     .10000E-03    15.199       -.61860E-06** at limit **
   9  norm          10.675        18.106        .16525E-06   -.62156E-05
  10  Prefactor     .10000E-03    1.9422        .16955E-06** at limit **
  11  Prefactor     3.7064        10.514       -.58521E-05   -.21167E-03
  12  norm          .60362        1.5695        .26910E-05   -.71728E-03
  13  Prefactor     4.1339        102.80        .13013E-04    .27854E-04
  14  Normalizat    1.1122        .24276       -.42839E-05   -.32067E-03
  15  Prefactor     .96274        .65342E-01   -.19615E-06   -.10240E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.682246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6754
  Prefactor  = 0.0001
  Prefactor  = 3.70637
  norm       = 0.603616
  Prefactor  = 4.13388
  Normalizat = 1.11219
  Prefactor  = 0.962742
 **********
 **   18 **HESSE 
 **********

 FCN=   11749.69     FROM HESSE     STATUS=OK           178 CALLS     1378 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .68225        4.8955        .45278E-03   -1.5543    
   5  Prefactor     .10000E-03    4.6859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.675        18.103        .12262E-03   -1.5054    
  10  Prefactor     .10000E-03    1.9741        .14749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7064        10.493        .21003E-03   -1.5323    
  12  norm          .60362        1.5883        .14950E-03   -1.5553    
  13  Prefactor     4.1339        105.62        .20071E-03   -1.5301    
  14  Normalizat    1.1122        .27192        .46859E-03   -.89361    
  15  Prefactor     .96274        .73724E-01    .13601E-03   -.93982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72758e-10
Minuit parameter uncertainties:
  1  0.000387323
  2  0.000144928
  3  2.31827e-05
  4  3.65523
  5  2.60489e-05
  6  0.000185878
  7  1.3042e-05
  8  1.99149e-05
  9  18.1119
  10  1.34059e-05
  11  10.4985
  12  1.58839
  13  41.8729
  14  0.27226
  15  0.0737317
Done.

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

Extracting fit parameters...

4FGL J1224.7-8313
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.605e-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:  9.627e-01  7.373e-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.112e+00  2.723e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593801/likelihoodResults_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.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) = 11749.6950443
delta logL = -0.00101946152972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11749.6940307
delta logL = -5.89569754084e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11749.69     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      278 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    266.46        .36285E-02** at limit **
   2  Index         1.9211        5.9598        .50000       -.15671E-06
   3  Normalizat    1.1122        .27799E-01    .46859E-03   -.11636E-03
   4  Prefactor     .96274        .76295E-02    .13601E-03   -.25219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.92114
  Normalizat = 1.11219
  Prefactor  = 0.962742
 **********
 **   18 **HESSE 
 **********

 FCN=   11749.69     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1162.7        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9211        8.6685        .50000       -.66337    
   3  Normalizat    1.1122        .63901E-01    .18744E-04   -.89361    
   4  Prefactor     .96274        .17538E-01    .27203E-04   -.93982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.3877e-10
Minuit parameter uncertainties:
  1  0.00168311
  2  735.973
  3  0.063905
  4  0.0175385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593801': 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): 102
logL (Free Index) = 11749.6940177
delta logL = 7.11800203135e-06

Extracting fit parameters...

4FGL J1224.7-8313
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.683e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.921e+00  7.360e+02  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.627e-01  1.754e-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.112e+00  6.391e-02  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/593801/cmap_HighResolution_517708801_517968001_4FGL_J1224.7-8313_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-05 13:21:25.484707', job_id='593801', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630873285.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1074' AND source_name='4FGL J1224.7-8313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:21:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 593801: <4FGL_J1224.7-8313_daily_bin1074> in cluster <slac> Done

Job <4FGL_J1224.7-8313_daily_bin1074> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:05:51 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:05: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:05:53 2021
Terminated at Sun Sep  5 13:21:26 2021
Results reported at Sun Sep  5 13:21:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.7-8313_daily_bin1074 186.199 -83.2259 517708801 517968001 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 :                                   862.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

