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


Performing analysis on: 4FGL_J0111.5-2546_daily_bin1053
RA = 17.8966, Dec = -25.7778
tmin = 512265601, tmax = 512524801
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='382108', job_status='RUN', time_executed='2021-08-13 14:25:05.076407', time_epoch_executed='1628889905.08' WHERE source_name='4FGL J0111.5-2546' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382108/ft1_4FGL_J0111.5-2546_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382108/ft1_4FGL_J0111.5-2546_daily_bin1053.fits outfile=/scratch/kocevski/382108/ft1_filteredMKT_4FGL_J0111.5-2546_daily_bin1053.fits ra=17.8966 dec=-25.7778 rad=12.0 tmin=512265601.0 tmax=512524801.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 12.45
user 3.32
sys 9.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.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/382108/ft1_filteredMKT_4FGL_J0111.5-2546_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.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 9.15
user 0.35
sys 8.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/382108/ltcube_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.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/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits
.....................!
real 25.44
user 15.05
sys 10.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/382108/ltcube_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.fits outfile=/scratch/kocevski/382108/expmap_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.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/382108/ltcube_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.fits
.....................!
real 203.87
user 186.71
sys 16.77

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

Setting source of interest to:
4FGL J0111.5-2546 @ 17.8966 -25.7778

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits scfile=/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits outfile=/scratch/kocevski/382108/cmap_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.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=17.8966 yref=-25.7778 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 9.07
user 0.40
sys 8.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits scfile=/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits outfile=/scratch/kocevski/382108/cmap_HighResolution_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.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=17.8966 yref=-25.7778 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.92
user 0.41
sys 8.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382108/Model_4FGL_J0111.5-2546_daily_bin1053.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/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits.....................!
real 50.04
user 37.70
sys 12.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits', '/scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits', expMap='/scratch/kocevski/382108/expmap_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.fits', expCube='/scratch/kocevski/382108/ltcube_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/382108/Model_4FGL_J0111.5-2546_daily_bin1053.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0111.5-2546'

4FGL J0111.5-2546
   Spectrum: PowerLaw
227    Prefactor:  1.126e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
228        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
229        Scale:  1.172e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/382108/ft1_filtered_4FGL_J0111.5-2546_daily_bin1053.fits
Spacecraft file(s): /scratch/kocevski/382108/ft2_4FGL_J0111.5-2546_daily_bin1053.fits
Exposure map: /scratch/kocevski/382108/expmap_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.fits
Exposure cube: /scratch/kocevski/382108/ltcube_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/382108/Model_4FGL_J0111.5-2546_daily_bin1053.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) = 4160.14274807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9842       1.0000         .10000E-03   10000.    
     2 'norm      '    10.549       1.0000         .10000E-03   10000.    
     3 'norm      '    18.290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    121.97       1.0000         .10000E-03   10000.    
     5 'norm      '    .15419E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6372       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .77296       1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1882       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4160.122     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2064 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9834        12.656        .19970E-06    .29719E-05
   2  norm          10.549        10.229       -.43306E-07   -.52672E-05
   3  norm          18.291        7.5031       -.84148E-07    .23556E-04
   4  Prefactor     121.54        142.85       -.10213E-05   -.11007E-04
   5  norm          .10000E-03    12.198       -.67091E-05** at limit **
   6  norm          .10000E-03    1.6120        .41359E-06** at limit **
   7  Prefactor     .10000E-03    3.5797       -.80186E-06** at limit **
   8  Prefactor     9.6375        11.655       -.13386E-06    .16218E-04
   9  Prefactor     3.8057        4.3658        .12602E-06    .13113E-04
  10  Prefactor     .10000E-03    7.5114       -.22510E-06** at limit **
  11  norm          .77423        1.8048       -.51651E-06   -.58221E-03
  12  norm          .10000E-03    .95580        .24151E-06** at limit **
  13  Prefactor     .10000E-03    7.1245        .39548E-06** at limit **
  14  Prefactor     .10000E-03    1.3224        .80575E-07** at limit **
  15  norm          .10000E-03    .58548        .50852E-06** at limit **
  16  norm          .10000E-03    .70703        .27878E-06** at limit **
  17  norm          .10000E-03    1.5443        .61413E-06** at limit **
  18  Prefactor     .10000E-03    23.303        .37971E-06** at limit **
  19  Normalizat    1.1879        .19718        .28761E-05   -.20422E-03
  20  Prefactor     .75149        .22172       -.43035E-05    .12038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.98343
  norm       = 10.5488
  norm       = 18.2915
  Prefactor  = 121.541
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.63748
  Prefactor  = 3.80572
  Prefactor  = 0.0001
  norm       = 0.774226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18793
  Prefactor  = 0.75149
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.122     FROM HESSE     STATUS=OK           291 CALLS     2355 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9834        12.649        .16414E-03   -1.5219    
   2  norm          10.549        10.233        .12336E-03   -1.5058    
   3  norm          18.291        7.5055        .93650E-04   -1.4852    
   4  Prefactor     121.54        142.98        .18221E-03   -1.3499    
   5  norm          .10000E-03    12.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6270        .79966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5967        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6375        11.652        .12909E-03   -1.5087    
   9  Prefactor     3.8057        4.3577        .13730E-03   -1.5318    
  10  Prefactor     .10000E-03    7.5390        .17198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .77423        1.5599        .12894E-02   -1.5532    
  12  norm          .10000E-03    .96234        .61573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.1404        .16815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3251        .72422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .78594        .94363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .71243        .52959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5666        .78242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1879        .21873        .20304E-03   -.86977    
  20  Prefactor     .75149        .24563        .28414E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85193e-10
Minuit parameter uncertainties:
  1  12.6545
  2  10.2348
  3  7.50584
  4  143.384
  5  0.000126899
  6  2.43182e-06
  7  8.61922e-06
  8  11.6547
  9  4.3581
  10  2.14177e-05
  11  1.56002
  12  1.27765e-06
  13  5.42833e-06
  14  8.56038e-07
  15  1.29517e-05
  16  9.56123e-07
  17  3.01076e-06
  18  1.09268e-05
  19  0.218901
  20  0.245987
Done.

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

Extracting fit parameters...

4FGL J0111.5-2546
   Spectrum: PowerLaw
227    Prefactor:  9.637e+00  1.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
228        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
229        Scale:  1.172e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.515e-01  2.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.188e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 17.897 -25.778
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 8.29e-06 +/- 1.00e-05

TS (Fixed Index): 1.08
Ra Dec: 17.897 -25.778
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382108/likelihoodResults_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.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) = 4160.00007001
delta logL = 0.122190504722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4159.9837551
delta logL = 0.138505405856

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4159.984     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      256 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0219        116.48        .50228E-02    .28669E-03
   2  Index         3.2308        6.6021        .11321        .11053E-03
   3  Normalizat    1.1529        .74322E-01    .36162E-01    .36269E-06
   4  Prefactor     .77798        .71374E-01    .63248E-01    .96209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.02195
  Index      = 3.23075
  Normalizat = 1.15294
  Prefactor  = 0.777985
 **********
 **   18 **HESSE 
 **********

 FCN=   4159.984     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0219        190.57        .12454E-03   -1.5307    
   2  Index         3.2308        6.2113        .63405E-02   -.36168    
   3  Normalizat    1.1529        .32509        .20562E-03   -.88070    
   4  Prefactor     .77798        .32085        .27977E-03   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.86709e-10
Minuit parameter uncertainties:
  1  55.5582
  2  8.35054
  3  0.325661
  4  0.321626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382108': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4159.98375472
delta logL = 0.138505794455

Extracting fit parameters...

4FGL J0111.5-2546
   Spectrum: PowerLaw
227    Prefactor:  4.022e+00  5.556e+01  1.000e-04  1.000e+04 ( 1.000e-13)
228        Index:  3.231e+00  8.351e+00  0.000e+00  1.000e+01 (-1.000e+00)
229        Scale:  1.172e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.780e-01  3.216e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.153e+00  3.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 17.897 -25.778
Photon Index (Free Index): 3.23 +/- 8.35
Photon Flux (Free Index): 5.13e-08 +/- 1.63e-07
Energy Flux (Free Index): 9.27e-06 +/- 9.40e-06

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/382108/cmap_HighResolution_512265601_512524801_4FGL_J0111.5-2546_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='9.27e-06', photon_flux_error='3.06e-08', dlogl='1.39e-01', energy_flux='8.29e-06', photon_flux2='5.13e-08', job_status='DONE', time_completed='2021-08-13 14:35:49.278949', photon_index_error2='8.35', photon_index2='3.23', ts='1.08', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.40e-06', EG='1.19', time_epoch_completed='1628890549.28', return_code='0', job_id='382108', GAL2='0.78', EG2='1.15', return_code2='102', energy_flux_error='1.00e-05', photon_flux_error2='1.63e-07', ts2='1.38', photon_index='2.40' WHERE bin_id='1053' AND source_name='4FGL J0111.5-2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 14:35:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 382108: <4FGL_J0111.5-2546_daily_bin1053> in cluster <slac> Done

Job <4FGL_J0111.5-2546_daily_bin1053> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 14:20:31 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 14:22: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 14:22:08 2021
Terminated at Fri Aug 13 14:35:51 2021
Results reported at Fri Aug 13 14:35:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0111.5-2546_daily_bin1053 17.8966 -25.7778 512265601 512524801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0111.5-2546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   38 MB
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            920 sec.

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

