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


Performing analysis on: 4FGL_J1558.8+5625_daily_bin71
RA = 239.718, Dec = 56.4268
tmin = 257731201, tmax = 257990401
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='868754', job_status='RUN', time_executed='2021-09-12 22:33:08.959841', time_epoch_executed='1631511188.96' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868754/ft1_4FGL_J1558.8+5625_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868754/ft2_4FGL_J1558.8+5625_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868754/ft1_4FGL_J1558.8+5625_daily_bin71.fits outfile=/scratch/kocevski/868754/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin71.fits ra=239.718 dec=56.4268 rad=12.0 tmin=257731201.0 tmax=257990401.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.43
user 1.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/868754/ft2_4FGL_J1558.8+5625_daily_bin71.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/868754/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/868754/ft1_filtered_4FGL_J1558.8+5625_daily_bin71.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/868754/ft1_filtered_4FGL_J1558.8+5625_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/868754/ft2_4FGL_J1558.8+5625_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/868754/ltcube_257731201_257990401_4FGL_J1558.8+5625_daily_bin71.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/868754/ft2_4FGL_J1558.8+5625_daily_bin71.fits
.....................!
real 16.84
user 16.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868754/ft1_filtered_4FGL_J1558.8+5625_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/868754/ft2_4FGL_J1558.8+5625_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/868754/ltcube_257731201_257990401_4FGL_J1558.8+5625_daily_bin71.fits outfile=/scratch/kocevski/868754/expmap_257731201_257990401_4FGL_J1558.8+5625_daily_bin71.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/868754/ltcube_257731201_257990401_4FGL_J1558.8+5625_daily_bin71.fits
.....................!
real 192.68
user 188.07
sys 4.07

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/868754/ft1_filtered_4FGL_J1558.8+5625_daily_bin71.fits scfile=/scratch/kocevski/868754/ft2_4FGL_J1558.8+5625_daily_bin71.fits outfile=/scratch/kocevski/868754/cmap_257731201_257990401_4FGL_J1558.8+5625_daily_bin71.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868754/ft1_filtered_4FGL_J1558.8+5625_daily_bin71.fits scfile=/scratch/kocevski/868754/ft2_4FGL_J1558.8+5625_daily_bin71.fits outfile=/scratch/kocevski/868754/cmap_HighResolution_257731201_257990401_4FGL_J1558.8+5625_daily_bin71.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.326       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1098       1.0000         .10000E-03   10000.    
     4 'norm      '    .91330       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0055       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.6669       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.492       1.0000         .10000E-03   10000.    
    13 'norm      '    30.166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.102       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4211       1.0000         .10000E-03   10000.    
    22 'norm      '    15.729       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5377       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.951       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .96918E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    68.728       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0933       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65573       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=   4541.733     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3187 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.341        36.324       -.95425E-06    .14950E-04
   2  Prefactor     31.635        27.026        .29782E-07    .73953E-05
   3  Prefactor     1.1127        112.44        .81021E-05    .53345E-04
   4  norm          .91353        1.7203       -.28520E-06   -.95350E-03
   5  Prefactor     5.0073        15.852        .18859E-06    .17976E-04
   6  Prefactor     .10000E-03    11.961        .90464E-05** at limit **
   7  Prefactor     15.460        15.049       -.61479E-07    .68185E-05
   8  Prefactor     .10000E-03    21.053       -.40479E-06** at limit **
   9  Prefactor     .10000E-03    20.416        .83786E-06** at limit **
  10  norm          8.6672        4.4051       -.15936E-07   -.16059E-03
  11  Prefactor     .10000E-03    151.34        .31294E-05** at limit **
  12  Prefactor     11.495        10.578       -.28403E-07   -.66087E-05
  13  norm          30.164        14.950       -.14325E-07    .23392E-04
  14  Prefactor     .10000E-03    52.812       -.11265E-05** at limit **
  15  Prefactor     .10000E-03    35.603        .27187E-05** at limit **
  16  Prefactor     .10000E-03    3.8298       -.39516E-06** at limit **
  17  Prefactor     .10000E-03    11.172       -.29993E-06** at limit **
  18  Prefactor     .10000E-03    2.8699       -.11892E-06** at limit **
  19  norm          .10000E-03    16.862       -.14233E-06** at limit **
  20  Prefactor     12.104        6.3916        .17124E-06   -.97861E-04
  21  Prefactor     1.4251        14.551        .26994E-05    .90844E-04
  22  norm          15.731        12.577        .43777E-06    .12679E-03
  23  Prefactor     1.5380        2.6279        .35425E-05   -.38912E-04
  24  Prefactor     23.949        16.581       -.79813E-06   -.39810E-04
  25  Prefactor     .10002E-03    64.286        .26869E-04** at limit **
  26  Prefactor     .10000E-03    9.3503       -.19140E-06** at limit **
  27  Prefactor     68.738        24.830        .73449E-06    .20725E-03
  28  Normalizat    1.0928        .21711        .23785E-06    .12696E-03
  29  Prefactor     .65615        .20052       -.71211E-06    .86270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3412
  Prefactor  = 31.6349
  Prefactor  = 1.11267
  norm       = 0.913527
  Prefactor  = 5.00734
  Prefactor  = 0.000100002
  Prefactor  = 15.4601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.6672
  Prefactor  = 0.0001
  Prefactor  = 11.4948
  norm       = 30.1644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1039
  Prefactor  = 1.42507
  norm       = 15.7306
  Prefactor  = 1.53795
  Prefactor  = 23.9489
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 68.7379
  Normalizat = 1.09285
  Prefactor  = 0.656151
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.733     FROM HESSE     STATUS=OK           557 CALLS     3744 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.341        36.323        .63916E-04   -1.4453    
   2  Prefactor     31.635        27.024        .71236E-04   -1.4582    
   3  Prefactor     1.1127        100.65        .44855E-03   -1.5497    
   4  norm          .91353        1.4629        .10839E-02   -1.5517    
   5  Prefactor     5.0073        15.601        .17974E-03   -1.5260    
   6  Prefactor     .10000E-03    29.727        .35015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.460        14.961        .10188E-03   -1.4921    
   8  Prefactor     .10000E-03    21.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.6672        4.4052        .97474E-04   -1.5119    
  11  Prefactor     .10000E-03    151.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.495        10.575        .11817E-03   -1.5030    
  13  norm          30.164        14.953        .72949E-04   -1.4609    
  14  Prefactor     .10000E-03    52.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8655        .12889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8814        .11149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.104        6.4076        .11515E-03   -1.5012    
  21  Prefactor     1.4251        14.212        .36287E-03   -1.5469    
  22  norm          15.731        12.536        .10099E-03   -1.4915    
  23  Prefactor     1.5380        3.6101        .92560E-03   -1.5460    
  24  Prefactor     23.949        16.647        .81849E-04   -1.4729    
  25  Prefactor     .10002E-03    113.31        .62210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.4045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     68.738        24.505        .48417E-04   -1.4048    
  28  Normalizat    1.0928        .25093        .23783E-03   -.89982    
  29  Prefactor     .65615        .23114        .29182E-03   -1.0527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12053e-09
Minuit parameter uncertainties:
  1  36.3436
  2  27.0347
  3  21.2009
  4  1.46295
  5  15.6134
  6  0.000456661
  7  14.965
  8  0.000141465
  9  6.69987e-06
  10  4.40541
  11  0.000337612
  12  10.5765
  13  14.9552
  14  1.10521e-06
  15  0.000162926
  16  5.5024e-05
  17  9.95325e-05
  18  2.18686e-05
  19  5.02946e-05
  20  6.40798
  21  9.00321
  22  12.5385
  23  3.61061
  24  16.65
  25  0.0030199
  26  0.000103232
  27  24.5085
  28  0.251205
  29  0.231482
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.149e+01  1.058e+01  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:  6.562e-01  2.315e-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.093e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.14
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.88e-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) = 4541.64785855
delta logL = 0.0853750543374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4541.64617253
delta logL = 0.087061066748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7723       1.0000          .0000       10.000    
     3 'Normalizat'    1.1074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4541.646     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.925        11.351        .57989E-03    .62892E-04
   2  Index         1.7716        .80551        .11010E-01   -.14511E-04
   3  Normalizat    1.1073        .23113        .23659E-03   -.64680E-03
   4  Prefactor     .64937        .22420        .29334E-03   -.47981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9253
  Index      = 1.77159
  Normalizat = 1.10727
  Prefactor  = 0.649369
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.646     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.925        11.427        .23196E-04   -1.5017    
   2  Index         1.7716        .81056        .44042E-03   -.70192    
   3  Normalizat    1.1073        .23121        .47319E-04   -.89519    
   4  Prefactor     .64937        .22434        .58667E-04   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60639e-10
Minuit parameter uncertainties:
  1  11.429
  2  0.81678
  3  0.23142
  4  0.224647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868754': 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) = 4541.64616839
delta logL = 0.0870652121803

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.193e+01  1.143e+01  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  1.772e+00  8.168e-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:  6.494e-01  2.246e-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.107e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.34
Ra Dec: 239.718 56.427
Photon Index (Free Index): 1.77 +/- 0.82
Photon Flux (Free Index): 2.20e-08 +/- 3.79e-08
Energy Flux (Free Index): 2.87e-05 +/- 4.05e-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/868754/cmap_HighResolution_257731201_257990401_4FGL_J1558.8+5625_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='2.87e-05', photon_flux_error='3.55e-08', dlogl='8.71e-02', energy_flux='2.05e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-12 22:44:05.812914', photon_index_error2='0.82', photon_index2='1.77', ts='7.14', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='4.05e-05', EG='1.09', time_epoch_completed='1631511845.81', return_code='0', job_id='868754', GAL2='0.65', EG2='1.11', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='3.79e-08', ts2='7.34', photon_index='2.12' WHERE bin_id='71' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 22:44:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 868754: <4FGL_J1558.8+5625_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin71 239.718 56.4268 257731201 257990401 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 :                                   651.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            824 sec.

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

