/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 8 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0113.1-3553_daily_bin135
RA = 18.2893, Dec = -35.894
tmin = 274320001, tmax = 274579201
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='429962', job_status='RUN', time_executed='2021-08-13 16:52:40.784729', time_epoch_executed='1628898760.78' WHERE source_name='4FGL J0113.1-3553' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429962

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429962/ft1_4FGL_J0113.1-3553_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429962/ft2_4FGL_J0113.1-3553_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429962/ft1_4FGL_J0113.1-3553_daily_bin135.fits outfile=/scratch/kocevski/429962/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin135.fits ra=18.2893 dec=-35.894 rad=12.0 tmin=274320001.0 tmax=274579201.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 7.65
user 3.31
sys 4.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429962/ft1_filtered_4FGL_J0113.1-3553_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/429962/ft2_4FGL_J0113.1-3553_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/429962/ltcube_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.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/429962/ft2_4FGL_J0113.1-3553_daily_bin135.fits
.....................!
real 17.69
user 12.55
sys 4.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429962/ft1_filtered_4FGL_J0113.1-3553_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/429962/ft2_4FGL_J0113.1-3553_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/429962/ltcube_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.fits outfile=/scratch/kocevski/429962/expmap_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.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/429962/ltcube_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.fits
.....................!
real 199.19
user 186.27
sys 11.31

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/429962/ft1_filtered_4FGL_J0113.1-3553_daily_bin135.fits scfile=/scratch/kocevski/429962/ft2_4FGL_J0113.1-3553_daily_bin135.fits outfile=/scratch/kocevski/429962/cmap_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.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.46
user 0.36
sys 4.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429962/ft1_filtered_4FGL_J0113.1-3553_daily_bin135.fits scfile=/scratch/kocevski/429962/ft2_4FGL_J0113.1-3553_daily_bin135.fits outfile=/scratch/kocevski/429962/cmap_HighResolution_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.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.39
sys 4.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429962/ft1_filtered_4FGL_J0113.1-3553_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/429962/ft2_4FGL_J0113.1-3553_daily_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429962/Model_4FGL_J0113.1-3553_daily_bin135.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/429962/ft1_filtered_4FGL_J0113.1-3553_daily_bin135.fits......................!
real 38.27
user 31.53
sys 6.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.190       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.309       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.5681       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10654E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2246       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.926       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0355       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .80428       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=   3395.464     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1495 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.853       -.77801E-05** at limit **
   2  Prefactor     .10000E-03    5.0178       -.10015E-06** at limit **
   3  Prefactor     .10000E-03    38.507        .21129E-04** at limit **
   4  Prefactor     19.194        13.452       -.26696E-06   -.71699E-06
   5  norm          .10000E-03    18.708       -.50088E-05** at limit **
   6  norm          .10000E-03    3.4072       -.50810E-07** at limit **
   7  Prefactor     40.313        19.615        .38205E-06    .20019E-04
   8  Prefactor     .10000E-03    12.822        .12523E-04** at limit **
   9  Prefactor     4.6539        22.528        .28918E-06   -.45620E-04
  10  Prefactor     .10000E-03    2.7051        .35088E-07** at limit **
  11  norm          9.5684        4.6411        .17016E-05    .12011E-03
  12  Prefactor     .10000E-03    19.605       -.47924E-05** at limit **
  13  Prefactor     .10002E-03    120.10       -.15201E-03** at limit **
  14  Prefactor     .10001E-03    3.2286        .48657E-06** at limit **
  15  norm          4.2254        3.7877        .44686E-06    .85470E-05
  16  Prefactor     10.923        10.499        .59567E-06    .63857E-03
  17  Normalizat    1.0353        .21316        .10596E-05    .67953E-03
  18  Prefactor     .80425        .23432       -.11885E-05    .43710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1939
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 40.3129
  Prefactor  = 0.0001
  Prefactor  = 4.65385
  Prefactor  = 0.0001
  norm       = 9.5684
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.00010001
  norm       = 4.22538
  Prefactor  = 10.9233
  Normalizat = 1.0353
  Prefactor  = 0.804247
 **********
 **   18 **HESSE 
 **********

 FCN=   3395.464     FROM HESSE     STATUS=OK           240 CALLS     1735 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0825        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.194        13.465        .91430E-04   -1.4831    
   5  norm          .10000E-03    18.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4971        .20994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.313        19.575        .63135E-04   -1.4437    
   8  Prefactor     .10000E-03    12.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6539        22.263        .18662E-03   -1.5276    
  10  Prefactor     .10000E-03    2.7317        .93543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.5684        4.6332        .82986E-04   -1.5089    
  12  Prefactor     .10000E-03    19.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    120.22        .20720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    17.021        .20051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2254        3.7888        .10400E-03   -1.5297    
  16  Prefactor     10.923        10.506        .60603E-03   -1.5047    
  17  Normalizat    1.0353        .24825        .21664E-03   -.91857    
  18  Prefactor     .80425        .27415        .27099E-03   -.99572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88288e-09
Minuit parameter uncertainties:
  1  3.546e-06
  2  1.40866e-05
  3  9.30818e-05
  4  13.4675
  5  7.91659e-07
  6  1.11089e-06
  7  19.5782
  8  1.65562e-06
  9  20.37
  10  7.13647e-06
  11  4.63337
  12  0.000164666
  13  0.00340472
  14  0.000825739
  15  3.78905
  16  10.5074
  17  0.248526
  18  0.274619
Done.

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

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  7.136e-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:  8.042e-01  2.746e-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.035e+00  2.485e-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: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429962/likelihoodResults_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.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) = 3395.46535778
delta logL = -0.00174036841372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3395.4636174
delta logL = 9.53605194809e-09

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 'Index     '    2.4144       1.0000          .0000       10.000    
     3 'Normalizat'    1.0353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80428       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=   3395.464     FROM MIGRAD    STATUS=FAILED        86 CALLS      233 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.188        .93941E-03** at limit **
   2  Index         2.4252        6.0327        .50000       -.34644E-04
   3  Normalizat    1.0353        .24161        .21664E-03   -.38046E-04
   4  Prefactor     .80425        .27075        .27099E-03   -.17620E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3395.464     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      385 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.188        .30639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4252        6.0327        .93915E-04   -.54096    
   3  Normalizat    1.0353        .24161        .11708E-04   -.91857    
   4  Prefactor     .80425        .27075        .96860E-05   -.99572    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3395.464     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      418 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8595        .18788E-03** at limit **
   2  Index         2.4255        6.2126        .50000       -.34647E-04
   3  Normalizat    1.0353        .24188        .86657E-05   -.39882E-04
   4  Prefactor     .80425        .27107        .10840E-04   -.61879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.42549
  Normalizat = 1.0353
  Prefactor  = 0.804249
 **********
 **   18 **HESSE 
 **********

 FCN=   3395.464     FROM HESSE     STATUS=OK            29 CALLS      447 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7596        .37576E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4255        6.2117        .50000       -.54089    
   3  Normalizat    1.0353        .24208        .17331E-05   -.91857    
   4  Prefactor     .80425        .27123        .21679E-05   -.99572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29726e-09
Minuit parameter uncertainties:
  1  0.000189816
  2  4.28969
  3  0.242336
  4  0.271684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429962': 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) = 3395.46361724
delta logL = 1.73677108251e-07

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  1.898e-04  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.425e+00  4.290e+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:  8.042e-01  2.717e-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.035e+00  2.423e-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/429962/cmap_HighResolution_274320001_274579201_4FGL_J0113.1-3553_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-08-13 17:01:22.999106', job_id='429962', GAL2='0.80', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1628899283.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='135' AND source_name='4FGL J0113.1-3553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 429962: <4FGL_J0113.1-3553_daily_bin135> in cluster <slac> Done

Job <4FGL_J0113.1-3553_daily_bin135> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:51:02 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:51:28 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:28 2021
Terminated at Fri Aug 13 17:01:24 2021
Results reported at Fri Aug 13 17:01:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.1-3553_daily_bin135 18.2893 -35.894 274320001 274579201 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 :                                   571.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            622 sec.

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

