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


Performing analysis on: 4FGL_J1553.6+1257_daily_bin1561
RA = 238.402, Dec = 12.9524
tmin = 643939201, tmax = 644198401
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='787363', job_status='RUN', time_executed='2021-09-12 17:40:44.638522', time_epoch_executed='1631493644.64' WHERE source_name='4FGL J1553.6+1257' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787363

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787363/ft1_4FGL_J1553.6+1257_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787363/ft1_4FGL_J1553.6+1257_daily_bin1561.fits outfile=/scratch/kocevski/787363/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin1561.fits ra=238.402 dec=12.9524 rad=12.0 tmin=643939201.0 tmax=644198401.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 4.53
user 4.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.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/787363/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/787363/ft1_filtered_4FGL_J1553.6+1257_daily_bin1561.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.53
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787363/ft1_filtered_4FGL_J1553.6+1257_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/787363/ltcube_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.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/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.fits
.....................!
real 13.95
user 13.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787363/ft1_filtered_4FGL_J1553.6+1257_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/787363/ltcube_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.fits outfile=/scratch/kocevski/787363/expmap_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.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/787363/ltcube_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.fits
.....................!
real 196.24
user 188.09
sys 5.70

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/787363/ft1_filtered_4FGL_J1553.6+1257_daily_bin1561.fits scfile=/scratch/kocevski/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.fits outfile=/scratch/kocevski/787363/cmap_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787363/ft1_filtered_4FGL_J1553.6+1257_daily_bin1561.fits scfile=/scratch/kocevski/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.fits outfile=/scratch/kocevski/787363/cmap_HighResolution_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.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/787363/ft1_filtered_4FGL_J1553.6+1257_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/787363/ft2_4FGL_J1553.6+1257_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787363/Model_4FGL_J1553.6+1257_daily_bin1561.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/787363/ft1_filtered_4FGL_J1553.6+1257_daily_bin1561.fits.....................!
real 57.35
user 55.36
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.134       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6425       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3182       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.614       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    32.772       1.0000         .10000E-03   10000.    
    15 'norm      '    35.742       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.684       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5694       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1754       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93053       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=   7088.544     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2208 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.134        37.462        .18883E-02   -.31548E-05
   2  Prefactor     .10000E-03    25.325        .90712E-02** at limit **
   3  Prefactor     5.9787        21.918        .41054E-02   -.47990E-04
   4  Prefactor     32.979        38.754        .17444E-02    .86817E-04
   5  Prefactor     .10000E-03    17.090        .90712E-02** at limit **
   6  norm          2.6425        2.4954        .62703E-02   -.54633E-04
   7  Prefactor     6.9799        5.9818        .37962E-02    .27156E-03
   8  Prefactor     .10000E-03    38.416        .90712E-02** at limit **
   9  norm          1.3181        3.9898        .95860E-02    .11214E-02
  10  Prefactor     .10000E-03    284.50        .90712E-02** at limit **
  11  norm          16.614        11.739        .24565E-02    .77828E-04
  12  norm          2.7298        1.5918        .61615E-02   -.13189E-03
  13  Prefactor     .10000E-03    14.804        .90712E-02** at limit **
  14  norm          32.774        20.655        .17499E-02    .82062E-03
  15  norm          35.745        64.992        .16758E-02   -.50566E-03
  16  Prefactor     .10000E-03    4.8478        .90712E-02** at limit **
  17  Prefactor     24.684        41.585        .20157E-02    .31337E-04
  18  Prefactor     5.5525        14.392        .42625E-02    .16717E-03
  19  Prefactor     1.5694        14.765        .84845E-02    .58512E-03
  20  Normalizat    1.1755        .25934        .79310E-01    .20423E-04
  21  Prefactor     .93050        .11992        .45393E-01    .10739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.1341
  Prefactor  = 0.0001
  Prefactor  = 5.97869
  Prefactor  = 32.9794
  Prefactor  = 0.0001
  norm       = 2.64247
  Prefactor  = 6.97987
  Prefactor  = 0.0001
  norm       = 1.3181
  Prefactor  = 0.0001
  norm       = 16.6141
  norm       = 2.7298
  Prefactor  = 0.0001
  norm       = 32.774
  norm       = 35.7446
  Prefactor  = 0.0001
  Prefactor  = 24.6844
  Prefactor  = 5.55254
  Prefactor  = 1.56938
  Normalizat = 1.17548
  Prefactor  = 0.930501
 **********
 **   18 **HESSE 
 **********

 FCN=   7088.544     FROM HESSE     STATUS=OK           321 CALLS     2529 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.134        37.482        .75531E-04   -1.4647    
   2  Prefactor     .10000E-03    25.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9787        21.923        .16422E-03   -1.5219    
   4  Prefactor     32.979        39.038        .34888E-03   -1.4559    
   5  Prefactor     .10000E-03    17.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6425        2.4963        .12347E-03   -1.5383    
   7  Prefactor     6.9799        5.9566        .15185E-03   -1.5180    
   8  Prefactor     .10000E-03    38.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3181        3.9524        .27635E-03   -1.5478    
  10  Prefactor     .10000E-03    286.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.614        11.736        .98262E-04   -1.4893    
  12  norm          2.7298        1.5947        .78472E-04   -1.5378    
  13  Prefactor     .10000E-03    15.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          32.774        20.667        .69996E-04   -1.4562    
  15  norm          35.745        65.020        .67033E-04   -1.4512    
  16  Prefactor     .10000E-03    4.8865        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.684        41.346        .80627E-04   -1.4714    
  18  Prefactor     5.5525        14.078        .17050E-03   -1.5237    
  19  Prefactor     1.5694        14.320        .33938E-03   -1.5457    
  20  Normalizat    1.1755        .31864        .35108E-03   -.87364    
  21  Prefactor     .93050        .14787        .18615E-03   -.95083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15081e-09
Minuit parameter uncertainties:
  1  37.5135
  2  9.56929e-06
  3  21.9521
  4  39.068
  5  9.34504e-06
  6  2.49635
  7  5.95715
  8  3.12083e-05
  9  3.95323
  10  0.000274123
  11  11.7373
  12  1.59475
  13  6.33561e-06
  14  20.6712
  15  65.1494
  16  3.56456e-07
  17  41.3938
  18  14.0862
  19  9.48399
  20  0.319166
  21  0.14793
Done.

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

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.661e+01  1.174e+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.305e-01  1.479e-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.175e+00  3.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.47
Ra Dec: 238.402 12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 5.68e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.99e-05

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

Saving results to:
/scratch/kocevski/787363/likelihoodResults_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.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) = 7087.33261013
delta logL = 1.21119846951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7087.32977249
delta logL = 1.21403610743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.534       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2714       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96963       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7087.330     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      311 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.540        11.145        .61723E-03   -.54815E-04
   2  alpha         3.2718        .78840        .11547E-01    .23773E-03
   3  Normalizat    1.0511        .31904        .36814E-03    .16861E-04
   4  Prefactor     .96946        .14906        .18260E-03    .49185E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5398
  alpha      = 3.27184
  Normalizat = 1.05107
  Prefactor  = 0.96946
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.330     FROM HESSE     STATUS=OK            27 CALLS      338 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.540        9.5492        .24689E-04   -1.5059    
   2  alpha         3.2718        .67815        .23094E-02    .31386    
   3  Normalizat    1.0511        .31869        .14726E-04   -.91339    
   4  Prefactor     .96946        .14881        .73040E-05   -.93755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67713e-12
Minuit parameter uncertainties:
  1  9.55055
  2  0.687701
  3  0.319269
  4  0.148871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787363': 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) = 7087.32976882
delta logL = 1.21403977824

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.054e+01  9.551e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  3.272e+00  6.877e-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.695e-01  1.489e-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.051e+00  3.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.16
Ra Dec: 238.402 12.952
Photon Index (Free Index): 3.27 +/- 0.69
Photon Flux (Free Index): 1.74e-07 +/- 9.67e-08
Energy Flux (Free Index): 3.25e-05 +/- 1.67e-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/787363/cmap_HighResolution_643939201_644198401_4FGL_J1553.6+1257_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-05', comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='3.25e-05', photon_flux_error='5.68e-08', dlogl='1.21e+00', energy_flux='2.82e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-12 17:51:29.909449', photon_index_error2='0.69', photon_index2='3.27', ts='3.47', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='1.67e-05', EG='1.18', time_epoch_completed='1631494289.91', return_code='0', job_id='787363', GAL2='0.97', EG2='1.05', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='9.67e-08', ts2='6.16', photon_index='2.30' WHERE bin_id='1561' AND source_name='4FGL J1553.6+1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:51:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 787363: <4FGL_J1553.6+1257_daily_bin1561> in cluster <slac> Done

Job <4FGL_J1553.6+1257_daily_bin1561> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 17:40:14 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 17:40:29 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:40:29 2021
Terminated at Sun Sep 12 17:51:30 2021
Results reported at Sun Sep 12 17:51:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1553.6+1257_daily_bin1561 238.402 12.9524 643939201 644198401 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 :                                   635.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            676 sec.

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

