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


Performing analysis on: 4FGL_J0113.1-3553_daily_bin1358
RA = 18.2893, Dec = -35.894
tmin = 591321601, tmax = 591580801
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='436813', job_status='RUN', time_executed='2021-08-13 17:14:39.658574', time_epoch_executed='1628900079.66' WHERE source_name='4FGL J0113.1-3553' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436813

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436813/ft1_4FGL_J0113.1-3553_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436813/ft1_4FGL_J0113.1-3553_daily_bin1358.fits outfile=/scratch/kocevski/436813/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin1358.fits ra=18.2893 dec=-35.894 rad=12.0 tmin=591321601.0 tmax=591580801.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 2.87
user 2.19
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.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/436813/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin1358.fits evtable="EVENTS" outfile="/scratch/kocevski/436813/ft1_filtered_4FGL_J0113.1-3553_daily_bin1358.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.90
user 0.28
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436813/ft1_filtered_4FGL_J0113.1-3553_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/436813/ltcube_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.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/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.fits
.....................!
real 13.06
user 12.21
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436813/ft1_filtered_4FGL_J0113.1-3553_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/436813/ltcube_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.fits outfile=/scratch/kocevski/436813/expmap_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.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/436813/ltcube_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.fits
.....................!
real 156.81
user 151.41
sys 4.82

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/436813/ft1_filtered_4FGL_J0113.1-3553_daily_bin1358.fits scfile=/scratch/kocevski/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.fits outfile=/scratch/kocevski/436813/cmap_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.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 0.94
user 0.31
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436813/ft1_filtered_4FGL_J0113.1-3553_daily_bin1358.fits scfile=/scratch/kocevski/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.fits outfile=/scratch/kocevski/436813/cmap_HighResolution_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.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 0.93
user 0.33
sys 0.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436813/ft1_filtered_4FGL_J0113.1-3553_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/436813/ft2_4FGL_J0113.1-3553_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436813/Model_4FGL_J0113.1-3553_daily_bin1358.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/436813/ft1_filtered_4FGL_J0113.1-3553_daily_bin1358.fits.....................!
real 37.78
user 35.92
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12453E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12963E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12426E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    63.164       1.0000         .10000E-03   10000.    
     6 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75974       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16818E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.031       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13998E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5034       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2604       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86794       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=   5706.103     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1740 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3114        .64545E-05** at limit **
   2  Prefactor     .10000E-03    1.4258        .32452E-07** at limit **
   3  Prefactor     .10000E-03    10.494        .21734E-06** at limit **
   4  Prefactor     .10000E-03    3.0852        .28006E-06** at limit **
   5  norm          63.154        33.702       -.47951E-05   -.23087E-05
   6  norm          .10000E-03    2.6499       -.22484E-06** at limit **
   7  Prefactor     .10000E-03    6.4000       -.67746E-05** at limit **
   8  Prefactor     .10000E-03    5.4160       -.42296E-07** at limit **
   9  Prefactor     .21183        14.657       -.61511E-06    .26045E-04
  10  Prefactor     .10000E-03    2.1004        .30639E-07** at limit **
  11  norm          5.5247        3.3195       -.17094E-07    .21073E-03
  12  Prefactor     22.123        26.047        .11629E-07    .46809E-04
  13  Prefactor     .10000E-03    18.851       -.22068E-06** at limit **
  14  Prefactor     .10000E-03    3.2785        .26308E-07** at limit **
  15  norm          4.4977        4.3812       -.36502E-06   -.30739E-03
  16  Prefactor     .10000E-03    3.9372       -.17219E-06** at limit **
  17  Normalizat    1.2606        .16807        .88452E-06    .25503E-04
  18  Prefactor     .86823        .18662       -.17624E-06    .84276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 63.1544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.211832
  Prefactor  = 0.0001
  norm       = 5.52471
  Prefactor  = 22.1227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49774
  Prefactor  = 0.0001
  Normalizat = 1.26056
  Prefactor  = 0.868233
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.103     FROM HESSE     STATUS=OK           246 CALLS     1986 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4319        .88077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0963        .12956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          63.154        33.849        .50491E-04   -1.4117    
   6  norm          .10000E-03    2.7533        .24005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4178        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21183        26.039        .84340E-01   -1.5616    
  10  Prefactor     .10000E-03    2.1560        .21366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5247        3.3259        .99745E-04   -1.5238    
  12  Prefactor     22.123        26.096        .85337E-04   -1.4767    
  13  Prefactor     .10000E-03    18.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3498        .13340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4977        4.3931        .14971E-03   -1.5284    
  16  Prefactor     .10000E-03    3.9510        .14638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2606        .20094        .21312E-03   -.84751    
  18  Prefactor     .86823        .22245        .28380E-03   -.97260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22976e-10
Minuit parameter uncertainties:
  1  1.46953e-06
  2  3.23781e-06
  3  1.69434e-05
  4  5.88639e-07
  5  33.8591
  6  1.5358e-06
  7  3.8779e-06
  8  1.93945e-06
  9  4.69821
  10  1.83146e-06
  11  3.32603
  12  26.1091
  13  1.18225e-05
  14  7.1917e-06
  15  4.39345
  16  2.09949e-06
  17  0.201062
  18  0.222679
Done.

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

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  1.831e-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.682e-01  2.227e-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.261e+00  2.011e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436813/likelihoodResults_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5706.10488
delta logL = -0.00220854214695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5706.1026716
delta logL = -1.34848960442e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3926       1.0000          .0000       10.000    
     3 'Normalizat'    1.2606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86825       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=   5706.103     FROM MIGRAD    STATUS=FAILED       100 CALLS      259 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    229.92        .21475E-02** at limit **
   2  Index         2.1551        5.9272        .50000       -.46118E-06
   3  Normalizat    1.2606        .49260E-01    .21312E-03    .25904E-04
   4  Prefactor     .86823        .55822E-01    .28380E-03    .31206E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5706.103     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      428 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    229.92        .21634E-03** at limit **
   2  Index         2.1551        5.9272        .27738E-05   -.46118E-06
   3  Normalizat    1.2606        .49260E-01    .57046E-07    .25904E-04
   4  Prefactor     .86823        .55822E-01    .50204E-07    .31206E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5706.103     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      462 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3569        .42951E-03** at limit **
   2  Index         2.1569        5.6910        .50000       -.10157E-06
   3  Normalizat    1.2606        .19596        .42623E-04    .26672E-04
   4  Prefactor     .86823        .22193        .11352E-04    .31847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1569
  Normalizat = 1.26056
  Prefactor  = 0.868232
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.103     FROM HESSE     STATUS=OK            29 CALLS      491 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3206        .85902E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1569        8.1821        .50000       -.60483    
   3  Normalizat    1.2606        .19593        .85247E-05   -.84751    
   4  Prefactor     .86823        .22190        .22704E-05   -.97260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6844e-12
Minuit parameter uncertainties:
  1  5.24861e-06
  2  91.1756
  3  0.196046
  4  0.222126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436813': 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) = 5706.10267009
delta logL = 1.37656934385e-06

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  5.249e-06  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.157e+00  9.118e+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:  8.682e-01  2.221e-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.261e+00  1.960e-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/436813/cmap_HighResolution_591321601_591580801_4FGL_J0113.1-3553_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-08-13 17:22:40.009096', job_id='436813', GAL2='0.87', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1628900560.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1358' AND source_name='4FGL J0113.1-3553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:22:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 436813: <4FGL_J0113.1-3553_daily_bin1358> in cluster <slac> Done

Job <4FGL_J0113.1-3553_daily_bin1358> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 17:10:22 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 17:11: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 17:11:08 2021
Terminated at Fri Aug 13 17:22:40 2021
Results reported at Fri Aug 13 17:22:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.1-3553_daily_bin1358 18.2893 -35.894 591321601 591580801 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 :                                   478.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            738 sec.

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

