/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 181 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0824.9+3915_daily_bin73
RA = 126.236, Dec = 39.2574
tmin = 258249601, tmax = 258508801
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='452765', job_status='RUN', time_executed='2021-08-29 19:19:56.964097', time_epoch_executed='1630289996.96' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452765

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452765/ft1_4FGL_J0824.9+3915_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452765/ft1_4FGL_J0824.9+3915_daily_bin73.fits outfile=/scratch/kocevski/452765/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin73.fits ra=126.236 dec=39.2574 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.40
user 0.99
sys 0.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.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/452765/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.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.76
user 0.31
sys 0.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/452765/ltcube_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.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/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits
.....................!
real 9.78
user 9.16
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/452765/ltcube_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.fits outfile=/scratch/kocevski/452765/expmap_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.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/452765/ltcube_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.fits
.....................!
real 193.62
user 187.09
sys 5.49

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J0824.9+3915 @ 126.236 39.2574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits scfile=/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits outfile=/scratch/kocevski/452765/cmap_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.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.236 yref=39.2574 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.71
user 0.36
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits scfile=/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits outfile=/scratch/kocevski/452765/cmap_HighResolution_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.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.236 yref=39.2574 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.77
user 0.38
sys 0.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452765/Model_4FGL_J0824.9+3915_daily_bin73.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/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits.....................!
real 52.70
user 49.82
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits', '/scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits', expMap='/scratch/kocevski/452765/expmap_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.fits', expCube='/scratch/kocevski/452765/ltcube_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452765/Model_4FGL_J0824.9+3915_daily_bin73.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.9+3915'

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.301e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/452765/ft1_filtered_4FGL_J0824.9+3915_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/452765/ft2_4FGL_J0824.9+3915_daily_bin73.fits
Exposure map: /scratch/kocevski/452765/expmap_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.fits
Exposure cube: /scratch/kocevski/452765/ltcube_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452765/Model_4FGL_J0824.9+3915_daily_bin73.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) = 5262.34186431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21330E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4805       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.684       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .62374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78311       1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.948       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22615E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92308       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0853       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2909       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94550       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5262.335     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3118 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8994       -.38769E-08** at limit **
   2  Prefactor     .10000E-03    5.6044        .11185E-09** at limit **
   3  norm          .10000E-03    8.0307       -.13753E-08** at limit **
   4  norm          1.4802        1.9058       -.21524E-08    .86862E-05
   5  Prefactor     .10000E-03    3.4757        .14029E-08** at limit **
   6  Prefactor     16.549        41.092       -.34779E-07    .10458E-03
   7  Prefactor     5.3703        1.9931       -.14790E-06   -.52085E-03
   8  Prefactor     .10000E-03    14.426       -.41815E-09** at limit **
   9  norm          .62289        .64895        .64716E-08    .60073E-04
  10  Prefactor     .10000E-03    47.019       -.31431E-08** at limit **
  11  Prefactor     .10000E-03    10.511       -.12760E-09** at limit **
  12  Prefactor     15.222        14.739        .58574E-07   -.49368E-04
  13  Prefactor     .78380        3.2432       -.58806E-07   -.43734E-04
  14  Prefactor     65.980        39.696       -.90538E-07    .84497E-03
  15  Prefactor     .10000E-03    7.9202        .21904E-07** at limit **
  16  norm          .10000E-03    5.8542       -.20847E-10** at limit **
  17  Prefactor     .92253        2.6295       -.39799E-07   -.43204E-04
  18  Prefactor     .10000E-03    1.9781       -.62597E-09** at limit **
  19  Prefactor     .10000E-03    13.575        .51997E-09** at limit **
  20  Prefactor     .10000E-03    1.0498       -.31788E-09** at limit **
  21  Prefactor     .10000E-03    5.7839       -.11782E-08** at limit **
  22  norm          1.0852        .69322        .19265E-09    .16842E-04
  23  norm          .10000E-03    3.4161       -.71069E-09** at limit **
  24  Prefactor     2.2906        2.3183       -.33594E-08    .17065E-05
  25  Normalizat    .94596        .20796        .75264E-07    .31312E-05
  26  Prefactor     1.1320        .17033        .26845E-08   -.12757E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.48024
  Prefactor  = 0.0001
  Prefactor  = 16.5485
  Prefactor  = 5.37035
  Prefactor  = 0.0001
  norm       = 0.622893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2216
  Prefactor  = 0.783805
  Prefactor  = 65.9803
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.92253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08521
  norm       = 0.0001
  Prefactor  = 2.29056
  Normalizat = 0.945964
  Prefactor  = 1.13203
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.335     FROM HESSE     STATUS=OK           456 CALLS     3574 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.680        .41700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6082        .16772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.0657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4802        1.8896        .11061E-03   -1.5465    
   5  Prefactor     .10000E-03    3.4829        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.549        41.024        .98055E-04   -1.4894    
   7  Prefactor     5.3703        5.2009        .76970E-03   -1.5244    
   8  Prefactor     .10000E-03    14.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .62289        .60693        .55830E-03   -1.5550    
  10  Prefactor     .10000E-03    47.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.222        14.577        .10266E-03   -1.4927    
  13  Prefactor     .78380        3.2759        .23402E-03   -1.5531    
  14  Prefactor     65.980        38.428        .49421E-04   -1.4082    
  15  Prefactor     .10000E-03    41.784        .38122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9792        .17136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .92253        2.6319        .19229E-03   -1.5516    
  18  Prefactor     .10000E-03    1.9936        .99624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0543        .72557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7867        .17039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0852        .68585        .46355E-04   -1.5500    
  23  norm          .10000E-03    3.4275        .13094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.2906        2.3111        .10783E-03   -1.5405    
  25  Normalizat    .94596        .23609        .27815E-03   -.94863    
  26  Prefactor     1.1320        .19287        .10767E-02   -.88449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90143e-09
Minuit parameter uncertainties:
  1  0.000410004
  2  4.84563e-07
  3  1.94393e-06
  4  1.88969
  5  2.20899e-07
  6  41.0936
  7  5.20129
  8  2.29259e-06
  9  0.606936
  10  2.98988e-06
  11  3.62258e-06
  12  14.5807
  13  3.2049
  14  38.4423
  15  0.000430661
  16  6.68013e-08
  17  2.63219
  18  9.34213e-07
  19  6.72042e-06
  20  2.49758e-07
  21  4.06479e-06
  22  0.685857
  23  1.00666e-06
  24  2.31121
  25  0.236353
  26  0.192988
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  7.838e-01  3.205e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.132e+00  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  9.460e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452765/likelihoodResults_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.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) = 5262.33448559
delta logL = 0.000166723340953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5262.33444727
delta logL = 0.00020503912674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80864       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3925       1.0000          .0000       10.000    
     3 'Normalizat'    .94649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1318       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+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=   5262.334     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      276 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81325        3.7732        .23830E-03    .14980E-04
   2  Index         2.3881        2.0756        .76350E-02    .72635E-05
   3  Normalizat    .94640        .22805        .27809E-03   -.51796E-04
   4  Prefactor     1.1317        .19173        .21537E-03    .15731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.813254
  Index      = 2.3881
  Normalizat = 0.946395
  Prefactor  = 1.13174
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.334     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81325        3.5441        .95320E-05   -1.5528    
   2  Index         2.3881        2.0169        .30540E-03   -.54964    
   3  Normalizat    .94640        .22820        .11124E-04   -.94849    
   4  Prefactor     1.1317        .19181        .86147E-05   -.88459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77653e-11
Minuit parameter uncertainties:
  1  3.39557
  2  2.10088
  3  0.228438
  4  0.191924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452765': 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) = 5262.33444402
delta logL = 0.000208292301977

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  8.133e-01  3.396e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.388e+00  2.101e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.132e+00  1.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  9.464e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 126.236 39.257

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/452765/cmap_HighResolution_258249601_258508801_4FGL_J0824.9+3915_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-29 19:31:55.040791', job_id='452765', GAL2='1.13', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630290715.04', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.08e-04', ts2='0.08', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='73' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 452765: <4FGL_J0824.9+3915_daily_bin73> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin73> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:49 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15: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 19:15:50 2021
Terminated at Sun Aug 29 19:31:55 2021
Results reported at Sun Aug 29 19:31:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin73 126.236 39.2574 258249601 258508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.9+3915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            966 sec.

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

