aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 77 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 = 7532
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1558.8+5625_daily_bin1704
RA = 239.718, Dec = 56.4268
tmin = 681004801, tmax = 681264001
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='365645', job_status='RUN', time_executed='2022-08-04 02:29:21.488825', time_epoch_executed='1659605361.49' WHERE source_name='4FGL J1558.8+5625' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365645/ft1_4FGL_J1558.8+5625_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365645/ft2_4FGL_J1558.8+5625_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365645/ft1_4FGL_J1558.8+5625_daily_bin1704.fits outfile=/scratch/kocevski/365645/ft1_filteredMKT_4FGL_J1558.8+5625_daily_bin1704.fits ra=239.718 dec=56.4268 rad=12.0 tmin=681004801.0 tmax=681264001.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 2.96
user 2.73
sys 0.21

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

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

Number of photons that the gtmktime cut: 1196

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365645/ft1_filtered_4FGL_J1558.8+5625_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365645/ft2_4FGL_J1558.8+5625_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/365645/ltcube_681004801_681264001_4FGL_J1558.8+5625_daily_bin1704.fits outfile=/scratch/kocevski/365645/expmap_681004801_681264001_4FGL_J1558.8+5625_daily_bin1704.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/365645/ltcube_681004801_681264001_4FGL_J1558.8+5625_daily_bin1704.fits
.....................!
real 192.62
user 186.49
sys 5.53

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/365645/ft1_filtered_4FGL_J1558.8+5625_daily_bin1704.fits scfile=/scratch/kocevski/365645/ft2_4FGL_J1558.8+5625_daily_bin1704.fits outfile=/scratch/kocevski/365645/cmap_681004801_681264001_4FGL_J1558.8+5625_daily_bin1704.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365645/ft1_filtered_4FGL_J1558.8+5625_daily_bin1704.fits scfile=/scratch/kocevski/365645/ft2_4FGL_J1558.8+5625_daily_bin1704.fits outfile=/scratch/kocevski/365645/cmap_HighResolution_681004801_681264001_4FGL_J1558.8+5625_daily_bin1704.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.429       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      '    4.8943       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7936       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0341       1.0000         .10000E-03   10000.    
    10 'norm      '    .30244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.141       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4056       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7789       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19722       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9173       1.0000         .10000E-03   10000.    
    22 'norm      '    10.892       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9021       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92545       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2338       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=   12994.67     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3676 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.430        28.313        .28672E-06    .51926E-05
   2  Prefactor     .10000E-03    3.9791        .12623E-06** at limit **
   3  Prefactor     .10000E-03    7.0706        .40636E-05** at limit **
   4  norm          4.8943        1.4477        .39811E-08   -.19151E-03
   5  Prefactor     .10000E-03    2.7287       -.86862E-06** at limit **
   6  Prefactor     .10000E-03    2.0048       -.90457E-07** at limit **
   7  Prefactor     4.7939        3.7467        .82897E-07   -.21334E-02
   8  Prefactor     .10000E-03    2.1674       -.57644E-06** at limit **
   9  Prefactor     9.0343        9.0594        .62317E-07    .12408E-04
  10  norm          .30398        .80819       -.14357E-06   -.78134E-03
  11  Prefactor     55.146        53.046        .44532E-05    .44762E-04
  12  Prefactor     .10000E-03    3.0157        .10608E-05** at limit **
  13  norm          .10000E-03    2.0490        .34328E-06** at limit **
  14  Prefactor     .10000E-03    30.316        .79749E-06** at limit **
  15  Prefactor     .10000E-03    66.227       -.14278E-05** at limit **
  16  Prefactor     .10000E-03    2.2987        .52382E-06** at limit **
  17  Prefactor     .10000E-03    8.9662       -.15306E-05** at limit **
  18  Prefactor     1.4034        3.9003        .67923E-07   -.38613E-03
  19  norm          4.7793        9.5096        .31813E-06   -.53782E-03
  20  Prefactor     .19725        1.8220        .60002E-06   -.10199E-02
  21  Prefactor     1.9178        3.6347        .17889E-07   -.28837E-03
  22  norm          10.893        6.3250       -.12110E-07   -.12247E-04
  23  Prefactor     4.9022        2.1626       -.17943E-08    .72300E-04
  24  Prefactor     .10000E-03    5.9258       -.42391E-05** at limit **
  25  Prefactor     13.505        10.906        .32383E-06    .19877E-04
  26  Prefactor     .10000E-03    3.7398       -.14121E-05** at limit **
  27  Prefactor     .10000E-03    4.6680        .24362E-05** at limit **
  28  Normalizat    .92543        .12314       -.32944E-06    .45438E-04
  29  Prefactor     1.2338        .12595       -.11684E-06    .48570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.43
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79386
  Prefactor  = 0.0001
  Prefactor  = 9.03432
  norm       = 0.303979
  Prefactor  = 55.146
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40336
  norm       = 4.77926
  Prefactor  = 0.197246
  Prefactor  = 1.91776
  norm       = 10.893
  Prefactor  = 4.90216
  Prefactor  = 0.0001
  Prefactor  = 13.5054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.92543
  Prefactor  = 1.2338
 **********
 **   18 **HESSE 
 **********

 FCN=   12994.67     FROM HESSE     STATUS=OK           553 CALLS     4229 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.430        28.312        .72633E-04   -1.4604    
   2  Prefactor     .10000E-03    4.0060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8943        1.4476        .72351E-04   -1.5265    
   5  Prefactor     .10000E-03    2.7378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0157        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7939        5.5706        .91878E-03   -1.5270    
   8  Prefactor     .10000E-03    2.1703        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0343        9.0616        .13335E-03   -1.5107    
  10  norm          .30398        .88712        .16131E-02   -1.5598    
  11  Prefactor     55.146        52.846        .54018E-04   -1.4221    
  12  Prefactor     .10000E-03    3.0592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0819        .15928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    66.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3383        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.0156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4034        3.9241        .35527E-03   -1.5471    
  19  norm          4.7793        10.009        .92022E-03   -1.5271    
  20  Prefactor     .19725        2.2398        .32524E-03   -1.5619    
  21  Prefactor     1.9178        3.6551        .28623E-03   -1.5431    
  22  norm          10.893        6.3329        .12139E-03   -1.5048    
  23  Prefactor     4.9022        2.1593        .10730E-03   -1.5265    
  24  Prefactor     .10000E-03    5.9835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.505        10.897        .10900E-03   -1.4973    
  26  Prefactor     .10000E-03    3.8347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.7607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92543        .14898        .25748E-03   -.95572    
  29  Prefactor     1.2338        .15034        .23751E-03   -.85297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24374e-08
Minuit parameter uncertainties:
  1  28.3249
  2  1.00391e-06
  3  3.55902e-05
  4  1.44764
  5  1.92846e-06
  6  4.00577e-07
  7  5.57123
  8  3.39954e-06
  9  9.063
  10  0.887159
  11  52.8914
  12  4.74937e-06
  13  8.43561e-07
  14  3.11329e-06
  15  1.11959e-05
  16  3.1654e-06
  17  1.34896e-05
  18  3.92482
  19  10.0126
  20  1.32908
  21  3.65548
  22  6.33332
  23  2.15938
  24  1.01085e-05
  25  10.8982
  26  4.22878e-06
  27  9.46193e-06
  28  0.149047
  29  0.150389
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  4.749e-06  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.116e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  1.234e+00  1.504e-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:  9.254e-01  1.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/365645/likelihoodResults_681004801_681264001_4FGL_J1558.8+5625_daily_bin1704.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) = 12994.6718656
delta logL = -0.00155776838255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12994.6703103
delta logL = -2.52014433499e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0996       1.0000          .0000       10.000    
     3 'Normalizat'    .92535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2337       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=   12994.67     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    22.836        .18142E-02** at limit **
   2  Index         2.0673        5.1626        .50000        .32762E-04
   3  Normalizat    .92543        .80822E-02    .25748E-03   -.98902E-05
   4  Prefactor     1.2338        .85073E-02    .23751E-03   -.84243E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100422
  Index      = 2.0673
  Normalizat = 0.92543
  Prefactor  = 1.2338
 **********
 **   18 **HESSE 
 **********

 FCN=   12994.67     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10042E-03    107.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0673        6.7335        .50000       -.62678    
   3  Normalizat    .92543        .18085E-01    .10299E-04   -.95572    
   4  Prefactor     1.2338        .19034E-01    .95006E-05   -.85297    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00607e-08
Minuit parameter uncertainties:
  1  0.0134824
  2  276.916
  3  0.0180849
  4  0.0190339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365645': 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) = 12994.6703074
delta logL = 3.81964127882e-07

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.004e-04  1.348e-02  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.067e+00  2.769e+02  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  1.234e+00  1.903e-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:  9.254e-01  1.808e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 239.718 56.427

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/365645/cmap_HighResolution_681004801_681264001_4FGL_J1558.8+5625_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-03', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2022-08-04 02:56:05.972106', job_id='365645', GAL2='1.23', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1659606965.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1704' AND source_name='4FGL J1558.8+5625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 02:56:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 365595: <4FGL_J1558.8+5625_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:26 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:27:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:27:02 2022
Terminated at Thu Aug  4 02:55:15 2022
Results reported at Thu Aug  4 02:55:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin1704 239.718 56.4268 681004801 681264001 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 :                                   1612.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             332.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1695 sec.
    Turnaround time :                            10069 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 365645: <4FGL_J1558.8+5625_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1558.8+5625_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:29 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:27:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:27:55 2022
Terminated at Thu Aug  4 02:56:06 2022
Results reported at Thu Aug  4 02:56:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_daily_bin1704 239.718 56.4268 681004801 681264001 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 :                                   1604.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1691 sec.
    Turnaround time :                            10117 sec.

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

