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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin26
RA = 126.108, Dec = 24.6709
tmin = 246067201, tmax = 246326401
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='432318', job_status='RUN', time_executed='2021-08-29 18:19:11.420808', time_epoch_executed='1630286351.42' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432318/ft1_4FGL_J0824.4+2440_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432318/ft2_4FGL_J0824.4+2440_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432318/ft1_4FGL_J0824.4+2440_daily_bin26.fits outfile=/scratch/kocevski/432318/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin26.fits ra=126.108 dec=24.6709 rad=12.0 tmin=246067201.0 tmax=246326401.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 2.17
user 1.29
sys 0.81

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432318/ft1_filtered_4FGL_J0824.4+2440_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/432318/ft2_4FGL_J0824.4+2440_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/432318/ltcube_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.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/432318/ft2_4FGL_J0824.4+2440_daily_bin26.fits
.....................!
real 13.80
user 12.57
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432318/ft1_filtered_4FGL_J0824.4+2440_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/432318/ft2_4FGL_J0824.4+2440_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/432318/ltcube_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.fits outfile=/scratch/kocevski/432318/expmap_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.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/432318/ltcube_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.fits
.....................!
real 194.65
user 186.39
sys 7.22

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/432318/ft1_filtered_4FGL_J0824.4+2440_daily_bin26.fits scfile=/scratch/kocevski/432318/ft2_4FGL_J0824.4+2440_daily_bin26.fits outfile=/scratch/kocevski/432318/cmap_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.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.20
user 0.39
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432318/ft1_filtered_4FGL_J0824.4+2440_daily_bin26.fits scfile=/scratch/kocevski/432318/ft2_4FGL_J0824.4+2440_daily_bin26.fits outfile=/scratch/kocevski/432318/cmap_HighResolution_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.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.19
user 0.39
sys 0.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9890       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4742       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0896       1.0000         .10000E-03   10000.    
     7 'norm      '    106.44       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8426       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37276       1.0000         .10000E-03   10000.    
    12 'norm      '    .98117       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4335       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11398E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1992       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    74.122       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4906       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77658       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=   6696.349     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2035 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9866        5.0566        .48248E-06   -.68856E-03
   2  Prefactor     .10000E-03    13.742        .42285E-05** at limit **
   3  Prefactor     22.051        26.907       -.21744E-05   -.42487E-04
   4  Prefactor     7.4740        41.082       -.17354E-05   -.71349E-05
   5  Prefactor     .10000E-03    12.907       -.34171E-05** at limit **
   6  norm          1.0932        4.2920        .16433E-05   -.11668E-02
   7  norm          106.44        103.05        .41291E-05   -.15821E-05
   8  Prefactor     2.8402        21.946        .73223E-05   -.31374E-05
   9  Prefactor     .10000E-03    11.418        .37011E-06** at limit **
  10  Prefactor     .10000E-03    16.504       -.40486E-06** at limit **
  11  Prefactor     .33315        17.441        .19542E-05   -.20933E-03
  12  norm          .98284        .94477       -.38300E-07   -.76127E-03
  13  Prefactor     9.4334        9.1632        .23214E-06   -.44400E-03
  14  Prefactor     .10000E-03    4.4949        .41217E-06** at limit **
  15  norm          2.1991        .84305       -.78782E-07   -.28259E-03
  16  Prefactor     .10000E-03    16.460       -.19032E-05** at limit **
  17  Prefactor     .10000E-03    6.7195       -.40859E-07** at limit **
  18  norm          74.161        47.544        .19886E-04    .11350E-03
  19  Normalizat    1.4906        .19923       -.13325E-05   -.17998E-03
  20  Prefactor     .77666        .15761       -.12099E-05   -.19440E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.98663
  Prefactor  = 0.0001
  Prefactor  = 22.0506
  Prefactor  = 7.47398
  Prefactor  = 0.0001
  norm       = 1.09322
  norm       = 106.442
  Prefactor  = 2.84024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.333152
  norm       = 0.98284
  Prefactor  = 9.4334
  Prefactor  = 0.0001
  norm       = 2.19911
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 74.1605
  Normalizat = 1.49065
  Prefactor  = 0.776656
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.349     FROM HESSE     STATUS=OK           311 CALLS     2346 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9866        5.0648        .65003E-03   -1.5143    
   2  Prefactor     .10000E-03    13.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.051        26.870        .85315E-04   -1.4768    
   4  Prefactor     7.4740        41.132        .14670E-03   -1.5161    
   5  Prefactor     .10000E-03    12.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0932        6.5826        .12199       -1.5499    
   7  norm          106.44        103.15        .38980E-04   -1.3641    
   8  Prefactor     2.8402        21.890        .24117E-03   -1.5371    
   9  Prefactor     .10000E-03    11.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33315        21.359        .92848E-01   -1.5593    
  12  norm          .98284        .92267        .70714E-04   -1.5510    
  13  Prefactor     9.4334        9.1829        .65240E-03   -1.5094    
  14  Prefactor     .10000E-03    20.834        .33357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1991        .84299        .44517E-04   -1.5411    
  16  Prefactor     .10000E-03    16.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          74.161        47.573        .23318E-03   -1.3983    
  19  Normalizat    1.4906        .23861        .24223E-03   -.78042    
  20  Prefactor     .77666        .18658        .26203E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4263e-07
Minuit parameter uncertainties:
  1  5.06507
  2  3.39429e-05
  3  26.8845
  4  35.1038
  5  1.51408e-05
  6  5.36578
  7  103.329
  8  15.7777
  9  1.77917e-05
  10  1.67678e-05
  11  5.33622
  12  0.922685
  13  9.18431
  14  5.27153e-05
  15  0.842998
  16  0.00024083
  17  1.27075e-05
  18  47.5974
  19  0.238789
  20  0.186734
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  3.332e-01  5.336e+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

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  7.767e-01  1.867e-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.491e+00  2.388e-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: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432318/likelihoodResults_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.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) = 6696.34480852
delta logL = 0.00412073467578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6696.33861752
delta logL = 0.0103117384506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4282       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0352       1.0000          .0000       10.000    
     3 'Normalizat'    1.4845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77869       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6696.339     FROM MIGRAD    STATUS=FAILED        87 CALLS      272 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4297        26.959        .36160E-03   -.29553E-05
   2  Index         3.0263        2.8899        .69479E-02    .23459E-03
   3  Normalizat    1.4850        .23027        .24260E-03    .21317E-02
   4  Prefactor     .77855        .18497        .26172E-03    .14696E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6696.339     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      353 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4297        26.959        .26109E-03   -1.5469    
   2  Index         3.0263        2.8899        .22775E-02   -.40579    
   3  Normalizat    1.4850        .23027        .32096E-03   -.78201    
   4  Prefactor     .77855        .18497        .33707E-03   -1.0052    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6696.339     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      382 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4309        23.378        .14464E-04    .19398E-03
   2  Index         3.0258        2.7196        .27792E-03    .13663E-04
   3  Normalizat    1.4850        .23055        .48520E-04    .31936E-03
   4  Prefactor     .77856        .18514        .52345E-04    .21606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43085
  Index      = 3.02584
  Normalizat = 1.48496
  Prefactor  = 0.778557
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.339     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4309        23.305        .28928E-05   -1.5469    
   2  Index         3.0258        2.7155        .11117E-04   -.40589    
   3  Normalizat    1.4850        .23061        .97041E-05   -.78202    
   4  Prefactor     .77856        .18519        .10469E-04   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88257e-10
Minuit parameter uncertainties:
  1  11.5541
  2  2.90533
  3  0.230769
  4  0.185337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432318': 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) = 6696.33860864
delta logL = 0.0103206132553

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.431e+00  1.155e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.026e+00  2.905e+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:  7.786e-01  1.853e-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.485e+00  2.308e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/432318/cmap_HighResolution_246067201_246326401_4FGL_J0824.4+2440_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2021-08-29 18:29:41.409667', job_id='432318', GAL2='0.78', fit_tolerance='1e-08', EG2='1.48', EG='1.49', time_epoch_completed='1630286981.41', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.03e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='26' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 432318: <4FGL_J0824.4+2440_daily_bin26> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin26> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 18:15:26 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:15:27 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:27 2021
Terminated at Sun Aug 29 18:29:42 2021
Results reported at Sun Aug 29 18:29:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin26 126.108 24.6709 246067201 246326401 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 :                                   638.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

