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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin284
RA = 239.718, Dec = 56.4268
tmin = 312940801, tmax = 313200001
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='869101', job_status='RUN', time_executed='2021-09-12 22:32:07.998719', time_epoch_executed='1631511128.0' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/869101

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/869101/ft1_4FGL_J1558.8+5625_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/869101/ft1_4FGL_J1558.8+5625_daily_bin284.fits outfile=/scratch/kocevski/869101/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin284.fits ra=239.718 dec=56.4268 rad=12.0 tmin=312940801.0 tmax=313200001.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.48
user 3.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.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/869101/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin284.fits evtable="EVENTS" outfile="/scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/869101/ltcube_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.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/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits
.....................!
real 13.41
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/869101/ltcube_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.fits outfile=/scratch/kocevski/869101/expmap_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.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/869101/ltcube_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.fits
.....................!
real 192.14
user 186.44
sys 4.81

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

Setting source of interest to:
4FGL J1558.8+5625 @ 239.718 56.4268

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits scfile=/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits outfile=/scratch/kocevski/869101/cmap_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.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=239.718 yref=56.4268 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits scfile=/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits outfile=/scratch/kocevski/869101/cmap_HighResolution_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.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=239.718 yref=56.4268 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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/869101/Model_4FGL_J1558.8+5625_daily_bin284.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/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits.....................!
real 48.17
user 46.73
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits', '/scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits', expMap='/scratch/kocevski/869101/expmap_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.fits', expCube='/scratch/kocevski/869101/ltcube_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/869101/Model_4FGL_J1558.8+5625_daily_bin284.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1558.8+5625'

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  3.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.116e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/869101/ft1_filtered_4FGL_J1558.8+5625_daily_bin284.fits
Spacecraft file(s): /scratch/kocevski/869101/ft2_4FGL_J1558.8+5625_daily_bin284.fits
Exposure map: /scratch/kocevski/869101/expmap_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.fits
Exposure cube: /scratch/kocevski/869101/ltcube_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/869101/Model_4FGL_J1558.8+5625_daily_bin284.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) = 5713.65407513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.617       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1543       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13812E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2010       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0951       1.0000         .10000E-03   10000.    
    22 'norm      '    17.320       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0075       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.201       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.627       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97904       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5713.652     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3617 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.032       -.20839E-05** at limit **
   2  Prefactor     .10000E-03    6.0628       -.13653E-06** at limit **
   3  Prefactor     .10000E-03    8.8656       -.62954E-06** at limit **
   4  norm          .10000E-03    .36465        .12089E-07** at limit **
   5  Prefactor     11.282        8.8980        .45393E-06    .16627E-04
   6  Prefactor     8.0874        7.7694        .21693E-06    .36685E-04
   7  Prefactor     .10000E-03    2.6104        .16704E-07** at limit **
   8  Prefactor     3.8285        13.967        .36419E-05   -.54854E-07
   9  Prefactor     22.618        22.766       -.49648E-06   -.40605E-05
  10  norm          3.4998        2.5161       -.90312E-07   -.12720E-03
  11  Prefactor     33.676        78.801        .63152E-05    .78478E-05
  12  Prefactor     .10000E-03    3.9556       -.11162E-07** at limit **
  13  norm          3.1507        6.6620        .17822E-06   -.37964E-04
  14  Prefactor     .10000E-03    23.504        .14613E-05** at limit **
  15  Prefactor     .10000E-03    51.218        .10980E-05** at limit **
  16  Prefactor     .10000E-03    2.9535       -.23894E-06** at limit **
  17  Prefactor     .10000E-03    6.0881       -.96273E-07** at limit **
  18  Prefactor     4.1998        6.9493        .30942E-05   -.21261E-04
  19  norm          .10000E-03    8.1285        .74655E-06** at limit **
  20  Prefactor     .10000E-03    3.6656        .85692E-07** at limit **
  21  Prefactor     2.0952        5.3725        .35872E-06   -.11550E-04
  22  norm          17.319        10.999        .26113E-06   -.15425E-04
  23  Prefactor     4.0072        2.5970       -.14628E-07   -.32138E-04
  24  Prefactor     13.201        10.438       -.35950E-08   -.20624E-04
  25  Prefactor     .10000E-03    5.4148        .26654E-06** at limit **
  26  Prefactor     12.627        9.5658        .34302E-06    .34386E-05
  27  Prefactor     .10000E-03    5.6406       -.20630E-06** at limit **
  28  Normalizat    .97921        .17731       -.12733E-05    .41453E-04
  29  Prefactor     .94262        .17469       -.41483E-06   -.85255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2823
  Prefactor  = 8.08745
  Prefactor  = 0.0001
  Prefactor  = 3.8285
  Prefactor  = 22.6179
  norm       = 3.49979
  Prefactor  = 33.6755
  Prefactor  = 0.0001
  norm       = 3.15074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19982
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0952
  norm       = 17.3193
  Prefactor  = 4.00719
  Prefactor  = 13.2011
  Prefactor  = 0.0001
  Prefactor  = 12.627
  Prefactor  = 0.0001
  Normalizat = 0.979215
  Prefactor  = 0.942621
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.652     FROM HESSE     STATUS=OK           555 CALLS     4172 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .36879        .44571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.282        8.8968        .59634E-03   -1.5036    
   6  Prefactor     8.0874        7.7685        .14099E-03   -1.5139    
   7  Prefactor     .10000E-03    2.6336        .11918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8285        13.952        .10309E-02   -1.5317    
   9  Prefactor     22.618        22.746        .84226E-04   -1.4756    
  10  norm          3.4998        2.5172        .48539E-03   -1.5334    
  11  Prefactor     33.676        78.873        .69021E-04   -1.4547    
  12  Prefactor     .10000E-03    3.9703        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1507        6.6412        .22822E-03   -1.5353    
  14  Prefactor     .10000E-03    23.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.2216        .25207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1998        6.9866        .98309E-03   -1.5298    
  19  norm          .10000E-03    8.1424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7950        .28248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0952        5.3441        .26849E-03   -1.5418    
  22  norm          17.319        10.999        .48119E-03   -1.4875    
  23  Prefactor     4.0072        2.5967        .95102E-04   -1.5308    
  24  Prefactor     13.201        10.438        .11024E-03   -1.4981    
  25  Prefactor     .10000E-03    5.4188        .17179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.627        9.5642        .56364E-03   -1.4997    
  27  Prefactor     .10000E-03    5.6474        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97921        .20963        .23127E-03   -.93730    
  29  Prefactor     .94262        .20691        .24308E-03   -.94667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29285e-10
Minuit parameter uncertainties:
  1  2.13346e-06
  2  4.11926e-08
  3  8.49917e-07
  4  4.49664e-07
  5  8.89789
  6  7.7695
  7  1.36966e-06
  8  13.9642
  9  22.7544
  10  2.51727
  11  79.1183
  12  5.65723e-07
  13  6.64278
  14  5.0518e-06
  15  4.50224e-05
  16  7.64611e-06
  17  1.29789e-06
  18  6.98795
  19  8.5849e-06
  20  6.96356e-06
  21  5.3453
  22  10.9999
  23  2.59674
  24  10.439
  25  3.03e-06
  26  9.56535
  27  4.89937e-07
  28  0.209803
  29  0.207088
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  5.657e-07  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.116e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  9.426e-01  2.071e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  9.792e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 239.718 56.427
Photon Flux Upper Limit: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/869101/likelihoodResults_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.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) = 5713.65346605
delta logL = -0.00119945061306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5713.65226662
delta logL = -1.83526935871e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1149       1.0000          .0000       10.000    
     3 'Normalizat'    .97922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5713.652     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.023        .90712E-02** at limit **
   2  Index         2.1143        8.7218        .50000        .10458E-05
   3  Normalizat    .97921        .15413E-01    .45906E-01   -.20245E-04
   4  Prefactor     .94262        .16008E-01    .45546E-01   -.43887E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11434
  Normalizat = 0.979213
  Prefactor  = 0.942623
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.652     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9886        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1143        6.0543        .50000       -.61521    
   3  Normalizat    .97921        .19584        .23127E-03   -.93730    
   4  Prefactor     .94262        .20339        .24308E-03   -.94667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63444e-12
Minuit parameter uncertainties:
  1  1.87911e-06
  2  4.09603
  3  0.19598
  4  0.203559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/869101': 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) = 5713.6522666
delta logL = 3.82897269446e-10

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.879e-06  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.114e+00  4.096e+00  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  9.426e-01  2.036e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  9.792e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 239.718 56.427

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/869101/cmap_HighResolution_312940801_313200001_4FGL_J1558.8+5625_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-09-12 22:47:09.003540', job_id='869101', GAL2='0.94', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631512029.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.83e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='284' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 869101: <4FGL_J1558.8+5625_daily_bin284> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin284> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 12 22:30:50 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:31:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 22:31:48 2021
Terminated at Sun Sep 12 22:47:09 2021
Results reported at Sun Sep 12 22:47:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin284 239.718 56.4268 312940801 313200001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1558.8+5625 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   889.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            979 sec.

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

