/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 5 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1553.6+1257_daily_bin329
RA = 238.402, Dec = 12.9524
tmin = 324604801, tmax = 324864001
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='778888', job_status='RUN', time_executed='2021-09-12 17:13:48.482712', time_epoch_executed='1631492028.48' WHERE source_name='4FGL J1553.6+1257' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778888/ft1_4FGL_J1553.6+1257_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778888/ft2_4FGL_J1553.6+1257_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778888/ft1_4FGL_J1553.6+1257_daily_bin329.fits outfile=/scratch/kocevski/778888/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin329.fits ra=238.402 dec=12.9524 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.61
user 9.12
sys 0.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778888/ft2_4FGL_J1553.6+1257_daily_bin329.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/778888/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin329.fits evtable="EVENTS" outfile="/scratch/kocevski/778888/ft1_filtered_4FGL_J1553.6+1257_daily_bin329.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778888/ft1_filtered_4FGL_J1553.6+1257_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/778888/ft2_4FGL_J1553.6+1257_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/778888/ltcube_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.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/778888/ft2_4FGL_J1553.6+1257_daily_bin329.fits
.....................!
real 14.15
user 13.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778888/ft1_filtered_4FGL_J1553.6+1257_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/778888/ft2_4FGL_J1553.6+1257_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/778888/ltcube_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.fits outfile=/scratch/kocevski/778888/expmap_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.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/778888/ltcube_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.fits
.....................!
real 192.30
user 186.65
sys 4.86

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/778888/ft1_filtered_4FGL_J1553.6+1257_daily_bin329.fits scfile=/scratch/kocevski/778888/ft2_4FGL_J1553.6+1257_daily_bin329.fits outfile=/scratch/kocevski/778888/cmap_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778888/ft1_filtered_4FGL_J1553.6+1257_daily_bin329.fits scfile=/scratch/kocevski/778888/ft2_4FGL_J1553.6+1257_daily_bin329.fits outfile=/scratch/kocevski/778888/cmap_HighResolution_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.388       1.0000         .10000E-03   10000.    
     2 'Prefactor '    88.037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    109.40       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6618       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7330       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9361       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    66.012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9484       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.391       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8802       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4423       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81657       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=   6402.165     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2176 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.332        42.412       -.87675E-04    .12028E-04
   2  Prefactor     88.033        70.382       -.44590E-05    .13509E-04
   3  Prefactor     .10000E-03    18.643        .25028E-05** at limit **
   4  Prefactor     .10000E-03    91.316        .11472E-04** at limit **
   5  Prefactor     .10000E-03    16.754       -.74475E-05** at limit **
   6  norm          2.0750        2.2015       -.12622E-06    .51137E-04
   7  Prefactor     5.4774        6.0704        .32916E-05   -.14306E-03
   8  Prefactor     .10000E-03    15.928        .44453E-05** at limit **
   9  norm          2.7105        4.5226       -.28842E-05   -.56128E-03
  10  Prefactor     109.39        76.317       -.77726E-05    .30356E-04
  11  norm          7.6612        11.634       -.28338E-05   -.45487E-04
  12  norm          1.7331        1.1974        .49041E-07    .38674E-03
  13  Prefactor     3.9385        14.987       -.91012E-05   -.64150E-04
  14  norm          .10000E-03    11.266       -.97359E-08** at limit **
  15  norm          66.010        81.798       -.21872E-05    .20217E-05
  16  Prefactor     5.9503        15.532       -.72802E-05   -.12405E-04
  17  Prefactor     21.734        35.634       -.44810E-04    .14764E-04
  18  Prefactor     15.392        12.388        .50589E-05    .76524E-04
  19  Prefactor     6.8789        7.5851       -.10976E-05   -.48739E-04
  20  Normalizat    1.4419        .27390        .94732E-05   -.10449E-03
  21  Prefactor     .81674        .12321        .16886E-05    .32907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3324
  Prefactor  = 88.0326
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.07497
  Prefactor  = 5.47743
  Prefactor  = 0.0001
  norm       = 2.7105
  Prefactor  = 109.392
  norm       = 7.66119
  norm       = 1.73309
  Prefactor  = 3.9385
  norm       = 0.0001
  norm       = 66.01
  Prefactor  = 5.95033
  Prefactor  = 21.734
  Prefactor  = 15.3915
  Prefactor  = 6.87893
  Normalizat = 1.44186
  Prefactor  = 0.816736
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.165     FROM HESSE     STATUS=OK           319 CALLS     2495 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.332        42.433        .96048E-04   -1.4875    
   2  Prefactor     88.033        70.408        .42821E-04   -1.3829    
   3  Prefactor     .10000E-03    18.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    92.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0750        2.1992        .11753E-03   -1.5420    
   7  Prefactor     5.4774        6.0491        .17168E-03   -1.5240    
   8  Prefactor     .10000E-03    15.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7105        4.5024        .20773E-03   -1.5379    
  10  Prefactor     109.39        76.302        .38454E-04   -1.3612    
  11  norm          7.6612        11.623        .14488E-03   -1.5154    
  12  norm          1.7331        1.2099        .70542E-04   -1.5445    
  13  Prefactor     3.9385        14.983        .20333E-03   -1.5311    
  14  norm          .10000E-03    11.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          66.010        81.821        .49397E-04   -1.4081    
  16  Prefactor     5.9503        15.552        .16464E-03   -1.5220    
  17  Prefactor     21.734        35.641        .85840E-04   -1.4775    
  18  Prefactor     15.392        12.377        .10209E-03   -1.4923    
  19  Prefactor     6.8789        7.5790        .15296E-03   -1.5183    
  20  Normalizat    1.4419        .33437        .33005E-03   -.79426    
  21  Prefactor     .81674        .15074        .19515E-03   -.99114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08091e-09
Minuit parameter uncertainties:
  1  42.5067
  2  70.475
  3  1.01063e-05
  4  0.000547533
  5  3.78466e-05
  6  2.19927
  7  6.04973
  8  2.89703e-05
  9  4.50294
  10  76.3711
  11  11.6266
  12  1.20988
  13  14.9973
  14  2.9942e-05
  15  81.9609
  16  15.5625
  17  35.6759
  18  12.3794
  19  7.58001
  20  0.334883
  21  0.150819
Done.

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

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  7.661e+00  1.163e+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:  8.167e-01  1.508e-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.442e+00  3.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/778888/likelihoodResults_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.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) = 6400.93664304
delta logL = 1.22883498444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.88350121
delta logL = 1.2819768184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64723       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87516       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=   6400.883     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      298 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64723        12.259        .90436E-02    .17754E-02
   2  alpha         5.0000        4.6344        .46268    ** at limit **
   3  Normalizat    1.2723        .14383        .78517E-01    .32425E-04
   4  Prefactor     .87512        .63867E-01    .44688E-01    .29446E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.647233
  alpha      = 5
  Normalizat = 1.27231
  Prefactor  = 0.87512
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.883     FROM HESSE     STATUS=OK            35 CALLS      333 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64723        .55247        .40979E-04   -1.5547    
   2  alpha         5.0000        1.1141        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2723        .34435        .34755E-03   -.84397    
   4  Prefactor     .87512        .15441        .18918E-03   -.97016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61174e-11
Minuit parameter uncertainties:
  1  0.552471
  2  2.12806e-05
  3  0.344974
  4  0.154482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778888': 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) = 6400.8834995
delta logL = 1.28197853095

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  6.472e-01  5.525e-01  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  5.000e+00  2.128e-05  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.751e-01  1.545e-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.272e+00  3.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 238.402 12.952
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.49e-07 +/- 1.27e-07
Energy Flux (Free Index): 2.03e-05 +/- 1.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/778888/cmap_HighResolution_324604801_324864001_4FGL_J1553.6+1257_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-05', comment='SUCCESS', energy_flux2='2.03e-05', dlogl='1.28e+00', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-12 17:24:21.737615', photon_index_error2='0.00', photon_index2='5.00', ts='0.54', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.73e-05', EG='1.44', time_epoch_completed='1631492661.74', return_code='0', job_id='778888', GAL2='0.88', EG2='1.27', return_code2='0', photon_flux_error2='1.27e-07', ts2='3.41', photon_index='2.30' WHERE bin_id='329' AND source_name='4FGL J1553.6+1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:24:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 778888: <4FGL_J1553.6+1257_daily_bin329> in cluster <slac> Done

Job <4FGL_J1553.6+1257_daily_bin329> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 17:10:28 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 17:13:36 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:13:36 2021
Terminated at Sun Sep 12 17:24:22 2021
Results reported at Sun Sep 12 17:24:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1553.6+1257_daily_bin329 238.402 12.9524 324604801 324864001 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            834 sec.

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

