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


Performing analysis on: 4FGL_J0113.1-3553_daily_bin1405
RA = 18.2893, Dec = -35.894
tmin = 603504001, tmax = 603763201
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='436880', job_status='RUN', time_executed='2021-08-13 17:16:39.527114', time_epoch_executed='1628900199.53' WHERE source_name='4FGL J0113.1-3553' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436880/ft1_4FGL_J0113.1-3553_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436880/ft1_4FGL_J0113.1-3553_daily_bin1405.fits outfile=/scratch/kocevski/436880/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin1405.fits ra=18.2893 dec=-35.894 rad=12.0 tmin=603504001.0 tmax=603763201.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 6.90
user 2.53
sys 4.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.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/436880/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.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 4.60
user 0.31
sys 4.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/436880/ltcube_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.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/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits
.....................!
real 17.83
user 12.91
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/436880/ltcube_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.fits outfile=/scratch/kocevski/436880/expmap_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.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/436880/ltcube_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.fits
.....................!
real 196.01
user 185.22
sys 10.38

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/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits scfile=/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits outfile=/scratch/kocevski/436880/cmap_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.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 4.48
user 0.37
sys 4.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits scfile=/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits outfile=/scratch/kocevski/436880/cmap_HighResolution_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.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 4.50
user 0.37
sys 4.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436880/Model_4FGL_J0113.1-3553_daily_bin1405.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/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits.....................!
real 45.51
user 38.92
sys 6.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits', '/scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits', expMap='/scratch/kocevski/436880/expmap_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.fits', expCube='/scratch/kocevski/436880/ltcube_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436880/Model_4FGL_J0113.1-3553_daily_bin1405.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/436880/ft1_filtered_4FGL_J0113.1-3553_daily_bin1405.fits
Spacecraft file(s): /scratch/kocevski/436880/ft2_4FGL_J0113.1-3553_daily_bin1405.fits
Exposure map: /scratch/kocevski/436880/expmap_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.fits
Exposure cube: /scratch/kocevski/436880/ltcube_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436880/Model_4FGL_J0113.1-3553_daily_bin1405.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) = 4668.63098589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2913       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.722       1.0000         .10000E-03   10000.    
     5 'norm      '    109.05       1.0000         .10000E-03   10000.    
     6 'norm      '    4.6646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15286E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1974       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1372       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=   4668.616     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1743 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2705        45.904       -.57012E-04   -.15381E-04
   2  Prefactor     .10000E-03    6.0431        .82693E-06** at limit **
   3  Prefactor     .10000E-03    21.935       -.24397E-06** at limit **
   4  Prefactor     12.723        14.827       -.50386E-06   -.42052E-04
   5  norm          109.06        54.771        .14473E-04   -.12217E-04
   6  norm          4.6648        4.0299        .54017E-07   -.10615E-03
   7  Prefactor     .10000E-03    4.7488        .16494E-06** at limit **
   8  Prefactor     .10000E-03    17.456        .44215E-05** at limit **
   9  Prefactor     .10000E-03    15.002       -.41124E-05** at limit **
  10  Prefactor     .10000E-03    4.1426       -.59718E-07** at limit **
  11  norm          .10000E-03    .78646       -.89947E-07** at limit **
  12  Prefactor     35.223        19.679        .24103E-05    .17898E-04
  13  Prefactor     61.773        41.849       -.62459E-05   -.13523E-03
  14  Prefactor     .10000E-03    2.9635        .98783E-06** at limit **
  15  norm          .10000E-03    1.6802       -.98055E-08** at limit **
  16  Prefactor     .10000E-03    3.0449        .77784E-08** at limit **
  17  Normalizat    1.1969        .21764       -.68758E-06   -.10257E-03
  18  Prefactor     1.1377        .24418        .13363E-05   -.16217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.27052
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.723
  norm       = 109.064
  norm       = 4.66477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.2225
  Prefactor  = 61.7727
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19687
  Prefactor  = 1.13775
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.616     FROM HESSE     STATUS=OK           238 CALLS     1981 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2705        45.951        .13923E-03   -1.5133    
   2  Prefactor     .10000E-03    6.1092        .16403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.723        14.851        .11230E-03   -1.4994    
   5  norm          109.06        54.831        .19258E-03   -1.3615    
   6  norm          4.6648        4.0273        .12337E-03   -1.5276    
   7  Prefactor     .10000E-03    4.7615        .14541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2232        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .78816        .59162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.223        19.682        .67528E-04   -1.4520    
  13  Prefactor     61.773        41.491        .51051E-04   -1.4134    
  14  Prefactor     .10000E-03    8.5543        .22122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7223        .17292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0465        .11644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1969        .26907        .24325E-03   -.86699    
  18  Prefactor     1.1377        .30132        .28648E-03   -.88269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36924e-10
Minuit parameter uncertainties:
  1  39.035
  2  0.000291585
  3  0.000145054
  4  14.8549
  5  54.8562
  6  4.02751
  7  1.89247e-06
  8  2.68908e-05
  9  1.68138e-05
  10  4.41335e-06
  11  2.59695e-06
  12  19.6853
  13  41.5109
  14  8.69833e-05
  15  3.2058e-06
  16  1.75629e-06
  17  0.26938
  18  0.301774
Done.

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

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  4.413e-06  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:  1.138e+00  3.018e-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:  1.197e+00  2.694e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436880/likelihoodResults_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.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) = 4668.6171993
delta logL = -0.00112758790328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4668.6160717
delta logL = 1.77760739462e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4275       1.0000          .0000       10.000    
     3 'Normalizat'    1.1968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1379       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=   4668.596     FROM MIGRAD    STATUS=FAILED       157 CALLS      313 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82047E-01    8.7406        .27730E-02   -.27111E-02
   2  Index         4.3138        1.7470        .47392       -.40481E-05
   3  Normalizat    1.1777        .24038E-01    .24325E-03    .78378E-04
   4  Prefactor     1.1509        .27798E-01    .28648E-03   -.14095E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4668.596     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      382 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82047E-01    8.7406        .99688E-04   -.27111E-02
   2  Index         4.3138        1.7470        .27319E-02   -.40481E-05
   3  Normalizat    1.1777        .24038E-01    .11903E-03    .78378E-04
   4  Prefactor     1.1509        .27798E-01    .67986E-04   -.14095E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4668.596     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      415 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82052E-01    2.8870        .88234E-04   -.62362E-04
   2  Index         4.3138        7.0766        .53786E-02    .10139E-04
   3  Normalizat    1.1777        .27631        .97299E-05    .17970E-03
   4  Prefactor     1.1509        .30746        .57296E-04   -.85321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0820521
  Index      = 4.31377
  Normalizat = 1.17774
  Prefactor  = 1.15094
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.596     FROM HESSE     STATUS=OK            25 CALLS      440 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82052E-01    2.1302        .35293E-05   -1.5765    
   2  Index         4.3138        6.9356        .21514E-03   -.13768    
   3  Normalizat    1.1777        .27708        .19460E-05   -.87294    
   4  Prefactor     1.1509        .30807        .11459E-04   -.87855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82624e-10
Minuit parameter uncertainties:
  1  0.835671
  2  4.99847
  3  0.277427
  4  0.308553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436880': 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) = 4668.59607679
delta logL = 0.0199949204143

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  8.205e-02  8.357e-01  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  4.314e+00  4.998e+00  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:  1.151e+00  3.086e-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:  1.178e+00  2.774e-01  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/436880/cmap_HighResolution_603504001_603763201_4FGL_J0113.1-3553_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-13 17:26:27.654065', job_id='436880', GAL2='1.15', fit_tolerance='1e-08', EG2='1.18', EG='1.20', time_epoch_completed='1628900787.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.00e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1405' AND source_name='4FGL J0113.1-3553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:26:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 436880: <4FGL_J0113.1-3553_daily_bin1405> in cluster <slac> Done

Job <4FGL_J0113.1-3553_daily_bin1405> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 17:10:26 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 17:11:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 17:11:36 2021
Terminated at Fri Aug 13 17:26:29 2021
Results reported at Fri Aug 13 17:26:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.1-3553_daily_bin1405 18.2893 -35.894 603504001 603763201 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 :                                   637.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             222.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            963 sec.

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

