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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin696
RA = 126.108, Dec = 24.6709
tmin = 419731201, tmax = 419990401
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='436213', job_status='RUN', time_executed='2021-08-29 18:26:03.829853', time_epoch_executed='1630286763.83' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436213/ft1_4FGL_J0824.4+2440_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436213/ft2_4FGL_J0824.4+2440_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436213/ft1_4FGL_J0824.4+2440_daily_bin696.fits outfile=/scratch/kocevski/436213/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin696.fits ra=126.108 dec=24.6709 rad=12.0 tmin=419731201.0 tmax=419990401.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 6.19
user 5.62
sys 0.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436213/ft2_4FGL_J0824.4+2440_daily_bin696.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/436213/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin696.fits evtable="EVENTS" outfile="/scratch/kocevski/436213/ft1_filtered_4FGL_J0824.4+2440_daily_bin696.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.81
user 0.34
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436213/ft1_filtered_4FGL_J0824.4+2440_daily_bin696.fits" evtable="EVENTS" scfile=/scratch/kocevski/436213/ft2_4FGL_J0824.4+2440_daily_bin696.fits sctable="SC_DATA" outfile=/scratch/kocevski/436213/ltcube_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.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/436213/ft2_4FGL_J0824.4+2440_daily_bin696.fits
.....................!
real 12.84
user 12.03
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436213/ft1_filtered_4FGL_J0824.4+2440_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/436213/ft2_4FGL_J0824.4+2440_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/436213/ltcube_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.fits outfile=/scratch/kocevski/436213/expmap_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.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/436213/ltcube_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.fits
.....................!
real 192.26
user 185.68
sys 6.11

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/436213/ft1_filtered_4FGL_J0824.4+2440_daily_bin696.fits scfile=/scratch/kocevski/436213/ft2_4FGL_J0824.4+2440_daily_bin696.fits outfile=/scratch/kocevski/436213/cmap_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.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.00
user 0.36
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436213/ft1_filtered_4FGL_J0824.4+2440_daily_bin696.fits scfile=/scratch/kocevski/436213/ft2_4FGL_J0824.4+2440_daily_bin696.fits outfile=/scratch/kocevski/436213/cmap_HighResolution_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.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.87
user 0.39
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.267       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14290E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    158.73       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.582       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.630       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4808       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44217E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.459       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .67925       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0953       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=   6073.097     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2057 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7575       -.26340E-06** at limit **
   2  Prefactor     47.603        40.094        .16555E-05    .61421E-04
   3  Prefactor     .10000E-03    17.081       -.25776E-06** at limit **
   4  Prefactor     19.270        35.759        .34303E-05   -.40950E-05
   5  Prefactor     .10000E-03    23.536        .40766E-06** at limit **
   6  norm          .10001E-03    5.4449       -.26225E-06** at limit **
   7  norm          158.74        102.81        .69682E-05   -.10672E-05
   8  Prefactor     24.473        41.009       -.91003E-05   -.11020E-04
   9  Prefactor     12.587        37.141        .10342E-04    .48998E-05
  10  Prefactor     36.583        33.184       -.14618E-05   -.75571E-06
  11  Prefactor     24.629        19.098        .14675E-07   -.14167E-04
  12  norm          1.4805        1.2830       -.70213E-07   -.62484E-03
  13  Prefactor     .10000E-03    7.3362        .17046E-06** at limit **
  14  Prefactor     .10000E-03    4.6142        .64577E-07** at limit **
  15  norm          10.491        1.5724        .67443E-08   -.70854E-04
  16  Prefactor     .10000E-03    11.049       -.84616E-07** at limit **
  17  Prefactor     29.460        18.541       -.57992E-07   -.12283E-04
  18  norm          .10000E-03    33.992        .33257E-06** at limit **
  19  Normalizat    .67927        .20173        .35740E-06   -.16442E-04
  20  Prefactor     1.0952        .15597       -.43610E-06    .74358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 47.6027
  Prefactor  = 0.0001
  Prefactor  = 19.2704
  Prefactor  = 0.0001
  norm       = 0.00010001
  norm       = 158.741
  Prefactor  = 24.4732
  Prefactor  = 12.5868
  Prefactor  = 36.5829
  Prefactor  = 24.6289
  norm       = 1.48053
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 10.491
  Prefactor  = 0.0001
  Prefactor  = 29.46
  norm       = 0.0001
  Normalizat = 0.679271
  Prefactor  = 1.09519
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.097     FROM HESSE     STATUS=OK           299 CALLS     2356 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8033        .23394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.603        37.898        .58118E-04   -1.4327    
   3  Prefactor     .10000E-03    17.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.270        35.731        .91247E-04   -1.4830    
   5  Prefactor     .10000E-03    23.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    31.419        .35037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          158.74        102.55        .16002E-03   -1.3181    
   8  Prefactor     24.473        40.941        .80962E-04   -1.4718    
   9  Prefactor     12.587        36.987        .11293E-03   -1.4998    
  10  Prefactor     36.583        33.190        .66259E-04   -1.4498    
  11  Prefactor     24.629        19.059        .80714E-04   -1.4715    
  12  norm          1.4805        1.2493        .73255E-04   -1.5465    
  13  Prefactor     .10000E-03    71.989        .39071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6795        .16342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.491        1.5700        .35865E-04   -1.5060    
  16  Prefactor     .10000E-03    11.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.460        18.620        .73816E-04   -1.4622    
  18  norm          .10000E-03    34.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .67927        .22729        .31211E-03   -1.0472    
  20  Prefactor     1.0952        .17820        .21155E-03   -.89620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74804e-10
Minuit parameter uncertainties:
  1  6.95426e-05
  2  37.9172
  3  1.07233e-05
  4  35.7709
  5  2.13081e-05
  6  0.0011238
  7  102.665
  8  40.9877
  9  37.0545
  10  33.2064
  11  19.0638
  12  1.24935
  13  0.000902013
  14  1.38798e-07
  15  1.57004
  16  8.69533e-08
  17  18.6237
  18  1.93278e-06
  19  0.227604
  20  0.178295
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.463e+01  1.906e+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.095e+00  1.783e-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.793e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/436213/likelihoodResults_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.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) = 6072.76972067
delta logL = 0.326941202155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.7685319
delta logL = 0.328129969269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.580       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0083       1.0000          .0000       10.000    
     3 'Normalizat'    .69979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0827       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=   6072.769     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      301 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.581        28.691        .65379E-04   -.52692E-03
   2  Index         2.0082        .57507        .87857E-02   -.20349E-03
   3  Normalizat    .69984        .20802        .30784E-03    .44177E-03
   4  Prefactor     1.0827        .17577        .21255E-03    .36026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.5813
  Index      = 2.00824
  Normalizat = 0.699841
  Prefactor  = 1.0827
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.581        28.396        .13076E-04   -1.4481    
   2  Index         2.0082        .56904        .35143E-03   -.64144    
   3  Normalizat    .69984        .20810        .12313E-04   -1.0390    
   4  Prefactor     1.0827        .17586        .42510E-04   -.90022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74476e-09
Minuit parameter uncertainties:
  1  28.406
  2  0.570976
  3  0.208335
  4  0.175955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436213': 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) = 6072.76853188
delta logL = 0.328129994364

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  3.758e+01  2.841e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.008e+00  5.710e-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.083e+00  1.760e-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.998e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.18
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.01 +/- 0.57
Photon Flux (Free Index): 3.42e-08 +/- 3.05e-08
Energy Flux (Free Index): 2.31e-05 +/- 2.63e-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/436213/cmap_HighResolution_419731201_419990401_4FGL_J0824.4+2440_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='2.31e-05', photon_flux_error='3.69e-08', dlogl='3.28e-01', energy_flux='1.34e-05', photon_flux2='3.42e-08', job_status='DONE', time_completed='2021-08-29 18:36:07.221118', photon_index_error2='0.57', photon_index2='2.01', ts='3.52', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='2.63e-05', EG='0.68', time_epoch_completed='1630287367.22', return_code='0', job_id='436213', GAL2='1.08', EG2='0.70', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.05e-08', ts2='4.18', photon_index='2.53' WHERE bin_id='696' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:36:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 436213: <4FGL_J0824.4+2440_daily_bin696> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin696 126.108 24.6709 419731201 419990401 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 :                                   603.40 sec.
    Max Memory :                                 1204 MB
    Average Memory :                             289.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            631 sec.

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

