/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 117 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0824.4+2440_daily_bin93
RA = 126.108, Dec = 24.6709
tmin = 263433601, tmax = 263692801
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='432414', job_status='RUN', time_executed='2021-08-29 18:18:31.018793', time_epoch_executed='1630286311.02' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432414/ft1_4FGL_J0824.4+2440_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432414/ft1_4FGL_J0824.4+2440_daily_bin93.fits outfile=/scratch/kocevski/432414/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin93.fits ra=126.108 dec=24.6709 rad=12.0 tmin=263433601.0 tmax=263692801.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.72
user 3.24
sys 1.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.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/432414/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.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 1.94
user 0.33
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/432414/ltcube_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.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/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits
.....................!
real 14.74
user 12.72
sys 1.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/432414/ltcube_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.fits outfile=/scratch/kocevski/432414/expmap_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.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/432414/ltcube_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.fits
.....................!
real 192.95
user 185.58
sys 6.18

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
Added 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0824.4+2440 @ 126.108 24.6709

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits scfile=/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits outfile=/scratch/kocevski/432414/cmap_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.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=126.108 yref=24.6709 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 1.70
user 0.37
sys 1.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits scfile=/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits outfile=/scratch/kocevski/432414/cmap_HighResolution_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.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=126.108 yref=24.6709 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 1.70
user 0.39
sys 1.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432414/Model_4FGL_J0824.4+2440_daily_bin93.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 GAL_V02
Working on...
/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits.....................!
real 61.87
user 58.85
sys 2.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits', '/scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits', expMap='/scratch/kocevski/432414/expmap_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.fits', expCube='/scratch/kocevski/432414/ltcube_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432414/Model_4FGL_J0824.4+2440_daily_bin93.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.4+2440'

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  8.553e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/432414/ft1_filtered_4FGL_J0824.4+2440_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/432414/ft2_4FGL_J0824.4+2440_daily_bin93.fits
Exposure map: /scratch/kocevski/432414/expmap_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.fits
Exposure cube: /scratch/kocevski/432414/ltcube_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432414/Model_4FGL_J0824.4+2440_daily_bin93.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) = 5881.90599982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.759       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.4220       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6753       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5013       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6861       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2620       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5620       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .64455       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5881.898     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2044 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1201        4.1861       -.13968E-06    .81965E-04
   2  Prefactor     .10000E-03    23.931       -.16213E-06** at limit **
   3  Prefactor     .10000E-03    26.100       -.24963E-05** at limit **
   4  Prefactor     73.753        49.341       -.57501E-05    .14400E-04
   5  Prefactor     .10000E-03    15.035        .72093E-06** at limit **
   6  norm          9.4241        12.743       -.31493E-06   -.60448E-04
   7  norm          .10000E-03    28.611       -.27141E-06** at limit **
   8  Prefactor     .10000E-03    27.543       -.13788E-05** at limit **
   9  Prefactor     3.6947        46.489       -.17911E-04    .44873E-05
  10  Prefactor     .10000E-03    29.419        .15443E-05** at limit **
  11  Prefactor     .10000E-03    44.737       -.32476E-05** at limit **
  12  norm          3.6730        1.6214        .21238E-06    .84043E-03
  13  Prefactor     1.4951        10.978       -.83658E-05   -.34823E-04
  14  Prefactor     1.6835        1.3467        .39859E-06   -.95428E-03
  15  norm          .10000E-03    .38674       -.83620E-07** at limit **
  16  Prefactor     .10000E-03    31.837        .62290E-05** at limit **
  17  Prefactor     4.2595        16.189       -.13924E-05    .24644E-05
  18  norm          .10000E-03    24.281       -.87549E-06** at limit **
  19  Normalizat    1.5623        .19791        .20638E-05    .10209E-03
  20  Prefactor     .64425        .15185        .41049E-06    .20554E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.12006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.7528
  Prefactor  = 0.0001
  norm       = 9.42411
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.69471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67298
  Prefactor  = 1.49507
  Prefactor  = 1.68353
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25945
  norm       = 0.0001
  Normalizat = 1.56226
  Prefactor  = 0.644248
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.898     FROM HESSE     STATUS=OK           289 CALLS     2333 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1201        4.1813        .15011E-03   -1.5302    
   2  Prefactor     .10000E-03    24.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     73.753        49.423        .46749E-04   -1.3988    
   5  Prefactor     .10000E-03    15.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.4241        12.797        .65280E-03   -1.5094    
   7  norm          .10000E-03    28.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6947        46.513        .20981E-03   -1.5324    
  10  Prefactor     .10000E-03    29.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6730        1.6194        .60582E-04   -1.5325    
  13  Prefactor     1.4951        11.001        .34945E-03   -1.5463    
  14  Prefactor     1.6835        6.4505        .16214E-02   -1.5448    
  15  norm          .10000E-03    1.2262        .92356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2595        16.228        .19517E-03   -1.5295    
  18  norm          .10000E-03    24.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5623        .23432        .22657E-03   -.76044    
  20  Prefactor     .64425        .17811        .26712E-03   -1.0575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30533e-09
Minuit parameter uncertainties:
  1  4.1816
  2  1.82501e-05
  3  1.21463e-05
  4  49.4508
  5  4.29753e-06
  6  12.8009
  7  2.03001e-06
  8  0.000171475
  9  26.2433
  10  3.68303e-05
  11  5.04732e-05
  12  1.61938
  13  8.1127
  14  6.45315
  15  1.84739e-06
  16  0.000205844
  17  16.2445
  18  2.81518e-05
  19  0.234485
  20  0.178267
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.047e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  6.442e-01  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.562e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432414/likelihoodResults_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.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) = 5881.89842627
delta logL = -0.000105651863123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5881.89832165
delta logL = -1.03489946923e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15188E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4701       1.0000          .0000       10.000    
     3 'Normalizat'    1.5623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+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=   5881.898     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      281 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    6676.6        .18142E-02** at limit **
   2  Index         2.5545        5.6623        .50000       -.24716E-04
   3  Normalizat    1.5623        .46644E-01    .22657E-03    .28852E-04
   4  Prefactor     .64425        .37244E-01    .26712E-03   -.20429E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100062
  Index      = 2.55453
  Normalizat = 1.56226
  Prefactor  = 0.644246
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.898     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    8893.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5545        6.2332        .50000       -.51105    
   3  Normalizat    1.5623        .15149        .45314E-04   -.76044    
   4  Prefactor     .64425        .12095        .10685E-04   -1.0575    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.14751e-08
Minuit parameter uncertainties:
  1  0.0536534
  2  66.2944
  3  0.151532
  4  0.121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432414': 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) = 5881.89832048
delta logL = 1.38040377351e-07

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.001e-04  5.365e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.555e+00  6.629e+01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  6.442e-01  1.210e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.562e+00  1.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.108 24.671

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/432414/cmap_HighResolution_263433601_263692801_4FGL_J0824.4+2440_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-08-29 18:28:29.545219', job_id='432414', GAL2='0.64', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630286909.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='93' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:28:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 432414: <4FGL_J0824.4+2440_daily_bin93> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin93> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 18:15:32 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 18:15:35 2021
Terminated at Sun Aug 29 18:28:30 2021
Results reported at Sun Aug 29 18:28:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin93 126.108 24.6709 263433601 263692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.4+2440 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   612.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            778 sec.

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

