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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin89
RA = 239.718, Dec = 56.4268
tmin = 262396801, tmax = 262656001
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='868783', job_status='RUN', time_executed='2021-09-12 22:32:47.003805', time_epoch_executed='1631511167.0' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868783

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868783/ft1_4FGL_J1558.8+5625_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868783/ft2_4FGL_J1558.8+5625_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868783/ft1_4FGL_J1558.8+5625_daily_bin89.fits outfile=/scratch/kocevski/868783/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin89.fits ra=239.718 dec=56.4268 rad=12.0 tmin=262396801.0 tmax=262656001.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.43
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/868783/ft2_4FGL_J1558.8+5625_daily_bin89.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/868783/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/868783/ft1_filtered_4FGL_J1558.8+5625_daily_bin89.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.51
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868783/ft1_filtered_4FGL_J1558.8+5625_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/868783/ft2_4FGL_J1558.8+5625_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/868783/ltcube_262396801_262656001_4FGL_J1558.8+5625_daily_bin89.fits outfile=/scratch/kocevski/868783/expmap_262396801_262656001_4FGL_J1558.8+5625_daily_bin89.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/868783/ltcube_262396801_262656001_4FGL_J1558.8+5625_daily_bin89.fits
.....................!
real 192.75
user 187.49
sys 4.34

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/868783/ft1_filtered_4FGL_J1558.8+5625_daily_bin89.fits scfile=/scratch/kocevski/868783/ft2_4FGL_J1558.8+5625_daily_bin89.fits outfile=/scratch/kocevski/868783/cmap_262396801_262656001_4FGL_J1558.8+5625_daily_bin89.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868783/ft1_filtered_4FGL_J1558.8+5625_daily_bin89.fits scfile=/scratch/kocevski/868783/ft2_4FGL_J1558.8+5625_daily_bin89.fits outfile=/scratch/kocevski/868783/cmap_HighResolution_262396801_262656001_4FGL_J1558.8+5625_daily_bin89.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.557       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      '    2.9798       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.670       1.0000         .10000E-03   10000.    
    10 'norm      '    13.019       1.0000         .10000E-03   10000.    
    11 'Prefactor '    96.657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.486       1.0000         .10000E-03   10000.    
    13 'norm      '    14.450       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.853       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1452       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7032       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.226       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.2194       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .88984       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6842       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .28950       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=   4688.050     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3658 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.558        51.836        .10292E-06    .11869E-05
   2  Prefactor     .10000E-03    7.2193       -.16966E-05** at limit **
   3  Prefactor     .10000E-03    47.291       -.22669E-05** at limit **
   4  norm          2.9799        2.1707        .14779E-06    .18180E-03
   5  Prefactor     3.6032        10.406        .36765E-05   -.76045E-03
   6  Prefactor     .10000E-03    5.0168        .58390E-06** at limit **
   7  Prefactor     .10000E-03    6.2563        .29614E-05** at limit **
   8  Prefactor     .10000E-03    7.3955       -.25042E-05** at limit **
   9  Prefactor     25.670        28.231        .16768E-08    .62040E-05
  10  norm          13.019        5.6456       -.18720E-06   -.13484E-04
  11  Prefactor     96.672        154.00        .83628E-05    .68570E-04
  12  Prefactor     22.488        19.222        .57884E-07    .78011E-05
  13  norm          14.451        15.562        .23999E-06   -.26243E-03
  14  Prefactor     .10000E-03    28.323       -.11198E-05** at limit **
  15  Prefactor     29.860        63.388        .58533E-05    .85974E-04
  16  Prefactor     .10000E-03    2.5340        .20856E-06** at limit **
  17  Prefactor     .10000E-03    8.7850        .25639E-05** at limit **
  18  Prefactor     .10000E-03    15.436       -.72685E-06** at limit **
  19  norm          .10000E-03    30.737        .62989E-05** at limit **
  20  Prefactor     1.5167        3.7326        .10575E-06   -.21237E-03
  21  Prefactor     7.1457        6.4407        .26249E-06   -.40386E-03
  22  norm          .10000E-03    5.3508       -.18466E-05** at limit **
  23  Prefactor     2.7033        2.4409        .15144E-07   -.58509E-04
  24  Prefactor     .10000E-03    2.8358       -.28682E-06** at limit **
  25  Prefactor     41.226        22.179       -.29611E-07    .10821E-04
  26  Prefactor     8.2218        9.4231        .61478E-06   -.48849E-03
  27  Prefactor     .87093        13.622       -.12081E-06   -.62464E-04
  28  Normalizat    1.6842        .24899       -.11158E-05    .68003E-04
  29  Prefactor     .28951        .22854        .27236E-06   -.31917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.5581
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.97987
  Prefactor  = 3.6032
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 25.6702
  norm       = 13.0189
  Prefactor  = 96.6722
  Prefactor  = 22.4878
  norm       = 14.4506
  Prefactor  = 0.0001
  Prefactor  = 29.8601
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 1.51668
  Prefactor  = 7.14567
  norm       = 0.0001
  Prefactor  = 2.70333
  Prefactor  = 0.0001
  Prefactor  = 41.2255
  Prefactor  = 8.22181
  Prefactor  = 0.870935
  Normalizat = 1.68422
  Prefactor  = 0.289506
 **********
 **   18 **HESSE 
 **********

 FCN=   4688.050     FROM HESSE     STATUS=OK           553 CALLS     4211 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.558        51.902        .61451E-04   -1.4402    
   2  Prefactor     .10000E-03    7.2520        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9799        2.1744        .83155E-04   -1.5363    
   5  Prefactor     3.6032        13.953        .10642E-02   -1.5328    
   6  Prefactor     .10000E-03    5.0305        .14983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3665        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.670        28.231        .79066E-04   -1.4694    
  10  norm          13.019        5.6487        .10046E-03   -1.4986    
  11  Prefactor     96.672        155.13        .40885E-04   -1.3738    
  12  Prefactor     22.488        19.294        .84469E-04   -1.4759    
  13  norm          14.451        15.745        .52683E-03   -1.4948    
  14  Prefactor     .10000E-03    28.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.860        63.492        .73329E-04   -1.4615    
  16  Prefactor     .10000E-03    2.5458        .10643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    31.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5167        3.7081        .20019E-03   -1.5462    
  21  Prefactor     7.1457        6.4969        .75033E-03   -1.5173    
  22  norm          .10000E-03    5.4041        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7033        2.4344        .98579E-04   -1.5379    
  24  Prefactor     .10000E-03    2.8377        .11262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     41.226        22.155        .62432E-04   -1.4423    
  26  Prefactor     8.2218        9.5909        .69919E-03   -1.5134    
  27  Prefactor     .87093        50.414        .46335E-02   -1.5521    
  28  Normalizat    1.6842        .26481        .20994E-03   -.72725    
  29  Prefactor     .28951        .23433        .43355E-03   -1.2288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19995e-08
Minuit parameter uncertainties:
  1  51.9567
  2  9.84611e-05
  3  0.000356806
  4  2.17441
  5  13.9658
  6  2.82123e-05
  7  0.000156208
  8  0.000150264
  9  28.2459
  10  5.64889
  11  155.785
  12  19.299
  13  15.7494
  14  0.000132542
  15  63.636
  16  5.06814e-06
  17  0.000161702
  18  0.000115667
  19  0.000698716
  20  3.70863
  21  6.49754
  22  9.08567e-05
  23  2.43451
  24  1.02622e-05
  25  22.1594
  26  9.59273
  27  13.2635
  28  0.265037
  29  0.235103
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  2.249e+01  1.930e+01  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:  2.895e-01  2.351e-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.684e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.17
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 7.54e-08 +/- 6.47e-08
Energy Flux (Fixed Index): 4.00e-05 +/- 3.44e-05

TS (Fixed Index): 3.17
Ra Dec: 239.718 56.427
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/868783/likelihoodResults_262396801_262656001_4FGL_J1558.8+5625_daily_bin89.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): 0
logL (Free Index) = 4687.8522949
delta logL = 0.197996968635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4687.84860611
delta logL = 0.201685761359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.068       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4150       1.0000          .0000       10.000    
     3 'Normalizat'    1.6608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30374       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=   4687.849     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      275 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.059        223.97        .24980E-02    .54792E-04
   2  Index         2.4143        2.9404        .10864        .11158E-03
   3  Normalizat    1.6610        .95961E-01    .47731E-01   -.36965E-05
   4  Prefactor     .30391        .79854E-01    .95589E-01    .46477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0586
  Index      = 2.4143
  Normalizat = 1.66095
  Prefactor  = 0.303907
 **********
 **   18 **HESSE 
 **********

 FCN=   4687.849     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.059        16.819        .99918E-04   -1.4906    
   2  Index         2.4143        .52809        .41439E-02   -.54351    
   3  Normalizat    1.6610        .25544        .21098E-03   -.73351    
   4  Prefactor     .30391        .23293        .42362E-03   -1.2203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49429e-12
Minuit parameter uncertainties:
  1  16.824
  2  0.529442
  3  0.255642
  4  0.233655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868783': 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) = 4687.84860045
delta logL = 0.201691417566

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.606e+01  1.682e+01  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.414e+00  5.294e-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:  3.039e-01  2.337e-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.661e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 239.718 56.427
Photon Index (Free Index): 2.41 +/- 0.53
Photon Flux (Free Index): 9.82e-08 +/- 6.77e-08
Energy Flux (Free Index): 3.16e-05 +/- 2.38e-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/868783/cmap_HighResolution_262396801_262656001_4FGL_J1558.8+5625_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='7.54e-08', energy_flux2='3.16e-05', photon_flux_error='6.47e-08', dlogl='2.02e-01', energy_flux='4.00e-05', photon_flux2='9.82e-08', job_status='DONE', time_completed='2021-09-12 22:45:47.509629', photon_index_error2='0.53', photon_index2='2.41', ts='3.17', fit_tolerance='1e-08', GAL='0.29', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='2.38e-05', EG='1.68', time_epoch_completed='1631511947.51', return_code='0', job_id='868783', GAL2='0.30', EG2='1.66', return_code2='0', energy_flux_error='3.44e-05', photon_flux_error2='6.77e-08', ts2='3.62', photon_index='2.12' WHERE bin_id='89' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:45:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 868783: <4FGL_J1558.8+5625_daily_bin89> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin89> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 12 22:30:25 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:30:38 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:30:38 2021
Terminated at Sun Sep 12 22:45:48 2021
Results reported at Sun Sep 12 22:45:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin89 239.718 56.4268 262396801 262656001 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 :                                   777.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            923 sec.

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

