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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1128
RA = 126.108, Dec = 24.6709
tmin = 531705601, tmax = 531964801
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='437809', job_status='RUN', time_executed='2021-08-29 18:32:25.091243', time_epoch_executed='1630287145.09' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437809/ft1_4FGL_J0824.4+2440_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437809/ft2_4FGL_J0824.4+2440_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437809/ft1_4FGL_J0824.4+2440_daily_bin1128.fits outfile=/scratch/kocevski/437809/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1128.fits ra=126.108 dec=24.6709 rad=12.0 tmin=531705601.0 tmax=531964801.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 5.95
user 3.75
sys 2.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437809/ft1_filtered_4FGL_J0824.4+2440_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/437809/ft2_4FGL_J0824.4+2440_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/437809/ltcube_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.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/437809/ft2_4FGL_J0824.4+2440_daily_bin1128.fits
.....................!
real 13.97
user 11.43
sys 2.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437809/ft1_filtered_4FGL_J0824.4+2440_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/437809/ft2_4FGL_J0824.4+2440_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/437809/ltcube_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.fits outfile=/scratch/kocevski/437809/expmap_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.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/437809/ltcube_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.fits
.....................!
real 192.72
user 185.10
sys 6.74

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/437809/ft1_filtered_4FGL_J0824.4+2440_daily_bin1128.fits scfile=/scratch/kocevski/437809/ft2_4FGL_J0824.4+2440_daily_bin1128.fits outfile=/scratch/kocevski/437809/cmap_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.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.34
user 0.38
sys 1.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437809/ft1_filtered_4FGL_J0824.4+2440_daily_bin1128.fits scfile=/scratch/kocevski/437809/ft2_4FGL_J0824.4+2440_daily_bin1128.fits outfile=/scratch/kocevski/437809/cmap_HighResolution_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.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.37
user 0.39
sys 1.94

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13628E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12237E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    32.914       1.0000         .10000E-03   10000.    
     7 'norm      '    112.76       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.182       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.801       1.0000         .10000E-03   10000.    
    12 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0511       1.0000         .10000E-03   10000.    
    15 'norm      '    .53837       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16150E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    24.986       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4952       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90465       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=   8632.477     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2050 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3800        .15443E-06** at limit **
   2  Prefactor     73.689        37.533        .21899E-06    .43383E-04
   3  Prefactor     .10000E-03    5.2148       -.18379E-07** at limit **
   4  Prefactor     32.122        45.082       -.11446E-04   -.45202E-03
   5  Prefactor     .10000E-03    17.981       -.88338E-06** at limit **
   6  norm          32.912        14.824        .16375E-07   -.14092E-04
   7  norm          112.75        116.02       -.38301E-06   -.42628E-04
   8  Prefactor     .10000E-03    23.523        .17124E-05** at limit **
   9  Prefactor     12.179        23.791        .29102E-07   -.24477E-04
  10  Prefactor     .10000E-03    13.196        .48720E-06** at limit **
  11  Prefactor     15.796        15.128       -.46946E-06   -.92486E-04
  12  norm          .10000E-03    .37282        .21298E-06** at limit **
  13  Prefactor     .10000E-03    3.7454       -.72962E-08** at limit **
  14  Prefactor     4.0506        5.8649        .60710E-05   -.70132E-03
  15  norm          .53826        .72849        .35599E-07   -.51518E-03
  16  Prefactor     9.8450        12.367       -.34876E-06    .41232E-05
  17  Prefactor     .10007E-03    7.4094       -.11862E-05** at limit **
  18  norm          24.987        31.016        .17445E-06    .27143E-04
  19  Normalizat    1.4952        .18155        .15376E-05   -.15332E-03
  20  Prefactor     .90473        .14386       -.22062E-05    .14910E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 73.689
  Prefactor  = 0.0001
  Prefactor  = 32.1219
  Prefactor  = 0.0001
  norm       = 32.9119
  norm       = 112.746
  Prefactor  = 0.0001
  Prefactor  = 12.1791
  Prefactor  = 0.0001
  Prefactor  = 15.7964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.05062
  norm       = 0.538263
  Prefactor  = 9.84504
  Prefactor  = 0.000100066
  norm       = 24.9869
  Normalizat = 1.49521
  Prefactor  = 0.904729
 **********
 **   18 **HESSE 
 **********

 FCN=   8632.477     FROM HESSE     STATUS=OK           291 CALLS     2341 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4307        .27901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     73.689        37.442        .46771E-04   -1.3989    
   3  Prefactor     .10000E-03    5.2253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.122        47.858        .70622E-04   -1.4574    
   5  Prefactor     .10000E-03    18.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          32.912        14.825        .69845E-04   -1.4560    
   7  norm          112.75        116.30        .37884E-04   -1.3580    
   8  Prefactor     .10000E-03    23.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.179        23.788        .11477E-03   -1.5010    
  10  Prefactor     .10000E-03    13.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.796        14.969        .10076E-03   -1.4913    
  12  norm          .10000E-03    .56009        .10816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7700        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0506        6.0564        .10017E-02   -1.5305    
  15  norm          .53826        .69140        .81427E-04   -1.5561    
  16  Prefactor     9.8450        12.114        .12771E-03   -1.5080    
  17  Prefactor     .10007E-03    38.074        .48431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.987        31.020        .80138E-04   -1.4708    
  19  Normalizat    1.4952        .21083        .25585E-03   -.77913    
  20  Prefactor     .90473        .16757        .25784E-03   -.95976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92506e-09
Minuit parameter uncertainties:
  1  2.42006e-06
  2  37.4544
  3  8.86918e-06
  4  47.9149
  5  0.000118372
  6  14.8262
  7  116.535
  8  0.000190394
  9  23.8065
  10  1.88813e-05
  11  14.973
  12  9.64831e-06
  13  1.98364e-05
  14  6.05736
  15  0.691405
  16  12.1173
  17  0.00317068
  18  31.0397
  19  0.21095
  20  0.167669
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  1.580e+01  1.497e+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:  9.047e-01  1.677e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.495e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 8.61e-06 +/- 8.16e-06

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

Saving results to:
/scratch/kocevski/437809/likelihoodResults_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.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) = 8632.13604808
delta logL = 0.340882414483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8632.08771108
delta logL = 0.389219406639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.542       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9181       1.0000          .0000       10.000    
     3 'Normalizat'    1.5114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89682       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=   8632.088     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.547        20.235        .86298E-04   -.47425E-05
   2  Index         1.9181        .65428        .11206E-01   -.25866E-04
   3  Normalizat    1.5114        .20342        .25469E-03    .14909E-04
   4  Prefactor     .89679        .16501        .25879E-03   -.18538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5471
  Index      = 1.91811
  Normalizat = 1.51137
  Prefactor  = 0.896792
 **********
 **   18 **HESSE 
 **********

 FCN=   8632.088     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.547        20.301        .34519E-05   -1.4779    
   2  Index         1.9181        .65657        .22412E-02   -.66413    
   3  Normalizat    1.5114        .20358        .10188E-04   -.77459    
   4  Prefactor     .89679        .16515        .10352E-04   -.96253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44929e-12
Minuit parameter uncertainties:
  1  20.3077
  2  0.659647
  3  0.203692
  4  0.165242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437809': 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) = 8632.08771103
delta logL = 0.389219455126

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  2.155e+01  2.031e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.918e+00  6.596e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  9.487e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  8.968e-01  1.652e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.511e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 126.108 24.671
Photon Index (Free Index): 1.92 +/- 0.66
Photon Flux (Free Index): 1.75e-08 +/- 2.26e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.94e-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/437809/cmap_HighResolution_531705601_531964801_4FGL_J0824.4+2440_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='1.50e-05', photon_flux_error='2.90e-08', dlogl='3.89e-01', energy_flux='8.61e-06', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-08-29 18:44:23.189565', photon_index_error2='0.66', photon_index2='1.92', ts='2.16', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.94e-05', EG='1.50', time_epoch_completed='1630287863.19', return_code='0', job_id='437809', GAL2='0.90', EG2='1.51', return_code2='0', energy_flux_error='8.16e-06', photon_flux_error2='2.26e-08', ts2='2.93', photon_index='2.53' WHERE bin_id='1128' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:44:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 437809: <4FGL_J0824.4+2440_daily_bin1128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1128 126.108 24.6709 531705601 531964801 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 :                                   741.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

