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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin621
RA = 126.108, Dec = 24.6709
tmin = 400291201, tmax = 400550401
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='434825', job_status='RUN', time_executed='2021-08-29 18:21:32.279695', time_epoch_executed='1630286492.28' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434825/ft1_4FGL_J0824.4+2440_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434825/ft2_4FGL_J0824.4+2440_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434825/ft1_4FGL_J0824.4+2440_daily_bin621.fits outfile=/scratch/kocevski/434825/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin621.fits ra=126.108 dec=24.6709 rad=12.0 tmin=400291201.0 tmax=400550401.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.44
user 3.07
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434825/ft1_filtered_4FGL_J0824.4+2440_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/434825/ft2_4FGL_J0824.4+2440_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/434825/ltcube_400291201_400550401_4FGL_J0824.4+2440_daily_bin621.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/434825/ft2_4FGL_J0824.4+2440_daily_bin621.fits
.....................!
real 13.13
user 11.56
sys 1.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434825/ft1_filtered_4FGL_J0824.4+2440_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/434825/ft2_4FGL_J0824.4+2440_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/434825/ltcube_400291201_400550401_4FGL_J0824.4+2440_daily_bin621.fits outfile=/scratch/kocevski/434825/expmap_400291201_400550401_4FGL_J0824.4+2440_daily_bin621.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/434825/ltcube_400291201_400550401_4FGL_J0824.4+2440_daily_bin621.fits
.....................!
real 192.31
user 186.30
sys 5.66

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/434825/ft1_filtered_4FGL_J0824.4+2440_daily_bin621.fits scfile=/scratch/kocevski/434825/ft2_4FGL_J0824.4+2440_daily_bin621.fits outfile=/scratch/kocevski/434825/cmap_400291201_400550401_4FGL_J0824.4+2440_daily_bin621.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.65
user 0.38
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434825/ft1_filtered_4FGL_J0824.4+2440_daily_bin621.fits scfile=/scratch/kocevski/434825/ft2_4FGL_J0824.4+2440_daily_bin621.fits outfile=/scratch/kocevski/434825/cmap_HighResolution_400291201_400550401_4FGL_J0824.4+2440_daily_bin621.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.74
user 0.39
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24559E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4272       1.0000         .10000E-03   10000.    
     4 'Prefactor '    80.505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.731       1.0000         .10000E-03   10000.    
     6 'norm      '    .57658       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.953       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.956       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6127       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7888       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6484       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.328       1.0000         .10000E-03   10000.    
    18 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87027       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0751       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=   7449.248     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2117 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38800        2.6163        .62546E-01    .75804E-03
   2  Prefactor     .10001E-03    56.783        .12854    ** at limit **
   3  Prefactor     7.4299        11.557        .36791E-02    .11731E-02
   4  Prefactor     80.513        47.059        .11191E-02    .33969E-03
   5  Prefactor     50.731        47.412        .14076E-02   -.54696E-03
   6  norm          .57375        5.3080        .70574E-01    .69399E-03
   7  norm          .10000E-03    117.30        .90712E-02** at limit **
   8  Prefactor     37.945        33.672        .16265E-02   -.86879E-03
   9  Prefactor     34.962        30.708        .16945E-02    .59406E-03
  10  Prefactor     .10000E-03    5.2078        .90712E-02** at limit **
  11  Prefactor     14.923        15.899        .25921E-02   -.75528E-03
  12  norm          .10000E-03    .48138        .90712E-02** at limit **
  13  Prefactor     5.6121        9.2977        .42392E-02    .17248E-03
  14  Prefactor     .10000E-03    1.9478        .90712E-02** at limit **
  15  norm          1.7888        .73099        .78193E-02    .26415E-03
  16  Prefactor     6.6469        7.8944        .38907E-02    .51081E-03
  17  Prefactor     17.329        14.415        .24054E-02   -.20617E-03
  18  norm          .10000E-03    43.737        .90712E-02** at limit **
  19  Normalizat    .87027        .17761        .64354E-01    .73805E-04
  20  Prefactor     1.0750        .13936        .38622E-01    .73439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.388005
  Prefactor  = 0.000100012
  Prefactor  = 7.42987
  Prefactor  = 80.5132
  Prefactor  = 50.7311
  norm       = 0.573753
  norm       = 0.0001
  Prefactor  = 37.9449
  Prefactor  = 34.9622
  Prefactor  = 0.0001
  Prefactor  = 14.9231
  norm       = 0.0001
  Prefactor  = 5.61205
  Prefactor  = 0.0001
  norm       = 1.78885
  Prefactor  = 6.64686
  Prefactor  = 17.3291
  norm       = 0.0001
  Normalizat = 0.870271
  Prefactor  = 1.07503
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.248     FROM HESSE     STATUS=OK           303 CALLS     2420 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38800        8.6772        .22118E-02   -1.5583    
   2  Prefactor     .10001E-03    50.324        .13598       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4299        11.522        .73582E-03   -1.5163    
   4  Prefactor     80.513        47.123        .44762E-04   -1.3911    
   5  Prefactor     50.731        46.993        .56305E-04   -1.4282    
   6  norm          .57375        16.047        .38506E-02   -1.5556    
   7  norm          .10000E-03    117.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.945        33.667        .65058E-04   -1.4475    
   9  Prefactor     34.962        30.703        .67781E-04   -1.4525    
  10  Prefactor     .10000E-03    5.2091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.923        15.863        .10369E-03   -1.4935    
  12  norm          .10000E-03    .49583        .11616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6121        9.2857        .16957E-03   -1.5234    
  14  Prefactor     .10000E-03    1.9558        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7888        .72763        .44982E-04   -1.5440    
  16  Prefactor     6.6469        7.8908        .77814E-03   -1.5192    
  17  Prefactor     17.329        14.473        .96216E-04   -1.4875    
  18  norm          .10000E-03    43.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87027        .20802        .28466E-03   -.97513    
  20  Prefactor     1.0750        .16374        .21337E-03   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67146e-08
Minuit parameter uncertainties:
  1  3.66989
  2  0.00155833
  3  11.5249
  4  47.1446
  5  47.0269
  6  6.06979
  7  0.000238562
  8  33.6842
  9  30.7165
  10  1.0293e-05
  11  15.8673
  12  1.35344e-07
  13  9.28807
  14  2.32207e-06
  15  0.727629
  16  7.89202
  17  14.4762
  18  5.28841e-05
  19  0.208208
  20  0.163816
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.492e+01  1.587e+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.075e+00  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:  8.703e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 2.89e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 8.13e-06 +/- 8.65e-06

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

Saving results to:
/scratch/kocevski/434825/likelihoodResults_400291201_400550401_4FGL_J0824.4+2440_daily_bin621.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) = 7449.06577624
delta logL = 0.182603972209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7449.05376515
delta logL = 0.194615064598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8434       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2143       1.0000          .0000       10.000    
     3 'Normalizat'    .84296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0899       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7449.054     FROM MIGRAD    STATUS=FAILED       103 CALLS      297 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8265        43.676        .71588E-03    .13445E-03
   2  Index         3.2153        2.7999        .77037E-02    .64393E-03
   3  Normalizat    .84309        .21402        .28869E-03    .34143E-04
   4  Prefactor     1.0899        .17167        .21207E-03   -.48246E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7449.054     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      382 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8265        43.676        .30810E-03   -1.5148    
   2  Index         3.2153        2.7999        .13927E-02   -.36498    
   3  Normalizat    .84309        .21402        .31628E-03   -.98490    
   4  Prefactor     1.0899        .17167        .19961E-03   -.89791    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7449.054     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      417 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8265        15.968        .14318E-03   -.17548E-04
   2  Index         3.2153        1.2778        .15407E-02    .28039E-05
   3  Normalizat    .84309        .20330        .11548E-04    .17918E-04
   4  Prefactor     1.0899        .16505        .84830E-05   -.32164E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.82649
  Index      = 3.21533
  Normalizat = 0.843088
  Prefactor  = 1.08986
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.054     FROM HESSE     STATUS=OK            23 CALLS      440 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8265        14.710        .57270E-05   -1.5148    
   2  Index         3.2153        1.1788        .61629E-04   -.36498    
   3  Normalizat    .84309        .20295        .23095E-05   -.98490    
   4  Prefactor     1.0899        .16487        .16966E-05   -.89791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43818e-12
Minuit parameter uncertainties:
  1  14.7171
  2  1.19173
  3  0.20313
  4  0.164948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434825': 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) = 7449.05376413
delta logL = 0.194616083078

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  7.826e+00  1.472e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.215e+00  1.192e+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.090e+00  1.649e-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:  8.431e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 126.108 24.671
Photon Index (Free Index): 3.22 +/- 1.19
Photon Flux (Free Index): 4.91e-08 +/- 4.91e-08
Energy Flux (Free Index): 8.93e-06 +/- 7.85e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', comment='SUCCESS', photon_flux='2.89e-08', energy_flux2='8.93e-06', photon_flux_error='3.07e-08', dlogl='1.95e-01', energy_flux='8.13e-06', photon_flux2='4.91e-08', job_status='DONE', time_completed='2021-08-29 18:32:33.977812', photon_index_error2='1.19', photon_index2='3.22', ts='1.61', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='7.85e-06', EG='0.87', time_epoch_completed='1630287153.98', return_code='0', job_id='434825', GAL2='1.09', EG2='0.84', return_code2='0', energy_flux_error='8.65e-06', photon_flux_error2='4.91e-08', ts2='2.03', photon_index='2.53' WHERE bin_id='621' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:32:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 434825: <4FGL_J0824.4+2440_daily_bin621> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin621 126.108 24.6709 400291201 400550401 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 :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            694 sec.

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

