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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1012
RA = 126.108, Dec = 24.6709
tmin = 501638401, tmax = 501897601
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='437581', job_status='RUN', time_executed='2021-08-29 18:35:16.912223', time_epoch_executed='1630287316.91' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437581/ft1_4FGL_J0824.4+2440_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437581/ft2_4FGL_J0824.4+2440_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437581/ft1_4FGL_J0824.4+2440_daily_bin1012.fits outfile=/scratch/kocevski/437581/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1012.fits ra=126.108 dec=24.6709 rad=12.0 tmin=501638401.0 tmax=501897601.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.62
user 3.30
sys 1.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437581/ft1_filtered_4FGL_J0824.4+2440_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/437581/ft2_4FGL_J0824.4+2440_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/437581/ltcube_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.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/437581/ft2_4FGL_J0824.4+2440_daily_bin1012.fits
.....................!
real 13.52
user 11.83
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437581/ft1_filtered_4FGL_J0824.4+2440_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/437581/ft2_4FGL_J0824.4+2440_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/437581/ltcube_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.fits outfile=/scratch/kocevski/437581/expmap_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.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/437581/ltcube_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.fits
.....................!
real 192.78
user 186.25
sys 5.83

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/437581/ft1_filtered_4FGL_J0824.4+2440_daily_bin1012.fits scfile=/scratch/kocevski/437581/ft2_4FGL_J0824.4+2440_daily_bin1012.fits outfile=/scratch/kocevski/437581/cmap_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.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 1.70
user 0.36
sys 1.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437581/ft1_filtered_4FGL_J0824.4+2440_daily_bin1012.fits scfile=/scratch/kocevski/437581/ft2_4FGL_J0824.4+2440_daily_bin1012.fits outfile=/scratch/kocevski/437581/cmap_HighResolution_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.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 1.67
user 0.38
sys 1.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    49.504       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.699       1.0000         .10000E-03   10000.    
    12 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3067       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.494       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.593       1.0000         .10000E-03   10000.    
    18 'norm      '    95.512       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61667       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3179       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=   7095.347     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1798 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3337        3.5605       -.76506E-06   -.11257E-02
   2  Prefactor     .10000E-03    12.300       -.66451E-05** at limit **
   3  Prefactor     22.477        16.491        .62824E-06    .11461E-04
   4  Prefactor     .10000E-03    12.545        .65902E-05** at limit **
   5  Prefactor     .10000E-03    8.9774       -.34776E-06** at limit **
   6  norm          49.504        16.881        .28810E-07    .23778E-05
   7  norm          .10000E-03    66.098       -.23886E-05** at limit **
   8  Prefactor     .10000E-03    29.465        .15237E-06** at limit **
   9  Prefactor     .10000E-03    16.207       -.23640E-05** at limit **
  10  Prefactor     20.592        25.510        .72667E-07   -.66688E-05
  11  Prefactor     21.699        16.144       -.24436E-06    .10741E-04
  12  norm          .10000E-03    .72410        .22464E-07** at limit **
  13  Prefactor     6.8135        7.8194       -.64756E-06   -.11407E-03
  14  Prefactor     .10000E-03    3.9554       -.21232E-06** at limit **
  15  norm          1.3065        .66525        .71141E-07   -.18768E-03
  16  Prefactor     18.494        13.969       -.27453E-07   -.24122E-04
  17  Prefactor     29.594        18.113       -.54969E-07   -.94658E-05
  18  norm          95.512        48.502       -.73282E-07   -.20239E-05
  19  Normalizat    .61654        .18528        .61693E-06   -.22454E-04
  20  Prefactor     1.3180        .15025       -.13260E-06    .55064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3337
  Prefactor  = 0.000100001
  Prefactor  = 22.4769
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 49.5036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.592
  Prefactor  = 21.6995
  norm       = 0.0001
  Prefactor  = 6.81353
  Prefactor  = 0.0001
  norm       = 1.30654
  Prefactor  = 18.4943
  Prefactor  = 29.5942
  norm       = 95.5123
  Normalizat = 0.616536
  Prefactor  = 1.31804
 **********
 **   18 **HESSE 
 **********

 FCN=   7095.347     FROM HESSE     STATUS=OK           293 CALLS     2091 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3337        3.7559        .24526E-03   -1.5477    
   2  Prefactor     .10000E-03    11.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.477        16.491        .84483E-04   -1.4759    
   4  Prefactor     .10000E-03    12.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          49.504        16.879        .56995E-04   -1.4300    
   7  norm          .10000E-03    66.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.592        25.507        .88265E-04   -1.4800    
  11  Prefactor     21.699        15.844        .85986E-04   -1.4776    
  12  norm          .10000E-03    1.5898        .13387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8135        7.7970        .15372E-03   -1.5186    
  14  Prefactor     .10000E-03    3.9930        .16353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3065        .66731        .46477E-04   -1.5479    
  16  Prefactor     18.494        13.955        .93134E-04   -1.4848    
  17  Prefactor     29.594        18.179        .73650E-04   -1.4619    
  18  norm          95.512        48.485        .41126E-04   -1.3750    
  19  Normalizat    .61654        .21126        .33803E-03   -1.0729    
  20  Prefactor     1.3180        .17309        .20465E-03   -.82772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56147e-09
Minuit parameter uncertainties:
  1  3.75654
  2  0.000207465
  3  16.4941
  4  0.000201109
  5  1.3531e-05
  6  16.8804
  7  0.000165318
  8  8.82233e-06
  9  8.18292e-05
  10  25.5202
  11  15.8473
  12  1.68385e-05
  13  7.79818
  14  4.50901e-06
  15  0.667318
  16  13.957
  17  18.1829
  18  48.5055
  19  0.211537
  20  0.173165
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.170e+01  1.585e+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.318e+00  1.732e-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.165e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 8.64e-06

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

Saving results to:
/scratch/kocevski/437581/likelihoodResults_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.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) = 7095.03653126
delta logL = 0.310581904421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7095.03548184
delta logL = 0.311631324071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.096       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0528       1.0000          .0000       10.000    
     3 'Normalizat'    .63395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3080       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=   7095.035     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      301 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.097        23.310        .71852E-04   -.57147E-03
   2  Index         2.0527        .55772        .92015E-02   -.21953E-03
   3  Normalizat    .63395        .19992        .33360E-03    .91844E-04
   4  Prefactor     1.3080        .17130        .20526E-03    .16492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0972
  Index      = 2.05275
  Normalizat = 0.633947
  Prefactor  = 1.30802
 **********
 **   18 **HESSE 
 **********

 FCN=   7095.035     FROM HESSE     STATUS=OK            23 CALLS      324 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.097        23.093        .14370E-04   -1.4592    
   2  Index         2.0527        .55246        .36806E-03   -.63038    
   3  Normalizat    .63395        .19998        .13344E-04   -1.0656    
   4  Prefactor     1.3080        .17138        .41052E-04   -.83069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20242e-09
Minuit parameter uncertainties:
  1  23.0996
  2  0.554196
  3  0.200211
  4  0.171456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437581': 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) = 7095.03548184
delta logL = 0.311631327128

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  3.110e+01  2.310e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.053e+00  5.542e-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.308e+00  1.715e-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.339e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.05 +/- 0.55
Photon Flux (Free Index): 2.99e-08 +/- 2.69e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/437581/cmap_HighResolution_501638401_501897601_4FGL_J0824.4+2440_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.82e-05', photon_flux_error='3.07e-08', dlogl='3.12e-01', energy_flux='1.18e-05', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-08-29 18:45:44.798710', photon_index_error2='0.55', photon_index2='2.05', ts='3.53', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.88e-05', EG='0.62', time_epoch_completed='1630287944.8', return_code='0', job_id='437581', GAL2='1.31', EG2='0.63', return_code2='0', energy_flux_error='8.64e-06', photon_flux_error2='2.69e-08', ts2='4.15', photon_index='2.53' WHERE bin_id='1012' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:45:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 437581: <4FGL_J0824.4+2440_daily_bin1012> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1012 126.108 24.6709 501638401 501897601 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 :                                   633.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

