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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1259
RA = 126.108, Dec = 24.6709
tmin = 565660801, tmax = 565920001
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='437966', job_status='RUN', time_executed='2021-08-29 18:31:36.716722', time_epoch_executed='1630287096.72' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437966/ft1_4FGL_J0824.4+2440_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437966/ft1_4FGL_J0824.4+2440_daily_bin1259.fits outfile=/scratch/kocevski/437966/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1259.fits ra=126.108 dec=24.6709 rad=12.0 tmin=565660801.0 tmax=565920001.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.30
user 3.24
sys 0.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/437966/ltcube_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.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/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits
.....................!
real 12.49
user 11.61
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/437966/ltcube_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.fits outfile=/scratch/kocevski/437966/expmap_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.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/437966/ltcube_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.fits
.....................!
real 191.49
user 184.99
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
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/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits scfile=/scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits outfile=/scratch/kocevski/437966/cmap_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.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 0.80
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits scfile=/scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits outfile=/scratch/kocevski/437966/cmap_HighResolution_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.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 0.84
user 0.38
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437966/Model_4FGL_J0824.4+2440_daily_bin1259.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/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits....................!
real 64.08
user 62.27
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits', '/scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits', expMap='/scratch/kocevski/437966/expmap_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.fits', expCube='/scratch/kocevski/437966/ltcube_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437966/Model_4FGL_J0824.4+2440_daily_bin1259.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/437966/ft1_filtered_4FGL_J0824.4+2440_daily_bin1259.fits
Spacecraft file(s): /scratch/kocevski/437966/ft2_4FGL_J0824.4+2440_daily_bin1259.fits
Exposure map: /scratch/kocevski/437966/expmap_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.fits
Exposure cube: /scratch/kocevski/437966/ltcube_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437966/Model_4FGL_J0824.4+2440_daily_bin1259.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) = 6359.98590131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10885E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.737       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    44.722       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.609       1.0000         .10000E-03   10000.    
    12 'norm      '    .49797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6810       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9257       1.0000         .10000E-03   10000.    
    15 'norm      '    .96131       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24073E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    62.729       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3774       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69621       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=   6359.977     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2025 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1075        .79287E-06** at limit **
   2  Prefactor     .10001E-03    68.841        .35033E-05** at limit **
   3  Prefactor     12.726        15.316        .17935E-07   -.41123E-04
   4  Prefactor     .10000E-03    25.943        .37761E-06** at limit **
   5  Prefactor     29.714        35.603       -.13909E-05    .10480E-04
   6  norm          .10000E-03    6.7339        .19657E-07** at limit **
   7  norm          44.710        64.320       -.93018E-06    .16067E-04
   8  Prefactor     .10000E-03    29.503       -.61596E-06** at limit **
   9  Prefactor     6.8329        19.065       -.66900E-06    .35284E-04
  10  Prefactor     .10000E-03    32.428        .14722E-06** at limit **
  11  Prefactor     25.609        23.830       -.35831E-06   -.15027E-04
  12  norm          .49768        .89900        .16168E-06    .11467E-02
  13  Prefactor     5.6807        9.1494       -.29605E-06   -.70669E-05
  14  Prefactor     1.9256        3.3616       -.11193E-05    .25096E-03
  15  norm          .96123        .57646       -.12357E-08    .36004E-04
  16  Prefactor     4.7412        8.0095       -.19924E-06    .82585E-05
  17  Prefactor     .10000E-03    51.865        .10166E-04** at limit **
  18  norm          62.738        48.055        .54786E-06   -.63256E-05
  19  Normalizat    1.3775        .18164        .80872E-06   -.10150E-04
  20  Prefactor     .69623        .13961       -.30194E-06    .34692E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 12.7261
  Prefactor  = 0.0001
  Prefactor  = 29.7139
  norm       = 0.0001
  norm       = 44.7101
  Prefactor  = 0.0001
  Prefactor  = 6.83294
  Prefactor  = 0.0001
  Prefactor  = 25.6094
  norm       = 0.49768
  Prefactor  = 5.68073
  Prefactor  = 1.92558
  norm       = 0.961229
  Prefactor  = 4.74123
  Prefactor  = 0.000100001
  norm       = 62.738
  Normalizat = 1.37748
  Prefactor  = 0.696233
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.977     FROM HESSE     STATUS=OK           297 CALLS     2322 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1897        .11415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    70.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.726        15.297        .11227E-03   -1.4994    
   4  Prefactor     .10000E-03    25.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.714        35.613        .73472E-04   -1.4617    
   6  norm          .10000E-03    6.7722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          44.710        64.277        .59951E-04   -1.4370    
   8  Prefactor     .10000E-03    29.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8329        19.060        .76743E-03   -1.5185    
  10  Prefactor     .10000E-03    32.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.609        23.138        .39580E-03   -1.4695    
  12  norm          .49768        .71193        .92427E-03   -1.5567    
  13  Prefactor     5.6807        9.0959        .16853E-03   -1.5231    
  14  Prefactor     1.9256        3.3693        .94887E-03   -1.5430    
  15  norm          .96123        .57238        .45104E-04   -1.5512    
  16  Prefactor     4.7412        7.9887        .18479E-03   -1.5272    
  17  Prefactor     .10000E-03    51.191        .49641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          62.738        48.001        .50665E-04   -1.4122    
  19  Normalizat    1.3775        .20515        .22941E-03   -.81282    
  20  Prefactor     .69623        .16032        .24769E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66621e-10
Minuit parameter uncertainties:
  1  4.78103e-05
  2  0.00141227
  3  15.3015
  4  3.74635e-05
  5  35.6389
  6  2.47706e-06
  7  64.3764
  8  0.000163772
  9  19.0772
  10  4.55913e-05
  11  23.1458
  12  0.71194
  13  9.0981
  14  3.3696
  15  0.572384
  16  7.99054
  17  0.00047251
  18  48.0306
  19  0.205277
  20  0.160424
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.561e+01  2.315e+01  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.962e-01  1.604e-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.377e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.26e-05

TS (Fixed Index): 1.76
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437966/likelihoodResults_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.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) = 6359.81256086
delta logL = 0.164468467148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6359.80422965
delta logL = 0.172799682541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.695       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9768       1.0000          .0000       10.000    
     3 'Normalizat'    1.3555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70698       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=   6359.804     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      298 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.680        26.783        .98022E-04    .28311E-03
   2  Index         2.9765        .96904        .64286E-02    .13761E-03
   3  Normalizat    1.3557        .20583        .23087E-03    .90754E-04
   4  Prefactor     .70726        .16094        .24592E-03   -.40497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6796
  Index      = 2.97655
  Normalizat = 1.35571
  Prefactor  = 0.707263
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.804     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.680        22.439        .39209E-05   -1.4891    
   2  Index         2.9765        .81229        .25714E-03   -.41664    
   3  Normalizat    1.3557        .20547        .46174E-04   -.81918    
   4  Prefactor     .70726        .16064        .98368E-05   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6739e-10
Minuit parameter uncertainties:
  1  22.4505
  2  0.816622
  3  0.205597
  4  0.16075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437966': 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) = 6359.80421574
delta logL = 0.172813592068

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.668e+01  2.245e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.977e+00  8.166e-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:  7.073e-01  1.607e-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.356e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.98 +/- 0.82
Photon Flux (Free Index): 6.85e-08 +/- 5.86e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.10e-05

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/437966/cmap_HighResolution_565660801_565920001_4FGL_J0824.4+2440_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='1.38e-05', photon_flux_error='4.48e-08', dlogl='1.73e-01', energy_flux='1.40e-05', photon_flux2='6.85e-08', job_status='DONE', time_completed='2021-08-29 18:41:33.616197', photon_index_error2='0.82', photon_index2='2.98', ts='1.76', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.10e-05', EG='1.38', time_epoch_completed='1630287693.62', return_code='0', job_id='437966', GAL2='0.71', EG2='1.36', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.86e-08', ts2='2.13', photon_index='2.53' WHERE bin_id='1259' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 437966: <4FGL_J0824.4+2440_daily_bin1259> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin1259> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 18:30:59 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:31:00 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:31:00 2021
Terminated at Sun Aug 29 18:41:34 2021
Results reported at Sun Aug 29 18:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1259 126.108 24.6709 565660801 565920001 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 :                                   590.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

