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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1289
RA = 126.108, Dec = 24.6709
tmin = 573436801, tmax = 573696001
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='439626', job_status='RUN', time_executed='2021-08-29 18:39:05.326844', time_epoch_executed='1630287545.33' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439626/ft1_4FGL_J0824.4+2440_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439626/ft2_4FGL_J0824.4+2440_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439626/ft1_4FGL_J0824.4+2440_daily_bin1289.fits outfile=/scratch/kocevski/439626/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1289.fits ra=126.108 dec=24.6709 rad=12.0 tmin=573436801.0 tmax=573696001.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 16.20
user 4.98
sys 8.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439626/ft1_filtered_4FGL_J0824.4+2440_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/439626/ft2_4FGL_J0824.4+2440_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/439626/ltcube_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.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/439626/ft2_4FGL_J0824.4+2440_daily_bin1289.fits
.....................!
real 23.24
user 11.51
sys 9.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439626/ft1_filtered_4FGL_J0824.4+2440_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/439626/ft2_4FGL_J0824.4+2440_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/439626/ltcube_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.fits outfile=/scratch/kocevski/439626/expmap_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.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/439626/ltcube_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.fits
.....................!
real 212.00
user 186.83
sys 15.43

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/439626/ft1_filtered_4FGL_J0824.4+2440_daily_bin1289.fits scfile=/scratch/kocevski/439626/ft2_4FGL_J0824.4+2440_daily_bin1289.fits outfile=/scratch/kocevski/439626/cmap_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.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 8.53
user 0.36
sys 7.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439626/ft1_filtered_4FGL_J0824.4+2440_daily_bin1289.fits scfile=/scratch/kocevski/439626/ft2_4FGL_J0824.4+2440_daily_bin1289.fits outfile=/scratch/kocevski/439626/cmap_HighResolution_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.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 7.68
user 0.38
sys 6.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3553       1.0000         .10000E-03   10000.    
     7 'norm      '    161.80       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.604       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.387       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5577       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.113       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.997       1.0000         .10000E-03   10000.    
    18 'norm      '    20.918       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76946       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1429       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=   5152.876     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     2013 TOTAL
                     EDM=   .51E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7105        5.7855        .28713E-06   -.10262E-03
   2  Prefactor     16.783        43.147        .58543E-05    .23612E-05
   3  Prefactor     .10000E-03    17.825        .13945E-05** at limit **
   4  Prefactor     .10000E-03    17.122        .89904E-06** at limit **
   5  Prefactor     .10000E-03    14.613       -.30693E-06** at limit **
   6  norm          1.3417        59.115        .16943E-05   -.50154E-05
   7  norm          161.81        124.66       -.77764E-06   -.25884E-05
   8  Prefactor     .10000E-03    24.359       -.16501E-05** at limit **
   9  Prefactor     .10000E-03    34.310        .58148E-06** at limit **
  10  Prefactor     24.602        29.103        .43452E-06   -.13090E-05
  11  Prefactor     .10000E-03    13.783       -.80893E-06** at limit **
  12  norm          .10000E-03    .44410       -.39025E-08** at limit **
  13  Prefactor     14.389        11.605        .16660E-06   -.50357E-05
  14  Prefactor     .10000E-03    11.714        .27823E-06** at limit **
  15  norm          1.5576        .93329        .13252E-07   -.23407E-04
  16  Prefactor     23.114        19.073        .96985E-07   -.24388E-05
  17  Prefactor     11.989        24.482        .14286E-05    .70361E-06
  18  norm          20.920        36.765       -.15593E-06   -.12832E-05
  19  Normalizat    .76984        .21873       -.49030E-06   -.15789E-04
  20  Prefactor     1.1426        .17133       -.38620E-06   -.23747E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.7105
  Prefactor  = 16.7827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34175
  norm       = 161.809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3887
  Prefactor  = 0.0001
  norm       = 1.55763
  Prefactor  = 23.1141
  Prefactor  = 11.9889
  norm       = 20.9198
  Normalizat = 0.76984
  Prefactor  = 1.14262
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.876     FROM HESSE     STATUS=OK           293 CALLS     2306 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7105        5.8123        .83730E-03   -1.5274    
   2  Prefactor     16.783        43.179        .97658E-04   -1.4888    
   3  Prefactor     .10000E-03    17.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3417        59.781        .37550E-03   -1.5476    
   7  norm          161.81        124.92        .15852E-03   -1.3157    
   8  Prefactor     .10000E-03    24.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.602        29.111        .80757E-04   -1.4716    
  11  Prefactor     .10000E-03    13.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .45113        .46646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.389        11.614        .10560E-03   -1.4949    
  14  Prefactor     .10000E-03    11.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5576        .93204        .49619E-04   -1.5458    
  16  Prefactor     23.114        19.062        .83317E-04   -1.4746    
  17  Prefactor     11.989        24.639        .11565E-03   -1.5015    
  18  norm          20.920        36.761        .87575E-04   -1.4793    
  19  Normalizat    .76984        .25317        .30759E-03   -1.0120    
  20  Prefactor     1.1426        .19859        .20901E-03   -.88116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49318e-12
Minuit parameter uncertainties:
  1  5.81295
  2  43.2595
  3  1.06832e-05
  4  6.96821e-06
  5  2.06843e-05
  6  17.9306
  7  125.128
  8  6.38313e-06
  9  9.87116e-06
  10  29.1279
  11  1.04266e-06
  12  1.96366e-07
  13  11.616
  14  9.85891e-06
  15  0.932049
  16  19.0674
  17  24.66
  18  36.801
  19  0.253561
  20  0.198714
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.043e-06  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.143e+00  1.987e-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.698e-01  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/439626/likelihoodResults_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.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) = 5152.87613937
delta logL = -0.000344535481418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5152.87579578
delta logL = -9.45207830227e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5198       1.0000          .0000       10.000    
     3 'Normalizat'    .76963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1428       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=   5152.876     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    179.38        .18142E-02** at limit **
   2  Index         2.4805        7.6421        .50000        .47078E-05
   3  Normalizat    .76984        .18808E-01    .30759E-03    .26612E-05
   4  Prefactor     1.1426        .15380E-01    .20901E-03    .38619E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100469
  Index      = 2.48047
  Normalizat = 0.76984
  Prefactor  = 1.14262
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.876     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10047E-03    765.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4805        5.3576        .50000       -.52812    
   3  Normalizat    .76984        .41345E-01    .12303E-04   -1.0120    
   4  Prefactor     1.1426        .33808E-01    .83603E-05   -.88116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.89172e-09
Minuit parameter uncertainties:
  1  0.0383848
  2  1274.69
  3  0.0413463
  4  0.0338085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439626': 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) = 5152.87579479
delta logL = 4.27253326052e-08

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.005e-04  3.838e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.480e+00  1.275e+03  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.143e+00  3.381e-02  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.698e-01  4.135e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.108 24.671

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/439626/cmap_HighResolution_573436801_573696001_4FGL_J0824.4+2440_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-08-29 18:50:46.561762', job_id='439626', GAL2='1.14', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630288246.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1289' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 439626: <4FGL_J0824.4+2440_daily_bin1289> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin1289> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 18:35:57 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:35:58 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:35:58 2021
Terminated at Sun Aug 29 18:50:49 2021
Results reported at Sun Aug 29 18:50:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1289 126.108 24.6709 573436801 573696001 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 :                                   767.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

