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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin692
RA = 239.718, Dec = 56.4268
tmin = 418694401, tmax = 418953601
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='871989', job_status='RUN', time_executed='2021-09-12 22:40:55.804200', time_epoch_executed='1631511655.8' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/871989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/871989/ft1_4FGL_J1558.8+5625_daily_bin692.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/871989/ft2_4FGL_J1558.8+5625_daily_bin692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/871989/ft1_4FGL_J1558.8+5625_daily_bin692.fits outfile=/scratch/kocevski/871989/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin692.fits ra=239.718 dec=56.4268 rad=12.0 tmin=418694401.0 tmax=418953601.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 5.24
user 4.94
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/871989/ft2_4FGL_J1558.8+5625_daily_bin692.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/871989/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin692.fits evtable="EVENTS" outfile="/scratch/kocevski/871989/ft1_filtered_4FGL_J1558.8+5625_daily_bin692.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/871989/ft1_filtered_4FGL_J1558.8+5625_daily_bin692.fits" evtable="EVENTS" scfile=/scratch/kocevski/871989/ft2_4FGL_J1558.8+5625_daily_bin692.fits sctable="SC_DATA" outfile=/scratch/kocevski/871989/ltcube_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.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/871989/ft2_4FGL_J1558.8+5625_daily_bin692.fits
.....................!
real 14.05
user 13.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/871989/ft1_filtered_4FGL_J1558.8+5625_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/871989/ft2_4FGL_J1558.8+5625_daily_bin692.fits sctable="SC_DATA" expcube=/scratch/kocevski/871989/ltcube_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.fits outfile=/scratch/kocevski/871989/expmap_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.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/871989/ltcube_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.fits
.....................!
real 193.84
user 187.01
sys 5.31

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/871989/ft1_filtered_4FGL_J1558.8+5625_daily_bin692.fits scfile=/scratch/kocevski/871989/ft2_4FGL_J1558.8+5625_daily_bin692.fits outfile=/scratch/kocevski/871989/cmap_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/871989/ft1_filtered_4FGL_J1558.8+5625_daily_bin692.fits scfile=/scratch/kocevski/871989/ft2_4FGL_J1558.8+5625_daily_bin692.fits outfile=/scratch/kocevski/871989/cmap_HighResolution_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6328       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.487       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6762       1.0000         .10000E-03   10000.    
    11 'Prefactor '    116.57       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.9158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    152.09       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.361       1.0000         .10000E-03   10000.    
    22 'norm      '    .11720E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17696E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.735       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.871       1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.324       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86728       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63825       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=   3497.360     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3643 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.214        .73696E-07** at limit **
   2  Prefactor     .10000E-03    5.6214        .51562E-07** at limit **
   3  Prefactor     .10000E-03    46.124        .40393E-06** at limit **
   4  norm          2.6320        2.4216       -.16696E-06   -.12048E-03
   5  Prefactor     .10000E-03    3.2641        .32671E-07** at limit **
   6  Prefactor     1.0971        18.838        .12744E-04   -.27194E-03
   7  Prefactor     10.196        8.1073        .12413E-06   -.39665E-04
   8  Prefactor     26.434        18.183        .14489E-06    .94107E-06
   9  Prefactor     40.488        30.833        .39238E-07    .21452E-05
  10  norm          5.6763        3.7137        .67471E-07    .56055E-04
  11  Prefactor     116.58        105.46        .56384E-06    .20568E-04
  12  Prefactor     .10000E-03    4.9695        .39611E-07** at limit **
  13  norm          9.9159        7.7148        .91420E-07    .50230E-05
  14  Prefactor     .10000E-03    13.790        .23011E-07** at limit **
  15  Prefactor     152.08        108.42        .65904E-07   -.54164E-04
  16  Prefactor     .10000E-03    3.6339       -.16316E-06** at limit **
  17  Prefactor     .10000E-03    19.861       -.12443E-06** at limit **
  18  Prefactor     .10000E-03    3.6510       -.48954E-06** at limit **
  19  norm          .10000E-03    15.110       -.79432E-07** at limit **
  20  Prefactor     .10000E-03    2.2528       -.24027E-07** at limit **
  21  Prefactor     27.363        14.204       -.28562E-07   -.13435E-03
  22  norm          .10001E-03    10.808       -.19016E-05** at limit **
  23  Prefactor     .10001E-03    5.3578       -.38756E-05** at limit **
  24  Prefactor     26.732        23.575       -.39553E-06   -.19432E-03
  25  Prefactor     22.844        38.153        .15662E-05    .10415E-03
  26  Prefactor     52.334        34.606        .13559E-06    .15947E-03
  27  Prefactor     .10000E-03    13.141       -.37279E-06** at limit **
  28  Normalizat    .86713        .21277       -.14087E-05   -.35253E-04
  29  Prefactor     .63841        .20388        .22339E-06    .11825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63204
  Prefactor  = 0.0001
  Prefactor  = 1.09712
  Prefactor  = 10.1963
  Prefactor  = 26.4342
  Prefactor  = 40.4878
  norm       = 5.6763
  Prefactor  = 116.58
  Prefactor  = 0.0001
  norm       = 9.91591
  Prefactor  = 0.0001
  Prefactor  = 152.082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3631
  norm       = 0.000100006
  Prefactor  = 0.000100014
  Prefactor  = 26.7316
  Prefactor  = 22.8443
  Prefactor  = 52.3341
  Prefactor  = 0.0001
  Normalizat = 0.86713
  Prefactor  = 0.638409
 **********
 **   18 **HESSE 
 **********

 FCN=   3497.360     FROM HESSE     STATUS=OK           543 CALLS     4186 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6245        .13695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6320        2.4177        .83452E-04   -1.5383    
   5  Prefactor     .10000E-03    3.2670        .10432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0971        21.335        .22599E-02   -1.5498    
   7  Prefactor     10.196        8.1445        .12548E-03   -1.5069    
   8  Prefactor     26.434        18.191        .77917E-04   -1.4679    
   9  Prefactor     40.488        30.842        .62996E-04   -1.4435    
  10  norm          5.6763        3.7102        .85946E-04   -1.5231    
  11  Prefactor     116.58        105.81        .37266E-04   -1.3544    
  12  Prefactor     .10000E-03    4.9930        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.9159        7.7155        .12725E-03   -1.5078    
  14  Prefactor     .10000E-03    13.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     152.08        108.60        .16342E-03   -1.3235    
  16  Prefactor     .10000E-03    3.6422        .11012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6793        .11055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2571        .86681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.363        14.240        .76588E-04   -1.4661    
  22  norm          .10001E-03    11.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    10.079        .24817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.732        23.321        .77478E-04   -1.4673    
  25  Prefactor     22.844        38.228        .83757E-04   -1.4752    
  26  Prefactor     52.334        34.575        .55446E-04   -1.4260    
  27  Prefactor     .10000E-03    13.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86713        .24883        .22335E-03   -.97625    
  29  Prefactor     .63841        .23822        .26025E-03   -1.0599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04487e-09
Minuit parameter uncertainties:
  1  1.04776e-05
  2  9.78604e-06
  3  0.000219305
  4  2.41777
  5  4.87684e-06
  6  9.67958
  7  8.14537
  8  18.1952
  9  30.8546
  10  3.71033
  11  105.981
  12  8.86374e-06
  13  7.71628
  14  5.19844e-06
  15  108.739
  16  1.6929e-05
  17  2.30696e-05
  18  8.42455e-05
  19  5.43872e-05
  20  2.86126e-06
  21  14.2413
  22  0.000502039
  23  0.000762397
  24  23.329
  25  38.269
  26  34.5885
  27  9.88757e-05
  28  0.249161
  29  0.238598
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  8.864e-06  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:  6.384e-01  2.386e-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:  8.671e-01  2.492e-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: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/871989/likelihoodResults_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.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) = 3497.36140652
delta logL = -0.00095070226007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3497.36045581
delta logL = 9.19771991903e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1089       1.0000          .0000       10.000    
     3 'Normalizat'    .86714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63841       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3497.360     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    145.53        .12887E-02** at limit **
   2  Index         2.0476        6.8648        .50000        .83210E-05
   3  Normalizat    .86713        .26759E-01    .22335E-03   -.36904E-05
   4  Prefactor     .63841        .27237E-01    .26024E-03   -.11795E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100562
  Index      = 2.04765
  Normalizat = 0.867133
  Prefactor  = 0.638405
 **********
 **   18 **HESSE 
 **********

 FCN=   3497.360     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10056E-03    665.25        .25774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0476        6.3059        .50000       -.63164    
   3  Normalizat    .86713        .69698E-01    .89338E-05   -.97625    
   4  Prefactor     .63841        .70371E-01    .10410E-04   -1.0599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.96357e-08
Minuit parameter uncertainties:
  1  0.0391217
  2  1962.15
  3  0.0697051
  4  0.0703804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/871989': 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): 102
logL (Free Index) = 3497.36045572
delta logL = 1.06188053905e-07

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.006e-04  3.912e-02  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.048e+00  1.962e+03  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:  6.384e-01  7.038e-02  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:  8.671e-01  6.971e-02  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/871989/cmap_HighResolution_418694401_418953601_4FGL_J1558.8+5625_daily_bin692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-12 22:52:29.447260', job_id='871989', GAL2='0.64', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631512349.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='692' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:52:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 871989: <4FGL_J1558.8+5625_daily_bin692> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin692 239.718 56.4268 418694401 418953601 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 :                                   689.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            734 sec.

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

