/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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1558.8+5625_daily_bin1229
RA = 239.718, Dec = 56.4268
tmin = 557884801, tmax = 558144001
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='876499', job_status='RUN', time_executed='2021-09-12 22:58:35.777372', time_epoch_executed='1631512715.78' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/876499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/876499/ft1_4FGL_J1558.8+5625_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/876499/ft2_4FGL_J1558.8+5625_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/876499/ft1_4FGL_J1558.8+5625_daily_bin1229.fits outfile=/scratch/kocevski/876499/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin1229.fits ra=239.718 dec=56.4268 rad=12.0 tmin=557884801.0 tmax=558144001.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.11
user 3.83
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/876499/ft1_filtered_4FGL_J1558.8+5625_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/876499/ft2_4FGL_J1558.8+5625_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/876499/ltcube_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.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/876499/ft2_4FGL_J1558.8+5625_daily_bin1229.fits
.....................!
real 12.93
user 12.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/876499/ft1_filtered_4FGL_J1558.8+5625_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/876499/ft2_4FGL_J1558.8+5625_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/876499/ltcube_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.fits outfile=/scratch/kocevski/876499/expmap_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.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/876499/ltcube_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.fits
.....................!
real 191.60
user 186.26
sys 4.76

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/876499/ft1_filtered_4FGL_J1558.8+5625_daily_bin1229.fits scfile=/scratch/kocevski/876499/ft2_4FGL_J1558.8+5625_daily_bin1229.fits outfile=/scratch/kocevski/876499/cmap_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/876499/ft1_filtered_4FGL_J1558.8+5625_daily_bin1229.fits scfile=/scratch/kocevski/876499/ft2_4FGL_J1558.8+5625_daily_bin1229.fits outfile=/scratch/kocevski/876499/cmap_HighResolution_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3790.1       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63431E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4134       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33334E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24385E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17526E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84731E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .20826E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52442E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41385E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    481.08       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .59587E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36926E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25944E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16595E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25311E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .54982E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26191E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .15454E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    814.89       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .91064E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12457E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .21921E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .56028       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=   37.92458     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     4345 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        5012.8        .22407E-02** at limit **
   2  Prefactor     .10000E-03    2227.7        .31191E-04** at limit **
   3  Prefactor    10000.0        9763.1       -.53408E-03** at limit **
   4  norm         10000.0        6449.8        .40676E-03** at limit **
   5  Prefactor     .10003E-03    2096.1       -.77446E-05** at limit **
   6  Prefactor    10000.0        9590.7       -.57558E-04** at limit **
   7  Prefactor     .10000E-03    975.02       -.31877E-05** at limit **
   8  Prefactor     .10000E-03    829.23        .73773E-05** at limit **
   9  Prefactor     .10002E-03    2078.9       -.33025E-04** at limit **
  10  norm          .10000E-03    154.42        .12131E-05** at limit **
  11  Prefactor     .10000E-03    6513.7       -.13806E-04** at limit **
  12  Prefactor     .10000E-03    831.57        .20920E-04** at limit **
  13  norm          462.82        695.86        .66813E-05   -.20287E-04
  14  Prefactor     .10001E-03    6291.7        .13642E-04** at limit **
  15  Prefactor     .10001E-03    1915.1       -.52726E-04** at limit **
  16  Prefactor     .10000E-03    56.593       -.84121E-05** at limit **
  17  Prefactor     .10000E-03    177.12        .14752E-05** at limit **
  18  Prefactor     .10001E-03    407.67       -.43991E-04** at limit **
  19  norm          .10000E-03    1519.8        .65899E-04** at limit **
  20  Prefactor     .10000E-03    22.061        .32416E-05** at limit **
  21  Prefactor     .10000E-03    436.28        .98730E-05** at limit **
  22  norm          .10000E-03    235.03        .17494E-07** at limit **
  23  Prefactor     .10000E-03    34.729        .11607E-04** at limit **
  24  Prefactor     796.36        887.67        .51740E-04   -.18698E-04
  25  Prefactor     .10000E-03    502.85       -.16876E-05** at limit **
  26  Prefactor     .10000E-03    233.14        .27008E-05** at limit **
  27  Prefactor     .10000E-03    393.25       -.84807E-05** at limit **
  28  Normalizat    .10000E-01    .98739        .60104E-04** at limit **
  29  Prefactor     .56022        .70149       -.28874E-04   -.15314E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.00010003
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 462.825
  Prefactor  = 0.000100014
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 796.357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.560218
 **********
 **   18 **HESSE 
 **********

 FCN=   37.92458     FROM HESSE     STATUS=OK           533 CALLS     4878 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9996.8        .41225E-01    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1883.8        .21034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        9330.5        .18213E-01   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        6174.4        .13370E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    1805.3        .21345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        9903.6        .13966E-01   -4.7123    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    807.88        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    683.09        .16017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    1795.0        .20867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    126.30        .68218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6269.9        .18564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    691.93        .16123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          462.82        658.42        .93461E-04   -1.1371    
  14  Prefactor     .10001E-03    2257.8        .18950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    1775.1        .21300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.801        .41913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    144.88        .73088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    363.14        .11613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1308.6        .19068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.312        .25928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    359.54        .11554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    192.25        .84258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.400        .33413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     796.36        847.40        .73104E-04   -.99863    
  25  Prefactor     .10000E-03    412.77        .12392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    190.94        .83969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    324.56        .10972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .84697        .17779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .56022        .67633        .17632E-03   -1.0929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19013e-10
Minuit parameter uncertainties:
  1  51.1121
  2  0.00400138
  3  2.11565
  4  0.48663
  5  0.0151799
  6  5.73033
  7  0.00198901
  8  0.000344843
  9  0.0128819
  10  3.14848e-05
  11  0.00544184
  12  0.00101207
  13  669.706
  14  0.0116589
  15  0.00900872
  16  0.000174446
  17  4.5324e-05
  18  0.00354517
  19  6.79814e-05
  20  3.67463e-05
  21  0.00112539
  22  2.46152e-05
  23  0.000211729
  24  861.887
  25  0.000285242
  26  0.000120019
  27  0.000381196
  28  6.75315e-06
  29  0.686479
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  1.012e-03  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.602e-01  6.865e-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.000e-02  6.753e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 239.718 56.427
Photon Flux Upper Limit: 1.14e-05 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/876499/likelihoodResults_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.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) = 37.9245846275
delta logL = -6.71833925026e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37.9245846539
delta logL = -6.74479854013e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95994E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1154       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56041       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=   37.92458     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      196 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    872.38        .90748E-02** at limit **
   2  Index         2.0663        8.3605        .50000        .51107E-06
   3  Normalizat    .10000E-01    .19826E-02    .80854E-01** at limit **
   4  Prefactor     .56022        .32128E-01    .40511E-01    .81718E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.06632
  Normalizat = 0.01
  Prefactor  = 0.560218
 **********
 **   18 **HESSE 
 **********

 FCN=   37.92458     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      225 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7032.2        .16919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0663        5.8752        .50000       -.62702    
   3  Normalizat    .10000E-01    .10782E-01    .17768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56022        .74415E-01    .17621E-03   -1.0929    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52664e-08
Minuit parameter uncertainties:
  1  0.00696985
  2  1452.45
  3  6.7649e-08
  4  0.074428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/876499': 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) = 37.9245779026
delta logL = 6.56083187778e-09

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  6.970e-03  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.066e+00  1.452e+03  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.602e-01  7.443e-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:  1.000e-02  6.765e-08  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/876499/cmap_HighResolution_557884801_558144001_4FGL_J1558.8+5625_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-01', job_status='DONE', photon_flux_upper_limit='1.14e-05', time_completed='2021-09-12 23:05:10.017949', job_id='876499', GAL2='0.56', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631513110.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='6.56e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1229' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 23:05:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 876499: <4FGL_J1558.8+5625_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin1229> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 22:55:43 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 22:58:26 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:58:26 2021
Terminated at Sun Sep 12 23:05:10 2021
Results reported at Sun Sep 12 23:05:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin1229 239.718 56.4268 557884801 558144001 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 :                                   347.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   404 sec.
    Turnaround time :                            567 sec.

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

