/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 3 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0824.4+2440_daily_bin854
RA = 126.108, Dec = 24.6709
tmin = 460684801, tmax = 460944001
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='436441', job_status='RUN', time_executed='2021-08-29 18:26:32.662725', time_epoch_executed='1630286792.66' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436441

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436441/ft1_4FGL_J0824.4+2440_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436441/ft2_4FGL_J0824.4+2440_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436441/ft1_4FGL_J0824.4+2440_daily_bin854.fits outfile=/scratch/kocevski/436441/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin854.fits ra=126.108 dec=24.6709 rad=12.0 tmin=460684801.0 tmax=460944001.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.99
user 3.10
sys 1.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436441/ft1_filtered_4FGL_J0824.4+2440_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/436441/ft2_4FGL_J0824.4+2440_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/436441/ltcube_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.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/436441/ft2_4FGL_J0824.4+2440_daily_bin854.fits
.....................!
real 13.60
user 11.34
sys 2.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436441/ft1_filtered_4FGL_J0824.4+2440_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/436441/ft2_4FGL_J0824.4+2440_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/436441/ltcube_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.fits outfile=/scratch/kocevski/436441/expmap_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.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/436441/ltcube_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.fits
.....................!
real 192.60
user 185.54
sys 6.64

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/436441/ft1_filtered_4FGL_J0824.4+2440_daily_bin854.fits scfile=/scratch/kocevski/436441/ft2_4FGL_J0824.4+2440_daily_bin854.fits outfile=/scratch/kocevski/436441/cmap_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.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 2.39
user 0.37
sys 1.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436441/ft1_filtered_4FGL_J0824.4+2440_daily_bin854.fits scfile=/scratch/kocevski/436441/ft2_4FGL_J0824.4+2440_daily_bin854.fits outfile=/scratch/kocevski/436441/cmap_HighResolution_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.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 2.44
user 0.37
sys 1.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.995       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10905E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.903       1.0000         .10000E-03   10000.    
    12 'norm      '    .10776E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.568       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1901       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2207       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .56896       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3794       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=   6417.573     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2020 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5005       -.85075E-07** at limit **
   2  Prefactor     32.990        35.313        .24774E-06   -.33943E-04
   3  Prefactor     .10000E-03    9.5987        .29754E-06** at limit **
   4  Prefactor     35.646        51.130       -.13394E-05   -.78514E-05
   5  Prefactor     .10000E-03    64.996        .40717E-05** at limit **
   6  norm          .10000E-03    8.0717       -.24889E-06** at limit **
   7  norm          .10000E-03    33.019        .19441E-05** at limit **
   8  Prefactor     .10000E-03    45.964       -.50039E-05** at limit **
   9  Prefactor     .10000E-03    11.269       -.29348E-06** at limit **
  10  Prefactor     .10000E-03    7.4598        .36338E-07** at limit **
  11  Prefactor     19.890        17.545        .35790E-07    .57316E-05
  12  norm          .10000E-03    .45178       -.22489E-09** at limit **
  13  Prefactor     7.2339        7.3525        .38056E-06    .41437E-05
  14  Prefactor     .10000E-03    3.2490       -.19709E-07** at limit **
  15  norm          5.8680        1.3009       -.21541E-08    .95922E-06
  16  Prefactor     30.569        17.641       -.34145E-08   -.30323E-06
  17  Prefactor     3.1901        12.246        .39320E-05    .12221E-04
  18  norm          9.2209        21.010       -.13012E-07    .94999E-08
  19  Normalizat    .56868        .19880       -.59075E-06    .12191E-04
  20  Prefactor     1.3796        .16187        .10042E-06    .18060E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 32.99
  Prefactor  = 0.0001
  Prefactor  = 35.6457
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8896
  norm       = 0.0001
  Prefactor  = 7.23388
  Prefactor  = 0.0001
  norm       = 5.86796
  Prefactor  = 30.5693
  Prefactor  = 3.19012
  norm       = 9.22089
  Normalizat = 0.568685
  Prefactor  = 1.37961
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.573     FROM HESSE     STATUS=OK           293 CALLS     2313 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5096        .95693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.990        35.200        .69759E-04   -1.4559    
   3  Prefactor     .10000E-03    9.6378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.646        51.296        .67133E-04   -1.4513    
   5  Prefactor     .10000E-03    65.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.1338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    33.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.890        17.295        .89777E-04   -1.4816    
  12  norm          .10000E-03    .59759        .10200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2339        7.3271        .74558E-03   -1.5170    
  14  Prefactor     .10000E-03    3.2842        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8680        1.3033        .39765E-04   -1.5223    
  16  Prefactor     30.569        17.665        .72468E-04   -1.4602    
  17  Prefactor     3.1901        12.245        .11343E-02   -1.5351    
  18  norm          9.2209        21.002        .13198E-03   -1.5101    
  19  Normalizat    .56868        .22803        .34691E-03   -1.0933    
  20  Prefactor     1.3796        .18787        .19966E-03   -.80970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96549e-12
Minuit parameter uncertainties:
  1  2.12265e-06
  2  35.2219
  3  2.36573e-06
  4  51.3592
  5  7.15701e-05
  6  3.3014e-06
  7  3.42552e-05
  8  0.000106582
  9  2.03442e-06
  10  1.76533e-08
  11  17.2993
  12  9.4398e-07
  13  7.32796
  14  4.48401e-07
  15  1.30332
  16  17.6684
  17  12.2546
  18  21.0192
  19  0.228403
  20  0.187959
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.989e+01  1.730e+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.380e+00  1.880e-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:  5.687e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 9.43e-06

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

Saving results to:
/scratch/kocevski/436441/likelihoodResults_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.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) = 6417.56277277
delta logL = 0.0101051634829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6417.55768036
delta logL = 0.0151975733534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.853       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3434       1.0000          .0000       10.000    
     3 'Normalizat'    .57886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3743       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=   6417.558     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      247 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.856        22.079        .85683E-04   -.15986E-03
   2  Index         2.3431        1.0927        .91299E-02   -.64288E-04
   3  Normalizat    .57881        .22469        .34404E-03    .29142E-03
   4  Prefactor     1.3743        .18940        .19999E-03    .57578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8557
  Index      = 2.34308
  Normalizat = 0.578809
  Prefactor  = 1.37428
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.558     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.856        21.488        .17137E-04   -1.4773    
   2  Index         2.3431        1.0614        .36520E-03   -.56023    
   3  Normalizat    .57881        .22421        .13761E-04   -1.0889    
   4  Prefactor     1.3743        .18930        .39997E-04   -.81124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92154e-10
Minuit parameter uncertainties:
  1  21.4953
  2  1.07281
  3  0.224566
  4  0.189393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436441': 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) = 6417.55768026
delta logL = 0.015197668693

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.186e+01  2.150e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.343e+00  1.073e+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.374e+00  1.894e-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:  5.788e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.34 +/- 1.07
Photon Flux (Free Index): 3.17e-08 +/- 4.86e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/436441/cmap_HighResolution_460684801_460944001_4FGL_J0824.4+2440_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='1.12e-05', photon_flux_error='3.35e-08', dlogl='1.52e-02', energy_flux='1.08e-05', photon_flux2='3.17e-08', job_status='DONE', time_completed='2021-08-29 18:36:45.743722', photon_index_error2='1.07', photon_index2='2.34', ts='3.32', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.09e-05', EG='0.57', time_epoch_completed='1630287405.74', return_code='0', job_id='436441', GAL2='1.37', EG2='0.58', return_code2='0', energy_flux_error='9.43e-06', photon_flux_error2='4.86e-08', ts2='3.33', photon_index='2.53' WHERE bin_id='854' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 436441: <4FGL_J0824.4+2440_daily_bin854> in cluster <slac> Done

Job <4FGL_J0824.4+2440_daily_bin854> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 18:25:52 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:25:54 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:25:54 2021
Terminated at Sun Aug 29 18:36:46 2021
Results reported at Sun Aug 29 18:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin854 126.108 24.6709 460684801 460944001 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 :                                 1256 MB
    Average Memory :                             329.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

