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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1521
RA = 126.236, Dec = 39.2574
tmin = 633571201, tmax = 633830401
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='462559', job_status='RUN', time_executed='2021-08-29 19:46:12.644732', time_epoch_executed='1630291572.64' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462559/ft1_4FGL_J0824.9+3915_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462559/ft2_4FGL_J0824.9+3915_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462559/ft1_4FGL_J0824.9+3915_daily_bin1521.fits outfile=/scratch/kocevski/462559/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1521.fits ra=126.236 dec=39.2574 rad=12.0 tmin=633571201.0 tmax=633830401.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 4.47
user 3.31
sys 1.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462559/ft1_filtered_4FGL_J0824.9+3915_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/462559/ft2_4FGL_J0824.9+3915_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/462559/ltcube_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.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/462559/ft2_4FGL_J0824.9+3915_daily_bin1521.fits
.....................!
real 13.04
user 11.55
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462559/ft1_filtered_4FGL_J0824.9+3915_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/462559/ft2_4FGL_J0824.9+3915_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/462559/ltcube_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.fits outfile=/scratch/kocevski/462559/expmap_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.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/462559/ltcube_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.fits
.....................!
real 192.89
user 185.63
sys 5.39

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/462559/ft1_filtered_4FGL_J0824.9+3915_daily_bin1521.fits scfile=/scratch/kocevski/462559/ft2_4FGL_J0824.9+3915_daily_bin1521.fits outfile=/scratch/kocevski/462559/cmap_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.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 1.40
user 0.36
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462559/ft1_filtered_4FGL_J0824.9+3915_daily_bin1521.fits scfile=/scratch/kocevski/462559/ft2_4FGL_J0824.9+3915_daily_bin1521.fits outfile=/scratch/kocevski/462559/cmap_HighResolution_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.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.41
user 0.37
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0613       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8655       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3286       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.318       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8433       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4032       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40254E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6349       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3473       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .38266       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4994       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .47916       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=   6174.870     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3121 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.656        16.171       -.20603E-06   -.14077E-03
   2  Prefactor     1.0316        11.193        .21662E-05   -.33697E-03
   3  norm          6.8671        10.891        .21340E-05   -.58095E-03
   4  norm          3.3281        2.4420       -.46333E-08   -.24105E-03
   5  Prefactor     .10000E-03    3.7838       -.23283E-06** at limit **
   6  Prefactor     .10005E-03    49.551       -.95744E-05** at limit **
   7  Prefactor     .10000E-03    2.4266        .71980E-07** at limit **
   8  Prefactor     31.312        31.479       -.25823E-05   -.38865E-03
   9  norm          1.1173        .53618       -.81715E-08   -.63518E-03
  10  Prefactor     .10000E-03    26.124       -.19152E-05** at limit **
  11  Prefactor     5.8424        12.364        .15405E-05   -.31647E-03
  12  Prefactor     .10000E-03    4.1922       -.56485E-06** at limit **
  13  Prefactor     .10000E-03    1.2214        .69621E-07** at limit **
  14  Prefactor     .10000E-03    9.5404        .28038E-06** at limit **
  15  Prefactor     5.4029        7.5583        .14447E-06   -.88730E-04
  16  norm          6.0607        6.1691        .32528E-06   -.15267E-03
  17  Prefactor     .10269E-03    1.3156        .91209E-06** at limit **
  18  Prefactor     .10000E-03    2.3443        .34192E-10** at limit **
  19  Prefactor     4.6375        32.749        .16298E-05    .28434E-04
  20  Prefactor     .10000E-03    1.1055        .48623E-07** at limit **
  21  Prefactor     .10000E-03    4.9000       -.14802E-06** at limit **
  22  norm          1.3473        .61164       -.25504E-07   -.13843E-02
  23  norm          .10000E-03    3.9295        .75912E-06** at limit **
  24  Prefactor     .38293        1.8641        .55840E-06   -.72016E-03
  25  Normalizat    1.4994        .17664       -.11744E-05   -.69297E-03
  26  Prefactor     .47908        .13489        .88115E-08   -.49961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6557
  Prefactor  = 1.03155
  norm       = 6.86707
  norm       = 3.32809
  Prefactor  = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 31.3123
  norm       = 1.11735
  Prefactor  = 0.000100001
  Prefactor  = 5.84241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.40289
  norm       = 6.06074
  Prefactor  = 0.000102691
  Prefactor  = 0.0001
  Prefactor  = 4.63755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34732
  norm       = 0.0001
  Prefactor  = 0.382929
  Normalizat = 1.49942
  Prefactor  = 0.479078
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.870     FROM HESSE     STATUS=OK           464 CALLS     3585 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.656        16.181        .98143E-04   -1.4892    
   2  Prefactor     1.0316        59.254        .47824E-02   -1.5505    
   3  norm          6.8671        12.073        .76561E-03   -1.5184    
   4  norm          3.3281        2.4404        .10173E-03   -1.5343    
   5  Prefactor     .10000E-03    3.8024        .14920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    53.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4564        .11949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.312        32.077        .71598E-04   -1.4588    
   9  norm          1.1173        .53579        .38426E-04   -1.5497    
  10  Prefactor     .10000E-03    26.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8424        12.841        .83069E-03   -1.5224    
  12  Prefactor     .10000E-03    4.2093        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2444        .84788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4029        7.5558        .17288E-03   -1.5243    
  16  norm          6.0607        6.1645        .16309E-03   -1.5216    
  17  Prefactor     .10269E-03    2.3160        .29836E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3685        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6375        32.698        .18695E-03   -1.5277    
  20  Prefactor     .10000E-03    1.1133        .80644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9030        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3473        .61211        .39847E-04   -1.5476    
  23  norm          .10000E-03    3.9941        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .38293        2.0237        .21706E-03   -1.5584    
  25  Normalizat    1.4994        .20149        .21521E-03   -.77795    
  26  Prefactor     .47908        .15356        .27733E-03   -1.1295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11727e-09
Minuit parameter uncertainties:
  1  16.1851
  2  15.6518
  3  12.0774
  4  2.44047
  5  2.11414e-05
  6  0.00325004
  7  8.79758e-06
  8  32.0948
  9  0.535796
  10  0.000360515
  11  12.8466
  12  5.14778e-05
  13  5.98634e-06
  14  4.4838e-05
  15  7.55711
  16  6.16518
  17  0.00499296
  18  2.86572e-06
  19  24.6472
  20  3.7719e-06
  21  1.52602e-05
  22  0.612112
  23  7.26441e-05
  24  1.76046
  25  0.201595
  26  0.153697
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.986e-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:  4.791e-01  1.537e-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.499e+00  2.016e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462559/likelihoodResults_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.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) = 6174.87366192
delta logL = -0.0037851780653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6174.86987684
delta logL = -9.42018232308e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4387       1.0000          .0000       10.000    
     3 'Normalizat'    1.4994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47910       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6174.870     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    268.63        .84929E-03** at limit **
   2  Index         2.4461        5.2117        .50000       -.52542E-04
   3  Normalizat    1.4994        .11571        .21521E-03    .17750E-04
   4  Prefactor     .47908        .89216E-01    .27733E-03    .37714E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6174.870     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      421 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    268.63        .20106E-03** at limit **
   2  Index         2.4461        5.2117        .22933E-05   -.52542E-04
   3  Normalizat    1.4994        .11571        .13965E-06    .17750E-04
   4  Prefactor     .47908        .89216E-01    .99485E-07    .37714E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6174.870     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      455 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3484        .16986E-03** at limit **
   2  Index         2.4465        6.2232        .50000       -.52594E-04
   3  Normalizat    1.4994        .19504        .86083E-05    .42261E-05
   4  Prefactor     .47908        .15050        .11093E-04    .28695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.4465
  Normalizat = 1.49942
  Prefactor  = 0.479079
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.870     FROM HESSE     STATUS=OK            29 CALLS      484 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2535        .33971E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4465        6.2219        .50000       -.53600    
   3  Normalizat    1.4994        .19527        .17217E-05   -.77795    
   4  Prefactor     .47908        .15070        .22186E-05   -1.1295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1707e-09
Minuit parameter uncertainties:
  1  0.000130044
  2  4.30584
  3  0.195368
  4  0.150821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462559': 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) = 6174.86987657
delta logL = 1.73729858943e-07

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.300e-04  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.447e+00  4.306e+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:  4.791e-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:  1.499e+00  1.954e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/462559/cmap_HighResolution_633571201_633830401_4FGL_J0824.9+3915_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2021-08-29 19:59:52.669760', job_id='462559', GAL2='0.48', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630292392.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1521' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:59:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 462559: <4FGL_J0824.9+3915_daily_bin1521> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1521> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 19:45:40 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:45:42 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:45:42 2021
Terminated at Sun Aug 29 19:59:53 2021
Results reported at Sun Aug 29 19:59:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1521 126.236 39.2574 633571201 633830401 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 :                                   814.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

