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


Performing analysis on: 4FGL_J1553.6+1257_daily_bin620
RA = 238.402, Dec = 12.9524
tmin = 400032001, tmax = 400291201
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='781725', job_status='RUN', time_executed='2021-09-12 17:21:44.341767', time_epoch_executed='1631492504.34' WHERE source_name='4FGL J1553.6+1257' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781725/ft1_4FGL_J1553.6+1257_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781725/ft2_4FGL_J1553.6+1257_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781725/ft1_4FGL_J1553.6+1257_daily_bin620.fits outfile=/scratch/kocevski/781725/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin620.fits ra=238.402 dec=12.9524 rad=12.0 tmin=400032001.0 tmax=400291201.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.38
user 4.10
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781725/ft2_4FGL_J1553.6+1257_daily_bin620.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/781725/ft1_filteredMKT_4FGL_J1553.6+1257_daily_bin620.fits evtable="EVENTS" outfile="/scratch/kocevski/781725/ft1_filtered_4FGL_J1553.6+1257_daily_bin620.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781725/ft1_filtered_4FGL_J1553.6+1257_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/781725/ft2_4FGL_J1553.6+1257_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/781725/ltcube_400032001_400291201_4FGL_J1553.6+1257_daily_bin620.fits outfile=/scratch/kocevski/781725/expmap_400032001_400291201_4FGL_J1553.6+1257_daily_bin620.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/781725/ltcube_400032001_400291201_4FGL_J1553.6+1257_daily_bin620.fits
.....................!
real 195.44
user 188.16
sys 5.08

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/781725/ft1_filtered_4FGL_J1553.6+1257_daily_bin620.fits scfile=/scratch/kocevski/781725/ft2_4FGL_J1553.6+1257_daily_bin620.fits outfile=/scratch/kocevski/781725/cmap_400032001_400291201_4FGL_J1553.6+1257_daily_bin620.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=238.402 yref=12.9524 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781725/ft1_filtered_4FGL_J1553.6+1257_daily_bin620.fits scfile=/scratch/kocevski/781725/ft2_4FGL_J1553.6+1257_daily_bin620.fits outfile=/scratch/kocevski/781725/cmap_HighResolution_400032001_400291201_4FGL_J1553.6+1257_daily_bin620.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.837       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.581       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .36438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .60894E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6329       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .24798E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    11.135       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5392       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2695       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24405       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1548       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96129       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=   7296.358     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2299 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.840        32.884       -.16241E-06   -.20835E-04
   2  Prefactor     16.566        27.753        .18472E-06   -.49813E-05
   3  Prefactor     .10000E-03    21.759        .47326E-06** at limit **
   4  Prefactor     12.185        31.852       -.13311E-05   -.59545E-04
   5  Prefactor     .10000E-03    54.670        .55451E-06** at limit **
   6  norm          .10000E-03    1.7934       -.12972E-06** at limit **
   7  Prefactor     7.1250        4.6324        .49650E-07   -.83760E-04
   8  Prefactor     .10000E-03    9.8846        .39575E-07** at limit **
   9  norm          .37800        2.0157        .70068E-07    .81270E-04
  10  Prefactor     .10000E-03    21.306       -.26254E-07** at limit **
  11  norm          .10002E-03    10.227       -.25749E-05** at limit **
  12  norm          1.6329        1.3588       -.10379E-06   -.47574E-03
  13  Prefactor     .10000E-03    3.2919        .80434E-07** at limit **
  14  norm          .10028E-03    51.919        .96812E-05** at limit **
  15  norm          10.992        143.65        .14050E-05    .23051E-04
  16  Prefactor     3.5399        10.489       -.23468E-06   -.14343E-03
  17  Prefactor     8.2654        29.500       -.27272E-06   -.51809E-04
  18  Prefactor     1.6894        13.884        .17040E-06   -.28860E-03
  19  Prefactor     .28773        55.594       -.97643E-05   -.39520E-04
  20  Normalizat    1.1553        .27548        .36698E-05   -.57611E-03
  21  Prefactor     .96102        .13372       -.29996E-05   -.75153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8405
  Prefactor  = 16.5661
  Prefactor  = 0.0001
  Prefactor  = 12.185
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.125
  Prefactor  = 0.0001
  norm       = 0.378001
  Prefactor  = 0.0001
  norm       = 0.000100018
  norm       = 1.63285
  Prefactor  = 0.0001
  norm       = 0.000100284
  norm       = 10.992
  Prefactor  = 3.53995
  Prefactor  = 8.26536
  Prefactor  = 1.68943
  Prefactor  = 0.287728
  Normalizat = 1.15534
  Prefactor  = 0.961017
 **********
 **   18 **HESSE 
 **********

 FCN=   7296.358     FROM HESSE     STATUS=OK           335 CALLS     2634 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.840        32.904        .75932E-04   -1.4652    
   2  Prefactor     16.566        27.753        .98358E-04   -1.4894    
   3  Prefactor     .10000E-03    21.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.185        31.771        .11461E-03   -1.5010    
   5  Prefactor     .10000E-03    55.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1217        .21615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1250        4.6127        .14166E-03   -1.5174    
   8  Prefactor     .10000E-03    9.8880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .37800        7.1404        .23073E-02   -1.5585    
  10  Prefactor     .10000E-03    21.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    52.771        .37038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6329        1.3579        .87584E-04   -1.5452    
  13  Prefactor     .10000E-03    3.3023        .15138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10028E-03    17.076        .80118E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.992        145.32        .12006E-03   -1.5045    
  16  Prefactor     3.5399        10.508        .21486E-03   -1.5332    
  17  Prefactor     8.2654        29.230        .13941E-03   -1.5133    
  18  Prefactor     1.6894        14.009        .32302E-03   -1.5448    
  19  Prefactor     .28773        73.841        .38015E-02   -1.5601    
  20  Normalizat    1.1553        .28162        .32649E-03   -.87994    
  21  Prefactor     .96102        .13567        .17463E-03   -.94040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0488e-08
Minuit parameter uncertainties:
  1  32.9257
  2  27.7746
  3  6.59727e-06
  4  31.8148
  5  0.000241104
  6  3.21582e-05
  7  4.61289
  8  2.30662e-06
  9  3.28579
  10  1.57416e-05
  11  0.00194371
  12  1.35796
  13  3.29862e-06
  14  0.00440916
  15  80.1734
  16  10.513
  17  29.2805
  18  9.73251
  19  9.22864
  20  0.281987
  21  0.135719
Done.

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

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  1.000e-04  1.944e-03  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.610e-01  1.357e-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.155e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/781725/likelihoodResults_400032001_400291201_4FGL_J1553.6+1257_daily_bin620.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) = 7296.35846366
delta logL = -8.93056976565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7293.04080509
delta logL = 3.31756926782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76857       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .88872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0443       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=   7293.041     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      380 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76860        8.1314        .73737E-02    .93666E-03
   2  alpha         5.0000        2.5258        .46431    ** at limit **
   3  Normalizat    .88880        .23249        .82681E-01    .26478E-04
   4  Prefactor     1.0442        .93555E-01    .40258E-01   -.15884E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.768601
  alpha      = 5
  Normalizat = 0.888799
  Prefactor  = 1.04423
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.041     FROM HESSE     STATUS=OK            31 CALLS      411 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76860        .37286        .33014E-04   -1.5533    
   2  alpha         5.0000        .60199        .38235E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88880        .28579        .36605E-03   -.96855    
   4  Prefactor     1.0442        .13720        .16806E-03   -.91269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38591e-13
Minuit parameter uncertainties:
  1  0.372861
  2  2.64643e-08
  3  0.286277
  4  0.137248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781725': 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) = 7293.04080493
delta logL = 3.31756942754

Extracting fit parameters...

4FGL J1553.6+1257
   Spectrum: LogParabola
258         norm:  7.686e-01  3.729e-01  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  5.000e+00  2.646e-08  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.044e+00  1.372e-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:  8.888e-01  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.62
Ra Dec: 238.402 12.952
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.77e-07 +/- 8.54e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.17e-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/781725/cmap_HighResolution_400032001_400291201_4FGL_J1553.6+1257_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', energy_flux2='2.41e-05', dlogl='3.32e+00', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-12 17:32:56.132705', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.17e-05', EG='1.16', time_epoch_completed='1631493176.13', return_code='0', job_id='781725', GAL2='1.04', EG2='0.89', return_code2='0', photon_flux_error2='8.54e-08', ts2='7.62', photon_index='2.30' WHERE bin_id='620' AND source_name='4FGL J1553.6+1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 17:32:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 781725: <4FGL_J1553.6+1257_daily_bin620> in cluster <slac> Done

Job <4FGL_J1553.6+1257_daily_bin620> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 17:20:22 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 17:21:33 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:21:33 2021
Terminated at Sun Sep 12 17:32:56 2021
Results reported at Sun Sep 12 17:32:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1553.6+1257_daily_bin620 238.402 12.9524 400032001 400291201 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            754 sec.

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

