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


Performing analysis on: 4FGL_J1553.5-3118_daily_bin1443
RA = 238.392, Dec = -31.3113
tmin = 613353601, tmax = 613612801
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='774615', job_status='RUN', time_executed='2021-09-12 16:58:37.412736', time_epoch_executed='1631491117.41' WHERE source_name='4FGL J1553.5-3118' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774615/ft1_4FGL_J1553.5-3118_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774615/ft1_4FGL_J1553.5-3118_daily_bin1443.fits outfile=/scratch/kocevski/774615/ft1_filteredMKT_4FGL_J1553.5-3118_daily_bin1443.fits ra=238.392 dec=-31.3113 rad=12.0 tmin=613353601.0 tmax=613612801.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 2.72
user 2.51
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.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/774615/ft1_filteredMKT_4FGL_J1553.5-3118_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/774615/ltcube_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.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/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits
.....................!
real 14.09
user 13.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/774615/ltcube_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.fits outfile=/scratch/kocevski/774615/expmap_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.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/774615/ltcube_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.fits
.....................!
real 191.94
user 187.37
sys 4.09

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
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Added 368 point sources and 9 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1553.5-3118 @ 238.392 -31.3113

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits scfile=/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits outfile=/scratch/kocevski/774615/cmap_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.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.392 yref=-31.3113 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits scfile=/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits outfile=/scratch/kocevski/774615/cmap_HighResolution_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.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.392 yref=-31.3113 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/774615/Model_4FGL_J1553.5-3118_daily_bin1443.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 FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1626.9-2431
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits.....................!
real 44.00
user 42.67
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits', '/scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits', expMap='/scratch/kocevski/774615/expmap_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.fits', expCube='/scratch/kocevski/774615/ltcube_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/774615/Model_4FGL_J1553.5-3118_daily_bin1443.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1553.5-3118'

4FGL J1553.5-3118
   Spectrum: LogParabola
370         norm:  3.560e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        alpha:  1.844e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
372         beta:  8.386e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
373           Eb:  1.988e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/774615/ft1_filtered_4FGL_J1553.5-3118_daily_bin1443.fits
Spacecraft file(s): /scratch/kocevski/774615/ft2_4FGL_J1553.5-3118_daily_bin1443.fits
Exposure map: /scratch/kocevski/774615/expmap_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.fits
Exposure cube: /scratch/kocevski/774615/ltcube_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/774615/Model_4FGL_J1553.5-3118_daily_bin1443.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) = 1674.1553214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11914E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19341       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .54683E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10629E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.007       1.0000         .10000E-03   10000.    
     7 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    114.94       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.032       1.0000         .10000E-03   10000.    
    12 'norm      '    .11256E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.150       1.0000         .10000E-03   10000.    
    14 'norm      '    151.14       1.0000         .10000E-03   10000.    
    15 'norm      '    211.42       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1333E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1672.004     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2309 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.257       -.28203E-06** at limit **
   2  Prefactor     .70478E-02    30.321       -.28935E-05    .13344E-03
   3  norm          .10000E-03    3.8322       -.70479E-07** at limit **
   4  norm          .10000E-03    203.37       -.17010E-05** at limit **
   5  norm          .10000E-03    .99480       -.40423E-06** at limit **
   6  Prefactor     18.058        16.012        .91144E-06    .12291E-04
   7  norm          .10000E-03    4.4306       -.40647E-06** at limit **
   8  Prefactor     115.02        138.40        .25686E-06    .33264E-04
   9  Prefactor     .10000E-03    102.68       -.22870E-06** at limit **
  10  norm          .10000E-03    32.787        .47260E-08** at limit **
  11  Prefactor     13.045        12.805        .55014E-07    .18883E-03
  12  norm          .10000E-03    11.160       -.22308E-06** at limit **
  13  Prefactor     38.164        85.228       -.22397E-05   -.45563E-04
  14  norm          151.42        290.06        .15904E-05    .56103E-04
  15  norm          211.30        194.25       -.14278E-05   -.41882E-04
  16  norm          .10000E-03    55.414       -.52961E-07** at limit **
  17  Prefactor    10000.0        6232.0       -.35120E-06** at limit **
  18  Normalizat    .10000E-01    .30142       -.35097E-04** at limit **
  19  Prefactor     1.1340        .10765        .38704E-05    .55924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00704776
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0577
  norm       = 0.0001
  Prefactor  = 115.015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0448
  norm       = 0.0001
  Prefactor  = 38.1645
  norm       = 151.416
  norm       = 211.295
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.13402
 **********
 **   18 **HESSE 
 **********

 FCN=   1672.004     FROM HESSE     STATUS=OK           266 CALLS     2575 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.298        .16105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .70478E-02    87.265        .55210E-01   -1.5725    
   3  norm          .10000E-03    3.8348        .78183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    204.51        .21112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8464        .78756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.058        16.133        .94383E-04   -1.4858    
   7  norm          .10000E-03    4.4421        .84026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     115.02        138.51        .18763E-03   -1.3559    
   9  Prefactor     .10000E-03    102.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    32.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.045        12.824        .11096E-03   -1.4985    
  12  norm          .10000E-03    11.162        .13343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.164        85.227        .64890E-04   -1.4472    
  14  norm          151.42        288.92        .16392E-03   -1.3241    
  15  norm          211.30        193.94        .13903E-03   -1.2790    
  16  norm          .10000E-03    55.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        6232.1        .18174E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .37321        .13426E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1340        .12167        .13643E-03   -.88386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39826e-09
Minuit parameter uncertainties:
  1  2.07743e-05
  2  1.55957
  3  5.3573e-06
  4  2.43894e-05
  5  4.31607e-05
  6  16.1372
  7  2.10509e-05
  8  138.899
  9  0.000162074
  10  2.61e-05
  11  12.8269
  12  3.72958e-05
  13  85.5012
  14  291.69
  15  194.529
  16  8.21864e-05
  17  0.00154268
  18  1.4772e-05
  19  0.121696
Done.

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

Extracting fit parameters...

4FGL J1553.5-3118
   Spectrum: LogParabola
370         norm:  1.000e-04  2.610e-05  1.000e-04  1.000e+04 ( 1.000e-13)
371        alpha:  1.844e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
372         beta:  8.386e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
373           Eb:  1.988e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1319    Prefactor:  1.134e+00  1.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1320        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1321        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1297   Normalization:  1.000e-02  1.477e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 238.392 -31.311
Photon Flux Upper Limit: 3.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774615/likelihoodResults_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.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): 102
logL (Free Index) = 1672.0039067
delta logL = -0.000153032181743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1672.00376009
delta logL = -6.41994733996e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6623       1.0000          .0000       5.0000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1333E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1672.004     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      293 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1168.1        .14825E-01** at limit **
   2  alpha         1.4982        2.9402        .16505        .51317E-08
   3  Normalizat    .10000E-01    .27084E-01    .13435E-01** at limit **
   4  Prefactor     1.1340        .29019E-01    .13643E-03   -.21542E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.4982
  Normalizat = 0.01
  Prefactor  = 1.13402
 **********
 **   18 **HESSE 
 **********

 FCN=   1672.004     FROM HESSE     STATUS=OK            27 CALLS      320 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    148.77        .24058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4982        3.0795        .66019E-01   -.41230    
   3  Normalizat    .10000E-01    .37326        .26870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1340        .10831        .27285E-04   -.88386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02544e-11
Minuit parameter uncertainties:
  1  5.39867e-05
  2  1311.09
  3  2.7468e-06
  4  0.10833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774615': 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) = 1672.00375352
delta logL = 1.4574288798e-07

Extracting fit parameters...

4FGL J1553.5-3118
   Spectrum: LogParabola
370         norm:  1.000e-04  5.399e-05  1.000e-04  1.000e+04 ( 1.000e-13)
371        alpha:  1.498e+00  1.311e+03  0.000e+00  5.000e+00 ( 1.000e+00)
372         beta:  8.386e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
373           Eb:  1.988e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1319    Prefactor:  1.134e+00  1.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1320        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1321        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1297   Normalization:  1.000e-02  2.747e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 238.392 -31.311

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/774615/cmap_HighResolution_613353601_613612801_4FGL_J1553.5-3118_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-04', job_status='DONE', photon_flux_upper_limit='3.64e-07', time_completed='2021-09-12 17:08:04.615527', job_id='774615', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631491684.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.84' WHERE bin_id='1443' AND source_name='4FGL J1553.5-3118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:08:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 774615: <4FGL_J1553.5-3118_daily_bin1443> in cluster <slac> Done

Job <4FGL_J1553.5-3118_daily_bin1443> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 16:55:29 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 16:56:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 16:56:58 2021
Terminated at Sun Sep 12 17:08:04 2021
Results reported at Sun Sep 12 17:08:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1553.5-3118_daily_bin1443 238.392 -31.3113 613353601 613612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1553.5-3118 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   550.31 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             347.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            755 sec.

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

