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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin56
RA = 239.718, Dec = 56.4268
tmin = 253843201, tmax = 254102401
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='868730', job_status='RUN', time_executed='2021-09-12 22:30:32.091085', time_epoch_executed='1631511032.09' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868730/ft1_4FGL_J1558.8+5625_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868730/ft2_4FGL_J1558.8+5625_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868730/ft1_4FGL_J1558.8+5625_daily_bin56.fits outfile=/scratch/kocevski/868730/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin56.fits ra=239.718 dec=56.4268 rad=12.0 tmin=253843201.0 tmax=254102401.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.50
user 1.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868730/ft1_filtered_4FGL_J1558.8+5625_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/868730/ft2_4FGL_J1558.8+5625_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/868730/ltcube_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.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/868730/ft2_4FGL_J1558.8+5625_daily_bin56.fits
.....................!
real 15.37
user 15.02
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868730/ft1_filtered_4FGL_J1558.8+5625_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/868730/ft2_4FGL_J1558.8+5625_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/868730/ltcube_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.fits outfile=/scratch/kocevski/868730/expmap_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.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/868730/ltcube_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.fits
.....................!
real 192.17
user 186.67
sys 5.05

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/868730/ft1_filtered_4FGL_J1558.8+5625_daily_bin56.fits scfile=/scratch/kocevski/868730/ft2_4FGL_J1558.8+5625_daily_bin56.fits outfile=/scratch/kocevski/868730/cmap_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868730/ft1_filtered_4FGL_J1558.8+5625_daily_bin56.fits scfile=/scratch/kocevski/868730/ft2_4FGL_J1558.8+5625_daily_bin56.fits outfile=/scratch/kocevski/868730/cmap_HighResolution_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.724       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13870E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.548       1.0000         .10000E-03   10000.    
    10 'norm      '    11.856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10121E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5404       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66559E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.443       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1854       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0688       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1184       1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.256       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.360       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3625       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .54202       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=   6148.598     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     3680 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.946        2.7705        .95313E-07   -.95204E-03
   2  Prefactor     31.840        3.9810        .11347E-06    .11406E-02
   3  Prefactor     18.713        9.0852        .34167E-06   -.83947E-03
   4  norm          .10000E-03    .66699        .34657E-07** at limit **
   5  Prefactor     23.491        2.8534        .80950E-07    .54879E-02
   6  Prefactor     .10000E-03    33.157       -.19309E-05** at limit **
   7  Prefactor     .10000E-03    13.829       -.10053E-05** at limit **
   8  Prefactor     11.426        8.1749        .37757E-06    .36998E-02
   9  Prefactor     14.545        2.3830        .81830E-07    .11815E-02
  10  norm          11.855        4.0748        .23819E-06    .52779E-03
  11  Prefactor     .15206E-03    12.047       -.14676E-05** at limit **
  12  Prefactor     7.5438        3.0116        .53941E-07    .56763E-02
  13  norm          .10000E-03    4.6746        .24450E-06** at limit **
  14  Prefactor     .10000E-03    19.565        .16420E-05** at limit **
  15  Prefactor     .10023E-03    54.165       -.20863E-05** at limit **
  16  Prefactor     .15294E-03    669.97       -.10737E-04** at limit **
  17  Prefactor     2.0471        62.139       -.11275E-06    .12112E-02
  18  Prefactor     .10000E-03    2.7698        .49833E-07** at limit **
  19  norm          12.815        1.8756        .62076E-07    .13204E-02
  20  Prefactor     11.443        5.2206       -.96722E-06    .72838E-04
  21  Prefactor     5.1866        6.7909        .22866E-06    .11673E-02
  22  norm          2.0689        5.3953       -.91345E-06   -.10041E-02
  23  Prefactor     .10000E-03    .77311        .86285E-07** at limit **
  24  Prefactor     8.1182        6.1886        .13151E-06   -.25389E-02
  25  Prefactor     21.260        5.3996        .18714E-06    .43174E-02
  26  Prefactor     .10000E-03    5.4321        .54118E-07** at limit **
  27  Prefactor     10.361        1.4447        .88903E-08    .28713E-02
  28  Normalizat    1.3623        .21126        .41826E-06    .13633E-03
  29  Prefactor     .54213        .19827        .17788E-06    .90335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9464
  Prefactor  = 31.8404
  Prefactor  = 18.7126
  norm       = 0.0001
  Prefactor  = 23.4907
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 11.426
  Prefactor  = 14.5455
  norm       = 11.8547
  Prefactor  = 0.000152057
  Prefactor  = 7.5438
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100234
  Prefactor  = 0.000152938
  Prefactor  = 2.0471
  Prefactor  = 0.0001
  norm       = 12.8152
  Prefactor  = 11.4433
  Prefactor  = 5.18661
  norm       = 2.06888
  Prefactor  = 0.0001
  Prefactor  = 8.11817
  Prefactor  = 21.2595
  Prefactor  = 0.0001
  Prefactor  = 10.3608
  Normalizat = 1.36233
  Prefactor  = 0.542129
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.598     FROM HESSE     STATUS=OK           633 CALLS     4313 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.946        33.252        .26805E-02   -1.4961    
   2  Prefactor     31.840        22.682        .17752E-02   -1.4579    
   3  Prefactor     18.713        26.416        .23140E-02   -1.4843    
   4  norm          .10000E-03    .65156        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.491        12.701        .20663E-02   -1.4738    
   6  Prefactor     .10000E-03    7.4200        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.426        23.868        .29629E-02   -1.5032    
   9  Prefactor     14.545        57.108        .26253E-02   -1.4945    
  10  norm          11.855        4.0923        .29085E-02   -1.5019    
  11  Prefactor     .15206E-03    1019.3        .10377E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5438        8.4934        .36511E-02   -1.5159    
  13  norm          .10000E-03    4.5908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.565        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10023E-03    55.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15294E-03    9.8829        .61563E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0471        149.52        .75612E-02   -1.5422    
  18  Prefactor     .10000E-03    2.7470        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.815        14.357        .27974E-02   -1.4992    
  20  Prefactor     11.443        5.2364        .29607E-02   -1.5031    
  21  Prefactor     5.1866        6.9269        .44134E-02   -1.5252    
  22  norm          2.0689        5.4813        .71805E-02   -1.5420    
  23  Prefactor     .10000E-03    .76956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1182        6.3124        .35178E-02   -1.5138    
  25  Prefactor     21.260        16.948        .21719E-02   -1.4785    
  26  Prefactor     .10000E-03    5.3562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.361        9.0953        .31121E-02   -1.5064    
  28  Normalizat    1.3623        .18648        .48490E-01   -.81724    
  29  Prefactor     .54213        .17309        .71115E-01   -1.1008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7422e-07
Minuit parameter uncertainties:
  1  33.2963
  2  22.6881
  3  26.4322
  4  9.51835e-07
  5  12.7027
  6  0.000333162
  7  1.26166e-05
  8  23.8881
  9  57.3241
  10  4.09235
  11  0.468913
  12  8.4948
  13  7.25275e-06
  14  0.000151681
  15  0.00717792
  16  0.0457538
  17  35.0813
  18  1.83606e-07
  19  14.361
  20  5.23664
  21  6.92801
  22  5.4826
  23  1.41441e-06
  24  6.31291
  25  16.9515
  26  3.40622e-06
  27  9.09653
  28  0.186569
  29  0.173262
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  7.544e+00  8.495e+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:  5.421e-01  1.733e-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.362e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/868730/likelihoodResults_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.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) = 6147.56106613
delta logL = 1.03658805894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6147.53788536
delta logL = 1.05976883059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1545       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4372       1.0000          .0000       10.000    
     3 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58755       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=   6147.538     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1450        11.174        .10749E-01    .27000E-03
   2  Index         3.4411        2.1536        .10244        .13676E-03
   3  Normalizat    1.2930        .47153E-01    .49522E-01   -.46762E-03
   4  Prefactor     .58781        .44847E-01    .68487E-01   -.10244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14501
  Index      = 3.44105
  Normalizat = 1.29305
  Prefactor  = 0.587812
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.538     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      293 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1450        24.578        .53902E-04   -1.5494    
   2  Index         3.4411        3.6140        .37889E-02   -.31708    
   3  Normalizat    1.2930        .21289        .21893E-03   -.83774    
   4  Prefactor     .58781        .20132        .30312E-03   -1.0810    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63256e-07
Minuit parameter uncertainties:
  1  10.6144
  2  4.10673
  3  0.213034
  4  0.201566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868730': 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) = 6147.53787854
delta logL = 1.05977564724

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.145e+00  1.061e+01  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  3.441e+00  4.107e+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:  5.878e-01  2.016e-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.293e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 239.718 56.427
Photon Index (Free Index): 3.44 +/- 4.11
Photon Flux (Free Index): 7.20e-08 +/- 6.31e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.09e-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/868730/cmap_HighResolution_253843201_254102401_4FGL_J1558.8+5625_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='1.22e-05', photon_flux_error='2.85e-08', dlogl='1.06e+00', energy_flux='1.34e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2021-09-12 22:46:23.218954', photon_index_error2='4.11', photon_index2='3.44', ts='1.14', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='8.95e-08', energy_flux_error2='1.09e-05', EG='1.36', time_epoch_completed='1631511983.22', return_code='0', job_id='868730', GAL2='0.59', EG2='1.29', return_code2='102', energy_flux_error='1.51e-05', photon_flux_error2='6.31e-08', ts2='3.37', photon_index='2.12' WHERE bin_id='56' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:46:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 868730: <4FGL_J1558.8+5625_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin56 239.718 56.4268 253843201 254102401 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 :                                   947.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             328.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

