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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1345
RA = 126.108, Dec = 24.6709
tmin = 587952001, tmax = 588211201
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='439693', job_status='RUN', time_executed='2021-08-29 18:36:33.479531', time_epoch_executed='1630287393.48' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439693/ft1_4FGL_J0824.4+2440_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439693/ft2_4FGL_J0824.4+2440_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439693/ft1_4FGL_J0824.4+2440_daily_bin1345.fits outfile=/scratch/kocevski/439693/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1345.fits ra=126.108 dec=24.6709 rad=12.0 tmin=587952001.0 tmax=588211201.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.90
user 3.21
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439693/ft2_4FGL_J0824.4+2440_daily_bin1345.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/439693/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1345.fits evtable="EVENTS" outfile="/scratch/kocevski/439693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1345.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.96
user 0.32
sys 0.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/439693/ft2_4FGL_J0824.4+2440_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/439693/ltcube_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.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/439693/ft2_4FGL_J0824.4+2440_daily_bin1345.fits
.....................!
real 12.73
user 11.82
sys 0.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/439693/ft2_4FGL_J0824.4+2440_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/439693/ltcube_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.fits outfile=/scratch/kocevski/439693/expmap_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.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/439693/ltcube_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.fits
.....................!
real 192.41
user 186.01
sys 5.92

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/439693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1345.fits scfile=/scratch/kocevski/439693/ft2_4FGL_J0824.4+2440_daily_bin1345.fits outfile=/scratch/kocevski/439693/cmap_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.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 2.43
user 0.37
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439693/ft1_filtered_4FGL_J0824.4+2440_daily_bin1345.fits scfile=/scratch/kocevski/439693/ft2_4FGL_J0824.4+2440_daily_bin1345.fits outfile=/scratch/kocevski/439693/cmap_HighResolution_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.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.38
user 0.38
sys 0.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9619       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4694       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.169       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    69.557       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4606       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6416       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5723       1.0000         .10000E-03   10000.    
    15 'norm      '    .80172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.320       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95298       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1997       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=   7356.102     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2018 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9627        4.2801        .34256E-05   -.33937E-03
   2  Prefactor     8.4526        63.294       -.46965E-04   -.35032E-04
   3  Prefactor     14.393        15.335       -.41831E-06   -.36369E-05
   4  Prefactor     35.151        44.810       -.25111E-04    .11407E-04
   5  Prefactor     .10000E-03    19.234       -.90822E-06** at limit **
   6  norm          69.557        20.207       -.27516E-06    .33721E-04
   7  norm          .10000E-03    33.498       -.12044E-04** at limit **
   8  Prefactor     .10000E-03    9.2031       -.97229E-06** at limit **
   9  Prefactor     .10000E-03    7.3643        .14631E-06** at limit **
  10  Prefactor     .10000E-03    12.338        .15352E-05** at limit **
  11  Prefactor     .10000E-03    17.706       -.75164E-05** at limit **
  12  norm          1.4607        1.5564       -.28332E-06   -.47123E-03
  13  Prefactor     7.6391        14.063       -.17003E-05    .10379E-05
  14  Prefactor     4.5723        4.4393        .23205E-06    .20063E-03
  15  norm          .80151        .82987       -.46326E-06   -.30964E-02
  16  Prefactor     .10000E-03    26.104        .17381E-04** at limit **
  17  Prefactor     38.317        23.484       -.33158E-05    .26710E-04
  18  norm          .10000E-03    12.318        .17930E-05** at limit **
  19  Normalizat    .95304        .20259        .51429E-05   -.11348E-03
  20  Prefactor     1.1996        .15228        .10308E-05    .49714E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96273
  Prefactor  = 8.45264
  Prefactor  = 14.3929
  Prefactor  = 35.1512
  Prefactor  = 0.0001
  norm       = 69.5567
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4607
  Prefactor  = 7.63906
  Prefactor  = 4.57229
  norm       = 0.801514
  Prefactor  = 0.000100001
  Prefactor  = 38.3165
  norm       = 0.0001
  Normalizat = 0.953042
  Prefactor  = 1.19963
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.102     FROM HESSE     STATUS=OK           297 CALLS     2315 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9627        4.1372        .21484E-03   -1.5428    
   2  Prefactor     8.4526        60.692        .13775E-03   -1.5126    
   3  Prefactor     14.393        15.294        .10557E-03   -1.4949    
   4  Prefactor     35.151        44.787        .67575E-04   -1.4521    
   5  Prefactor     .10000E-03    19.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          69.557        20.207        .48130E-04   -1.4038    
   7  norm          .10000E-03    33.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4607        1.5154        .96485E-04   -1.5466    
  13  Prefactor     7.6391        13.867        .14507E-03   -1.5155    
  14  Prefactor     4.5723        4.4441        .17254E-03   -1.5280    
  15  norm          .80151        .80110        .74786E-03   -1.5529    
  16  Prefactor     .10000E-03    26.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.317        23.750        .64747E-04   -1.4469    
  18  norm          .10000E-03    12.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95304        .24194        .30705E-03   -.94621    
  20  Prefactor     1.1996        .18253        .22476E-03   -.86343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51812e-10
Minuit parameter uncertainties:
  1  4.1378
  2  45.3644
  3  15.2984
  4  44.8301
  5  0.000191498
  6  20.2093
  7  9.58721e-06
  8  8.4069e-06
  9  5.30326e-06
  10  3.19223e-05
  11  4.09948e-06
  12  1.51545
  13  13.8731
  14  4.44445
  15  0.80111
  16  0.000232378
  17  23.7556
  18  8.93283e-06
  19  0.24222
  20  0.18263
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.099e-06  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:  1.200e+00  1.826e-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:  9.530e-01  2.422e-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: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439693/likelihoodResults_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.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) = 7356.10218721
delta logL = -0.000268246388259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7356.10191876
delta logL = 2.00498107006e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6314       1.0000          .0000       10.000    
     3 'Normalizat'    .95304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1996       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=   7356.102     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.771        .18142E-02** at limit **
   2  Index         2.6503        6.3241        .50000       -.91381E-05
   3  Normalizat    .95304        .21785        .30705E-03    .38988E-04
   4  Prefactor     1.1996        .17773        .22476E-03    .38695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.65026
  Normalizat = 0.953044
  Prefactor  = 1.19963
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.102     FROM HESSE     STATUS=OK            29 CALLS      312 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6503        6.3177        .50000       -.48923    
   3  Normalizat    .95304        .21805        .12282E-04   -.94621    
   4  Prefactor     1.1996        .17790        .89904E-05   -.86343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86614e-10
Minuit parameter uncertainties:
  1  0.000357175
  2  4.43288
  3  0.218252
  4  0.177985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439693': 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) = 7356.10191872
delta logL = 2.40821464104e-07

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.572e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.650e+00  4.433e+00  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:  1.200e+00  1.780e-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:  9.530e-01  2.183e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/439693/cmap_HighResolution_587952001_588211201_4FGL_J0824.4+2440_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-08-29 18:47:19.413899', job_id='439693', GAL2='1.20', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630288039.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1345' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:47:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 439693: <4FGL_J0824.4+2440_daily_bin1345> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin1345> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 18:36:04 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:36:06 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:36:06 2021
Terminated at Sun Aug 29 18:47:20 2021
Results reported at Sun Aug 29 18:47:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1345 126.108 24.6709 587952001 588211201 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 :                                   640.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             358.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            676 sec.

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

