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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1105
RA = 126.108, Dec = 24.6709
tmin = 525744001, tmax = 526003201
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='437767', job_status='RUN', time_executed='2021-08-29 18:31:19.423000', time_epoch_executed='1630287079.42' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437767

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437767/ft1_4FGL_J0824.4+2440_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437767/ft2_4FGL_J0824.4+2440_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437767/ft1_4FGL_J0824.4+2440_daily_bin1105.fits outfile=/scratch/kocevski/437767/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1105.fits ra=126.108 dec=24.6709 rad=12.0 tmin=525744001.0 tmax=526003201.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 5.66
user 4.12
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437767/ft1_filtered_4FGL_J0824.4+2440_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/437767/ft2_4FGL_J0824.4+2440_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/437767/ltcube_525744001_526003201_4FGL_J0824.4+2440_daily_bin1105.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/437767/ft2_4FGL_J0824.4+2440_daily_bin1105.fits
.....................!
real 12.64
user 11.46
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437767/ft1_filtered_4FGL_J0824.4+2440_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/437767/ft2_4FGL_J0824.4+2440_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/437767/ltcube_525744001_526003201_4FGL_J0824.4+2440_daily_bin1105.fits outfile=/scratch/kocevski/437767/expmap_525744001_526003201_4FGL_J0824.4+2440_daily_bin1105.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/437767/ltcube_525744001_526003201_4FGL_J0824.4+2440_daily_bin1105.fits
.....................!
real 191.90
user 186.04
sys 4.67

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/437767/ft1_filtered_4FGL_J0824.4+2440_daily_bin1105.fits scfile=/scratch/kocevski/437767/ft2_4FGL_J0824.4+2440_daily_bin1105.fits outfile=/scratch/kocevski/437767/cmap_525744001_526003201_4FGL_J0824.4+2440_daily_bin1105.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.97
user 0.37
sys 0.58

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    55.376       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.566       1.0000         .10000E-03   10000.    
    12 'norm      '    .40478E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4384       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .68956       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87701       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0715       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0637       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=   6190.519     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2084 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    2.5007        .97494E-06** at limit **
   2  Prefactor     34.509        31.772        .61634E-05    .52179E-03
   3  Prefactor     .10000E-03    19.617        .12773E-05** at limit **
   4  Prefactor     .10000E-03    10.559       -.82140E-07** at limit **
   5  Prefactor     .10000E-03    30.081        .25602E-05** at limit **
   6  norm          .10000E-03    4.9750        .56602E-07** at limit **
   7  norm          55.370        115.53       -.10323E-05   -.30417E-04
   8  Prefactor     13.908        27.558        .12040E-05    .22142E-04
   9  Prefactor     .10000E-03    51.882        .10564E-05** at limit **
  10  Prefactor     .10000E-03    8.8099        .47384E-07** at limit **
  11  Prefactor     61.568        22.767        .21107E-06    .47363E-04
  12  norm          .10008E-03    .45127       -.69035E-07** at limit **
  13  Prefactor     5.4384        7.4239        .44898E-05   -.52428E-03
  14  Prefactor     .10000E-03    1.9912       -.73876E-07** at limit **
  15  norm          .68955        .55526       -.97674E-08   -.23863E-03
  16  Prefactor     17.716        13.737        .25019E-06   -.17395E-04
  17  Prefactor     .86590        10.371        .12788E-05   -.14054E-03
  18  norm          .10000E-03    24.864       -.28308E-05** at limit **
  19  Normalizat    1.0714        .19108       -.29439E-05   -.16371E-03
  20  Prefactor     1.0639        .15471        .23316E-06   -.34422E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  Prefactor  = 34.5094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 55.3701
  Prefactor  = 13.9082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.5684
  norm       = 0.000100081
  Prefactor  = 5.43841
  Prefactor  = 0.0001
  norm       = 0.689546
  Prefactor  = 17.7165
  Prefactor  = 0.865899
  norm       = 0.000100001
  Normalizat = 1.07135
  Prefactor  = 1.06392
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.519     FROM HESSE     STATUS=OK           297 CALLS     2381 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    5.4152        .23533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.509        33.830        .68251E-04   -1.4532    
   3  Prefactor     .10000E-03    19.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.9936        .17139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          55.370        115.96        .53904E-04   -1.4218    
   8  Prefactor     13.908        27.542        .10741E-03   -1.4962    
   9  Prefactor     .10000E-03    52.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     61.568        22.780        .51138E-04   -1.4137    
  12  norm          .10008E-03    .79745        .18479E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4384        7.8754        .86154E-03   -1.5242    
  14  Prefactor     .10000E-03    1.9944        .10842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68955        .54176        .50249E-04   -1.5542    
  16  Prefactor     17.716        13.713        .95156E-04   -1.4866    
  17  Prefactor     .86590        39.836        .47882E-02   -1.5522    
  18  norm          .10000E-03    25.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0714        .22011        .26096E-03   -.90677    
  20  Prefactor     1.0639        .18135        .22025E-03   -.90628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84924e-09
Minuit parameter uncertainties:
  1  0.000621064
  2  33.8484
  3  7.64123e-05
  4  1.49702e-06
  5  4.8929e-05
  6  3.16929e-06
  7  116.437
  8  27.5672
  9  0.000213381
  10  9.3621e-06
  11  22.7832
  12  0.000509409
  13  7.87689
  14  2.21952e-06
  15  0.541769
  16  13.7156
  17  11.754
  18  0.000379981
  19  0.220295
  20  0.181456
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  6.157e+01  2.278e+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:  1.064e+00  1.815e-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.071e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.78
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 4.41e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.24e-05

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) = 6190.38257005
delta logL = 0.136855928595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6190.37906201
delta logL = 0.140363962622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3220       1.0000          .0000       10.000    
     3 'Normalizat'    1.0894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0530       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=   6190.379     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      296 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.903        38.729        .46090E-04   -.99651E-04
   2  Index         2.3220        .38702        .45493E-02    .38689E-03
   3  Normalizat    1.0895        .21461        .25915E-03   -.11463E-03
   4  Prefactor     1.0529        .17930        .22123E-03   -.12859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.9032
  Index      = 2.32198
  Normalizat = 1.08951
  Prefactor  = 1.05286
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.379     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.903        37.761        .92180E-05   -1.3963    
   2  Index         2.3220        .37721        .90985E-03   -.56522    
   3  Normalizat    1.0895        .21466        .10366E-04   -.90089    
   4  Prefactor     1.0529        .17938        .44247E-04   -.90988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41942e-11
Minuit parameter uncertainties:
  1  37.7726
  2  0.377718
  3  0.214832
  4  0.179482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437767': 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) = 6190.37906183
delta logL = 0.140364145323

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  7.590e+01  3.777e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.322e+00  3.777e-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.053e+00  1.795e-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.090e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.02
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.32 +/- 0.38
Photon Flux (Free Index): 1.07e-07 +/- 4.66e-08
Energy Flux (Free Index): 3.90e-05 +/- 1.96e-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/437767/cmap_HighResolution_525744001_526003201_4FGL_J0824.4+2440_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='3.90e-05', photon_flux_error='4.41e-08', dlogl='1.40e-01', energy_flux='3.36e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-08-29 18:40:36.100936', photon_index_error2='0.38', photon_index2='2.32', ts='18.78', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='1.07', time_epoch_completed='1630287636.1', return_code='0', job_id='437767', GAL2='1.05', EG2='1.09', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.66e-08', ts2='19.02', photon_index='2.53' WHERE bin_id='1105' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 437767: <4FGL_J0824.4+2440_daily_bin1105> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin1105> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 18:30:44 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:30:45 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:30:45 2021
Terminated at Sun Aug 29 18:40:37 2021
Results reported at Sun Aug 29 18:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1105 126.108 24.6709 525744001 526003201 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 :                                   557.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            593 sec.

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

