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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin886
RA = 126.108, Dec = 24.6709
tmin = 468979201, tmax = 469238401
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='436474', job_status='RUN', time_executed='2021-08-29 18:27:18.565828', time_epoch_executed='1630286838.57' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436474/ft1_4FGL_J0824.4+2440_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436474/ft2_4FGL_J0824.4+2440_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436474/ft1_4FGL_J0824.4+2440_daily_bin886.fits outfile=/scratch/kocevski/436474/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin886.fits ra=126.108 dec=24.6709 rad=12.0 tmin=468979201.0 tmax=469238401.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 7.18
user 3.22
sys 3.68

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436474/ft1_filtered_4FGL_J0824.4+2440_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/436474/ft2_4FGL_J0824.4+2440_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/436474/ltcube_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.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/436474/ft2_4FGL_J0824.4+2440_daily_bin886.fits
.....................!
real 15.66
user 11.29
sys 4.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436474/ft1_filtered_4FGL_J0824.4+2440_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/436474/ft2_4FGL_J0824.4+2440_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/436474/ltcube_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.fits outfile=/scratch/kocevski/436474/expmap_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.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/436474/ltcube_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.fits
.....................!
real 194.35
user 185.06
sys 8.55

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/436474/ft1_filtered_4FGL_J0824.4+2440_daily_bin886.fits scfile=/scratch/kocevski/436474/ft2_4FGL_J0824.4+2440_daily_bin886.fits outfile=/scratch/kocevski/436474/cmap_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.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 5.49
user 0.37
sys 3.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436474/ft1_filtered_4FGL_J0824.4+2440_daily_bin886.fits scfile=/scratch/kocevski/436474/ft2_4FGL_J0824.4+2440_daily_bin886.fits outfile=/scratch/kocevski/436474/cmap_HighResolution_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.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 4.39
user 0.38
sys 3.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.035       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8808       1.0000         .10000E-03   10000.    
     7 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36990E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10123       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5784       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33619E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94543       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98098       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=   7274.822     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     1824 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.034        5.4328       -.17512E-05    .21890E-03
   2  Prefactor     54.972        39.743        .22176E-04    .80273E-04
   3  Prefactor     .10000E-03    9.6598        .12127E-06** at limit **
   4  Prefactor     .10000E-03    23.653        .13936E-04** at limit **
   5  Prefactor     .10000E-03    12.004       -.32990E-05** at limit **
   6  norm          4.8840        10.842       -.10559E-05   -.85606E-04
   7  norm          .10000E-03    28.222       -.72625E-05** at limit **
   8  Prefactor     1.0830        23.245       -.87312E-05    .58931E-03
   9  Prefactor     .10000E-03    12.239        .35817E-05** at limit **
  10  Prefactor     .10000E-03    52.253        .13183E-05** at limit **
  11  Prefactor     .10030E-03    10.443        .17870E-05** at limit **
  12  norm          .10252        .71285       -.57583E-06   -.14702E-02
  13  Prefactor     10.302        9.9734       -.32506E-08   -.17303E-04
  14  Prefactor     5.5770        5.3423       -.12635E-06   -.17565E-03
  15  norm          .10000E-03    .26327        .12092E-06** at limit **
  16  Prefactor     22.679        12.963       -.11637E-05   -.68727E-04
  17  Prefactor     .10002E-03    11.487       -.64289E-07** at limit **
  18  norm          .10000E-03    20.963       -.75050E-05** at limit **
  19  Normalizat    .94552        .17622       -.25896E-06    .33104E-03
  20  Prefactor     .98079        .13494       -.13631E-06    .37628E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0336
  Prefactor  = 54.9725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88399
  norm       = 0.0001
  Prefactor  = 1.08302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100298
  norm       = 0.102517
  Prefactor  = 10.3019
  Prefactor  = 5.57695
  norm       = 0.0001
  Prefactor  = 22.6795
  Prefactor  = 0.000100015
  norm       = 0.0001
  Normalizat = 0.945519
  Prefactor  = 0.980791
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.822     FROM HESSE     STATUS=OK           297 CALLS     2121 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.034        5.4320        .10329E-03   -1.4932    
   2  Prefactor     54.972        39.758        .54130E-04   -1.4224    
   3  Prefactor     .10000E-03    9.6848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8840        10.836        .18207E-03   -1.5266    
   7  norm          .10000E-03    28.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0830        188.17        .76488E-02   -1.5500    
   9  Prefactor     .10000E-03    12.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    53.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10030E-03    194.81        .49168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10252        1.1974        .12539E-02   -1.5644    
  13  Prefactor     10.302        9.8187        .12480E-03   -1.5066    
  14  Prefactor     5.5770        5.3323        .17010E-03   -1.5236    
  15  norm          .10000E-03    .49048        .82793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.679        12.758        .84072E-04   -1.4755    
  17  Prefactor     .10002E-03    61.075        .54619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94552        .20107        .26604E-03   -.94879    
  20  Prefactor     .98079        .15843        .21418E-03   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0568e-08
Minuit parameter uncertainties:
  1  5.43218
  2  39.7776
  3  1.32952e-06
  4  2.27946e-05
  5  5.97047e-05
  6  10.8407
  7  2.41586e-06
  8  28.642
  9  4.15361e-05
  10  0.000113332
  11  0.0152821
  12  0.700389
  13  9.82026
  14  5.3327
  15  8.66863e-06
  16  12.7595
  17  0.00191727
  18  2.76156e-05
  19  0.201232
  20  0.158509
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.003e-04  1.528e-02  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:  9.808e-01  1.585e-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.455e-01  2.012e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436474/likelihoodResults_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.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) = 7274.82205436
delta logL = -2.35635679928e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7274.82205436
delta logL = -2.35584711845e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5293       1.0000          .0000       10.000    
     3 'Normalizat'    .94550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98080       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=   7274.293     FROM MIGRAD    STATUS=CONVERGED    237 CALLS      413 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95987E-03    .11494E-04** at limit **
   2  Index         8.7666        .50585        .10461E-01    .47414E-03
   3  Normalizat    .88229        .20012        .27428E-03   -.10905E-03
   4  Prefactor     1.0168        .16149        .21084E-03    .21084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.76656
  Normalizat = 0.882286
  Prefactor  = 1.01678
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.293     FROM HESSE     STATUS=OK            25 CALLS      438 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95285E-03    .45977E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7666        .49675        .20922E-02    .85308    
   3  Normalizat    .88229        .20009        .10971E-04   -.97085    
   4  Prefactor     1.0168        .16156        .84334E-05   -.92172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28791e-10
Minuit parameter uncertainties:
  1  1.06694e-08
  2  0.498664
  3  0.200255
  4  0.161641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436474': 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) = 7274.29318941
delta logL = 0.52884138741

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.067e-08  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  8.767e+00  4.987e-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:  1.017e+00  1.616e-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:  8.823e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 126.108 24.671
Photon Index (Free Index): 8.77 +/- 0.50
Photon Flux (Free Index): 4.85e-08 +/- 5.01e-08
Energy Flux (Free Index): 5.54e-06 +/- 5.70e-06

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/436474/cmap_HighResolution_468979201_469238401_4FGL_J0824.4+2440_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', comment='SUCCESS', energy_flux2='5.54e-06', dlogl='5.29e-01', photon_flux2='4.85e-08', job_status='DONE', time_completed='2021-08-29 18:38:31.777161', photon_index_error2='0.50', photon_index2='8.77', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.22e-08', energy_flux_error2='5.70e-06', EG='0.95', time_epoch_completed='1630287511.78', return_code='0', job_id='436474', GAL2='1.02', EG2='0.88', return_code2='0', photon_flux_error2='5.01e-08', ts2='1.15', photon_index='2.53' WHERE bin_id='886' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:38:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 436474: <4FGL_J0824.4+2440_daily_bin886> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin886> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 18:25:55 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:25:57 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:25:57 2021
Terminated at Sun Aug 29 18:38:33 2021
Results reported at Sun Aug 29 18:38:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin886 126.108 24.6709 468979201 469238401 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 :                                   717.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

