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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin38
RA = 239.718, Dec = 56.4268
tmin = 249177601, tmax = 249436801
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='867715', job_status='RUN', time_executed='2021-09-12 22:28:03.398090', time_epoch_executed='1631510883.4' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867715/ft1_4FGL_J1558.8+5625_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867715/ft2_4FGL_J1558.8+5625_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867715/ft1_4FGL_J1558.8+5625_daily_bin38.fits outfile=/scratch/kocevski/867715/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin38.fits ra=239.718 dec=56.4268 rad=12.0 tmin=249177601.0 tmax=249436801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.44
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867715/ft1_filtered_4FGL_J1558.8+5625_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/867715/ft2_4FGL_J1558.8+5625_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/867715/ltcube_249177601_249436801_4FGL_J1558.8+5625_daily_bin38.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/867715/ft2_4FGL_J1558.8+5625_daily_bin38.fits
.....................!
real 15.30
user 14.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867715/ft1_filtered_4FGL_J1558.8+5625_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/867715/ft2_4FGL_J1558.8+5625_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/867715/ltcube_249177601_249436801_4FGL_J1558.8+5625_daily_bin38.fits outfile=/scratch/kocevski/867715/expmap_249177601_249436801_4FGL_J1558.8+5625_daily_bin38.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/867715/ltcube_249177601_249436801_4FGL_J1558.8+5625_daily_bin38.fits
.....................!
real 191.34
user 186.01
sys 4.75

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/867715/ft1_filtered_4FGL_J1558.8+5625_daily_bin38.fits scfile=/scratch/kocevski/867715/ft2_4FGL_J1558.8+5625_daily_bin38.fits outfile=/scratch/kocevski/867715/cmap_249177601_249436801_4FGL_J1558.8+5625_daily_bin38.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.794       1.0000         .10000E-03   10000.    
     4 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2465       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27773E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16254E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4200       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7906       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85216       1.0000         .10000E-03   10000.    
    22 'norm      '    8.2233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.172       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74012       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2020       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5692.903     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     3199 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    9.5810       -.40844E-06** at limit **
   2  Prefactor     .10000E-03    6.5653       -.31940E-06** at limit **
   3  Prefactor     36.759        6.3461       -.65631E-06   -.32788E-02
   4  norm          .10000E-03    1.6019        .43181E-08** at limit **
   5  Prefactor     1.2436        27.007        .38007E-05   -.16011E-03
   6  Prefactor     .10000E-03    5.1605        .96318E-06** at limit **
   7  Prefactor     .38160        52.698       -.61030E-05    .51632E-03
   8  Prefactor     5.9506        9.8780        .51510E-06   -.56165E-04
   9  Prefactor     .10002E-03    4.4924        .93341E-09** at limit **
  10  norm          3.7380        2.8407       -.54154E-08   -.10588E-05
  11  Prefactor     .11917E-03    138.52        .44535E-05** at limit **
  12  Prefactor     .10000E-03    5.0631       -.53210E-07** at limit **
  13  norm          13.382        1.4393        .50412E-07    .35717E-03
  14  Prefactor     .16310E-03    1200.5       -.58089E-04** at limit **
  15  Prefactor     .12974E-03    145.37       -.84714E-05** at limit **
  16  Prefactor     .10010E-03    7.5308       -.18942E-06** at limit **
  17  Prefactor     6.4009        11.777        .40255E-06   -.28016E-02
  18  Prefactor     .10000E-03    12.409        .41684E-06** at limit **
  19  norm          .10013E-03    7.1314       -.38924E-06** at limit **
  20  Prefactor     5.7913        4.3319       -.86765E-07    .27795E-04
  21  Prefactor     .84969        8.4058       -.86001E-06   -.99282E-04
  22  norm          8.2204        3.1743       -.13366E-06   -.40770E-02
  23  Prefactor     .10000E-03    .68011       -.68032E-07** at limit **
  24  Prefactor     .10000E-03    7.2033        .33559E-06** at limit **
  25  Prefactor     13.185        9.3099        .34286E-06    .82641E-02
  26  Prefactor     .10003E-03    4.5349        .80433E-08** at limit **
  27  Prefactor     .10004E-03    8.0816       -.11108E-06** at limit **
  28  Normalizat    .73998        .21286        .11921E-05    .52647E-04
  29  Prefactor     1.2018        .21415       -.59153E-06    .47198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 36.7585
  norm       = 0.0001
  Prefactor  = 1.24357
  Prefactor  = 0.0001
  Prefactor  = 0.381596
  Prefactor  = 5.95058
  Prefactor  = 0.000100025
  norm       = 3.73805
  Prefactor  = 0.000119174
  Prefactor  = 0.0001
  norm       = 13.3817
  Prefactor  = 0.000163097
  Prefactor  = 0.000129738
  Prefactor  = 0.000100096
  Prefactor  = 6.40092
  Prefactor  = 0.000100003
  norm       = 0.000100135
  Prefactor  = 5.79132
  Prefactor  = 0.849692
  norm       = 8.22045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1854
  Prefactor  = 0.000100027
  Prefactor  = 0.000100041
  Normalizat = 0.739983
  Prefactor  = 1.20184
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.903     FROM HESSE     STATUS=OK           637 CALLS     3836 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    11.496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.759        37.383        .16518E-02   -1.4495    
   4  norm          .10000E-03    1.1324        .30941E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2436        29.544        .10025E-01   -1.5485    
   6  Prefactor     .10000E-03    5.1514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38160        6.4240        .89466E-01   -1.5584    
   8  Prefactor     5.9506        10.255        .41196E-02   -1.5220    
   9  Prefactor     .10002E-03    9.7680        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7380        2.8511        .52214E-02   -1.5321    
  11  Prefactor     .11917E-03    175.51        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.382        7.7094        .27371E-02   -1.4976    
  14  Prefactor     .16310E-03    45.522        .13040       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12974E-03    206.06        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    8.7634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4009        22.531        .39601E-02   -1.5202    
  18  Prefactor     .10000E-03    4.9569        .53263E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10013E-03    10.517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7913        4.3691        .41726E-02   -1.5227    
  21  Prefactor     .84969        4.5621        .50151E-01   -1.5524    
  22  norm          8.2204        9.8310        .34951E-02   -1.5134    
  23  Prefactor     .10000E-03    .67719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.1008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.185        17.582        .27592E-02   -1.4982    
  26  Prefactor     .10003E-03    9.5410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10004E-03    8.5371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73998        .19002        .42824E-01   -1.0234    
  29  Prefactor     1.2018        .17990        .49823E-01   -.86275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6796e-06
Minuit parameter uncertainties:
  1  0.00150571
  2  2.38691e-05
  3  37.407
  4  6.53997e-08
  5  12.129
  6  5.57101e-05
  7  3.13136
  8  10.2582
  9  0.000982451
  10  2.85122
  11  0.116364
  12  3.07766e-06
  13  7.71
  14  0.107269
  15  0.157103
  16  0.00183872
  17  22.5609
  18  0.000253684
  19  0.0023805
  20  4.3693
  21  3.93796
  22  9.83297
  23  1.35097e-06
  24  3.47469e-05
  25  17.5885
  26  0.00101396
  27  0.00118656
  28  0.190185
  29  0.179995
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  3.078e-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:  1.202e+00  1.800e-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.400e-01  1.902e-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: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/867715/likelihoodResults_249177601_249436801_4FGL_J1558.8+5625_daily_bin38.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) = 5692.9038722
delta logL = -0.000940745641856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5692.90293147
delta logL = -1.22499841382e-08

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.1125       1.0000          .0000       10.000    
     3 'Normalizat'    .73999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2019       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=   5692.903     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5125        .90712E-02** at limit **
   2  Index         2.1096        6.7717        .50000        .45363E-05
   3  Normalizat    .73998        .34988E-02    .42822E-01    .16802E-05
   4  Prefactor     1.2018        .36451E-02    .49823E-01   -.11295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10961
  Normalizat = 0.739983
  Prefactor  = 1.20184
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.903     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.862        .16469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1096        5.2553        .50000       -.61637    
   3  Normalizat    .73998        .13079E-01    .26443E-03   -1.0234    
   4  Prefactor     1.2018        .13628E-01    .22026E-03   -.86275    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.51168e-08
Minuit parameter uncertainties:
  1  8.07407e-06
  2  230.223
  3  0.0130786
  4  0.0136283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867715': 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) = 5692.90293145
delta logL = 6.76027411828e-09

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  8.074e-06  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.110e+00  2.302e+02  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.202e+00  1.363e-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:  7.400e-01  1.308e-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/867715/cmap_HighResolution_249177601_249436801_4FGL_J1558.8+5625_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-12 22:42:00.863887', job_id='867715', GAL2='1.20', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631511720.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='6.76e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='38' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:42:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 867715: <4FGL_J1558.8+5625_daily_bin38> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin38> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 22:25:24 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:25:49 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:25:49 2021
Terminated at Sun Sep 12 22:42:01 2021
Results reported at Sun Sep 12 22:42:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin38 239.718 56.4268 249177601 249436801 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 :                                   836.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             286.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            997 sec.

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

