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


Performing analysis on: 4FGL_J1113.6-1920_daily_bin1560
RA = 168.405, Dec = -19.3359
tmin = 643680001, tmax = 643939201
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='617436', job_status='RUN', time_executed='2021-09-03 13:32:17.682862', time_epoch_executed='1630701137.68' WHERE source_name='4FGL J1113.6-1920' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617436

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617436/ft1_4FGL_J1113.6-1920_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617436/ft1_4FGL_J1113.6-1920_daily_bin1560.fits outfile=/scratch/kocevski/617436/ft1_filteredMKT_4FGL_J1113.6-1920_daily_bin1560.fits ra=168.405 dec=-19.3359 rad=12.0 tmin=643680001.0 tmax=643939201.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.50
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.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/617436/ft1_filteredMKT_4FGL_J1113.6-1920_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.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.47
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/617436/ltcube_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.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/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits
.....................!
real 15.63
user 15.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/617436/ltcube_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.fits outfile=/scratch/kocevski/617436/expmap_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.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/617436/ltcube_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.fits
.....................!
real 192.16
user 186.62
sys 4.95

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/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits scfile=/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits outfile=/scratch/kocevski/617436/cmap_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits scfile=/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits outfile=/scratch/kocevski/617436/cmap_HighResolution_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617436/Model_4FGL_J1113.6-1920_daily_bin1560.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/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits.....................!
real 56.92
user 55.56
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits', '/scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits', expMap='/scratch/kocevski/617436/expmap_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.fits', expCube='/scratch/kocevski/617436/ltcube_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/617436/Model_4FGL_J1113.6-1920_daily_bin1560.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/617436/ft1_filtered_4FGL_J1113.6-1920_daily_bin1560.fits
Spacecraft file(s): /scratch/kocevski/617436/ft2_4FGL_J1113.6-1920_daily_bin1560.fits
Exposure map: /scratch/kocevski/617436/expmap_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.fits
Exposure cube: /scratch/kocevski/617436/ltcube_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/617436/Model_4FGL_J1113.6-1920_daily_bin1560.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) = 5647.8765553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.520       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11801E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    108.65       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19376E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.998       1.0000         .10000E-03   10000.    
    20 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93695       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1073       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=   5647.876     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2291 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.520        10.833       -.48138E-07    .34224E-05
   2  Prefactor     7.0613        21.646       -.39962E-05   -.10566E-03
   3  Prefactor     .10000E-03    32.482        .11665E-04** at limit **
   4  Prefactor     12.561        9.5053        .25874E-07   -.44422E-04
   5  Prefactor     .10000E-03    2.6055       -.29552E-06** at limit **
   6  norm          .10000E-03    5.1934       -.14286E-06** at limit **
   7  Prefactor     .10000E-03    21.160       -.16342E-04** at limit **
   8  Prefactor     .10000E-03    39.008       -.31784E-04** at limit **
   9  Prefactor     5.4052        19.724       -.23272E-05   -.39032E-04
  10  Prefactor     .10000E-03    34.601        .23840E-05** at limit **
  11  Prefactor     47.818        56.082       -.21575E-05    .17383E-04
  12  Prefactor     .10000E-03    6.4629       -.22780E-06** at limit **
  13  Prefactor     .10000E-03    24.834        .93524E-05** at limit **
  14  norm          1.2528        1.1301        .43831E-07    .34319E-04
  15  Prefactor     108.65        21.065       -.43360E-06   -.36617E-04
  16  Prefactor     .10000E-03    29.494        .20507E-04** at limit **
  17  Prefactor     .10001E-03    5.6559       -.11005E-05** at limit **
  18  Prefactor     .10000E-03    14.224        .18979E-05** at limit **
  19  Prefactor     30.995        19.717       -.98164E-06    .58287E-04
  20  norm          .10000E-03    2.0038       -.19143E-06** at limit **
  21  Normalizat    .93707        .27429        .11255E-05    .64800E-04
  22  Prefactor     1.1072        .15746        .11252E-05    .79655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5204
  Prefactor  = 7.06126
  Prefactor  = 0.0001
  Prefactor  = 12.5609
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.40521
  Prefactor  = 0.0001
  Prefactor  = 47.8176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25275
  Prefactor  = 108.647
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 30.9949
  norm       = 0.0001
  Normalizat = 0.937071
  Prefactor  = 1.10717
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.876     FROM HESSE     STATUS=OK           336 CALLS     2627 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.520        10.832        .88420E-04   -1.4802    
   2  Prefactor     7.0613        21.646        .15092E-03   -1.5176    
   3  Prefactor     .10000E-03    32.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.561        9.5022        .11302E-03   -1.4999    
   5  Prefactor     .10000E-03    2.6162        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.2422        .16720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.4052        19.789        .17283E-03   -1.5243    
  10  Prefactor     .10000E-03    34.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.818        56.115        .57986E-04   -1.4324    
  12  Prefactor     .10000E-03    6.4721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2528        1.1300        .39931E-04   -1.5484    
  15  Prefactor     108.65        21.125        .38586E-04   -1.3619    
  16  Prefactor     .10000E-03    29.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    22.636        .34193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.995        19.676        .71966E-04   -1.4594    
  20  norm          .10000E-03    2.0071        .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93707        .31315        .37206E-03   -.95169    
  22  Prefactor     1.1072        .18154        .20671E-03   -.89238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87353e-10
Minuit parameter uncertainties:
  1  10.8333
  2  21.6696
  3  1.3495e-05
  4  9.50331
  5  3.89178e-06
  6  8.5406e-06
  7  1.85928e-05
  8  4.40052e-06
  9  19.813
  10  2.0113e-06
  11  56.1775
  12  5.54912e-07
  13  1.08875e-05
  14  1.12999
  15  21.1264
  16  5.48472e-05
  17  0.00109326
  18  1.65708e-06
  19  19.6803
  20  3.02841e-06
  21  0.313767
  22  0.181637
Done.

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

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  4.401e-06  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.107e+00  1.816e-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:  9.371e-01  3.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/617436/likelihoodResults_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.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) = 5647.875854
delta logL = -0.00012207133841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5647.87573312
delta logL = -1.1871679817e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6364       1.0000          .0000       10.000    
     3 'Normalizat'    .93707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1072       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5647.876     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10343E-03    13.800        .18142E-01** at limit **
   2  Index         2.5477        6.2452        .50000        .92537E-05
   3  Normalizat    .93707        .44813E-02    .37206E-03   -.15278E-06
   4  Prefactor     1.1072        .27012E-02    .20671E-03   -.84695E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103432
  Index      = 2.54772
  Normalizat = 0.937071
  Prefactor  = 1.10718
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.876     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10343E-03    112.31        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5477        5.4370        .50000       -.51261    
   3  Normalizat    .93707        .12837E-01    .14883E-04   -.95170    
   4  Prefactor     1.1072        .77379E-02    .82686E-05   -.89238    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88442e-09
Minuit parameter uncertainties:
  1  0.0393391
  2  327.701
  3  0.012837
  4  0.0077379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617436': 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) = 5647.8757324
delta logL = -4.67983227281e-07

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  1.034e-04  3.934e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.548e+00  3.277e+02  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.107e+00  7.738e-03  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:  9.371e-01  1.284e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 168.405 -19.336

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/617436/cmap_HighResolution_643680001_643939201_4FGL_J1113.6-1920_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-03 13:42:58.497025', job_id='617436', GAL2='1.11', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630701778.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-4.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1560' AND source_name='4FGL J1113.6-1920' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:42:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 617436: <4FGL_J1113.6-1920_daily_bin1560> in cluster <slac> Done

Job <4FGL_J1113.6-1920_daily_bin1560> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 13:26:43 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 13:28:53 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:28:53 2021
Terminated at Fri Sep  3 13:42:59 2021
Results reported at Fri Sep  3 13:42:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1113.6-1920_daily_bin1560 168.405 -19.3359 643680001 643939201 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 :                                   638.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             245.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            976 sec.

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

