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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1608
RA = 126.108, Dec = 24.6709
tmin = 656121601, tmax = 656380801
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='260569', job_status='RUN', time_executed='2021-12-07 19:03:43.011078', time_epoch_executed='1638932623.01' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260569

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260569/ft1_4FGL_J0824.4+2440_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260569/ft2_4FGL_J0824.4+2440_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260569/ft1_4FGL_J0824.4+2440_daily_bin1608.fits outfile=/scratch/kocevski/260569/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1608.fits ra=126.108 dec=24.6709 rad=12.0 tmin=656121601.0 tmax=656380801.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 3.50
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260569/ft1_filtered_4FGL_J0824.4+2440_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/260569/ft2_4FGL_J0824.4+2440_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/260569/ltcube_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.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/260569/ft2_4FGL_J0824.4+2440_daily_bin1608.fits
.....................!
real 13.28
user 12.83
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260569/ft1_filtered_4FGL_J0824.4+2440_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/260569/ft2_4FGL_J0824.4+2440_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/260569/ltcube_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.fits outfile=/scratch/kocevski/260569/expmap_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.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/260569/ltcube_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.fits
.....................!
real 191.70
user 185.67
sys 5.25

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/260569/ft1_filtered_4FGL_J0824.4+2440_daily_bin1608.fits scfile=/scratch/kocevski/260569/ft2_4FGL_J0824.4+2440_daily_bin1608.fits outfile=/scratch/kocevski/260569/cmap_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260569/ft1_filtered_4FGL_J0824.4+2440_daily_bin1608.fits scfile=/scratch/kocevski/260569/ft2_4FGL_J0824.4+2440_daily_bin1608.fits outfile=/scratch/kocevski/260569/cmap_HighResolution_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.997       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2019       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4429       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7324       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.885       1.0000         .10000E-03   10000.    
    18 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70066       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2271       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=   7472.673     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1985 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2644        .49477E-07** at limit **
   2  Prefactor     .10000E-03    40.425       -.38587E-05** at limit **
   3  Prefactor     18.007        19.472       -.47393E-06    .69876E-05
   4  Prefactor     42.596        38.940        .44318E-05   -.19595E-05
   5  Prefactor     .10000E-03    40.269       -.43808E-05** at limit **
   6  norm          .10000E-03    4.6305       -.13805E-06** at limit **
   7  norm          .10000E-03    26.555        .57720E-05** at limit **
   8  Prefactor     6.1906        21.941       -.15330E-05    .27483E-04
   9  Prefactor     .10000E-03    30.835       -.73754E-05** at limit **
  10  Prefactor     .10000E-03    85.798       -.39207E-04** at limit **
  11  Prefactor     8.4439        15.823        .46714E-06   -.19905E-04
  12  norm          .10000E-03    .39412       -.30036E-07** at limit **
  13  Prefactor     22.393        9.2290        .39790E-05   -.12931E-04
  14  Prefactor     .10000E-03    1.7835       -.15246E-06** at limit **
  15  norm          1.7324        .73579       -.10131E-07   -.62869E-03
  16  Prefactor     12.514        9.7599       -.20010E-05   -.12945E-03
  17  Prefactor     16.887        14.059       -.11664E-06   -.53858E-04
  18  norm          .10000E-03    62.576        .41329E-04** at limit **
  19  Normalizat    .70042        .17430       -.16440E-05    .15694E-03
  20  Prefactor     1.2272        .13969        .45122E-06    .15828E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.007
  Prefactor  = 42.5965
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.19064
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.44394
  norm       = 0.0001
  Prefactor  = 22.3928
  Prefactor  = 0.0001
  norm       = 1.73245
  Prefactor  = 12.514
  Prefactor  = 16.8871
  norm       = 0.0001
  Normalizat = 0.700418
  Prefactor  = 1.22716
 **********
 **   18 **HESSE 
 **********

 FCN=   7472.673     FROM HESSE     STATUS=OK           289 CALLS     2274 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3871        .34586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.007        19.352        .94412E-04   -1.4859    
   4  Prefactor     42.596        38.964        .61427E-04   -1.4402    
   5  Prefactor     .10000E-03    40.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.6502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    26.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1906        21.918        .16120E-03   -1.5210    
   9  Prefactor     .10000E-03    31.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    86.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4439        15.784        .13796E-03   -1.5127    
  12  norm          .10000E-03    .40138        .10552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.393        9.2366        .84649E-04   -1.4761    
  14  Prefactor     .10000E-03    1.7880        .11273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7324        .73406        .45844E-04   -1.5445    
  16  Prefactor     12.514        9.7737        .11322E-03   -1.5000    
  17  Prefactor     16.887        14.094        .97469E-04   -1.4886    
  18  norm          .10000E-03    63.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70042        .19789        .31102E-03   -1.0388    
  20  Prefactor     1.2272        .15913        .20200E-03   -.85499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05393e-10
Minuit parameter uncertainties:
  1  1.88904e-05
  2  6.02149e-05
  3  19.3588
  4  38.9869
  5  5.16269e-05
  6  3.6912e-06
  7  3.9858e-06
  8  21.9466
  9  8.05131e-05
  10  0.000778955
  11  15.7916
  12  6.95033e-06
  13  9.23721
  14  5.57154e-06
  15  0.734061
  16  9.77498
  17  14.0964
  18  0.000175011
  19  0.198087
  20  0.159188
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  8.444e+00  1.579e+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.227e+00  1.592e-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:  7.004e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 9.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260569/likelihoodResults_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.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) = 7472.35048871
delta logL = 0.322648697555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7472.34411335
delta logL = 0.329024062277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33833       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8897       1.0000          .0000       10.000    
     3 'Normalizat'    .65014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2569       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=   7472.344     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      327 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33647        5.3731        .10592E-01    .14253E-02
   2  Index         4.8923        2.8810        .11886        .14930E-03
   3  Normalizat    .65015        .33816E-01    .72722E-01    .16831E-04
   4  Prefactor     1.2569        .28452E-01    .33407E-01   -.15535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.336465
  Index      = 4.89231
  Normalizat = 0.650154
  Prefactor  = 1.25689
 **********
 **   18 **HESSE 
 **********

 FCN=   7472.344     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      362 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33647        17.582        .51759E-03   -1.5592    
   2  Index         4.8923        7.4296        .68570E-02   -.21539E-01
   3  Normalizat    .65015        .13236        .32191E-03   -1.0589    
   4  Prefactor     1.2569        .10971        .19993E-03   -.84598    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12763e-06
Minuit parameter uncertainties:
  1  4.86523
  2  7.16808
  3  0.132423
  4  0.109726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260569': 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) = 7472.34411288
delta logL = 0.32902453123

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  3.365e-01  4.865e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  4.892e+00  7.168e+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.257e+00  1.097e-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:  6.502e-01  1.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 126.108 24.671
Photon Index (Free Index): 4.89 +/- 7.17
Photon Flux (Free Index): 5.24e-08 +/- 5.17e-08
Energy Flux (Free Index): 7.04e-06 +/- 8.79e-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/260569/cmap_HighResolution_656121601_656380801_4FGL_J0824.4+2440_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', comment='SUCCESS', energy_flux2='7.04e-06', dlogl='3.29e-01', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-12-07 19:14:12.048739', photon_index_error2='7.17', photon_index2='4.89', ts='0.38', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='9.34e-08', energy_flux_error2='8.79e-06', EG='0.70', time_epoch_completed='1638933252.05', return_code='0', job_id='260569', GAL2='1.26', EG2='0.65', return_code2='102', photon_flux_error2='5.17e-08', ts2='1.13', photon_index='2.53' WHERE bin_id='1608' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 19:14:12 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 260569: <4FGL_J0824.4+2440_daily_bin1608> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin1608> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec  7 19:00:17 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 19:01:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 19:01:26 2021
Terminated at Tue Dec  7 19:14:12 2021
Results reported at Tue Dec  7 19:14:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1608 126.108 24.6709 656121601 656380801 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 :                                   627.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            835 sec.

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

