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


Performing analysis on: 4FGL_J1113.6-1920_daily_bin1324
RA = 168.405, Dec = -19.3359
tmin = 582508801, tmax = 582768001
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='617099', job_status='RUN', time_executed='2021-09-03 13:26:59.669087', time_epoch_executed='1630700819.67' WHERE source_name='4FGL J1113.6-1920' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617099/ft1_4FGL_J1113.6-1920_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617099/ft1_4FGL_J1113.6-1920_daily_bin1324.fits outfile=/scratch/kocevski/617099/ft1_filteredMKT_4FGL_J1113.6-1920_daily_bin1324.fits ra=168.405 dec=-19.3359 rad=12.0 tmin=582508801.0 tmax=582768001.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 3.76
user 3.47
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.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/617099/ft1_filteredMKT_4FGL_J1113.6-1920_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/617099/ltcube_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.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/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits
.....................!
real 17.26
user 16.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/617099/ltcube_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.fits outfile=/scratch/kocevski/617099/expmap_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.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/617099/ltcube_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.fits
.....................!
real 193.56
user 187.82
sys 5.18

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

Setting source of interest to:
4FGL J1113.6-1920 @ 168.405 -19.3359

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits scfile=/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits outfile=/scratch/kocevski/617099/cmap_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.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=168.405 yref=-19.3359 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits scfile=/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits outfile=/scratch/kocevski/617099/cmap_HighResolution_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.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=168.405 yref=-19.3359 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617099/Model_4FGL_J1113.6-1920_daily_bin1324.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/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits.....................!
real 81.37
user 79.96
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits', '/scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits', expMap='/scratch/kocevski/617099/expmap_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.fits', expCube='/scratch/kocevski/617099/ltcube_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/617099/Model_4FGL_J1113.6-1920_daily_bin1324.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1113.6-1920'

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  6.769e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.285e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  1.590e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/617099/ft1_filtered_4FGL_J1113.6-1920_daily_bin1324.fits
Spacecraft file(s): /scratch/kocevski/617099/ft2_4FGL_J1113.6-1920_daily_bin1324.fits
Exposure map: /scratch/kocevski/617099/expmap_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.fits
Exposure cube: /scratch/kocevski/617099/ltcube_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/617099/Model_4FGL_J1113.6-1920_daily_bin1324.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) = 9551.03255851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.154       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.697       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17294       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.136       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.015       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .48026E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.850       1.0000         .10000E-03   10000.    
    20 'norm      '    .10147E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85618       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9551.009     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2507 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8332        .13864E-08** at limit **
   2  Prefactor     .10000E-03    7.5632       -.31487E-07** at limit **
   3  Prefactor     .10000E-03    3.7535        .87330E-07** at limit **
   4  Prefactor     .10000E-03    2.4105       -.98787E-08** at limit **
   5  Prefactor     .10000E-03    1.1383       -.35613E-07** at limit **
   6  norm          12.441        6.7504        .32110E-06    .27841E-05
   7  Prefactor     11.170        20.987       -.19631E-04   -.15072E-04
   8  Prefactor     81.649        70.501        .17924E-04    .56376E-04
   9  Prefactor     .10000E-03    5.2980        .19046E-06** at limit **
  10  Prefactor     .10000E-03    149.04       -.81546E-04** at limit **
  11  Prefactor     15.315        19.621       -.42439E-05   -.19461E-04
  12  Prefactor     .10000E-03    3.8648        .67129E-07** at limit **
  13  Prefactor     .46815E-01    23.506       -.36516E-05    .25825E-03
  14  norm          1.2811        .93519       -.10618E-06   -.36607E-03
  15  Prefactor     35.137        9.6415        .10046E-05    .17995E-03
  16  Prefactor     10.010        21.475        .12610E-05   -.97593E-05
  17  Prefactor     .16869E-03    1.9151        .15798E-05** at limit **
  18  Prefactor     .10000E-03    9.7128        .33552E-06** at limit **
  19  Prefactor     10.813        11.178        .47722E-06    .40566E-04
  20  norm          .10001E-03    1.7981       -.33093E-06** at limit **
  21  Normalizat    .85619        .17501       -.14364E-05    .10097E-03
  22  Prefactor     1.0874        .10723        .61938E-06   -.71102E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4406
  Prefactor  = 11.17
  Prefactor  = 81.6486
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 15.3148
  Prefactor  = 0.0001
  Prefactor  = 0.0468148
  norm       = 1.28106
  Prefactor  = 35.1367
  Prefactor  = 10.0099
  Prefactor  = 0.000168685
  Prefactor  = 0.0001
  Prefactor  = 10.8131
  norm       = 0.000100008
  Normalizat = 0.856187
  Prefactor  = 1.08742
 **********
 **   18 **HESSE 
 **********

 FCN=   9551.009     FROM HESSE     STATUS=OK           360 CALLS     2867 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8826        .16063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4790        .29625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1446        .10179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.441        6.7665        .11356E-03   -1.5002    
   7  Prefactor     11.170        21.049        .11996E-03   -1.5039    
   8  Prefactor     81.649        70.616        .44437E-04   -1.3898    
   9  Prefactor     .10000E-03    5.3245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    149.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.315        19.628        .10236E-03   -1.4925    
  12  Prefactor     .10000E-03    3.8804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .46815E-01    24.107        .14637       -1.5665    
  14  norm          1.2811        .91622        .75494E-04   -1.5482    
  15  Prefactor     35.137        9.6614        .67607E-04   -1.4522    
  16  Prefactor     10.010        21.465        .12662E-03   -1.5075    
  17  Prefactor     .16869E-03    4.9663        .41693E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.813        9.8595        .12163E-03   -1.5050    
  20  norm          .10001E-03    29.089        .22179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85619        .20316        .32351E-03   -.98017    
  22  Prefactor     1.0874        .12505        .18506E-03   -.89870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01396e-08
Minuit parameter uncertainties:
  1  1.77249e-07
  2  3.79855e-06
  3  1.52543e-06
  4  1.87221e-06
  5  3.35021e-07
  6  6.76696
  7  21.0625
  8  70.6884
  9  7.36383e-06
  10  0.00133076
  11  19.636
  12  1.0806e-05
  13  2.12325
  14  0.916228
  15  9.66181
  16  21.482
  17  0.0369416
  18  1.31093e-05
  19  9.86101
  20  0.000986801
  21  0.203336
  22  0.125088
Done.

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

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  8.165e+01  7.069e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.285e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  1.590e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
601    Prefactor:  1.087e+00  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
602        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
603        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  8.562e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 168.405 -19.336
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 3.54e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.19e-05

TS (Fixed Index): 2.44
Ra Dec: 168.405 -19.336
Photon Flux Upper Limit: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/617099/likelihoodResults_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.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) = 9550.49173549
delta logL = 0.517534539056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9550.45778094
delta logL = 0.551489091316

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9550.458     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      402 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45617        2.9600        .83604E-02    .15150E-02
   2  Index         4.8962        1.5709        .96905E-01    .25516E-03
   3  Normalizat    .75607        .40356E-01    .77320E-01    .46766E-05
   4  Prefactor     1.1355        .25778E-01    .36378E-01   -.18231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.456169
  Index      = 4.89624
  Normalizat = 0.756067
  Prefactor  = 1.13546
 **********
 **   18 **HESSE 
 **********

 FCN=   9550.458     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      435 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45617        7.5441        .37930E-03   -1.5573    
   2  Index         4.8962        2.9995        .35226E-02   -.20753E-01
   3  Normalizat    .75607        .15078        .34228E-03   -1.0172    
   4  Prefactor     1.1355        .94835E-01    .18171E-03   -.88341    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13828e-07
Minuit parameter uncertainties:
  1  3.71033
  2  3.21702
  3  0.150862
  4  0.0948495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617099': 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) = 9550.45775605
delta logL = 0.551513985991

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  4.562e-01  3.710e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  4.896e+00  3.217e+00  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  1.590e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
601    Prefactor:  1.135e+00  9.485e-02  0.000e+00  1.000e+01 ( 1.000e+00)
602        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
603        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  7.561e-01  1.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 168.405 -19.336
Photon Index (Free Index): 4.90 +/- 3.22
Photon Flux (Free Index): 8.99e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.21e-05 +/- 7.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/617099/cmap_HighResolution_582508801_582768001_4FGL_J1113.6-1920_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', photon_flux='3.54e-08', energy_flux2='1.21e-05', photon_flux_error='3.06e-08', dlogl='5.52e-01', energy_flux='1.37e-05', photon_flux2='8.99e-08', job_status='DONE', time_completed='2021-09-03 13:42:34.765859', photon_index_error2='3.22', photon_index2='4.90', ts='2.44', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.89e-08', energy_flux_error2='7.87e-06', EG='0.86', time_epoch_completed='1630701754.77', return_code='0', job_id='617099', GAL2='1.14', EG2='0.76', return_code2='102', energy_flux_error='1.19e-05', photon_flux_error2='5.09e-08', ts2='3.89', photon_index='2.29' WHERE bin_id='1324' AND source_name='4FGL J1113.6-1920' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:42:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 617099: <4FGL_J1113.6-1920_daily_bin1324> in cluster <slac> Done

Job <4FGL_J1113.6-1920_daily_bin1324> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 13:26:18 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 13:26:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 13:26:43 2021
Terminated at Fri Sep  3 13:42:35 2021
Results reported at Fri Sep  3 13:42:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1113.6-1920_daily_bin1324 168.405 -19.3359 582508801 582768001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1113.6-1920 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   934.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            977 sec.

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

