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


Performing analysis on: 4FGL_J0824.4+2440_daily_bin1150
RA = 126.108, Dec = 24.6709
tmin = 537408001, tmax = 537667201
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='437845', job_status='RUN', time_executed='2021-08-29 18:34:09.228428', time_epoch_executed='1630287249.23' WHERE source_name='4FGL J0824.4+2440' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437845/ft1_4FGL_J0824.4+2440_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437845/ft2_4FGL_J0824.4+2440_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437845/ft1_4FGL_J0824.4+2440_daily_bin1150.fits outfile=/scratch/kocevski/437845/ft1_filteredMKT_4FGL_J0824.4+2440_daily_bin1150.fits ra=126.108 dec=24.6709 rad=12.0 tmin=537408001.0 tmax=537667201.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.46
user 4.26
sys 0.66

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437845/ft1_filtered_4FGL_J0824.4+2440_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/437845/ft2_4FGL_J0824.4+2440_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/437845/ltcube_537408001_537667201_4FGL_J0824.4+2440_daily_bin1150.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/437845/ft2_4FGL_J0824.4+2440_daily_bin1150.fits
.....................!
real 12.19
user 11.26
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437845/ft1_filtered_4FGL_J0824.4+2440_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/437845/ft2_4FGL_J0824.4+2440_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/437845/ltcube_537408001_537667201_4FGL_J0824.4+2440_daily_bin1150.fits outfile=/scratch/kocevski/437845/expmap_537408001_537667201_4FGL_J0824.4+2440_daily_bin1150.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/437845/ltcube_537408001_537667201_4FGL_J0824.4+2440_daily_bin1150.fits
.....................!
real 193.61
user 187.24
sys 5.18

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/437845/ft1_filtered_4FGL_J0824.4+2440_daily_bin1150.fits scfile=/scratch/kocevski/437845/ft2_4FGL_J0824.4+2440_daily_bin1150.fits outfile=/scratch/kocevski/437845/cmap_537408001_537667201_4FGL_J0824.4+2440_daily_bin1150.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 0.96
user 0.36
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437845/ft1_filtered_4FGL_J0824.4+2440_daily_bin1150.fits scfile=/scratch/kocevski/437845/ft2_4FGL_J0824.4+2440_daily_bin1150.fits outfile=/scratch/kocevski/437845/cmap_HighResolution_537408001_537667201_4FGL_J0824.4+2440_daily_bin1150.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.01
user 0.38
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50165       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7928       1.0000         .10000E-03   10000.    
     6 'norm      '    .31014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.991       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.788       1.0000         .10000E-03   10000.    
    12 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62430       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2019       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0212       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.851       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87825E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5950       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6043.833     FROM MIGRAD    STATUS=FAILED       749 CALLS     2770 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.680        .22145E-02** at limit **
   2  Prefactor     51.453        50.353        .55912E-04    .62911E-04
   3  Prefactor     19.781        17.898        .90050E-04    .28154E-04
   4  Prefactor     .64057        269.30        .75411E-02    .60156E-03
   5  Prefactor     4.7901        121.60        .18377E-03    .13115E-04
   6  norm          .10000E-03    30.261        .38384E-02** at limit **
   7  norm          .10000E-03    46.460        .18142E-02** at limit **
   8  Prefactor     21.991        32.986        .85414E-04    .39531E-04
   9  Prefactor     13.205        30.632        .11024E-03    .35579E-04
  10  Prefactor     10.040        39.324        .12665E-03    .66246E-04
  11  Prefactor     83.782        34.145        .43884E-04    .32880E-03
  12  norm          .10000E-03    2.2317        .15433E-02** at limit **
  13  Prefactor     .63347        52.746        .44368E-02    .38760E-03
  14  Prefactor     .10000E-03    3.0937        .13318E-02** at limit **
  15  norm          2.2019        .92067        .44859E-04    .88803E-03
  16  Prefactor     9.0233        12.897        .66721E-03    .24579E-03
  17  Prefactor     47.853        24.869        .57967E-04    .16827E-03
  18  norm          .10000E-03    39.697        .18142E-02** at limit **
  19  Normalizat    .87890E-01    .25134        .80099E-02    .12613E-03
  20  Prefactor     1.5949        .19624        .18200E-03    .28585E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6043.833     FROM SIMPLEX   STATUS=UNCHANGED    956 CALLS     3726 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.680        .64253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.453        50.353        .44911E-06   -1.4272    
   3  Prefactor     19.781        17.898        .46229E-06   -1.4818    
   4  Prefactor     .64057        269.30        .57336E-06   -1.5548    
   5  Prefactor     4.7901        121.60        .51175E-06   -1.5270    
   6  norm          .10000E-03    30.261        .64228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    46.460        .85941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.991        32.986        .45939E-06   -1.4770    
   9  Prefactor     13.205        30.632        .46599E-06   -1.4981    
  10  Prefactor     10.040        39.324        .47102E-06   -1.5074    
  11  Prefactor     83.782        34.145        .43282E-06   -1.3875    
  12  norm          .10000E-03    2.2317        .11118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .63347        52.746        .50106E-06   -1.5549    
  14  Prefactor     .10000E-03    3.0937        .29217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2019        .92067        .47910E-06   -1.5411    
  16  Prefactor     9.0233        12.897        .46906E-06   -1.5107    
  17  Prefactor     47.853        24.869        .44474E-06   -1.4323    
  18  norm          .10000E-03    39.697        .79984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87890E-01    .25134        .43531E-06   -1.3940    
  20  Prefactor     1.5949        .19624        .23294E-06   -.74916    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6043.833     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     4006 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.834        .44290E-03** at limit **
   2  Prefactor     51.453        50.237        .11182E-04    .34567E-05
   3  Prefactor     19.781        17.871        .36020E-05    .25250E-05
   4  Prefactor     .64078        278.54        .15082E-02    .23673E-04
   5  Prefactor     4.7900        121.36        .73508E-05    .92795E-06
   6  norm          .10000E-03    30.540        .76768E-03** at limit **
   7  norm          .10000E-03    46.461        .36285E-03** at limit **
   8  Prefactor     21.991        32.956        .34166E-05    .26620E-05
   9  Prefactor     13.205        30.610        .44096E-05    .20625E-05
  10  Prefactor     10.040        39.071        .50660E-05    .13465E-05
  11  Prefactor     83.782        33.817        .87768E-05    .57512E-04
  12  norm          .10000E-03    2.2371        .30866E-03** at limit **
  13  Prefactor     .63301        49.998        .17747E-03    .38435E-05
  14  Prefactor     .10000E-03    3.0940        .26636E-03** at limit **
  15  norm          2.2019        .91870        .17944E-05    .12871E-03
  16  Prefactor     9.0232        12.891        .26689E-04    .72416E-05
  17  Prefactor     47.853        24.598        .11593E-04    .86295E-05
  18  norm          .10000E-03    39.707        .36285E-03** at limit **
  19  Normalizat    .87891E-01    .22938        .32039E-03    .20971E-04
  20  Prefactor     1.5949        .18261        .36400E-04    .61215E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 51.4533
  Prefactor  = 19.7809
  Prefactor  = 0.640781
  Prefactor  = 4.79004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9908
  Prefactor  = 13.2053
  Prefactor  = 10.04
  Prefactor  = 83.7823
  norm       = 0.0001
  Prefactor  = 0.633009
  Prefactor  = 0.0001
  norm       = 2.2019
  Prefactor  = 9.02322
  Prefactor  = 47.8526
  norm       = 0.0001
  Normalizat = 0.0878905
  Prefactor  = 1.59488
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.833     FROM HESSE     STATUS=OK           273 CALLS     4279 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.840        .88580E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.453        49.951        .22365E-05   -1.4272    
   3  Prefactor     19.781        17.825        .72040E-06   -1.4818    
   4  Prefactor     .64078        278.57        .30164E-03   -1.5548    
   5  Prefactor     4.7900        116.24        .14702E-05   -1.5270    
   6  norm          .10000E-03    30.552        .15354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    46.461        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.991        32.825        .68331E-06   -1.4770    
   9  Prefactor     13.205        30.470        .88192E-06   -1.4981    
  10  Prefactor     10.040        39.165        .10132E-05   -1.5074    
  11  Prefactor     83.782        33.797        .17554E-05   -1.3875    
  12  norm          .10000E-03    2.2373        .61733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .63301        49.885        .70989E-05   -1.5549    
  14  Prefactor     .10000E-03    3.0940        .53272E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2019        .91858        .36743E-06   -1.5411    
  16  Prefactor     9.0232        12.890        .53377E-05   -1.5107    
  17  Prefactor     47.853        24.585        .23187E-05   -1.4323    
  18  norm          .10000E-03    39.707        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87891E-01    .22852        .12816E-04   -1.3940    
  20  Prefactor     1.5949        .18215        .72801E-05   -.74916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36295e-11
Minuit parameter uncertainties:
  1  6.25845e-06
  2  49.9916
  3  17.8294
  4  26.8452
  5  47.2958
  6  2.78646e-06
  7  6.50081e-07
  8  32.8516
  9  30.5059
  10  39.2654
  11  33.8047
  12  6.65899e-06
  13  11.2477
  14  9.00243e-07
  15  0.918583
  16  12.894
  17  24.5899
  18  1.27373e-06
  19  0.231179
  20  0.182228
Done.

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

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  8.378e+01  3.380e+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.595e+00  1.822e-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.789e-02  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.99
Ra Dec: 126.108 24.671
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 6.54e-08
Energy Flux (Fixed Index): 4.57e-05 +/- 1.84e-05

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) = 6043.83281233
delta logL = 0.000555166058803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6043.83220641
delta logL = 0.00116108092698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.178       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5103       1.0000          .0000       10.000    
     3 'Normalizat'    .90564E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5934       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=   6043.832     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.163        45.503        .43527E-04    .73445E-04
   2  Index         2.5106        .40549        .42590E-02    .13654E-03
   3  Normalizat    .90546E-01    .23067        .79301E-02    .89677E-04
   4  Prefactor     1.5934        .19450        .18207E-03    .36774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.1626
  Index      = 2.51058
  Normalizat = 0.0905462
  Prefactor  = 1.59344
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.832     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.163        43.840        .87054E-05   -1.3860    
   2  Index         2.5106        .38761        .17036E-03   -.52116    
   3  Normalizat    .90546E-01    .21546        .31720E-03   -1.3910    
   4  Prefactor     1.5934        .18203        .36415E-04   -.74955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25716e-10
Minuit parameter uncertainties:
  1  43.8567
  2  0.388127
  3  0.217605
  4  0.182107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437845': 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) = 6043.83220582
delta logL = 0.00116167509259

Extracting fit parameters...

4FGL J0824.4+2440
   Spectrum: PowerLaw
296    Prefactor:  8.516e+01  4.386e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.511e+00  3.881e-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.593e+00  1.821e-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:  9.055e-02  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.92
Ra Dec: 126.108 24.671
Photon Index (Free Index): 2.51 +/- 0.39
Photon Flux (Free Index): 1.60e-07 +/- 7.75e-08
Energy Flux (Free Index): 4.60e-05 +/- 1.91e-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/437845/cmap_HighResolution_537408001_537667201_4FGL_J0824.4+2440_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='4.60e-05', photon_flux_error='6.54e-08', dlogl='1.16e-03', energy_flux='4.57e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-08-29 18:44:51.263472', photon_index_error2='0.39', photon_index2='2.51', ts='11.99', fit_tolerance='1e-08', GAL='1.59', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.09', time_epoch_completed='1630287891.26', return_code='0', job_id='437845', GAL2='1.59', EG2='0.09', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='7.75e-08', ts2='11.92', photon_index='2.53' WHERE bin_id='1150' AND source_name='4FGL J0824.4+2440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:44:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 437845: <4FGL_J0824.4+2440_daily_bin1150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.4+2440_daily_bin1150 126.108 24.6709 537408001 537667201 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 :                                   641.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

