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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin480
RA = 239.718, Dec = 56.4268
tmin = 363744001, tmax = 364003201
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='870448', job_status='RUN', time_executed='2021-09-12 22:36:36.999689', time_epoch_executed='1631511397.0' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/870448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/870448/ft1_4FGL_J1558.8+5625_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/870448/ft2_4FGL_J1558.8+5625_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/870448/ft1_4FGL_J1558.8+5625_daily_bin480.fits outfile=/scratch/kocevski/870448/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin480.fits ra=239.718 dec=56.4268 rad=12.0 tmin=363744001.0 tmax=364003201.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.37
user 3.13
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/870448/ft2_4FGL_J1558.8+5625_daily_bin480.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/870448/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/870448/ft1_filtered_4FGL_J1558.8+5625_daily_bin480.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/870448/ft1_filtered_4FGL_J1558.8+5625_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/870448/ft2_4FGL_J1558.8+5625_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/870448/ltcube_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.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/870448/ft2_4FGL_J1558.8+5625_daily_bin480.fits
.....................!
real 13.62
user 13.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/870448/ft1_filtered_4FGL_J1558.8+5625_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/870448/ft2_4FGL_J1558.8+5625_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/870448/ltcube_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.fits outfile=/scratch/kocevski/870448/expmap_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.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/870448/ltcube_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.fits
.....................!
real 191.06
user 186.03
sys 4.53

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/870448/ft1_filtered_4FGL_J1558.8+5625_daily_bin480.fits scfile=/scratch/kocevski/870448/ft2_4FGL_J1558.8+5625_daily_bin480.fits outfile=/scratch/kocevski/870448/cmap_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/870448/ft1_filtered_4FGL_J1558.8+5625_daily_bin480.fits scfile=/scratch/kocevski/870448/ft2_4FGL_J1558.8+5625_daily_bin480.fits outfile=/scratch/kocevski/870448/cmap_HighResolution_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16961E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.180       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.085       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5687       1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4912       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6728       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31540E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11320       1.0000         .10000E-03   10000.    
    19 'norm      '    16.322       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9956       1.0000         .10000E-03   10000.    
    22 'norm      '    17.576       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .88266E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2445       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.631       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77944       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0428       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=   5473.682     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3727 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.345        .40040E-06** at limit **
   2  Prefactor     .10000E-03    12.839       -.18390E-06** at limit **
   3  Prefactor     18.179        21.889        .51985E-07   -.16492E-04
   4  norm          1.1930        1.5339        .34310E-07   -.75630E-04
   5  Prefactor     .10000E-03    3.9168       -.31379E-06** at limit **
   6  Prefactor     .10000E-03    3.4794        .11508E-05** at limit **
   7  Prefactor     .10000E-03    3.3597       -.53618E-06** at limit **
   8  Prefactor     .10000E-03    4.8770       -.45869E-06** at limit **
   9  Prefactor     28.087        22.595       -.69681E-06    .33285E-05
  10  norm          1.5687        1.6203       -.37228E-06   -.20934E-03
  11  Prefactor     70.506        83.120        .25574E-04    .18620E-04
  12  Prefactor     2.4922        5.0174       -.13038E-05   -.12330E-03
  13  norm          1.6726        1.6748        .38596E-06   -.21293E-02
  14  Prefactor     1.2942        203.99        .67647E-05   -.12621E-04
  15  Prefactor     .10000E-03    238.41       -.25044E-04** at limit **
  16  Prefactor     .10000E-03    3.7455        .17841E-05** at limit **
  17  Prefactor     .10000E-03    64.364        .43963E-05** at limit **
  18  Prefactor     .12598        4.1329        .12888E-05   -.40695E-03
  19  norm          16.303        27.803       -.42405E-05   -.11841E-03
  20  Prefactor     .10000E-03    1.4925        .12534E-06** at limit **
  21  Prefactor     5.9967        5.8184        .15597E-05   -.57546E-05
  22  norm          17.579        10.556       -.39522E-05   -.24830E-04
  23  Prefactor     .10000E-03    .99517        .26458E-07** at limit **
  24  Prefactor     .10005E-03    8.4237       -.61453E-06** at limit **
  25  Prefactor     1.2415        58.597       -.40379E-05    .99481E-05
  26  Prefactor     15.633        10.834       -.14127E-05    .53639E-04
  27  Prefactor     .10000E-03    3.6012       -.16972E-05** at limit **
  28  Normalizat    .77931        .16855       -.14160E-05   -.59077E-04
  29  Prefactor     1.0427        .17453        .13942E-05   -.17083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 18.1793
  norm       = 1.19304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0867
  norm       = 1.56872
  Prefactor  = 70.5055
  Prefactor  = 2.49216
  norm       = 1.67265
  Prefactor  = 1.2942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.125975
  norm       = 16.303
  Prefactor  = 0.0001
  Prefactor  = 5.99667
  norm       = 17.5788
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 1.24153
  Prefactor  = 15.6335
  Prefactor  = 0.0001
  Normalizat = 0.779306
  Prefactor  = 1.04271
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.682     FROM HESSE     STATUS=OK           565 CALLS     4292 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.426        .87577E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.179        21.767        .93933E-04   -1.4855    
   4  norm          1.1930        1.4949        .95529E-04   -1.5490    
   5  Prefactor     .10000E-03    3.9448        .14297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4884        .13475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3899        .13238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8876        .15957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.087        22.593        .75597E-04   -1.4648    
  10  norm          1.5687        1.6283        .92761E-04   -1.5457    
  11  Prefactor     70.506        83.248        .47817E-04   -1.4027    
  12  Prefactor     2.4922        5.2060        .22532E-03   -1.5392    
  13  norm          1.6726        7.4207        .16294E-02   -1.5449    
  14  Prefactor     1.2942        229.49        .39078E-03   -1.5480    
  15  Prefactor     .10000E-03    241.01        .21369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7748        .13975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    65.941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12598        84.469        .26673E-02   -1.5637    
  19  norm          16.303        28.438        .99136E-04   -1.4900    
  20  Prefactor     .10000E-03    1.5023        .88253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9967        5.8043        .16398E-03   -1.5218    
  22  norm          17.579        10.547        .95535E-04   -1.4869    
  23  Prefactor     .10000E-03    1.0069        .72045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    50.798        .40981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2415        58.458        .40153E-03   -1.5485    
  26  Prefactor     15.633        10.745        .10130E-03   -1.4917    
  27  Prefactor     .10000E-03    3.5998        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77931        .19760        .24070E-03   -1.0084    
  29  Prefactor     1.0427        .20373        .22126E-03   -.91319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78817e-08
Minuit parameter uncertainties:
  1  4.04964e-07
  2  0.00033351
  3  21.776
  4  1.49493
  5  3.28161e-08
  6  4.53787e-07
  7  2.0846e-06
  8  1.04652e-05
  9  22.6001
  10  1.62838
  11  83.3858
  12  5.20698
  13  7.04744
  14  34.6022
  15  0.000140641
  16  3.23216e-06
  17  0.000124329
  18  6.53078
  19  28.4611
  20  3.29805e-07
  21  5.80485
  22  10.5477
  23  1.30156e-06
  24  0.00332378
  25  17.0555
  26  10.7466
  27  7.26584e-06
  28  0.197777
  29  0.203877
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  2.492e+00  5.207e+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.043e+00  2.039e-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:  7.793e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/870448/likelihoodResults_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.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) = 5473.671601
delta logL = 0.0104127398463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5473.66768286
delta logL = 0.014330882248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0287       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3013       1.0000          .0000       10.000    
     3 'Normalizat'    .77769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   5473.668     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0329        124.13        .72616E-02    .40630E-03
   2  Index         2.2996        6.1497        .24302        .33675E-04
   3  Normalizat    .77779        .37284E-01    .43319E-01    .35388E-04
   4  Prefactor     1.0435        .37604E-01    .40301E-01   -.24496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03287
  Index      = 2.2996
  Normalizat = 0.777791
  Prefactor  = 1.04355
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.668     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0329        5.5741        .19604E-03   -1.5423    
   2  Index         2.2996        1.2201        .88328E-02   -.57053    
   3  Normalizat    .77779        .18853        .24092E-03   -1.0090    
   4  Prefactor     1.0435        .19860        .22118E-03   -.91292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13295e-10
Minuit parameter uncertainties:
  1  5.57555
  2  1.23791
  3  0.188691
  4  0.198744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/870448': 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) = 5473.66768136
delta logL = 0.0143323799502

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  1.044e+00  1.987e-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:  7.778e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
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/870448/cmap_HighResolution_363744001_364003201_4FGL_J1558.8+5625_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-12 22:51:17.185272', job_id='870448', GAL2='1.04', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631512277.19', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.43e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='480' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 870448: <4FGL_J1558.8+5625_daily_bin480> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin480> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 22:35:24 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:36:19 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:36:19 2021
Terminated at Sun Sep 12 22:51:17 2021
Results reported at Sun Sep 12 22:51:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin480 239.718 56.4268 363744001 364003201 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 :                                   875.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            953 sec.

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

