/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 60 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 = 7372
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1038
RA = 126.108, Dec = 24.6709
tmin = 508377601, tmax = 508636801
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='437634', job_status='RUN', time_executed='2021-08-29 18:32:57.709249', time_epoch_executed='1630287177.71' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437634/ft1_4FGL_J0824.4+2440_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437634/ft2_4FGL_J0824.4+2440_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437634/ft1_4FGL_J0824.4+2440_daily_bin1038.fits outfile=/scratch/kocevski/437634/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1038.fits ra=126.108 dec=24.6709 rad=12.0 tmin=508377601.0 tmax=508636801.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 4.30
user 3.40
sys 0.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437634/ft2_4FGL_J0824.4+2440_daily_bin1038.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/437634/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/437634/ft1_filtered_4FGL_J0824.4+2440_daily_bin1038.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.26
user 0.34
sys 0.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437634/ft1_filtered_4FGL_J0824.4+2440_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/437634/ft2_4FGL_J0824.4+2440_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/437634/ltcube_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.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/437634/ft2_4FGL_J0824.4+2440_daily_bin1038.fits
.....................!
real 15.22
user 14.01
sys 0.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437634/ft1_filtered_4FGL_J0824.4+2440_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/437634/ft2_4FGL_J0824.4+2440_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/437634/ltcube_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.fits outfile=/scratch/kocevski/437634/expmap_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.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/437634/ltcube_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.fits
.....................!
real 195.05
user 185.00
sys 6.72

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/437634/ft1_filtered_4FGL_J0824.4+2440_daily_bin1038.fits scfile=/scratch/kocevski/437634/ft2_4FGL_J0824.4+2440_daily_bin1038.fits outfile=/scratch/kocevski/437634/cmap_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.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.95
user 0.38
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437634/ft1_filtered_4FGL_J0824.4+2440_daily_bin1038.fits scfile=/scratch/kocevski/437634/ft2_4FGL_J0824.4+2440_daily_bin1038.fits outfile=/scratch/kocevski/437634/cmap_HighResolution_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.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.97
user 0.39
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.432       1.0000         .10000E-03   10000.    
     6 'norm      '    16.550       1.0000         .10000E-03   10000.    
     7 'norm      '    106.04       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40174E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.347       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4503       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65185E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .78982       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9572       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0088       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=   6331.022     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2039 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4955       -.17796E-06** at limit **
   2  Prefactor     .10000E-03    32.390        .31011E-05** at limit **
   3  Prefactor     10.882        10.686        .51331E-06   -.89324E-05
   4  Prefactor     13.401        43.461        .39816E-04    .68861E-05
   5  Prefactor     12.450        29.540        .11890E-04   -.90216E-05
   6  norm          16.553        12.455       -.43077E-06   -.11023E-04
   7  norm          105.94        75.755       -.79421E-04   -.63176E-06
   8  Prefactor     .10000E-03    85.290        .20428E-04** at limit **
   9  Prefactor     .10157E-03    24.685       -.58201E-05** at limit **
  10  Prefactor     11.472        18.876        .46433E-06    .27223E-04
  11  Prefactor     19.342        18.624        .56791E-06    .10906E-03
  12  norm          1.7363        1.2224        .41272E-07    .33673E-03
  13  Prefactor     1.4554        10.358       -.33685E-05   -.54535E-03
  14  Prefactor     .10026E-03    5.0670       -.11656E-05** at limit **
  15  norm          .79010        .73224        .10613E-06    .48743E-03
  16  Prefactor     .10000E-03    8.0452        .23403E-06** at limit **
  17  Prefactor     .10000E-03    13.475        .34878E-07** at limit **
  18  norm          2.9268        78.607       -.46357E-04   -.15604E-04
  19  Normalizat    1.1339        .18427       -.32436E-06    .45173E-03
  20  Prefactor     1.0086        .15128        .12347E-05    .34093E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.8818
  Prefactor  = 13.4009
  Prefactor  = 12.4497
  norm       = 16.5535
  norm       = 105.939
  Prefactor  = 0.0001
  Prefactor  = 0.00010157
  Prefactor  = 11.4717
  Prefactor  = 19.3418
  norm       = 1.73628
  Prefactor  = 1.45541
  Prefactor  = 0.000100258
  norm       = 0.790096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92684
  Normalizat = 1.13393
  Prefactor  = 1.00861
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.022     FROM HESSE     STATUS=OK           299 CALLS     2338 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5100        .94919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.882        10.680        .12143E-03   -1.5048    
   4  Prefactor     13.401        43.370        .10952E-03   -1.4976    
   5  Prefactor     12.450        29.505        .11361E-03   -1.5002    
   6  norm          16.553        12.451        .98451E-04   -1.4894    
   7  norm          105.94        75.694        .19526E-03   -1.3646    
   8  Prefactor     .10000E-03    86.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10157E-03    163.64        .75674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.472        18.860        .11825E-03   -1.5030    
  11  Prefactor     19.342        18.606        .91058E-04   -1.4828    
  12  norm          1.7363        1.2123        .67138E-04   -1.5444    
  13  Prefactor     1.4554        10.259        .35777E-03   -1.5467    
  14  Prefactor     .10026E-03    42.789        .34418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .79010        .71426        .62298E-04   -1.5530    
  16  Prefactor     .10000E-03    8.0665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9268        79.092        .23615E-03   -1.5366    
  19  Normalizat    1.1339        .21367        .25696E-03   -.88670    
  20  Prefactor     1.0086        .17695        .22555E-03   -.92443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63762e-08
Minuit parameter uncertainties:
  1  2.05425e-05
  2  0.000313548
  3  10.6817
  4  43.4726
  5  29.5399
  6  12.4529
  7  75.763
  8  0.000277967
  9  0.0321441
  10  18.8701
  11  18.612
  12  1.21236
  13  7.7298
  14  0.00665483
  15  0.714267
  16  5.91344e-05
  17  3.26863e-05
  18  30.4738
  19  0.213832
  20  0.177052
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.934e+01  1.861e+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.009e+00  1.771e-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.134e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/437634/likelihoodResults_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.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) = 6331.01847443
delta logL = 0.00386184783019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6331.01653057
delta logL = 0.00580570735474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.558       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4285       1.0000          .0000       10.000    
     3 'Normalizat'    1.1380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0066       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=   6331.017     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.559        22.457        .88337E-04    .56498E-04
   2  Index         2.4286        .95598        .84196E-02    .17815E-03
   3  Normalizat    1.1379        .21345        .25659E-03    .15104E-03
   4  Prefactor     1.0067        .17596        .22575E-03    .12036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5585
  Index      = 2.42858
  Normalizat = 1.13791
  Prefactor  = 1.00669
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.017     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.559        21.885        .35335E-05   -1.4801    
   2  Index         2.4286        .93130        .16839E-02   -.54017    
   3  Normalizat    1.1379        .21344        .10264E-04   -.88544    
   4  Prefactor     1.0067        .17606        .90300E-05   -.92507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64963e-11
Minuit parameter uncertainties:
  1  21.8937
  2  0.938776
  3  0.213601
  4  0.176158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437634': 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) = 6331.01653037
delta logL = 0.00580590362915

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.056e+01  2.189e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.429e+00  9.388e-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.007e+00  1.762e-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.138e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.43 +/- 0.94
Photon Flux (Free Index): 3.40e-08 +/- 4.56e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.04e-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/437634/cmap_HighResolution_508377601_508636801_4FGL_J0824.4+2440_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.07e-05', photon_flux_error='3.60e-08', dlogl='5.81e-03', energy_flux='1.05e-05', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-08-29 18:43:19.612779', photon_index_error2='0.94', photon_index2='2.43', ts='2.97', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.04e-05', EG='1.13', time_epoch_completed='1630287799.61', return_code='0', job_id='437634', GAL2='1.01', EG2='1.14', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.56e-08', ts2='2.99', photon_index='2.53' WHERE bin_id='1038' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:43:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 437634: <4FGL_J0824.4+2440_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1038 126.108 24.6709 508377601 508636801 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 :                                   604.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

