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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin170
RA = 239.718, Dec = 56.4268
tmin = 283392001, tmax = 283651201
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='868921', job_status='RUN', time_executed='2021-09-12 22:31:16.946846', time_epoch_executed='1631511076.95' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868921

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868921/ft1_4FGL_J1558.8+5625_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868921/ft2_4FGL_J1558.8+5625_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868921/ft1_4FGL_J1558.8+5625_daily_bin170.fits outfile=/scratch/kocevski/868921/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin170.fits ra=239.718 dec=56.4268 rad=12.0 tmin=283392001.0 tmax=283651201.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.77
user 3.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/868921/ft2_4FGL_J1558.8+5625_daily_bin170.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/868921/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/868921/ft1_filtered_4FGL_J1558.8+5625_daily_bin170.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868921/ft1_filtered_4FGL_J1558.8+5625_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/868921/ft2_4FGL_J1558.8+5625_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/868921/ltcube_283392001_283651201_4FGL_J1558.8+5625_daily_bin170.fits outfile=/scratch/kocevski/868921/expmap_283392001_283651201_4FGL_J1558.8+5625_daily_bin170.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/868921/ltcube_283392001_283651201_4FGL_J1558.8+5625_daily_bin170.fits
.....................!
real 191.41
user 185.94
sys 4.28

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/868921/ft1_filtered_4FGL_J1558.8+5625_daily_bin170.fits scfile=/scratch/kocevski/868921/ft2_4FGL_J1558.8+5625_daily_bin170.fits outfile=/scratch/kocevski/868921/cmap_283392001_283651201_4FGL_J1558.8+5625_daily_bin170.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868921/ft1_filtered_4FGL_J1558.8+5625_daily_bin170.fits scfile=/scratch/kocevski/868921/ft2_4FGL_J1558.8+5625_daily_bin170.fits outfile=/scratch/kocevski/868921/cmap_HighResolution_283392001_283651201_4FGL_J1558.8+5625_daily_bin170.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=239.718 yref=56.4268 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.572       1.0000         .10000E-03   10000.    
     4 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.444       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    98.797       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.464       1.0000         .10000E-03   10000.    
    13 'norm      '    14.124       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12463E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.8454       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6879       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.910       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0648       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0484       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=   7514.715     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3667 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.894        .61288E-05** at limit **
   2  Prefactor     11.218        14.323       -.85782E-06   -.33480E-03
   3  Prefactor     25.573        25.074        .11805E-05    .12926E-03
   4  norm          .10000E-03    .71030       -.23383E-06** at limit **
   5  Prefactor     .10000E-03    9.5935        .59589E-05** at limit **
   6  Prefactor     .10000E-03    6.6648       -.44038E-05** at limit **
   7  Prefactor     .10000E-03    2.8891        .11423E-06** at limit **
   8  Prefactor     .10000E-03    11.598       -.78625E-05** at limit **
   9  Prefactor     17.443        23.353       -.25555E-06    .65090E-04
  10  norm          7.3506        3.1742        .42140E-06    .44478E-04
  11  Prefactor     98.777        82.640       -.18423E-04    .14011E-04
  12  Prefactor     20.464        9.7059        .12803E-06   -.32109E-04
  13  norm          14.123        8.0691       -.63774E-06   -.12777E-02
  14  Prefactor     .10000E-03    24.322        .31073E-05** at limit **
  15  Prefactor     .10000E-03    53.408       -.76703E-05** at limit **
  16  Prefactor     .10000E-03    3.7547       -.29864E-05** at limit **
  17  Prefactor     22.383        27.649       -.79532E-05    .11053E-03
  18  Prefactor     .10000E-03    10.227        .25943E-05** at limit **
  19  norm          9.8398        25.072       -.59302E-05   -.62482E-04
  20  Prefactor     7.9609        4.5839       -.53700E-06   -.29129E-02
  21  Prefactor     5.6873        5.6693       -.30737E-06   -.24662E-03
  22  norm          .10000E-03    3.0833       -.86941E-06** at limit **
  23  Prefactor     .10000E-03    1.3709        .65861E-07** at limit **
  24  Prefactor     .10000E-03    5.6495        .25446E-05** at limit **
  25  Prefactor     16.909        16.468       -.79951E-06   -.24450E-04
  26  Prefactor     .10000E-03    1.5928        .17438E-07** at limit **
  27  Prefactor     .10000E-03    3.5603        .35264E-05** at limit **
  28  Normalizat    1.0650        .16434        .26345E-05   -.12743E-03
  29  Prefactor     1.0482        .16227        .33794E-06    .95203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.2179
  Prefactor  = 25.5735
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4434
  norm       = 7.35056
  Prefactor  = 98.7768
  Prefactor  = 20.4636
  norm       = 14.1234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3834
  Prefactor  = 0.0001
  norm       = 9.83981
  Prefactor  = 7.96091
  Prefactor  = 5.68726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06501
  Prefactor  = 1.04819
 **********
 **   18 **HESSE 
 **********

 FCN=   7514.715     FROM HESSE     STATUS=OK           549 CALLS     4216 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.218        14.367        .59804E-03   -1.5038    
   3  Prefactor     25.573        24.631        .79217E-04   -1.4696    
   4  norm          .10000E-03    1.0914        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9097        .14384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.443        23.343        .95895E-04   -1.4872    
  10  norm          7.3506        3.1737        .95754E-04   -1.5166    
  11  Prefactor     98.777        82.175        .40444E-04   -1.3717    
  12  Prefactor     20.464        9.7197        .88541E-04   -1.4803    
  13  norm          14.123        8.1441        .53289E-03   -1.4956    
  14  Prefactor     .10000E-03    24.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7139        .16246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.383        27.239        .84644E-04   -1.4761    
  18  Prefactor     .10000E-03    10.574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.8398        25.037        .12771E-03   -1.5080    
  20  Prefactor     7.9609        4.6768        .68957E-03   -1.5144    
  21  Prefactor     5.6873        5.6687        .16843E-03   -1.5231    
  22  norm          .10000E-03    3.1026        .14864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3884        .99056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.6641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.909        16.469        .97396E-04   -1.4885    
  26  Prefactor     .10000E-03    1.5950        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.5587        .15947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0650        .19606        .25148E-03   -.90883    
  29  Prefactor     1.0482        .19365        .25749E-03   -.91140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89916e-09
Minuit parameter uncertainties:
  1  0.000216289
  2  14.3712
  3  24.6411
  4  1.83551e-05
  5  9.0742e-05
  6  2.32728e-05
  7  1.58278e-05
  8  2.3526e-05
  9  23.3551
  10  3.17373
  11  82.2694
  12  9.72045
  13  8.1447
  14  1.09903e-05
  15  7.11204e-05
  16  8.41389e-05
  17  27.2544
  18  9.87489e-05
  19  25.0641
  20  4.67704
  21  5.66926
  22  3.0027e-06
  23  2.29678e-06
  24  1.00185e-06
  25  16.4733
  26  1.4863e-06
  27  5.87697e-06
  28  0.196192
  29  0.193782
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  2.046e+01  9.720e+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.048e+00  1.938e-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.065e+00  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.15
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.86e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 3.64e-05 +/- 1.73e-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) = 7514.29830222
delta logL = 0.416539252837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7514.29805648
delta logL = 0.4167849931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.980       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8547       1.0000          .0000       10.000    
     3 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0408       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=   7514.298     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      273 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.959        267.88        .19282E-02   -.74368E-04
   2  Index         1.8541        2.8914        .12316       -.41960E-04
   3  Normalizat    1.0769        .12739        .56607E-01   -.16605E-03
   4  Prefactor     1.0408        .10886        .58408E-01   -.18290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9586
  Index      = 1.85413
  Normalizat = 1.07687
  Prefactor  = 1.04078
 **********
 **   18 **HESSE 
 **********

 FCN=   7514.298     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.959        13.220        .77126E-04   -1.4669    
   2  Index         1.8541        .27876        .49252E-02   -.68049    
   3  Normalizat    1.0769        .18919        .25032E-03   -.90498    
   4  Prefactor     1.0408        .19282        .25828E-03   -.91382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19784e-11
Minuit parameter uncertainties:
  1  13.2212
  2  0.278999
  3  0.189306
  4  0.192946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868921': 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) = 7514.2980505
delta logL = 0.416790979698

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  2.696e+01  1.322e+01  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  1.854e+00  2.790e-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.041e+00  1.929e-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.077e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.09
Ra Dec: 239.718 56.427
Photon Index (Free Index): 1.85 +/- 0.28
Photon Flux (Free Index): 5.67e-08 +/- 2.90e-08
Energy Flux (Free Index): 5.78e-05 +/- 4.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/868921/cmap_HighResolution_283392001_283651201_4FGL_J1558.8+5625_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.86e-08', energy_flux2='5.78e-05', photon_flux_error='3.26e-08', dlogl='4.17e-01', energy_flux='3.64e-05', photon_flux2='5.67e-08', job_status='DONE', time_completed='2021-09-12 22:46:47.893800', photon_index_error2='0.28', photon_index2='1.85', ts='11.15', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='4.08e-05', EG='1.07', time_epoch_completed='1631512007.89', return_code='0', job_id='868921', GAL2='1.04', EG2='1.08', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='2.90e-08', ts2='12.09', photon_index='2.12' WHERE bin_id='170' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 868921: <4FGL_J1558.8+5625_daily_bin170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin170 239.718 56.4268 283392001 283651201 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 :                                   926.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            973 sec.

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

