/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 1 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0113.1-3553_daily_bin53
RA = 18.2893, Dec = -35.894
tmin = 253065601, tmax = 253324801
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='429875', job_status='RUN', time_executed='2021-08-13 16:53:48.485641', time_epoch_executed='1628898828.49' WHERE source_name='4FGL J0113.1-3553' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429875/ft1_4FGL_J0113.1-3553_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429875/ft1_4FGL_J0113.1-3553_daily_bin53.fits outfile=/scratch/kocevski/429875/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin53.fits ra=18.2893 dec=-35.894 rad=12.0 tmin=253065601.0 tmax=253324801.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 10.78
user 1.22
sys 9.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.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/429875/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.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 10.78
user 0.32
sys 10.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/429875/ltcube_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.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/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits
.....................!
real 26.56
user 15.62
sys 10.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/429875/ltcube_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.fits outfile=/scratch/kocevski/429875/expmap_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.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/429875/ltcube_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.fits
.....................!
real 202.66
user 185.75
sys 16.35

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J0113.1-3553 @ 18.2893 -35.894

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits scfile=/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits outfile=/scratch/kocevski/429875/cmap_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.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=18.2893 yref=-35.894 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 9.59
user 0.39
sys 9.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits scfile=/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits outfile=/scratch/kocevski/429875/cmap_HighResolution_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.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=18.2893 yref=-35.894 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 9.68
user 0.38
sys 9.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429875/Model_4FGL_J0113.1-3553_daily_bin53.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/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits.....................!
real 54.45
user 39.36
sys 14.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits', '/scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits', expMap='/scratch/kocevski/429875/expmap_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.fits', expCube='/scratch/kocevski/429875/ltcube_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429875/Model_4FGL_J0113.1-3553_daily_bin53.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0113.1-3553'

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.217e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/429875/ft1_filtered_4FGL_J0113.1-3553_daily_bin53.fits
Spacecraft file(s): /scratch/kocevski/429875/ft2_4FGL_J0113.1-3553_daily_bin53.fits
Exposure map: /scratch/kocevski/429875/expmap_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.fits
Exposure cube: /scratch/kocevski/429875/ltcube_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429875/Model_4FGL_J0113.1-3553_daily_bin53.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) = 4925.82638069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26009E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8435       1.0000         .10000E-03   10000.    
     6 'norm      '    .12381E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30615E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .88304       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10885E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .81920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.552       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0260       1.0000         .10000E-03   10000.    
    15 'norm      '    .10504E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .81069       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4925.804     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1865 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.831        .21318E-06** at limit **
   2  Prefactor     1.8281        4.0327        .67587E-06    .47139E-04
   3  Prefactor     .10000E-03    7.8083       -.26744E-06** at limit **
   4  Prefactor     .10127E-03    6.7160       -.22181E-06** at limit **
   5  norm          2.7930        47.871        .36847E-05    .65570E-04
   6  norm          .10000E-03    1.4737        .52397E-07** at limit **
   7  Prefactor     .10002E-03    8.0842       -.27066E-05** at limit **
   8  Prefactor     .85497        12.175        .21113E-05   -.33481E-03
   9  Prefactor     .10000E-03    8.5230       -.39582E-07** at limit **
  10  Prefactor     .10000E-03    2.0716        .84232E-07** at limit **
  11  norm          .81382        1.7479        .13827E-05    .11238E-02
  12  Prefactor     15.566        16.427        .35789E-06    .45506E-03
  13  Prefactor     .10000E-03    7.8864        .25684E-06** at limit **
  14  Prefactor     6.0235        4.2198        .21193E-06    .11506E-05
  15  norm          .10000E-03    1.3837        .26147E-06** at limit **
  16  Prefactor     .10000E-03    18.266       -.39003E-07** at limit **
  17  Normalizat    .81118        .15468       -.12128E-05   -.51509E-05
  18  Prefactor     .97057        .17793        .21702E-06   -.85121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.82809
  Prefactor  = 0.0001
  Prefactor  = 0.000101266
  norm       = 2.79303
  norm       = 0.000100002
  Prefactor  = 0.000100021
  Prefactor  = 0.854973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.813817
  Prefactor  = 15.5664
  Prefactor  = 0.0001
  Prefactor  = 6.02353
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.81118
  Prefactor  = 0.970567
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.804     FROM HESSE     STATUS=OK           264 CALLS     2129 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8281        3.9971        .19960E-03   -1.5438    
   3  Prefactor     .10000E-03    7.8289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10127E-03    8.3028        .49227E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7930        48.331        .24113E-03   -1.5374    
   6  norm          .10000E-03    36.067        .16462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    15.420        .33555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .85497        69.866        .44645E-02   -1.5523    
   9  Prefactor     .10000E-03    8.5864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9944        .19514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .81382        1.7935        .14184E-02   -1.5528    
  12  Prefactor     15.566        16.731        .10156E-03   -1.4919    
  13  Prefactor     .10000E-03    7.9097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0235        4.2225        .11363E-03   -1.5217    
  15  norm          .10000E-03    2.7612        .15956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .81118        .18407        .20632E-03   -.99655    
  18  Prefactor     .97057        .21504        .22794E-03   -.93717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78778e-09
Minuit parameter uncertainties:
  1  3.62756e-05
  2  3.9977
  3  4.77165e-05
  4  0.0064856
  5  23.2585
  6  0.000485325
  7  0.00113032
  8  15.4753
  9  9.30275e-07
  10  1.83421e-05
  11  1.79365
  12  16.736
  13  4.07281e-05
  14  4.22271
  15  1.93035e-05
  16  3.7313e-05
  17  0.184214
  18  0.215227
Done.

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

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  1.834e-05  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.706e-01  2.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.112e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.289 -35.894
Photon Flux Upper Limit: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429875/likelihoodResults_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.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) = 4925.80491791
delta logL = -0.000954376273512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4925.80396782
delta logL = -4.27872237196e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15618E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4584       1.0000          .0000       10.000    
     3 'Normalizat'    .81139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4925.804     FROM MIGRAD    STATUS=FAILED       112 CALLS      279 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23645E-03    4.9210        .20210E-01** at limit **
   2  Index         3.2069        6.6011        .20000E-01    .38156E-04
   3  Normalizat    .81118        .80812E-02    .20632E-03    .17925E-02
   4  Prefactor     .97057        .97379E-02    .22794E-03    .11945E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4925.804     FROM SIMPLEX   STATUS=PROGRESS      97 CALLS      376 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19697E-01    4.9210        .39743E-03    .24803E-01
   2  Index         3.1363        6.6011        .10906E-01    .38156E-04
   3  Normalizat    .81089        .80812E-02    .76026E-04    .17925E-02
   4  Prefactor     .97041        .97379E-02    .77090E-04    .11945E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4925.804     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      486 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20951E-01    36.046        .21102E-01    .40306E-03
   2  Index         3.1237        7.5330        .32000E-03   -.70983E-05
   3  Normalizat    .81059        .22593E-01    .82527E-05    .62128E-03
   4  Prefactor     .97084        .26793E-01    .91175E-05   -.21098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0209513
  Index      = 3.12368
  Normalizat = 0.810592
  Prefactor  = 0.970844
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.804     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      519 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20951E-01    36.529        .21000E-01   -1.5679    
   2  Index         3.1237        7.6021        .64000E-04   -.38468    
   3  Normalizat    .81059        .22691E-01    .16505E-05   -.99677    
   4  Prefactor     .97084        .26895E-01    .18235E-05   -.93708    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3897e-08
Minuit parameter uncertainties:
  1  1.74655
  2  45.2723
  3  0.0226908
  4  0.0268957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429875': 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): 102
logL (Free Index) = 4925.80372712
delta logL = 0.000236417412452

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  2.095e-02  1.747e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  3.124e+00  4.527e+01  0.000e+00  1.000e+01 (-1.000e+00)
233        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.708e-01  2.690e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.106e-01  2.269e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.289 -35.894

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/429875/cmap_HighResolution_253065601_253324801_4FGL_J0113.1-3553_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-08-13 17:05:12.733125', job_id='429875', GAL2='0.97', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1628899512.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.36e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='53' AND source_name='4FGL J0113.1-3553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:05:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 429875: <4FGL_J0113.1-3553_daily_bin53> in cluster <slac> Done

Job <4FGL_J0113.1-3553_daily_bin53> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:50:52 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:51:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 16:51:08 2021
Terminated at Fri Aug 13 17:05:15 2021
Results reported at Fri Aug 13 17:05:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.1-3553_daily_bin53 18.2893 -35.894 253065601 253324801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0113.1-3553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   822.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            863 sec.

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

