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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin829
RA = 126.236, Dec = 39.2574
tmin = 454204801, tmax = 454464001
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='458897', job_status='RUN', time_executed='2021-08-29 19:35:50.395700', time_epoch_executed='1630290950.4' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458897

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458897/ft1_4FGL_J0824.9+3915_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458897/ft1_4FGL_J0824.9+3915_daily_bin829.fits outfile=/scratch/kocevski/458897/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin829.fits ra=126.236 dec=39.2574 rad=12.0 tmin=454204801.0 tmax=454464001.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 3.85
user 3.31
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.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/458897/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin829.fits evtable="EVENTS" outfile="/scratch/kocevski/458897/ft1_filtered_4FGL_J0824.9+3915_daily_bin829.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.80
user 0.32
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458897/ft1_filtered_4FGL_J0824.9+3915_daily_bin829.fits" evtable="EVENTS" scfile=/scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits sctable="SC_DATA" outfile=/scratch/kocevski/458897/ltcube_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.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/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits
.....................!
real 13.48
user 12.59
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458897/ft1_filtered_4FGL_J0824.9+3915_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/458897/ltcube_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.fits outfile=/scratch/kocevski/458897/expmap_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.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/458897/ltcube_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.fits
.....................!
real 191.30
user 186.18
sys 4.68

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/458897/ft1_filtered_4FGL_J0824.9+3915_daily_bin829.fits scfile=/scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits outfile=/scratch/kocevski/458897/cmap_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.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.84
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458897/ft1_filtered_4FGL_J0824.9+3915_daily_bin829.fits scfile=/scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits outfile=/scratch/kocevski/458897/cmap_HighResolution_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.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.93
user 0.41
sys 0.42

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/458897/ft1_filtered_4FGL_J0824.9+3915_daily_bin829.fits', '/scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits', expMap='/scratch/kocevski/458897/expmap_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.fits', expCube='/scratch/kocevski/458897/ltcube_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/458897/Model_4FGL_J0824.9+3915_daily_bin829.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/458897/ft1_filtered_4FGL_J0824.9+3915_daily_bin829.fits
Spacecraft file(s): /scratch/kocevski/458897/ft2_4FGL_J0824.9+3915_daily_bin829.fits
Exposure map: /scratch/kocevski/458897/expmap_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.fits
Exposure cube: /scratch/kocevski/458897/ltcube_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/458897/Model_4FGL_J0824.9+3915_daily_bin829.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) = 6925.87738656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6143       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9562       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    85.234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0983       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0853       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3801       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0783       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93323       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=   6925.875     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3102 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10247E-03    11.246       -.15405E-06** at limit **
   2  Prefactor     .10000E-03    3.5160        .34239E-06** at limit **
   3  norm          .10000E-03    15.706       -.20095E-05** at limit **
   4  norm          2.6133        2.3136        .42359E-07    .68943E-04
   5  Prefactor     .10000E-03    2.2856        .16892E-05** at limit **
   6  Prefactor     49.040        43.047        .30109E-06    .50861E-04
   7  Prefactor     9.7291        5.4127        .74048E-07    .88274E-04
   8  Prefactor     6.9380        26.826        .15595E-06    .14104E-04
   9  norm          1.3938        .63343        .69535E-07    .47944E-03
  10  Prefactor     .10000E-03    17.035        .24091E-06** at limit **
  11  Prefactor     .10000E-03    17.122       -.54581E-06** at limit **
  12  Prefactor     .10000E-03    11.528       -.89706E-06** at limit **
  13  Prefactor     .10000E-03    1.4293       -.57778E-06** at limit **
  14  Prefactor     .10000E-03    7.9155       -.37254E-07** at limit **
  15  Prefactor     .10000E-03    3.6765        .72374E-07** at limit **
  16  norm          14.663        7.0753        .58861E-07    .29156E-04
  17  Prefactor     .10000E-03    1.0539       -.16902E-06** at limit **
  18  Prefactor     .10000E-03    1.8895       -.11484E-06** at limit **
  19  Prefactor     85.191        51.164        .23305E-07    .24884E-04
  20  Prefactor     .10000E-03    2.0393        .13450E-05** at limit **
  21  Prefactor     .10000E-03    8.8711        .19726E-05** at limit **
  22  norm          1.0981        .54342        .17637E-07   -.14994E-03
  23  norm          1.0856        11.543        .52160E-05    .33096E-04
  24  Prefactor     2.3782        2.6659       -.12865E-06   -.21125E-03
  25  Normalizat    1.0786        .18384       -.23880E-05    .36656E-03
  26  Prefactor     .93336        .14704        .29705E-05    .33216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102469
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.6133
  Prefactor  = 0.0001
  Prefactor  = 49.0403
  Prefactor  = 9.72908
  Prefactor  = 6.93799
  norm       = 1.39377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.1907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09806
  norm       = 1.08561
  Prefactor  = 2.37816
  Normalizat = 1.07855
  Prefactor  = 0.933365
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.875     FROM HESSE     STATUS=OK           460 CALLS     3562 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10247E-03    19.232        .75043E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5184        .15239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6133        2.3127        .11520E-03   -1.5385    
   5  Prefactor     .10000E-03    2.3049        .12319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.040        43.066        .57246E-04   -1.4306    
   7  Prefactor     9.7291        5.4034        .12847E-03   -1.5084    
   8  Prefactor     6.9380        26.829        .15211E-03   -1.5181    
   9  norm          1.3938        .63318        .42053E-04   -1.5472    
  10  Prefactor     .10000E-03    17.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4639        .97304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6860        .15582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.663        7.0805        .10459E-03   -1.4942    
  17  Prefactor     .10000E-03    1.0752        .83401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9063        .11171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     85.191        51.212        .21757E-03   -1.3859    
  20  Prefactor     .10000E-03    2.0716        .23081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0981        .54621        .41764E-04   -1.5498    
  23  norm          1.0856        11.613        .23043E-02   -1.5500    
  24  Prefactor     2.3782        2.6536        .13650E-03   -1.5400    
  25  Normalizat    1.0786        .20437        .26404E-03   -.90443    
  26  Prefactor     .93336        .16122        .22813E-03   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00061e-10
Minuit parameter uncertainties:
  1  0.013785
  2  2.21763e-06
  3  9.63331e-05
  4  2.31274
  5  1.68166e-05
  6  43.0936
  7  5.40368
  8  26.8756
  9  0.633181
  10  2.17678e-06
  11  3.12773e-05
  12  4.70439e-05
  13  7.46254e-06
  14  4.0228e-06
  15  7.15592e-07
  16  7.08093
  17  1.52317e-06
  18  1.80963e-06
  19  51.2385
  20  4.56748e-06
  21  4.41216e-05
  22  0.546208
  23  7.10288
  24  2.6537
  25  0.204519
  26  0.161305
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.463e-06  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:  9.334e-01  1.613e-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:  1.079e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458897/likelihoodResults_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.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): 102
logL (Free Index) = 6925.87836563
delta logL = -0.00325152613277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6925.87511428
delta logL = -1.72924956132e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4309       1.0000          .0000       10.000    
     3 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93340       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.

 FCN=   6925.875     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9932        .90712E-02** at limit **
   2  Index         2.4301        6.9231        .50000        .46243E-05
   3  Normalizat    1.0785        .52931E-02    .59703E-01   -.95297E-04
   4  Prefactor     .93337        .43088E-02    .45429E-01   -.76841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43007
  Normalizat = 1.07855
  Prefactor  = 0.933368
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.875     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.487        .97310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4301        8.2484        .50000       -.53983    
   3  Normalizat    1.0785        .34428E-01    .26404E-03   -.90444    
   4  Prefactor     .93337        .28030E-01    .22813E-03   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.43796e-07
Minuit parameter uncertainties:
  1  7.18918e-05
  2  640.575
  3  0.034429
  4  0.0280308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458897': 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): 102
logL (Free Index) = 6925.8751141
delta logL = 2.1054802346e-09

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.189e-05  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.430e+00  6.406e+02  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:  9.334e-01  2.803e-02  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:  1.079e+00  3.443e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/458897/cmap_HighResolution_454204801_454464001_4FGL_J0824.9+3915_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-08-29 19:49:44.890654', job_id='458897', GAL2='0.93', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630291784.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='829' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 458897: <4FGL_J0824.9+3915_daily_bin829> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin829 126.236 39.2574 454204801 454464001 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 :                                   834.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            859 sec.

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

