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


Performing analysis on: 4FGL_J0113.1-3553_daily_bin1475
RA = 18.2893, Dec = -35.894
tmin = 621648001, tmax = 621907201
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='436978', job_status='RUN', time_executed='2021-08-13 17:14:39.911801', time_epoch_executed='1628900079.91' WHERE source_name='4FGL J0113.1-3553' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436978/ft1_4FGL_J0113.1-3553_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436978/ft1_4FGL_J0113.1-3553_daily_bin1475.fits outfile=/scratch/kocevski/436978/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin1475.fits ra=18.2893 dec=-35.894 rad=12.0 tmin=621648001.0 tmax=621907201.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 13.70
user 5.02
sys 8.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.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/436978/ft1_filteredMKT_4FGL_J0113.1-3553_daily_bin1475.fits evtable="EVENTS" outfile="/scratch/kocevski/436978/ft1_filtered_4FGL_J0113.1-3553_daily_bin1475.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 8.93
user 0.33
sys 8.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436978/ft1_filtered_4FGL_J0113.1-3553_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/436978/ltcube_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.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/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.fits
.....................!
real 21.51
user 11.63
sys 9.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436978/ft1_filtered_4FGL_J0113.1-3553_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/436978/ltcube_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.fits outfile=/scratch/kocevski/436978/expmap_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.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/436978/ltcube_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.fits
.....................!
real 202.34
user 185.62
sys 15.84

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/436978/ft1_filtered_4FGL_J0113.1-3553_daily_bin1475.fits scfile=/scratch/kocevski/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.fits outfile=/scratch/kocevski/436978/cmap_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.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 8.74
user 0.37
sys 8.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436978/ft1_filtered_4FGL_J0113.1-3553_daily_bin1475.fits scfile=/scratch/kocevski/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.fits outfile=/scratch/kocevski/436978/cmap_HighResolution_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.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 8.88
user 0.37
sys 8.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436978/ft1_filtered_4FGL_J0113.1-3553_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/436978/ft2_4FGL_J0113.1-3553_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436978/Model_4FGL_J0113.1-3553_daily_bin1475.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/436978/ft1_filtered_4FGL_J0113.1-3553_daily_bin1475.fits.....................!
real 57.23
user 43.85
sys 12.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    52.176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60206       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4110       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6331       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .63740       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=   5858.621     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1483 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0386       -.11782E-05** at limit **
   2  Prefactor     52.169        9.1032       -.22196E-08    .23883E-04
   3  Prefactor     .10000E-03    35.072       -.49448E-06** at limit **
   4  Prefactor     .60034        6.8759        .22147E-05   -.33720E-03
   5  norm          .10000E-03    10.012       -.44317E-06** at limit **
   6  norm          4.4109        2.8262        .53159E-08   -.39359E-04
   7  Prefactor     .10000E-03    2.8897       -.73059E-08** at limit **
   8  Prefactor     .10000E-03    9.3743        .10929E-05** at limit **
   9  Prefactor     .10000E-03    10.077       -.24508E-05** at limit **
  10  Prefactor     .10002E-03    1.5608        .30676E-06** at limit **
  11  norm          .10000E-03    .63395        .75341E-08** at limit **
  12  Prefactor     .10000E-03    8.3765        .86421E-06** at limit **
  13  Prefactor     .10000E-03    9.1898        .13762E-05** at limit **
  14  Prefactor     6.6331        3.6734        .16264E-06    .81044E-04
  15  norm          .10000E-03    2.4125        .38410E-07** at limit **
  16  Prefactor     .10000E-03    3.5190       -.13495E-07** at limit **
  17  Normalizat    1.2636        .16282       -.27560E-06   -.12129E-03
  18  Prefactor     .63741        .18328       -.15928E-06   -.77061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 52.1692
  Prefactor  = 0.0001
  Prefactor  = 0.600343
  norm       = 0.0001
  norm       = 4.41094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.63311
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26359
  Prefactor  = 0.637413
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.621     FROM HESSE     STATUS=OK           238 CALLS     1721 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.169        9.1073        .55524E-04   -1.4262    
   3  Prefactor     .10000E-03    35.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60034        9.5145        .44583E-03   -1.5553    
   5  norm          .10000E-03    10.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4109        2.8263        .99924E-04   -1.5288    
   7  Prefactor     .10000E-03    2.8971        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    15.027        .18026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .63660        .59512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6331        3.6774        .10513E-03   -1.5193    
  15  norm          .10000E-03    2.4908        .23204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5284        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2636        .18652        .19973E-03   -.84660    
  18  Prefactor     .63741        .21017        .30923E-03   -1.0603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72585e-09
Minuit parameter uncertainties:
  1  7.86137e-05
  2  9.10758
  3  6.35247e-05
  4  4.78045
  5  3.19332e-05
  6  2.82635
  7  9.57599e-07
  8  7.72199e-05
  9  0.000167784
  10  0.00104325
  11  2.76113e-07
  12  5.89531e-05
  13  9.4804e-05
  14  3.67748
  15  2.1017e-06
  16  6.6687e-07
  17  0.186616
  18  0.210428
Done.

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

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  1.043e-03  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:  6.374e-01  2.104e-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.264e+00  1.866e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436978/likelihoodResults_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.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) = 5858.62152236
delta logL = -0.000317989039104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5858.62120599
delta logL = -1.61877960636e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44768E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5209       1.0000          .0000       10.000    
     3 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63749       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=   5858.621     FROM MIGRAD    STATUS=FAILED       116 CALLS      301 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19914E-03    .12092        .18976E-01** at limit **
   2  Index         3.4864        5.1139        .50000        .73150E-04
   3  Normalizat    1.2636        .14400E-02    .19973E-03    .31408E-02
   4  Prefactor     .63741        .16424E-02    .30923E-03    .15643E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5858.617     FROM SIMPLEX   STATUS=PROGRESS      69 CALLS      370 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11890        .12092        .41727E-03    .74287E-01
   2  Index         3.0951        5.1139        .62712E-02    .73150E-04
   3  Normalizat    1.2634        .14400E-02    .51835E-05    .31408E-02
   4  Prefactor     .63721        .16424E-02    .23418E-05    .15643E-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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5858.617     FROM MIGRAD    STATUS=FAILED       109 CALLS      479 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12541        5.6417        .57057E-04    .10762E-02
   2  Index         3.0919        6.5318        .13401E-01   -.16574E-03
   3  Normalizat    1.2604        .18743        .79890E-05   -.26858E-02
   4  Prefactor     .63874        .21044        .12369E-04   -.31840E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.125412
  Index      = 3.09188
  Normalizat = 1.26037
  Prefactor  = 0.638741
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.617     FROM HESSE     STATUS=OK            23 CALLS      502 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12541        4.7616        .22823E-05   -1.5779    
   2  Index         3.0919        3.8532        .53606E-03   -.39155    
   3  Normalizat    1.2604        .18714        .15978E-05   -.84757    
   4  Prefactor     .63874        .21003        .24739E-05   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78738e-08
Minuit parameter uncertainties:
  1  1.54504
  2  4.55609
  3  0.187244
  4  0.210285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436978': 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): 1
logL (Free Index) = 5858.61694476
delta logL = 0.00425961123346

Extracting fit parameters...

4FGL J0113.1-3553
   Spectrum: PowerLaw
231    Prefactor:  1.254e-01  1.545e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  3.092e+00  4.556e+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:  6.387e-01  2.103e-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.260e+00  1.872e-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/436978/cmap_HighResolution_621648001_621907201_4FGL_J0113.1-3553_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-08-13 17:26:30.343666', job_id='436978', GAL2='0.64', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1628900790.34', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='4.26e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1475' AND source_name='4FGL J0113.1-3553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:26:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 436978: <4FGL_J0113.1-3553_daily_bin1475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.1-3553_daily_bin1475 18.2893 -35.894 621648001 621907201 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 :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            959 sec.

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

