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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1047
RA = 126.108, Dec = 24.6709
tmin = 510710401, tmax = 510969601
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='437651', job_status='RUN', time_executed='2021-08-29 18:32:48.295362', time_epoch_executed='1630287168.3' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437651/ft1_4FGL_J0824.4+2440_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437651/ft2_4FGL_J0824.4+2440_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437651/ft1_4FGL_J0824.4+2440_daily_bin1047.fits outfile=/scratch/kocevski/437651/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1047.fits ra=126.108 dec=24.6709 rad=12.0 tmin=510710401.0 tmax=510969601.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.62
user 3.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437651/ft1_filtered_4FGL_J0824.4+2440_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/437651/ft2_4FGL_J0824.4+2440_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/437651/ltcube_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.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/437651/ft2_4FGL_J0824.4+2440_daily_bin1047.fits
.....................!
real 12.48
user 11.64
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437651/ft1_filtered_4FGL_J0824.4+2440_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/437651/ft2_4FGL_J0824.4+2440_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/437651/ltcube_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.fits outfile=/scratch/kocevski/437651/expmap_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.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/437651/ltcube_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.fits
.....................!
real 193.81
user 185.47
sys 6.65

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/437651/ft1_filtered_4FGL_J0824.4+2440_daily_bin1047.fits scfile=/scratch/kocevski/437651/ft2_4FGL_J0824.4+2440_daily_bin1047.fits outfile=/scratch/kocevski/437651/cmap_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437651/ft1_filtered_4FGL_J0824.4+2440_daily_bin1047.fits scfile=/scratch/kocevski/437651/ft2_4FGL_J0824.4+2440_daily_bin1047.fits outfile=/scratch/kocevski/437651/cmap_HighResolution_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.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.62
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21834E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13861E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .19456E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    65.801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43856E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18756E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.982       1.0000         .10000E-03   10000.    
    12 'norm      '    .90560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1821       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8390       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34613       1.0000         .10000E-03   10000.    
    18 'norm      '    .11988E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2583       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88756       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=   7021.207     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2050 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3229        .54820E-07** at limit **
   2  Prefactor     .10000E-03    9.6797        .26362E-07** at limit **
   3  Prefactor     9.8623        14.087        .32141E-06   -.76362E-05
   4  Prefactor     21.976        34.348        .28681E-06   -.11677E-04
   5  Prefactor     .10000E-03    13.081        .85827E-07** at limit **
   6  norm          .10000E-03    10.951        .40545E-06** at limit **
   7  norm          65.904        65.999        .56347E-06    .57113E-04
   8  Prefactor     .10000E-03    8.3657        .33115E-07** at limit **
   9  Prefactor     .10000E-03    11.646       -.25345E-07** at limit **
  10  Prefactor     .10000E-03    21.544        .42631E-07** at limit **
  11  Prefactor     29.956        26.687       -.18067E-05   -.47879E-04
  12  norm          .90585        1.6178        .87755E-06   -.39302E-05
  13  Prefactor     .10000E-03    14.880       -.92370E-06** at limit **
  14  Prefactor     1.1793        14.093        .32275E-05   -.85217E-04
  15  norm          1.8397        .78488       -.43613E-07   -.19326E-03
  16  Prefactor     10.721        14.740        .15281E-06   -.23282E-04
  17  Prefactor     .17951        6.9827        .22177E-06   -.32126E-04
  18  norm          .10000E-03    12.807       -.48749E-07** at limit **
  19  Normalizat    1.2587        .17694       -.54403E-06   -.14338E-03
  20  Prefactor     .88749        .14009       -.49986E-06   -.11532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.86227
  Prefactor  = 21.9761
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 65.9042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9556
  norm       = 0.905847
  Prefactor  = 0.0001
  Prefactor  = 1.17928
  norm       = 1.83965
  Prefactor  = 10.7212
  Prefactor  = 0.179511
  norm       = 0.0001
  Normalizat = 1.2587
  Prefactor  = 0.887493
 **********
 **   18 **HESSE 
 **********

 FCN=   7021.207     FROM HESSE     STATUS=OK           299 CALLS     2349 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3361        .94061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8623        14.085        .12726E-03   -1.5080    
   4  Prefactor     21.976        34.356        .85687E-04   -1.4770    
   5  Prefactor     .10000E-03    13.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          65.904        65.857        .24738E-03   -1.4083    
   8  Prefactor     .10000E-03    8.3716        .21221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.956        26.319        .73171E-04   -1.4613    
  12  norm          .90585        1.6052        .11321E-03   -1.5518    
  13  Prefactor     .10000E-03    15.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1793        13.835        .42023E-03   -1.5491    
  15  norm          1.8397        .78508        .45406E-04   -1.5437    
  16  Prefactor     10.721        14.734        .12200E-03   -1.5053    
  17  Prefactor     .17951        10.674        .75264E-01   -1.5623    
  18  norm          .10000E-03    12.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2587        .20804        .24886E-03   -.84808    
  20  Prefactor     .88749        .16411        .23505E-03   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18721e-10
Minuit parameter uncertainties:
  1  7.74412e-07
  2  2.63113e-06
  3  14.0901
  4  34.3868
  5  2.10875e-05
  6  1.66554e-05
  7  65.9303
  8  2.90499e-06
  9  1.84224e-05
  10  2.46076e-05
  11  26.3289
  12  1.60529
  13  6.95699e-05
  14  8.08043
  15  0.785086
  16  14.7389
  17  2.76818
  18  4.22725e-06
  19  0.208177
  20  0.164199
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.996e+01  2.633e+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:  8.875e-01  1.642e-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.259e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.78
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.43e-05

TS (Fixed Index): 2.78
Ra Dec: 126.108 24.671
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437651/likelihoodResults_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.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) = 7021.17900712
delta logL = 0.0282167015794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7021.17601916
delta logL = 0.0312046640884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.052       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3421       1.0000          .0000       10.000    
     3 'Normalizat'    1.2694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88120       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=   7021.176     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      265 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.052        730.82        .16922E-02    .37467E-03
   2  Index         2.3422        6.0014        .15181        .84741E-04
   3  Normalizat    1.2692        .11520        .56087E-01    .56528E-05
   4  Prefactor     .88134        .63607E-01    .44765E-01    .13014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.0522
  Index      = 2.34215
  Normalizat = 1.26919
  Prefactor  = 0.881337
 **********
 **   18 **HESSE 
 **********

 FCN=   7021.176     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.052        32.874        .67688E-04   -1.4523    
   2  Index         2.3422        .74892        .89649E-02   -.56045    
   3  Normalizat    1.2692        .20510        .24801E-03   -.84491    
   4  Prefactor     .88134        .16375        .23575E-03   -.96796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5926e-09
Minuit parameter uncertainties:
  1  32.8909
  2  0.752883
  3  0.205234
  4  0.163846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437651': 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) = 7021.1760188
delta logL = 0.031205025919

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  3.505e+01  3.289e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.342e+00  7.529e-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:  8.813e-01  1.638e-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.269e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.34 +/- 0.75
Photon Flux (Free Index): 5.08e-08 +/- 4.84e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/437651/cmap_HighResolution_510710401_510969601_4FGL_J0824.4+2440_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='1.80e-05', photon_flux_error='5.10e-08', dlogl='3.12e-02', energy_flux='1.63e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-08-29 18:43:19.085545', photon_index_error2='0.75', photon_index2='2.34', ts='2.78', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.66e-05', EG='1.26', time_epoch_completed='1630287799.09', return_code='0', job_id='437651', GAL2='0.88', EG2='1.27', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.84e-08', ts2='2.84', photon_index='2.53' WHERE bin_id='1047' 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@bullet0049>
Subject: Job 437651: <4FGL_J0824.4+2440_daily_bin1047> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1047 126.108 24.6709 510710401 510969601 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 :                                   621.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

