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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin356
RA = 239.718, Dec = 56.4268
tmin = 331603201, tmax = 331862401
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='869191', job_status='RUN', time_executed='2021-09-12 22:32:34.719046', time_epoch_executed='1631511154.72' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/869191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/869191/ft1_4FGL_J1558.8+5625_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/869191/ft2_4FGL_J1558.8+5625_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/869191/ft1_4FGL_J1558.8+5625_daily_bin356.fits outfile=/scratch/kocevski/869191/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin356.fits ra=239.718 dec=56.4268 rad=12.0 tmin=331603201.0 tmax=331862401.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.30
user 3.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/869191/ft1_filtered_4FGL_J1558.8+5625_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/869191/ft2_4FGL_J1558.8+5625_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/869191/ltcube_331603201_331862401_4FGL_J1558.8+5625_daily_bin356.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/869191/ft2_4FGL_J1558.8+5625_daily_bin356.fits
.....................!
real 13.81
user 13.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/869191/ft1_filtered_4FGL_J1558.8+5625_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/869191/ft2_4FGL_J1558.8+5625_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/869191/ltcube_331603201_331862401_4FGL_J1558.8+5625_daily_bin356.fits outfile=/scratch/kocevski/869191/expmap_331603201_331862401_4FGL_J1558.8+5625_daily_bin356.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/869191/ltcube_331603201_331862401_4FGL_J1558.8+5625_daily_bin356.fits
.....................!
real 192.11
user 186.81
sys 4.73

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/869191/ft1_filtered_4FGL_J1558.8+5625_daily_bin356.fits scfile=/scratch/kocevski/869191/ft2_4FGL_J1558.8+5625_daily_bin356.fits outfile=/scratch/kocevski/869191/cmap_331603201_331862401_4FGL_J1558.8+5625_daily_bin356.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.58
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/869191/ft1_filtered_4FGL_J1558.8+5625_daily_bin356.fits scfile=/scratch/kocevski/869191/ft2_4FGL_J1558.8+5625_daily_bin356.fits outfile=/scratch/kocevski/869191/cmap_HighResolution_331603201_331862401_4FGL_J1558.8+5625_daily_bin356.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .77178       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12107E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.189       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8453       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5007       1.0000         .10000E-03   10000.    
    22 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12145       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25072E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.282       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82928       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1129       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=   5767.218     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3788 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.660        18.570        .17060E-06    .87003E-05
   2  Prefactor     .10000E-03    4.0896       -.37975E-08** at limit **
   3  Prefactor     .10000E-03    21.025        .13672E-05** at limit **
   4  norm          .77181        .85613       -.62857E-07   -.65474E-03
   5  Prefactor     .10000E-03    17.506        .10173E-04** at limit **
   6  Prefactor     .10000E-03    3.0423       -.49080E-07** at limit **
   7  Prefactor     .10000E-03    9.9108        .21333E-06** at limit **
   8  Prefactor     .10000E-03    9.5648       -.21215E-06** at limit **
   9  Prefactor     .10000E-03    36.496       -.16500E-05** at limit **
  10  norm          3.7320        2.6917        .10466E-06    .21926E-03
  11  Prefactor     .10000E-03    109.09       -.26490E-05** at limit **
  12  Prefactor     10.600        7.7912       -.30279E-06   -.37427E-03
  13  norm          .10000E-03    9.2268        .29874E-06** at limit **
  14  Prefactor     .10000E-03    242.36        .60904E-06** at limit **
  15  Prefactor     .10000E-03    46.582        .24881E-05** at limit **
  16  Prefactor     .10000E-03    6.9369        .11214E-07** at limit **
  17  Prefactor     27.214        21.968        .28237E-06    .11017E-03
  18  Prefactor     8.8475        7.4472        .13584E-06    .41551E-04
  19  norm          .10000E-03    6.8329        .22614E-06** at limit **
  20  Prefactor     .10000E-03    1.9021       -.30529E-07** at limit **
  21  Prefactor     5.5011        5.1392       -.38571E-07    .50726E-04
  22  norm          .10000E-03    15.691        .44080E-06** at limit **
  23  Prefactor     .12381        1.2984        .12075E-06   -.70569E-04
  24  Prefactor     .10000E-03    7.1267       -.69666E-06** at limit **
  25  Prefactor     .10000E-03    6.2261       -.24525E-07** at limit **
  26  Prefactor     .10000E-03    4.7602       -.64545E-08** at limit **
  27  Prefactor     18.286        11.849       -.24591E-07   -.33098E-04
  28  Normalizat    .82917        .17166       -.44342E-06   -.51147E-03
  29  Prefactor     1.1127        .17332        .11569E-06   -.43704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.771813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.732
  Prefactor  = 0.000100001
  Prefactor  = 10.5995
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 27.2144
  Prefactor  = 8.84752
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50107
  norm       = 0.0001
  Prefactor  = 0.12381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2857
  Normalizat = 0.829173
  Prefactor  = 1.11273
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.218     FROM HESSE     STATUS=OK           547 CALLS     4335 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.660        18.566        .11258E-03   -1.4996    
   2  Prefactor     .10000E-03    4.0900        .14999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .77181        .84854        .72162E-04   -1.5532    
   5  Prefactor     .10000E-03    17.465        .34868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0477        .12936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7320        2.6926        .10249E-03   -1.5322    
  11  Prefactor     .10000E-03    109.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.600        7.7962        .12307E-03   -1.5057    
  13  norm          .10000E-03    9.4502        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    251.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.214        21.818        .76830E-04   -1.4664    
  18  Prefactor     8.8475        7.4598        .13477E-03   -1.5113    
  19  norm          .10000E-03    6.8404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9400        .10224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5011        5.1296        .16000E-03   -1.5239    
  22  norm          .10000E-03    16.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12381        7.7774        .16550E-02   -1.5638    
  24  Prefactor     .10000E-03    22.393        .38713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.2389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.7917        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.286        11.841        .93672E-04   -1.4852    
  28  Normalizat    .82917        .19822        .24553E-03   -.98996    
  29  Prefactor     1.1127        .20067        .22344E-03   -.89061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8141e-08
Minuit parameter uncertainties:
  1  18.5745
  2  2.9923e-07
  3  6.28569e-05
  4  0.848555
  5  0.000137432
  6  5.46336e-06
  7  2.23501e-05
  8  3.95393e-06
  9  3.73603e-05
  10  2.69273
  11  0.000586119
  12  7.79691
  13  1.05775e-05
  14  0.00196539
  15  0.000313071
  16  2.66302e-05
  17  21.8247
  18  7.46062
  19  9.10989e-06
  20  2.73046e-06
  21  5.13001
  22  0.00015386
  23  1.96204
  24  3.51055e-05
  25  8.31496e-07
  26  1.68534e-07
  27  11.8423
  28  0.198396
  29  0.200802
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.060e+01  7.797e+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:  1.113e+00  2.008e-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.292e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.56e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.39e-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) = 5767.11619426
delta logL = 0.102179698389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5767.10978909
delta logL = 0.108584868812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7826       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4452       1.0000          .0000       10.000    
     3 'Normalizat'    .80867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       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=   5767.110     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7812        10.161        .13569E-03    .35357E-04
   2  Index         2.4454        .83472        .57756E-02    .54190E-03
   3  Normalizat    .80864        .20006        .24828E-03   -.33482E-03
   4  Prefactor     1.1255        .20327        .22232E-03   -.56887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.78124
  Index      = 2.44539
  Normalizat = 0.808637
  Prefactor  = 1.12546
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.110     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7812        8.9244        .54276E-05   -1.5150    
   2  Index         2.4454        .73325        .11551E-02   -.53626    
   3  Normalizat    .80864        .19883        .49656E-04   -.99749    
   4  Prefactor     1.1255        .20274        .44465E-04   -.88657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72602e-10
Minuit parameter uncertainties:
  1  8.92591
  2  0.736856
  3  0.199006
  4  0.202875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/869191': 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) = 5767.10978902
delta logL = 0.108584939505

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  7.781e+00  8.926e+00  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.445e+00  7.369e-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:  1.125e+00  2.029e-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.086e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 239.718 56.427
Photon Index (Free Index): 2.45 +/- 0.74
Photon Flux (Free Index): 5.08e-08 +/- 4.64e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.14e-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/869191/cmap_HighResolution_331603201_331862401_4FGL_J1558.8+5625_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.56e-08', energy_flux2='1.57e-05', photon_flux_error='2.61e-08', dlogl='1.09e-01', energy_flux='1.89e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-12 22:46:02.025874', photon_index_error2='0.74', photon_index2='2.45', ts='4.27', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.83', time_epoch_completed='1631511962.03', return_code='0', job_id='869191', GAL2='1.13', EG2='0.81', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.64e-08', ts2='4.50', photon_index='2.12' WHERE bin_id='356' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:46:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 869191: <4FGL_J1558.8+5625_daily_bin356> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin356> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 12 22:30:59 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:32:20 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:32:20 2021
Terminated at Sun Sep 12 22:46:02 2021
Results reported at Sun Sep 12 22:46:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin356 239.718 56.4268 331603201 331862401 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 :                                   801.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            903 sec.

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

