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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin15
RA = 239.718, Dec = 56.4268
tmin = 243216001, tmax = 243475201
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='867675', job_status='RUN', time_executed='2021-09-12 22:28:43.876747', time_epoch_executed='1631510923.88' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867675

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867675/ft1_4FGL_J1558.8+5625_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867675/ft1_4FGL_J1558.8+5625_daily_bin15.fits outfile=/scratch/kocevski/867675/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin15.fits ra=239.718 dec=56.4268 rad=12.0 tmin=243216001.0 tmax=243475201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.34
user 1.18
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/867675/ltcube_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.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/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits
.....................!
real 14.23
user 13.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/867675/ltcube_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.fits outfile=/scratch/kocevski/867675/expmap_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.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/867675/ltcube_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.fits
.....................!
real 193.25
user 187.69
sys 5.12

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/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits scfile=/scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits outfile=/scratch/kocevski/867675/cmap_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits scfile=/scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits outfile=/scratch/kocevski/867675/cmap_HighResolution_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.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/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867675/Model_4FGL_J1558.8+5625_daily_bin15.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/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits.....................!
real 48.79
user 47.42
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits', '/scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits', expMap='/scratch/kocevski/867675/expmap_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.fits', expCube='/scratch/kocevski/867675/ltcube_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/867675/Model_4FGL_J1558.8+5625_daily_bin15.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/867675/ft1_filtered_4FGL_J1558.8+5625_daily_bin15.fits
Spacecraft file(s): /scratch/kocevski/867675/ft2_4FGL_J1558.8+5625_daily_bin15.fits
Exposure map: /scratch/kocevski/867675/expmap_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.fits
Exposure cube: /scratch/kocevski/867675/ltcube_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/867675/Model_4FGL_J1558.8+5625_daily_bin15.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) = 5642.78085766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23283E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10460E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6724       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.330       1.0000         .10000E-03   10000.    
    13 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1942       1.0000         .10000E-03   10000.    
    19 'norm      '    5.6631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.4833       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9151       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3663       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1719       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83856       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=   5642.719     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3760 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.293        36.817       -.47688E-05    .19760E-04
   2  Prefactor     .10000E-03    18.914       -.24211E-06** at limit **
   3  Prefactor     .10000E-03    7.2390        .35069E-07** at limit **
   4  norm          .10000E-03    .86059       -.18243E-07** at limit **
   5  Prefactor     .10000E-03    4.5881        .80335E-07** at limit **
   6  Prefactor     .10000E-03    2.2113       -.32689E-08** at limit **
   7  Prefactor     .28782        7.0510       -.15880E-05    .49911E-03
   8  Prefactor     .10000E-03    7.8517       -.11827E-06** at limit **
   9  Prefactor     .10000E-03    16.988        .88574E-06** at limit **
  10  norm          2.6728        2.3285       -.27257E-07    .73642E-04
  11  Prefactor     .10000E-03    41.350       -.10412E-04** at limit **
  12  Prefactor     12.332        8.1812       -.11003E-06    .43532E-04
  13  norm          .10000E-03    8.5581        .79424E-07** at limit **
  14  Prefactor     .10000E-03    24.358       -.19619E-05** at limit **
  15  Prefactor     .10000E-03    51.602        .40998E-05** at limit **
  16  Prefactor     .10000E-03    2.7902        .12652E-06** at limit **
  17  Prefactor     35.218        22.784       -.32697E-05   -.45732E-05
  18  Prefactor     2.1981        7.1534       -.13009E-06   -.19430E-05
  19  norm          5.6639        18.278       -.67043E-06    .99046E-06
  20  Prefactor     7.2395        5.3438        .20156E-06   -.79004E-04
  21  Prefactor     .10000E-03    1.7591       -.33043E-08** at limit **
  22  norm          6.4842        7.4687       -.29058E-06    .75269E-05
  23  Prefactor     .10000E-03    2.8571       -.34564E-07** at limit **
  24  Prefactor     1.9166        7.5803       -.50831E-07   -.16238E-03
  25  Prefactor     .10000E-03    13.181       -.13572E-06** at limit **
  26  Prefactor     .10000E-03    2.6590       -.16667E-07** at limit **
  27  Prefactor     1.3651        4.7440        .64661E-07   -.22826E-03
  28  Normalizat    1.1714        .18827        .92388E-06    .21059E-03
  29  Prefactor     .83882        .18377        .15402E-07    .17067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.293
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.287823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67285
  Prefactor  = 0.0001
  Prefactor  = 12.3325
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.2185
  Prefactor  = 2.19812
  norm       = 5.66385
  Prefactor  = 7.23953
  Prefactor  = 0.0001
  norm       = 6.48419
  Prefactor  = 0.0001
  Prefactor  = 1.91663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36506
  Normalizat = 1.17145
  Prefactor  = 0.838823
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.719     FROM HESSE     STATUS=OK           561 CALLS     4321 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.293        36.849        .75263E-04   -1.4644    
   2  Prefactor     .10000E-03    23.029        .97718E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6023        .13557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6015        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2126        .10909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .28782        38.122        .35761E-02   -1.5601    
   8  Prefactor     .10000E-03    7.8723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6728        2.3315        .10368E-03   -1.5381    
  11  Prefactor     .10000E-03    41.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.332        8.1704        .11408E-03   -1.5005    
  13  norm          .10000E-03    8.8748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7990        .12248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.218        22.805        .67535E-04   -1.4520    
  18  Prefactor     2.1981        7.0942        .27781E-03   -1.5411    
  19  norm          5.6639        18.177        .16880E-03   -1.5232    
  20  Prefactor     7.2395        5.3646        .71579E-03   -1.5170    
  21  Prefactor     .10000E-03    1.7622        .97289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.4842        7.4664        .15762E-03   -1.5199    
  23  Prefactor     .10000E-03    2.9234        .24756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.9166        10.250        .15017E-02   -1.5431    
  25  Prefactor     .10000E-03    13.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.6630        .11962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.3651        14.569        .18663E-02   -1.5474    
  28  Normalizat    1.1714        .22117        .22027E-03   -.87490    
  29  Prefactor     .83882        .21810        .25889E-03   -.98313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02629e-09
Minuit parameter uncertainties:
  1  36.8783
  2  0.000322595
  3  1.30308e-06
  4  3.79227e-06
  5  1.69049e-05
  6  5.27214e-07
  7  6.62809
  8  4.41076e-06
  9  5.79768e-06
  10  2.33154
  11  1.12894e-05
  12  8.17116
  13  6.53185e-06
  14  8.55545e-06
  15  1.88577e-05
  16  2.17094e-05
  17  22.8105
  18  7.0969
  19  18.195
  20  5.36495
  21  1.03961e-06
  22  7.46752
  23  3.5076e-06
  24  8.86671
  25  9.37909e-06
  26  1.02508e-06
  27  8.92147
  28  0.221343
  29  0.218322
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.233e+01  8.171e+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

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  8.388e-01  2.183e-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:  1.171e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.45e-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) = 5642.70674084
delta logL = 0.012001688895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5642.69493301
delta logL = 0.0238095194945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.751       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2521       1.0000          .0000       10.000    
     3 'Normalizat'    1.1625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84466       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=   5642.695     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      235 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.746        168.64        .30548E-02    .46862E-04
   2  Index         2.2520        6.1225        .11916        .10390E-03
   3  Normalizat    1.1626        .11339        .35885E-01    .52205E-05
   4  Prefactor     .84483        .74909E-01    .44296E-01    .14544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7461
  Index      = 2.25199
  Normalizat = 1.16259
  Prefactor  = 0.844833
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.695     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.746        11.380        .12219E-03   -1.5052    
   2  Index         2.2520        .69814        .60890E-02   -.58189    
   3  Normalizat    1.1626        .21400        .22099E-03   -.87767    
   4  Prefactor     .84483        .21377        .25808E-03   -.98096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77138e-12
Minuit parameter uncertainties:
  1  11.382
  2  0.70143
  3  0.214164
  4  0.213976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867675': 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) = 5642.69492895
delta logL = 0.0238135851041

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.075e+01  1.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.252e+00  7.014e-01  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:  8.448e-01  2.140e-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:  1.163e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 239.718 56.427
Photon Index (Free Index): 2.25 +/- 0.70
Photon Flux (Free Index): 4.71e-08 +/- 4.06e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.74e-05

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/867675/cmap_HighResolution_243216001_243475201_4FGL_J1558.8+5625_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.93e-05', photon_flux_error='2.74e-08', dlogl='2.38e-02', energy_flux='2.20e-05', photon_flux2='4.71e-08', job_status='DONE', time_completed='2021-09-12 22:41:40.225036', photon_index_error2='0.70', photon_index2='2.25', ts='4.99', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.17', time_epoch_completed='1631511700.23', return_code='0', job_id='867675', GAL2='0.84', EG2='1.16', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.06e-08', ts2='5.03', photon_index='2.12' WHERE bin_id='15' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:41:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 867675: <4FGL_J1558.8+5625_daily_bin15> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin15> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 22:25:21 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:25:40 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:25:40 2021
Terminated at Sun Sep 12 22:41:40 2021
Results reported at Sun Sep 12 22:41:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin15 239.718 56.4268 243216001 243475201 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 :                                   775.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            979 sec.

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

