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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin69
RA = 126.108, Dec = 24.6709
tmin = 257212801, tmax = 257472001
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='432380', job_status='RUN', time_executed='2021-08-29 18:18:36.429769', time_epoch_executed='1630286316.43' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432380/ft1_4FGL_J0824.4+2440_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432380/ft2_4FGL_J0824.4+2440_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432380/ft1_4FGL_J0824.4+2440_daily_bin69.fits outfile=/scratch/kocevski/432380/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin69.fits ra=126.108 dec=24.6709 rad=12.0 tmin=257212801.0 tmax=257472001.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.58
user 2.07
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432380/ft1_filtered_4FGL_J0824.4+2440_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/432380/ft2_4FGL_J0824.4+2440_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/432380/ltcube_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.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/432380/ft2_4FGL_J0824.4+2440_daily_bin69.fits
.....................!
real 13.32
user 12.58
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432380/ft1_filtered_4FGL_J0824.4+2440_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/432380/ft2_4FGL_J0824.4+2440_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/432380/ltcube_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.fits outfile=/scratch/kocevski/432380/expmap_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.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/432380/ltcube_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.fits
.....................!
real 192.20
user 185.62
sys 5.37

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/432380/ft1_filtered_4FGL_J0824.4+2440_daily_bin69.fits scfile=/scratch/kocevski/432380/ft2_4FGL_J0824.4+2440_daily_bin69.fits outfile=/scratch/kocevski/432380/cmap_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.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.75
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432380/ft1_filtered_4FGL_J0824.4+2440_daily_bin69.fits scfile=/scratch/kocevski/432380/ft2_4FGL_J0824.4+2440_daily_bin69.fits outfile=/scratch/kocevski/432380/cmap_HighResolution_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=126.108 yref=24.6709 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.75
user 0.39
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.558       1.0000         .10000E-03   10000.    
    12 'norm      '    .65608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45472E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1750       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.364       1.0000         .10000E-03   10000.    
    18 'norm      '    46.022       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1480       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99815       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=   9381.463     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1796 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40224        1.5473       -.10590E-06    .26239E-03
   2  Prefactor     .10000E-03    15.668       -.64259E-06** at limit **
   3  Prefactor     1.9474        11.239        .10527E-05    .24816E-05
   4  Prefactor     15.985        26.898       -.48853E-05   -.24609E-03
   5  Prefactor     .10000E-03    8.2904        .25628E-06** at limit **
   6  norm          .10000E-03    5.3176        .14820E-06** at limit **
   7  norm          .10000E-03    24.472       -.25799E-06** at limit **
   8  Prefactor     .10000E-03    20.536        .13397E-05** at limit **
   9  Prefactor     .10000E-03    7.3104       -.83436E-07** at limit **
  10  Prefactor     25.059        21.842        .80020E-07   -.11925E-04
  11  Prefactor     18.563        22.867       -.80734E-06    .14403E-04
  12  norm          .65596        1.1240        .13408E-06   -.68846E-03
  13  Prefactor     6.7027        7.8763        .35865E-05   -.32925E-03
  14  Prefactor     .10001E-03    3.5330       -.15306E-06** at limit **
  15  norm          1.1758        .75504       -.33372E-07   -.30935E-03
  16  Prefactor     20.607        13.556       -.11531E-06   -.39021E-04
  17  Prefactor     12.364        14.182        .93867E-07   -.77431E-05
  18  norm          46.021        30.679       -.46925E-07   -.13588E-04
  19  Normalizat    1.1479        .16235       -.49287E-06    .87473E-05
  20  Prefactor     .99824        .12452       -.27746E-06   -.10367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.402245
  Prefactor  = 0.0001
  Prefactor  = 1.94739
  Prefactor  = 15.9855
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0589
  Prefactor  = 18.5632
  norm       = 0.655958
  Prefactor  = 6.70274
  Prefactor  = 0.000100011
  norm       = 1.17579
  Prefactor  = 20.6071
  Prefactor  = 12.3644
  norm       = 46.0206
  Normalizat = 1.14793
  Prefactor  = 0.998237
 **********
 **   18 **HESSE 
 **********

 FCN=   9381.463     FROM HESSE     STATUS=OK           301 CALLS     2097 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40224        6.7445        .21456E-02   -1.5581    
   2  Prefactor     .10000E-03    15.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9474        11.158        .29734E-03   -1.5429    
   4  Prefactor     15.985        28.214        .10006E-03   -1.4908    
   5  Prefactor     .10000E-03    8.2962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    24.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.059        21.850        .80021E-04   -1.4706    
  11  Prefactor     18.563        21.773        .92972E-04   -1.4846    
  12  norm          .65596        .97635        .10613E-02   -1.5546    
  13  Prefactor     6.7027        7.9307        .77501E-03   -1.5190    
  14  Prefactor     .10001E-03    25.429        .34946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1758        .73810        .60586E-04   -1.5491    
  16  Prefactor     20.607        13.502        .88217E-04   -1.4800    
  17  Prefactor     12.364        14.254        .11392E-03   -1.5005    
  18  norm          46.021        30.678        .59102E-04   -1.4350    
  19  Normalizat    1.1479        .19304        .26161E-03   -.88227    
  20  Prefactor     .99824        .14802        .22719E-03   -.92788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1863e-09
Minuit parameter uncertainties:
  1  3.29423
  2  5.51427e-05
  3  9.32509
  4  28.2373
  5  1.86664e-05
  6  3.62637e-06
  7  1.91835e-05
  8  0.000118461
  9  9.13909e-06
  10  21.8573
  11  21.782
  12  0.976373
  13  7.93199
  14  0.00107043
  15  0.738105
  16  13.5035
  17  14.2584
  18  30.6882
  19  0.193158
  20  0.148084
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.856e+01  2.178e+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:  9.982e-01  1.481e-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.148e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/432380/likelihoodResults_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.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) = 9380.62483886
delta logL = 0.837903691998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9380.60833437
delta logL = 0.854408185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5632       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7227       1.0000          .0000       10.000    
     3 'Normalizat'    1.0987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0256       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.

 FCN=   9380.608     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      265 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5632        56.950        .47111E-02    .87267E-03
   2  Index         3.7227        2.8946        .11276        .23643E-03
   3  Normalizat    1.0987        .53038E-01    .60247E-01    .12196E-04
   4  Prefactor     1.0256        .42513E-01    .41622E-01    .65524E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56322
  Index      = 3.72274
  Normalizat = 1.09869
  Prefactor  = 1.0256
 **********
 **   18 **HESSE 
 **********

 FCN=   9380.608     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5632        98.802        .13083E-03   -1.5281    
   2  Index         3.7227        6.7459        .55514E-02   -.25831    
   3  Normalizat    1.0987        .17199        .26645E-03   -.89794    
   4  Prefactor     1.0256        .14211        .22445E-03   -.91881    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.16342e-07
Minuit parameter uncertainties:
  1  42.5463
  2  4.86946
  3  0.172078
  4  0.142166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432380': 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): 102
logL (Free Index) = 9380.60833433
delta logL = 0.854408216008

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  4.563e+00  4.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.723e+00  4.869e+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.026e+00  1.422e-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.099e+00  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 126.108 24.671
Photon Index (Free Index): 3.72 +/- 4.87
Photon Flux (Free Index): 7.30e-08 +/- 4.96e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.55e-05

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/432380/cmap_HighResolution_257212801_257472001_4FGL_J0824.4+2440_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='1.15e-05', photon_flux_error='4.22e-08', dlogl='8.54e-01', energy_flux='1.01e-05', photon_flux2='7.30e-08', job_status='DONE', time_completed='2021-08-29 18:30:12.917953', photon_index_error2='4.87', photon_index2='3.72', ts='1.10', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.55e-05', EG='1.15', time_epoch_completed='1630287012.92', return_code='0', job_id='432380', GAL2='1.03', EG2='1.10', return_code2='102', energy_flux_error='1.19e-05', photon_flux_error2='4.96e-08', ts2='2.94', photon_index='2.53' WHERE bin_id='69' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 432380: <4FGL_J0824.4+2440_daily_bin69> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin69 126.108 24.6709 257212801 257472001 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 :                                   696.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

