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


Performing analysis on: 4FGL_J1553.6+1257_daily_bin56
RA = 238.402, Dec = 12.9524
tmin = 253843201, tmax = 254102401
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='777362', job_status='RUN', time_executed='2021-09-12 17:09:16.651924', time_epoch_executed='1631491756.65' WHERE source_name='4FGL J1553.6+1257' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/777362

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/777362/ft1_4FGL_J1553.6+1257_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/777362/ft1_4FGL_J1553.6+1257_daily_bin56.fits outfile=/scratch/kocevski/777362/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin56.fits ra=238.402 dec=12.9524 rad=12.0 tmin=253843201.0 tmax=254102401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.48
user 1.31
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.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/777362/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/777362/ft1_filtered_4FGL_J1553.6+1257_daily_bin56.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/777362/ft1_filtered_4FGL_J1553.6+1257_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/777362/ltcube_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.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/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits
.....................!
real 15.02
user 14.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/777362/ft1_filtered_4FGL_J1553.6+1257_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/777362/ltcube_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.fits outfile=/scratch/kocevski/777362/expmap_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.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/777362/ltcube_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.fits
.....................!
real 192.03
user 186.47
sys 5.21

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/777362/ft1_filtered_4FGL_J1553.6+1257_daily_bin56.fits scfile=/scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits outfile=/scratch/kocevski/777362/cmap_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/777362/ft1_filtered_4FGL_J1553.6+1257_daily_bin56.fits scfile=/scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits outfile=/scratch/kocevski/777362/cmap_HighResolution_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/777362/ft1_filtered_4FGL_J1553.6+1257_daily_bin56.fits', '/scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits', expMap='/scratch/kocevski/777362/expmap_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.fits', expCube='/scratch/kocevski/777362/ltcube_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/777362/Model_4FGL_J1553.6+1257_daily_bin56.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/777362/ft1_filtered_4FGL_J1553.6+1257_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/777362/ft2_4FGL_J1553.6+1257_daily_bin56.fits
Exposure map: /scratch/kocevski/777362/expmap_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.fits
Exposure cube: /scratch/kocevski/777362/ltcube_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/777362/Model_4FGL_J1553.6+1257_daily_bin56.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) = 9423.90423845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5394       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9915       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6914       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.790       1.0000         .10000E-03   10000.    
    11 'norm      '    11.827       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6302       1.0000         .10000E-03   10000.    
    14 'norm      '    12.083       1.0000         .10000E-03   10000.    
    15 'norm      '    26.382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8227       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4305       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87205       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=   9423.903     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2174 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.587        48.215       -.98032E-06   -.63135E-05
   2  Prefactor     .10000E-03    31.437       -.10203E-06** at limit **
   3  Prefactor     7.3301        34.244       -.15295E-06   -.13127E-05
   4  Prefactor     .10000E-03    7.4503       -.21041E-07** at limit **
   5  Prefactor     .10000E-03    11.172        .20175E-06** at limit **
   6  norm          1.5395        1.6517        .23679E-07   -.55421E-05
   7  Prefactor     7.9908        4.4419       -.64593E-07   -.10123E-04
   8  Prefactor     .10000E-03    11.225        .16112E-07** at limit **
   9  norm          2.6926        3.7562        .16646E-05    .18229E-05
  10  Prefactor     10.690        93.751        .17169E-04   -.10693E-05
  11  norm          11.829        8.1146       -.87729E-07   -.23926E-04
  12  norm          2.9897        1.3323       -.59322E-07   -.10287E-03
  13  Prefactor     5.6302        5.4010        .33358E-07   -.91232E-06
  14  norm          12.084        11.625       -.83349E-07   -.15237E-04
  15  norm          26.367        77.290        .20792E-05    .56783E-06
  16  Prefactor     .10000E-03    6.0853       -.35093E-07** at limit **
  17  Prefactor     21.274        27.783        .42497E-06   -.36065E-05
  18  Prefactor     .10000E-03    3.8338        .24864E-07** at limit **
  19  Prefactor     1.8218        5.0860        .37063E-06    .42414E-05
  20  Normalizat    1.4300        .22131       -.13851E-08   -.22826E-04
  21  Prefactor     .87226        .10301       -.63402E-06    .52485E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.5868
  Prefactor  = 0.0001
  Prefactor  = 7.33009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53946
  Prefactor  = 7.99083
  Prefactor  = 0.0001
  norm       = 2.69257
  Prefactor  = 10.6903
  norm       = 11.8294
  norm       = 2.98971
  Prefactor  = 5.63022
  norm       = 12.0839
  norm       = 26.3675
  Prefactor  = 0.0001
  Prefactor  = 21.2743
  Prefactor  = 0.0001
  Prefactor  = 1.82177
  Normalizat = 1.43003
  Prefactor  = 0.872258
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.903     FROM HESSE     STATUS=OK           321 CALLS     2495 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.587        48.376        .52420E-04   -1.4176    
   2  Prefactor     .10000E-03    31.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3301        34.884        .14817E-03   -1.5166    
   4  Prefactor     .10000E-03    7.4567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5395        1.6404        .12520E-03   -1.5460    
   7  Prefactor     7.9908        4.4428        .14183E-03   -1.5143    
   8  Prefactor     .10000E-03    11.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6926        3.7607        .10546E-02   -1.5380    
  10  Prefactor     10.690        94.190        .12197E-03   -1.5054    
  11  norm          11.829        8.1163        .11648E-03   -1.5020    
  12  norm          2.9897        1.3352        .72513E-04   -1.5362    
  13  Prefactor     5.6302        5.4036        .16930E-03   -1.5233    
  14  norm          12.084        11.627        .11524E-03   -1.5013    
  15  norm          26.367        77.457        .77993E-04   -1.4681    
  16  Prefactor     .10000E-03    6.1252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.274        27.797        .86834E-04   -1.4785    
  18  Prefactor     .10000E-03    3.8510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8218        5.0644        .30927E-03   -1.5438    
  20  Normalizat    1.4300        .26957        .32811E-03   -.79764    
  21  Prefactor     .87226        .12482        .19434E-03   -.97117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42832e-12
Minuit parameter uncertainties:
  1  48.408
  2  6.87509e-06
  3  32.0114
  4  2.89973e-06
  5  2.91863e-06
  6  1.6404
  7  4.443
  8  3.79974e-06
  9  3.76104
  10  63.5982
  11  8.11706
  12  1.33518
  13  5.40406
  14  11.629
  15  77.7542
  16  5.17202e-06
  17  27.8136
  18  3.80903e-07
  19  5.06556
  20  0.269834
  21  0.124863
Done.

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

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.183e+01  8.117e+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:  8.723e-01  1.249e-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.430e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.75
Ra Dec: 238.402 12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/777362/likelihoodResults_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.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) = 9423.72759332
delta logL = 0.175818166346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9423.71538323
delta logL = 0.188028262106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.671       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7080       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88204       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=   9423.715     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.676        118.08        .30662E-02    .23264E-03
   2  alpha         2.7093        3.8223        .41333        .83559E-04
   3  Normalizat    1.3956        .89914E-01    .74876E-01   -.27914E-04
   4  Prefactor     .88204        .36398E-01    .44776E-01   -.99276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.6763
  alpha      = 2.70929
  Normalizat = 1.39561
  Prefactor  = 0.882035
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.715     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.676        8.2813        .12265E-03   -1.5054    
   2  alpha         2.7093        .70840        .15684E-01    .83815E-01
   3  Normalizat    1.3956        .26077        .33135E-03   -.80756    
   4  Prefactor     .88204        .12229        .19335E-03   -.96772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73713e-11
Minuit parameter uncertainties:
  1  8.28214
  2  0.718307
  3  0.261014
  4  0.122329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/777362': 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) = 9423.71537916
delta logL = 0.188032333743

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.068e+01  8.282e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.709e+00  7.183e-01  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:  8.820e-01  1.223e-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.396e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 238.402 12.952
Photon Index (Free Index): 2.71 +/- 0.72
Photon Flux (Free Index): 8.33e-08 +/- 6.09e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.25e-05

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/777362/cmap_HighResolution_253843201_254102401_4FGL_J1553.6+1257_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-05', comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='2.05e-05', photon_flux_error='3.93e-08', dlogl='1.88e-01', energy_flux='2.01e-05', photon_flux2='8.33e-08', job_status='DONE', time_completed='2021-09-12 17:21:26.656135', photon_index_error2='0.72', photon_index2='2.71', ts='3.75', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.25e-05', EG='1.43', time_epoch_completed='1631492486.66', return_code='0', job_id='777362', GAL2='0.88', EG2='1.40', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='6.09e-08', ts2='4.25', photon_index='2.30' WHERE bin_id='56' AND source_name='4FGL J1553.6+1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:21:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 777362: <4FGL_J1553.6+1257_daily_bin56> in cluster <slac> Done

Job <4FGL_J1553.6+1257_daily_bin56> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 17:05:15 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 17:05:28 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:05:28 2021
Terminated at Sun Sep 12 17:21:27 2021
Results reported at Sun Sep 12 17:21:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1553.6+1257_daily_bin56 238.402 12.9524 253843201 254102401 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            972 sec.

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

