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


Performing analysis on: 4FGL_J1553.6+1257_daily_bin1231
RA = 238.402, Dec = 12.9524
tmin = 558403201, tmax = 558662401
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='784607', job_status='RUN', time_executed='2021-09-12 17:35:45.340754', time_epoch_executed='1631493345.34' WHERE source_name='4FGL J1553.6+1257' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784607

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784607/ft1_4FGL_J1553.6+1257_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784607/ft2_4FGL_J1553.6+1257_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784607/ft1_4FGL_J1553.6+1257_daily_bin1231.fits outfile=/scratch/kocevski/784607/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin1231.fits ra=238.402 dec=12.9524 rad=12.0 tmin=558403201.0 tmax=558662401.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 3.77
user 3.51
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784607/ft1_filtered_4FGL_J1553.6+1257_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/784607/ft2_4FGL_J1553.6+1257_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/784607/ltcube_558403201_558662401_4FGL_J1553.6+1257_daily_bin1231.fits outfile=/scratch/kocevski/784607/expmap_558403201_558662401_4FGL_J1553.6+1257_daily_bin1231.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/784607/ltcube_558403201_558662401_4FGL_J1553.6+1257_daily_bin1231.fits
.....................!
real 190.41
user 185.70
sys 4.29

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/784607/ft1_filtered_4FGL_J1553.6+1257_daily_bin1231.fits scfile=/scratch/kocevski/784607/ft2_4FGL_J1553.6+1257_daily_bin1231.fits outfile=/scratch/kocevski/784607/cmap_558403201_558662401_4FGL_J1553.6+1257_daily_bin1231.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784607/ft1_filtered_4FGL_J1553.6+1257_daily_bin1231.fits scfile=/scratch/kocevski/784607/ft2_4FGL_J1553.6+1257_daily_bin1231.fits outfile=/scratch/kocevski/784607/cmap_HighResolution_558403201_558662401_4FGL_J1553.6+1257_daily_bin1231.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.486       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1296       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13277E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.743       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7844       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.289       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    43.585       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4542       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1129       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97912       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=   6945.603     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2258 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    210.42       -.21148E-05** at limit **
   2  Prefactor     .10000E-03    14.219       -.39562E-07** at limit **
   3  Prefactor     13.932        44.555       -.42727E-05    .15604E-04
   4  Prefactor     36.474        41.954       -.93980E-06    .17817E-04
   5  Prefactor     .10000E-03    10.887       -.79736E-07** at limit **
   6  norm          4.1294        3.2669        .73323E-07    .34156E-04
   7  Prefactor     .10000E-03    2.6137       -.43285E-06** at limit **
   8  Prefactor     48.746        48.376       -.36631E-06    .11649E-04
   9  norm          3.7862        4.5326        .57522E-06    .36727E-03
  10  Prefactor     .10000E-03    73.588       -.31538E-06** at limit **
  11  norm          10.287        10.202       -.22001E-06    .24449E-04
  12  norm          2.9195        1.8237        .10964E-06   -.84484E-05
  13  Prefactor     .10000E-03    6.6771       -.15108E-06** at limit **
  14  norm          .10000E-03    5.7419       -.28398E-07** at limit **
  15  norm          43.966        132.60        .38564E-05    .29060E-04
  16  Prefactor     9.4416        17.517       -.12178E-05    .28142E-04
  17  Prefactor     .10000E-03    25.593       -.22831E-06** at limit **
  18  Prefactor     .10000E-03    4.4474       -.95309E-07** at limit **
  19  Prefactor     .10000E-03    3.6139       -.57445E-07** at limit **
  20  Normalizat    1.1144        .32623        .17397E-04    .96501E-04
  21  Prefactor     .97843        .14832       -.82191E-05    .23648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.9322
  Prefactor  = 36.474
  Prefactor  = 0.0001
  norm       = 4.12939
  Prefactor  = 0.0001
  Prefactor  = 48.7459
  norm       = 3.7862
  Prefactor  = 0.0001
  norm       = 10.2869
  norm       = 2.91951
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 43.9656
  Prefactor  = 9.44164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11439
  Prefactor  = 0.978432
 **********
 **   18 **HESSE 
 **********

 FCN=   6945.603     FROM HESSE     STATUS=OK           317 CALLS     2575 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    213.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.932        44.609        .10706E-03   -1.4961    
   4  Prefactor     36.474        41.935        .66348E-04   -1.4499    
   5  Prefactor     .10000E-03    10.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1294        3.2597        .12605E-03   -1.5302    
   7  Prefactor     .10000E-03    5.2785        .25979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.746        48.326        .57436E-04   -1.4310    
   9  norm          3.7862        4.5194        .18603E-03   -1.5319    
  10  Prefactor     .10000E-03    73.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.287        10.187        .12491E-03   -1.5066    
  12  norm          2.9195        1.8221        .85871E-04   -1.5366    
  13  Prefactor     .10000E-03    6.7076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.7549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.966        132.43        .30363E-03   -1.4381    
  16  Prefactor     9.4416        17.527        .13034E-03   -1.5093    
  17  Prefactor     .10000E-03    25.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4572        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6234        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1144        .32609        .36459E-03   -.89291    
  21  Prefactor     .97843        .14755        .18340E-03   -.93452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49724e-10
Minuit parameter uncertainties:
  1  0.00135148
  2  5.47358e-06
  3  44.716
  4  41.9692
  5  1.57988e-05
  6  3.25984
  7  3.9608e-05
  8  48.3649
  9  4.51983
  10  0.000145362
  11  10.1892
  12  1.82209
  13  2.55688e-05
  14  9.97083e-06
  15  133.33
  16  17.5362
  17  4.12149e-05
  18  4.1057e-06
  19  1.86625e-07
  20  0.326683
  21  0.147607
Done.

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

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.029e+01  1.019e+01  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:  9.784e-01  1.476e-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.114e+00  3.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 238.402 12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.98e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/784607/likelihoodResults_558403201_558662401_4FGL_J1553.6+1257_daily_bin1231.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) = 6945.57096043
delta logL = 0.0318434045876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6945.56891379
delta logL = 0.0338900489651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7667       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4973       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98134       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=   6945.569     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      212 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7626        310.29        .32056E-02    .76505E-04
   2  alpha         2.4978        2.7592        .41152        .29304E-04
   3  Normalizat    1.1034        .11824        .82695E-01    .85842E-04
   4  Prefactor     .98168        .51800E-01    .46033E-01    .76603E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.7626
  alpha      = 2.49783
  Normalizat = 1.10342
  Prefactor  = 0.98168
 **********
 **   18 **HESSE 
 **********

 FCN=   6945.569     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7626        10.015        .12822E-03   -1.5083    
   2  alpha         2.4978        .78422        .19205E-01   -.86907E-03
   3  Normalizat    1.1034        .30430        .36612E-03   -.89642    
   4  Prefactor     .98168        .14407        .18313E-03   -.93343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46573e-11
Minuit parameter uncertainties:
  1  10.0171
  2  0.797687
  3  0.304789
  4  0.144127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784607': 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) = 6945.5689071
delta logL = 0.0338967333346

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  9.763e+00  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.498e+00  7.977e-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:  9.817e-01  1.441e-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.103e+00  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 238.402 12.952
Photon Index (Free Index): 2.50 +/- 0.80
Photon Flux (Free Index): 5.91e-08 +/- 6.29e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.63e-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/784607/cmap_HighResolution_558403201_558662401_4FGL_J1553.6+1257_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-05', comment='SUCCESS', photon_flux='4.98e-08', energy_flux2='1.71e-05', photon_flux_error='4.93e-08', dlogl='3.39e-02', energy_flux='1.75e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-09-12 17:47:05.319787', photon_index_error2='0.80', photon_index2='2.50', ts='1.97', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.63e-05', EG='1.11', time_epoch_completed='1631494025.32', return_code='0', job_id='784607', GAL2='0.98', EG2='1.10', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='6.29e-08', ts2='2.05', photon_index='2.30' WHERE bin_id='1231' AND source_name='4FGL J1553.6+1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:47:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 784607: <4FGL_J1553.6+1257_daily_bin1231> in cluster <slac> Done

Job <4FGL_J1553.6+1257_daily_bin1231> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 17:30:35 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 17:31:55 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:31:55 2021
Terminated at Sun Sep 12 17:47:06 2021
Results reported at Sun Sep 12 17:47:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1553.6+1257_daily_bin1231 238.402 12.9524 558403201 558662401 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            991 sec.

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

