/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1558.8+5625_daily_bin1107
RA = 239.718, Dec = 56.4268
tmin = 526262401, tmax = 526521601
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='876314', job_status='RUN', time_executed='2021-09-12 22:56:32.047682', time_epoch_executed='1631512592.05' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/876314

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/876314/ft1_4FGL_J1558.8+5625_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/876314/ft2_4FGL_J1558.8+5625_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/876314/ft1_4FGL_J1558.8+5625_daily_bin1107.fits outfile=/scratch/kocevski/876314/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin1107.fits ra=239.718 dec=56.4268 rad=12.0 tmin=526262401.0 tmax=526521601.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 4.03
user 3.77
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/876314/ft1_filtered_4FGL_J1558.8+5625_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/876314/ft2_4FGL_J1558.8+5625_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/876314/ltcube_526262401_526521601_4FGL_J1558.8+5625_daily_bin1107.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/876314/ft2_4FGL_J1558.8+5625_daily_bin1107.fits
.....................!
real 14.31
user 13.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/876314/ft1_filtered_4FGL_J1558.8+5625_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/876314/ft2_4FGL_J1558.8+5625_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/876314/ltcube_526262401_526521601_4FGL_J1558.8+5625_daily_bin1107.fits outfile=/scratch/kocevski/876314/expmap_526262401_526521601_4FGL_J1558.8+5625_daily_bin1107.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/876314/ltcube_526262401_526521601_4FGL_J1558.8+5625_daily_bin1107.fits
.....................!
real 193.22
user 188.31
sys 4.42

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/876314/ft1_filtered_4FGL_J1558.8+5625_daily_bin1107.fits scfile=/scratch/kocevski/876314/ft2_4FGL_J1558.8+5625_daily_bin1107.fits outfile=/scratch/kocevski/876314/cmap_526262401_526521601_4FGL_J1558.8+5625_daily_bin1107.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/876314/ft1_filtered_4FGL_J1558.8+5625_daily_bin1107.fits scfile=/scratch/kocevski/876314/ft2_4FGL_J1558.8+5625_daily_bin1107.fits outfile=/scratch/kocevski/876314/cmap_HighResolution_526262401_526521601_4FGL_J1558.8+5625_daily_bin1107.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.349       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0733       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3118       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.368       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2502       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9110       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    81.649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    121.24       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12450E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73617       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1615       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=   5979.853     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3623 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.320        44.438        .56695E-06    .21727E-04
   2  Prefactor     .10000E-03    4.8412       -.59017E-07** at limit **
   3  Prefactor     .10000E-03    32.182       -.26250E-06** at limit **
   4  norm          2.5098        1.6504        .92248E-07    .16168E-03
   5  Prefactor     1.8331        8.1021        .50244E-06    .51798E-04
   6  Prefactor     6.0715        7.5732        .28076E-06    .45264E-04
   7  Prefactor     1.3137        14.178        .16929E-05    .24315E-04
   8  Prefactor     16.726        17.593        .22296E-06    .79613E-05
   9  Prefactor     18.366        25.423       -.55888E-07    .41404E-05
  10  norm          4.2501        2.8415        .52860E-09    .26190E-05
  11  Prefactor     .10000E-03    37.444       -.34367E-06** at limit **
  12  Prefactor     5.9101        5.4648        .64767E-07   -.44208E-05
  13  norm          .10000E-03    3.3582        .26385E-06** at limit **
  14  Prefactor     81.641        42.841        .18401E-06    .47143E-05
  15  Prefactor     121.19        90.040        .48064E-06    .13696E-04
  16  Prefactor     13.063        9.4340        .25907E-06   -.29218E-05
  17  Prefactor     .10000E-03    44.181        .29808E-05** at limit **
  18  Prefactor     .10000E-03    1.3783        .56323E-06** at limit **
  19  norm          .10000E-03    4.3966        .36591E-07** at limit **
  20  Prefactor     .10000E-03    1.9615        .18485E-07** at limit **
  21  Prefactor     .10000E-03    5.0220       -.69654E-06** at limit **
  22  norm          .10000E-03    2.1962       -.22413E-06** at limit **
  23  Prefactor     .10000E-03    .95165       -.10857E-06** at limit **
  24  Prefactor     .10000E-03    4.2104       -.23819E-06** at limit **
  25  Prefactor     .10000E-03    3.8985       -.19064E-06** at limit **
  26  Prefactor     .10000E-03    2.9553       -.38262E-06** at limit **
  27  Prefactor     .10000E-03    3.6557       -.21222E-06** at limit **
  28  Normalizat    .73645        .19966       -.41440E-05    .78032E-04
  29  Prefactor     1.1612        .19461        .31844E-05   -.18268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50976
  Prefactor  = 1.83312
  Prefactor  = 6.07154
  Prefactor  = 1.31373
  Prefactor  = 16.7256
  Prefactor  = 18.3657
  norm       = 4.25007
  Prefactor  = 0.0001
  Prefactor  = 5.91013
  norm       = 0.0001
  Prefactor  = 81.6405
  Prefactor  = 121.188
  Prefactor  = 13.0633
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.736448
  Prefactor  = 1.16123
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.853     FROM HESSE     STATUS=OK           551 CALLS     4174 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.320        44.445        .75244E-04   -1.4643    
   2  Prefactor     .10000E-03    4.8429        .16618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5098        1.6485        .78128E-04   -1.5391    
   5  Prefactor     1.8331        8.1210        .30729E-03   -1.5437    
   6  Prefactor     6.0715        7.5684        .16292E-03   -1.5215    
   7  Prefactor     1.3137        14.440        .19243E-02   -1.5479    
   8  Prefactor     16.726        17.581        .97924E-04   -1.4890    
   9  Prefactor     18.366        25.407        .93453E-04   -1.4851    
  10  norm          4.2501        2.8400        .51370E-03   -1.5296    
  11  Prefactor     .10000E-03    37.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9101        5.4638        .82585E-03   -1.5222    
  13  norm          .10000E-03    3.3941        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     81.641        42.831        .44450E-04   -1.3898    
  15  Prefactor     121.19        90.077        .18275E-03   -1.3502    
  16  Prefactor     13.063        9.3339        .11081E-03   -1.4985    
  17  Prefactor     .10000E-03    44.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4080        .89519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.3979        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.277        .20889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1317        .16933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.2052        .11201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .95953        .73671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.2305        .15509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.9032        .14915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.9771        .12995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.6687        .14447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73645        .20420        .26392E-03   -1.0247    
  29  Prefactor     1.1612        .19982        .22346E-03   -.87533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02595e-10
Minuit parameter uncertainties:
  1  44.4974
  2  9.3505e-07
  3  1.49483e-05
  4  1.64852
  5  7.7182
  6  7.56956
  7  8.71329
  8  17.5863
  9  25.4218
  10  2.84006
  11  4.12862e-05
  12  5.46426
  13  9.40284e-06
  14  42.8468
  15  90.1792
  16  9.33494
  17  0.000319714
  18  1.23369e-05
  19  7.04355e-07
  20  2.98119e-05
  21  1.9478e-05
  22  5.78263e-06
  23  1.42313e-06
  24  1.17276e-05
  25  5.57657e-06
  26  9.06613e-06
  27  6.89283e-06
  28  0.204411
  29  0.199945
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  5.910e+00  5.464e+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.161e+00  1.999e-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.364e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 239.718 56.427
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 9.73e-06

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) = 5979.12246835
delta logL = 0.730768253042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5979.10619831
delta logL = 0.74703829607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7301       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1992       1.0000          .0000       10.000    
     3 'Normalizat'    .75138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1556       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=   5979.106     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7287        6.4168       -.28295E-05   -.10603E-03
   2  Index         1.1985        .71236       -.33095E-04    .13856E-04
   3  Normalizat    .75137        .16506        .71286E-06    .28615E-03
   4  Prefactor     1.1557        .17269       -.13773E-06    .27257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72866
  Index      = 1.19852
  Normalizat = 0.751366
  Prefactor  = 1.15566
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.106     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7287        6.1593        .16571E-03   -1.5273    
   2  Index         1.1985        .68968        .11388E-01   -.86377    
   3  Normalizat    .75137        .18820        .26150E-03   -1.0190    
   4  Prefactor     1.1557        .19689        .22396E-03   -.87707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65135e-09
Minuit parameter uncertainties:
  1  6.16009
  2  0.694968
  3  0.188366
  4  0.197017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/876314': 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) = 5979.10619779
delta logL = 0.7470388178

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  4.729e+00  6.160e+00  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  1.199e+00  6.950e-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.156e+00  1.970e-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.514e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 239.718 56.427
Photon Index (Free Index): 1.20 +/- 0.69
Photon Flux (Free Index): 5.10e-09 +/- 6.90e-09
Energy Flux (Free Index): 4.28e-05 +/- 6.66e-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/876314/cmap_HighResolution_526262401_526521601_4FGL_J1558.8+5625_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='4.28e-05', photon_flux_error='1.83e-08', dlogl='7.47e-01', energy_flux='1.05e-05', photon_flux2='5.10e-09', job_status='DONE', time_completed='2021-09-12 23:09:51.355705', photon_index_error2='0.69', photon_index2='1.20', ts='4.91', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='6.66e-05', EG='0.74', time_epoch_completed='1631513391.36', return_code='0', job_id='876314', GAL2='1.16', EG2='0.75', return_code2='0', energy_flux_error='9.73e-06', photon_flux_error2='6.90e-09', ts2='6.40', photon_index='2.12' WHERE bin_id='1107' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:09:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 876314: <4FGL_J1558.8+5625_daily_bin1107> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin1107> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 22:55:29 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:56:17 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:56:17 2021
Terminated at Sun Sep 12 23:09:52 2021
Results reported at Sun Sep 12 23:09:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin1107 239.718 56.4268 526262401 526521601 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 :                                   796.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            863 sec.

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

