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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin20
RA = 126.236, Dec = 39.2574
tmin = 244512001, tmax = 244771201
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='452675', job_status='RUN', time_executed='2021-08-29 19:19:53.843716', time_epoch_executed='1630289993.84' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452675/ft1_4FGL_J0824.9+3915_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452675/ft2_4FGL_J0824.9+3915_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452675/ft1_4FGL_J0824.9+3915_daily_bin20.fits outfile=/scratch/kocevski/452675/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin20.fits ra=126.236 dec=39.2574 rad=12.0 tmin=244512001.0 tmax=244771201.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 2.52
user 1.26
sys 1.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452675/ft2_4FGL_J0824.9+3915_daily_bin20.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/452675/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/452675/ft1_filtered_4FGL_J0824.9+3915_daily_bin20.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.62
user 0.34
sys 1.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452675/ft1_filtered_4FGL_J0824.9+3915_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/452675/ft2_4FGL_J0824.9+3915_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/452675/ltcube_244512001_244771201_4FGL_J0824.9+3915_daily_bin20.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/452675/ft2_4FGL_J0824.9+3915_daily_bin20.fits
.....................!
real 13.89
user 12.43
sys 1.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452675/ft1_filtered_4FGL_J0824.9+3915_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/452675/ft2_4FGL_J0824.9+3915_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/452675/ltcube_244512001_244771201_4FGL_J0824.9+3915_daily_bin20.fits outfile=/scratch/kocevski/452675/expmap_244512001_244771201_4FGL_J0824.9+3915_daily_bin20.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/452675/ltcube_244512001_244771201_4FGL_J0824.9+3915_daily_bin20.fits
.....................!
real 190.92
user 184.57
sys 5.79

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/452675/ft1_filtered_4FGL_J0824.9+3915_daily_bin20.fits scfile=/scratch/kocevski/452675/ft2_4FGL_J0824.9+3915_daily_bin20.fits outfile=/scratch/kocevski/452675/cmap_244512001_244771201_4FGL_J0824.9+3915_daily_bin20.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 2.04
user 0.35
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452675/ft1_filtered_4FGL_J0824.9+3915_daily_bin20.fits scfile=/scratch/kocevski/452675/ft2_4FGL_J0824.9+3915_daily_bin20.fits outfile=/scratch/kocevski/452675/cmap_HighResolution_244512001_244771201_4FGL_J0824.9+3915_daily_bin20.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 1.66
user 0.38
sys 1.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61875E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .77443       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0250       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3225       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.094       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7124       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .57846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .63310       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4940       1.0000         .10000E-03   10000.    
    23 'norm      '    .21389E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5633       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91263       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94869       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=   6614.260     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2675 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    44.752       -.24155E-04** at limit **
   2  Prefactor     .10000E-03    6.5618        .32261E-07** at limit **
   3  norm          .77369        1.5248        .11417E-05   -.70878E-03
   4  norm          2.0251        1.9201        .15475E-07   -.14762E-03
   5  Prefactor     .10000E-03    2.4613        .15121E-07** at limit **
   6  Prefactor     .10000E-03    14.207        .94587E-06** at limit **
   7  Prefactor     .10000E-03    1.5409        .96266E-08** at limit **
   8  Prefactor     .10000E-03    6.5683       -.13353E-06** at limit **
   9  norm          2.3225        .72689       -.76587E-07   -.47695E-02
  10  Prefactor     .10000E-03    9.3503       -.38807E-06** at limit **
  11  Prefactor     1.1652        70.585        .76068E-06   -.20026E-04
  12  Prefactor     .10000E-03    7.8975        .55882E-06** at limit **
  13  Prefactor     7.6389        3.3547       -.41215E-06   -.31073E-02
  14  Prefactor     14.093        19.017       -.28529E-06   -.27377E-03
  15  Prefactor     8.7120        10.226       -.60112E-07   -.31072E-03
  16  norm          .10000E-03    4.2651        .11201E-06** at limit **
  17  Prefactor     .10000E-03    1.3386        .70115E-07** at limit **
  18  Prefactor     .57686        2.6737       -.17127E-06   -.12863E-03
  19  Prefactor     .10000E-03    29.330       -.72489E-06** at limit **
  20  Prefactor     .63436        2.9948        .12035E-05    .66842E-03
  21  Prefactor     .10000E-03    10.082       -.15410E-06** at limit **
  22  norm          2.4941        .80027       -.10440E-07   -.41684E-03
  23  norm          .10000E-03    4.6490        .41480E-06** at limit **
  24  Prefactor     3.5647        2.9939       -.21450E-07    .13877E-03
  25  Normalizat    .91266        .16937       -.82683E-06   -.66552E-03
  26  Prefactor     .94861        .13327       -.43466E-06   -.76234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.773688
  norm       = 2.02511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3225
  Prefactor  = 0.0001
  Prefactor  = 1.1652
  Prefactor  = 0.0001
  Prefactor  = 7.63893
  Prefactor  = 14.0928
  Prefactor  = 8.71197
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.576857
  Prefactor  = 0.000100001
  Prefactor  = 0.634361
  Prefactor  = 0.0001
  norm       = 2.4941
  norm       = 0.0001
  Prefactor  = 3.56471
  Normalizat = 0.912662
  Prefactor  = 0.948614
 **********
 **   18 **HESSE 
 **********

 FCN=   6614.260     FROM HESSE     STATUS=OK           454 CALLS     3129 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    44.591        .42333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .77369        16.986        .24688E-02   -1.5532    
   4  norm          2.0251        1.9096        .10669E-03   -1.5423    
   5  Prefactor     .10000E-03    2.4689        .12460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5484        .98548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3225        .72790        .37071E-04   -1.5403    
  10  Prefactor     .10000E-03    9.3555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1652        73.068        .42373E-03   -1.5492    
  12  Prefactor     .10000E-03    7.9210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6389        3.3968        .94561E-04   -1.5155    
  14  Prefactor     14.093        19.006        .10669E-03   -1.4957    
  15  Prefactor     8.7120        10.221        .13580E-03   -1.5118    
  16  norm          .10000E-03    4.3768        .32800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3684        .91817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .57686        10.108        .24816E-02   -1.5556    
  19  Prefactor     .10000E-03    29.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .63436        2.9777        .25448E-03   -1.5549    
  21  Prefactor     .10000E-03    10.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4941        .79871        .39361E-04   -1.5392    
  23  norm          .10000E-03    25.204        .33827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5647        2.9253        .11708E-03   -1.5330    
  25  Normalizat    .91266        .19325        .26261E-03   -.96017    
  26  Prefactor     .94861        .15403        .21433E-03   -.94462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18539e-08
Minuit parameter uncertainties:
  1  0.0013217
  2  1.84917e-05
  3  7.2521
  4  1.90962
  5  1.81694e-06
  6  7.15938e-05
  7  2.91552e-06
  8  6.13072e-06
  9  0.727903
  10  2.0416e-05
  11  18.4769
  12  8.23072e-06
  13  3.39687
  14  19.014
  15  10.2233
  16  1.85645e-05
  17  7.90307e-06
  18  4.82997
  19  0.000316916
  20  2.74879
  21  8.37379e-05
  22  0.798716
  23  1.24425e-05
  24  2.92538
  25  0.193396
  26  0.154098
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  7.639e+00  3.397e+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:  9.486e-01  1.541e-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.127e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.73
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.75e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 1.36e-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) = 6614.1861563
delta logL = 0.073466432199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6614.18217932
delta logL = 0.077443419781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4579       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6171       1.0000          .0000       10.000    
     3 'Normalizat'    .89915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95614       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=   6614.182     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4590        43.351        .39483E-02    .24340E-03
   2  Index         2.6174        3.0010        .12320        .13476E-03
   3  Normalizat    .89917        .88154E-01    .44891E-01    .18219E-04
   4  Prefactor     .95605        .60148E-01    .45717E-01    .43628E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45898
  Index      = 2.6174
  Normalizat = 0.899172
  Prefactor  = 0.956052
 **********
 **   18 **HESSE 
 **********

 FCN=   6614.182     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4590        4.5695        .84053E-04   -1.5200    
   2  Index         2.6174        .52138        .47665E-02   -.49669    
   3  Normalizat    .89917        .18380        .26423E-03   -.96489    
   4  Prefactor     .95605        .15072        .21358E-03   -.94209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62808e-12
Minuit parameter uncertainties:
  1  4.56973
  2  0.522613
  3  0.183933
  4  0.150788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452675': 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) = 6614.18217838
delta logL = 0.0774443590735

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  6.459e+00  4.570e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.617e+00  5.226e-01  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.561e-01  1.508e-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:  8.992e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.93
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.62 +/- 0.52
Photon Flux (Free Index): 1.09e-07 +/- 5.28e-08
Energy Flux (Free Index): 2.80e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/452675/cmap_HighResolution_244512001_244771201_4FGL_J0824.9+3915_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.75e-08', energy_flux2='2.80e-05', photon_flux_error='4.33e-08', dlogl='7.74e-02', energy_flux='3.07e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-29 19:31:29.641723', photon_index_error2='0.52', photon_index2='2.62', ts='9.73', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.91', time_epoch_completed='1630290689.64', return_code='0', job_id='452675', GAL2='0.96', EG2='0.90', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.28e-08', ts2='9.93', photon_index='2.43' WHERE bin_id='20' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 452675: <4FGL_J0824.9+3915_daily_bin20> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin20 126.236 39.2574 244512001 244771201 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 :                                   698.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

