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


Performing analysis on: 4FGL_J1553.6+1257_daily_bin1409
RA = 238.402, Dec = 12.9524
tmin = 604540801, tmax = 604800001
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='786071', job_status='RUN', time_executed='2021-09-12 17:37:13.809148', time_epoch_executed='1631493433.81' WHERE source_name='4FGL J1553.6+1257' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786071/ft1_4FGL_J1553.6+1257_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786071/ft2_4FGL_J1553.6+1257_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786071/ft1_4FGL_J1553.6+1257_daily_bin1409.fits outfile=/scratch/kocevski/786071/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin1409.fits ra=238.402 dec=12.9524 rad=12.0 tmin=604540801.0 tmax=604800001.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.67
user 3.41
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/786071/ft2_4FGL_J1553.6+1257_daily_bin1409.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/786071/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin1409.fits evtable="EVENTS" outfile="/scratch/kocevski/786071/ft1_filtered_4FGL_J1553.6+1257_daily_bin1409.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.52
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786071/ft1_filtered_4FGL_J1553.6+1257_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/786071/ft2_4FGL_J1553.6+1257_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/786071/ltcube_604540801_604800001_4FGL_J1553.6+1257_daily_bin1409.fits outfile=/scratch/kocevski/786071/expmap_604540801_604800001_4FGL_J1553.6+1257_daily_bin1409.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/786071/ltcube_604540801_604800001_4FGL_J1553.6+1257_daily_bin1409.fits
.....................!
real 192.82
user 187.74
sys 4.61

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/786071/ft1_filtered_4FGL_J1553.6+1257_daily_bin1409.fits scfile=/scratch/kocevski/786071/ft2_4FGL_J1553.6+1257_daily_bin1409.fits outfile=/scratch/kocevski/786071/cmap_604540801_604800001_4FGL_J1553.6+1257_daily_bin1409.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786071/ft1_filtered_4FGL_J1553.6+1257_daily_bin1409.fits scfile=/scratch/kocevski/786071/ft2_4FGL_J1553.6+1257_daily_bin1409.fits outfile=/scratch/kocevski/786071/cmap_HighResolution_604540801_604800001_4FGL_J1553.6+1257_daily_bin1409.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.358       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.836       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.2342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .80585E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.198       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.250       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2531       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0069       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=   10710.14     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2227 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.075        .39069E-06** at limit **
   2  Prefactor     .10000E-03    13.424        .26173E-06** at limit **
   3  Prefactor     31.367        30.196        .11642E-04   -.16568E-04
   4  Prefactor     12.843        15.962        .51682E-06   -.14915E-04
   5  Prefactor     .10000E-03    5.4555        .22633E-07** at limit **
   6  norm          5.2349        2.6249       -.14277E-07   -.78914E-04
   7  Prefactor     .42489E-01    1.4245        .88067E-07   -.54501E-04
   8  Prefactor     .10000E-03    10.252        .31352E-07** at limit **
   9  norm          .10000E-03    1.6955        .87646E-08** at limit **
  10  Prefactor     .10000E-03    16.200       -.19034E-07** at limit **
  11  norm          13.205        9.5972       -.23078E-06   -.86595E-04
  12  norm          1.8999        1.2994        .19012E-07   -.95050E-04
  13  Prefactor     .10000E-03    7.2577        .22713E-07** at limit **
  14  norm          20.256        13.574        .61197E-06   -.29009E-04
  15  norm          .10000E-03    51.062       -.10201E-05** at limit **
  16  Prefactor     .10000E-03    6.1436        .41821E-07** at limit **
  17  Prefactor     .10000E-03    10.248        .64241E-07** at limit **
  18  Prefactor     .10000E-03    4.1761        .22136E-07** at limit **
  19  Prefactor     .10000E-03    5.4398        .62938E-07** at limit **
  20  Normalizat    1.2523        .21367       -.27877E-05    .53546E-04
  21  Prefactor     1.0072        .98705E-01    .51142E-06   -.26540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3667
  Prefactor  = 12.8427
  Prefactor  = 0.0001
  norm       = 5.23488
  Prefactor  = 0.0424887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2051
  norm       = 1.89987
  Prefactor  = 0.0001
  norm       = 20.2565
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25226
  Prefactor  = 1.00717
 **********
 **   18 **HESSE 
 **********

 FCN=   10710.14     FROM HESSE     STATUS=OK           319 CALLS     2546 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.367        30.239        .71552E-04   -1.4587    
   4  Prefactor     12.843        15.968        .11180E-03   -1.4991    
   5  Prefactor     .10000E-03    5.4570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.2349        2.6234        .11362E-03   -1.5250    
   7  Prefactor     .42489E-01    4.4050        .37866E-01   -1.5667    
   8  Prefactor     .10000E-03    10.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7397        .26298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.205        9.6019        .11026E-03   -1.4981    
  12  norm          1.8999        1.2993        .93489E-04   -1.5432    
  13  Prefactor     .10000E-03    7.3827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.256        13.582        .89007E-04   -1.4808    
  15  norm          .10000E-03    51.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2523        .25988        .35033E-03   -.85003    
  21  Prefactor     1.0072        .12116        .18421E-03   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62378e-10
Minuit parameter uncertainties:
  1  3.55617e-05
  2  4.8309e-06
  3  30.2542
  4  15.9737
  5  1.72151e-06
  6  2.62347
  7  0.864289
  8  6.68916e-07
  9  3.49216e-06
  10  5.19346e-06
  11  9.60299
  12  1.29936
  13  1.22377e-05
  14  13.5843
  15  5.39458e-06
  16  1.04406e-05
  17  7.69811e-06
  18  5.94162e-06
  19  8.79317e-06
  20  0.260153
  21  0.121188
Done.

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

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.321e+01  9.603e+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:  1.007e+00  1.212e-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.252e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.14
Ra Dec: 238.402 12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.39e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/786071/likelihoodResults_604540801_604800001_4FGL_J1553.6+1257_daily_bin1409.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) = 10708.8139214
delta logL = 1.3245180439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10708.8056751
delta logL = 1.33276437503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6202       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3933       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0455       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=   10708.81     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      250 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6177        52.353        .36318E-02    .45029E-03
   2  alpha         3.3944        4.0633        .32505        .94150E-04
   3  Normalizat    1.1320        .77806E-01    .82551E-01    .51312E-04
   4  Prefactor     1.0454        .35486E-01    .40179E-01    .27408E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.61774
  alpha      = 3.39435
  Normalizat = 1.132
  Prefactor  = 1.04541
 **********
 **   18 **HESSE 
 **********

 FCN=   10708.81     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6177        9.5443        .12817E-03   -1.5156    
   2  alpha         3.3944        .89457        .12970E-01    .36585    
   3  Normalizat    1.1320        .26364        .36548E-03   -.88731    
   4  Prefactor     1.0454        .12317        .18108E-03   -.91231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38486e-08
Minuit parameter uncertainties:
  1  9.54617
  2  0.918053
  3  0.263953
  4  0.123201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786071': 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) = 10708.8056709
delta logL = 1.33276854808

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  7.618e+00  9.546e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  3.394e+00  9.181e-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:  1.045e+00  1.232e-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.132e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 238.402 12.952
Photon Index (Free Index): 3.39 +/- 0.92
Photon Flux (Free Index): 1.49e-07 +/- 7.64e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.36e-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/786071/cmap_HighResolution_604540801_604800001_4FGL_J1553.6+1257_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-05', comment='SUCCESS', photon_flux='6.39e-08', energy_flux2='2.68e-05', photon_flux_error='4.65e-08', dlogl='1.33e+00', energy_flux='2.24e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-12 17:50:44.443208', photon_index_error2='0.92', photon_index2='3.39', ts='3.14', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.36e-05', EG='1.25', time_epoch_completed='1631494244.44', return_code='0', job_id='786071', GAL2='1.05', EG2='1.13', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.64e-08', ts2='6.13', photon_index='2.30' WHERE bin_id='1409' AND source_name='4FGL J1553.6+1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 786071: <4FGL_J1553.6+1257_daily_bin1409> in cluster <slac> Done

Job <4FGL_J1553.6+1257_daily_bin1409> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 17:35:35 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 17:36:59 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:36:59 2021
Terminated at Sun Sep 12 17:50:45 2021
Results reported at Sun Sep 12 17:50:45 2021

Your job looked like:

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

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

