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


Performing analysis on: 4FGL_J1553.6+1257_daily_bin601
RA = 238.402, Dec = 12.9524
tmin = 395107201, tmax = 395366401
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='781698', job_status='RUN', time_executed='2021-09-12 17:21:27.348567', time_epoch_executed='1631492487.35' WHERE source_name='4FGL J1553.6+1257' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781698

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781698/ft1_4FGL_J1553.6+1257_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781698/ft1_4FGL_J1553.6+1257_daily_bin601.fits outfile=/scratch/kocevski/781698/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin601.fits ra=238.402 dec=12.9524 rad=12.0 tmin=395107201.0 tmax=395366401.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 6.60
user 6.27
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.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/781698/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin601.fits evtable="EVENTS" outfile="/scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.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.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/781698/ltcube_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.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/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits
.....................!
real 12.04
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/781698/ltcube_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.fits outfile=/scratch/kocevski/781698/expmap_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.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/781698/ltcube_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.fits
.....................!
real 157.90
user 152.31
sys 4.25

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1553.6+1257 @ 238.402 12.9524

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits scfile=/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits outfile=/scratch/kocevski/781698/cmap_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.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=238.402 yref=12.9524 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.48
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits scfile=/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits outfile=/scratch/kocevski/781698/cmap_HighResolution_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.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=238.402 yref=12.9524 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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/781698/Model_4FGL_J1553.6+1257_daily_bin601.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/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits.....................!
real 45.28
user 44.17
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits', '/scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits', expMap='/scratch/kocevski/781698/expmap_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.fits', expCube='/scratch/kocevski/781698/ltcube_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/781698/Model_4FGL_J1553.6+1257_daily_bin601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1553.6+1257'

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  5.777e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.297e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.008e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/781698/ft1_filtered_4FGL_J1553.6+1257_daily_bin601.fits
Spacecraft file(s): /scratch/kocevski/781698/ft2_4FGL_J1553.6+1257_daily_bin601.fits
Exposure map: /scratch/kocevski/781698/expmap_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.fits
Exposure cube: /scratch/kocevski/781698/ltcube_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/781698/Model_4FGL_J1553.6+1257_daily_bin601.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) = 6857.23249121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.390       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31898E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.026       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9813       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5816       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .18639E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.521       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6743       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67309       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6857.225     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2184 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.124       -.24505E-05** at limit **
   2  Prefactor     .10000E-03    36.708        .24051E-05** at limit **
   3  Prefactor     26.353        34.423       -.13947E-04    .64811E-05
   4  Prefactor     5.9048        22.671       -.52927E-05   -.21043E-04
   5  Prefactor     13.377        32.389       -.61467E-05   -.76581E-05
   6  norm          3.2639        2.3257       -.37387E-07   -.36059E-04
   7  Prefactor     .10000E-03    2.1574        .32290E-07** at limit **
   8  Prefactor     .10000E-03    8.0283       -.13053E-07** at limit **
   9  norm          .10000E-03    2.1428       -.32725E-07** at limit **
  10  Prefactor     58.033        65.391        .59232E-05    .28724E-05
  11  norm          3.9859        8.5908        .13198E-05   -.22149E-03
  12  norm          1.5816        1.1971       -.96441E-07    .76011E-04
  13  Prefactor     .10000E-03    11.735        .74269E-05** at limit **
  14  norm          .10000E-03    18.072        .10054E-05** at limit **
  15  norm          .10000E-03    159.96        .28534E-05** at limit **
  16  Prefactor     11.528        12.995       -.62884E-06   -.82316E-04
  17  Prefactor     .10000E-03    11.925       -.79823E-05** at limit **
  18  Prefactor     6.8648        6.5427       -.17778E-05    .76546E-04
  19  Prefactor     .10000E-03    1.9505       -.70102E-07** at limit **
  20  Normalizat    1.6735        .24080        .20922E-05   -.13079E-03
  21  Prefactor     .67345        .10885        .34346E-07    .18737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3532
  Prefactor  = 5.90484
  Prefactor  = 13.3769
  norm       = 3.26389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.0327
  norm       = 3.98594
  norm       = 1.58161
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5278
  Prefactor  = 0.0001
  Prefactor  = 6.8648
  Prefactor  = 0.0001
  Normalizat = 1.67351
  Prefactor  = 0.673447
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.225     FROM HESSE     STATUS=OK           315 CALLS     2499 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.353        34.554        .77986E-04   -1.4681    
   4  Prefactor     5.9048        22.712        .16539E-03   -1.5222    
   5  Prefactor     13.377        32.220        .10946E-03   -1.4976    
   6  norm          3.2639        2.3217        .10278E-03   -1.5347    
   7  Prefactor     .10000E-03    8.6334        .23320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1682        .11828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     58.033        65.430        .52666E-04   -1.4183    
  11  norm          3.9859        8.5514        .20214E-03   -1.5309    
  12  norm          1.5816        1.1995        .76011E-04   -1.5456    
  13  Prefactor     .10000E-03    11.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    18.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    160.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.528        13.056        .11803E-03   -1.5029    
  17  Prefactor     .10000E-03    11.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.8648        6.5383        .15313E-03   -1.5184    
  19  Prefactor     .10000E-03    1.9511        .11294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6735        .29056        .28900E-03   -.73013    
  21  Prefactor     .67345        .13083        .20049E-03   -1.0458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03473e-10
Minuit parameter uncertainties:
  1  3.38792e-05
  2  1.56607e-05
  3  34.5799
  4  22.7452
  5  32.2616
  6  2.3218
  7  1.87305e-05
  8  3.68882e-06
  9  5.36993e-07
  10  65.5114
  11  8.554
  12  1.19949
  13  6.70855e-05
  14  8.01261e-05
  15  6.25337e-05
  16  13.0591
  17  1.17219e-05
  18  6.53893
  19  6.91249e-07
  20  0.290853
  21  0.130885
Done.

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

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  3.986e+00  8.554e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.297e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.008e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  6.734e-01  1.309e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.674e+00  2.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 238.402 12.952
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781698/likelihoodResults_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6856.00125609
delta logL = 1.22384334079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6855.99329941
delta logL = 1.23180002535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9944       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0509       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6855.993     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9955        26.812        .73332E-02    .58683E-03
   2  alpha         4.0514        4.4854        .41061        .51617E-04
   3  Normalizat    1.5698        .77805E-01    .66923E-01    .42459E-05
   4  Prefactor     .70321        .36265E-01    .42444E-01    .14107E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99548
  alpha      = 4.05139
  Normalizat = 1.56984
  Prefactor  = 0.703213
 **********
 **   18 **HESSE 
 **********

 FCN=   6855.993     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9955        4.4070        .77037E-04   -1.5425    
   2  alpha         4.0514        1.3203        .18544E-02    .66945    
   3  Normalizat    1.5698        .28582        .29603E-03   -.75834    
   4  Prefactor     .70321        .13122        .19644E-03   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86246e-13
Minuit parameter uncertainties:
  1  4.40767
  2  1.44852
  3  0.286113
  4  0.131279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781698': 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) = 6855.99329602
delta logL = 1.23180340872

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.995e+00  4.408e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  4.051e+00  1.449e+00  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  1.008e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  7.032e-01  1.313e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.570e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 238.402 12.952
Photon Index (Free Index): 4.05 +/- 1.45
Photon Flux (Free Index): 1.03e-07 +/- 7.30e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/781698/cmap_HighResolution_395107201_395366401_4FGL_J1553.6+1257_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='1.23e+00', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-12 17:30:19.760050', photon_index_error2='1.45', photon_index2='4.05', ts='0.26', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.13e-05', EG='1.67', time_epoch_completed='1631493019.76', return_code='0', job_id='781698', GAL2='0.70', EG2='1.57', return_code2='0', photon_flux_error2='7.30e-08', ts2='2.85', photon_index='2.30' WHERE bin_id='601' AND source_name='4FGL J1553.6+1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:30:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 781698: <4FGL_J1553.6+1257_daily_bin601> in cluster <slac> Done

Job <4FGL_J1553.6+1257_daily_bin601> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 17:20:20 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 17:21:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 17:21:14 2021
Terminated at Sun Sep 12 17:30:20 2021
Results reported at Sun Sep 12 17:30:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1553.6+1257_daily_bin601 238.402 12.9524 395107201 395366401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1553.6+1257 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   525.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            600 sec.

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

