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


Performing analysis on: 4FGL_J1113.6-1920_daily_bin1412
RA = 168.405, Dec = -19.3359
tmin = 605318401, tmax = 605577601
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='617226', job_status='RUN', time_executed='2021-09-03 13:27:28.619104', time_epoch_executed='1630700848.62' WHERE source_name='4FGL J1113.6-1920' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617226

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617226/ft1_4FGL_J1113.6-1920_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617226/ft2_4FGL_J1113.6-1920_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617226/ft1_4FGL_J1113.6-1920_daily_bin1412.fits outfile=/scratch/kocevski/617226/ft1_filteredMKT_4FGL_J1113.6-1920_daily_bin1412.fits ra=168.405 dec=-19.3359 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.62
user 5.33
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617226/ft1_filtered_4FGL_J1113.6-1920_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/617226/ft2_4FGL_J1113.6-1920_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/617226/ltcube_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.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/617226/ft2_4FGL_J1113.6-1920_daily_bin1412.fits
.....................!
real 16.94
user 16.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617226/ft1_filtered_4FGL_J1113.6-1920_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/617226/ft2_4FGL_J1113.6-1920_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/617226/ltcube_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.fits outfile=/scratch/kocevski/617226/expmap_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.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/617226/ltcube_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.fits
.....................!
real 192.60
user 187.19
sys 4.47

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/617226/ft1_filtered_4FGL_J1113.6-1920_daily_bin1412.fits scfile=/scratch/kocevski/617226/ft2_4FGL_J1113.6-1920_daily_bin1412.fits outfile=/scratch/kocevski/617226/cmap_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617226/ft1_filtered_4FGL_J1113.6-1920_daily_bin1412.fits scfile=/scratch/kocevski/617226/ft2_4FGL_J1113.6-1920_daily_bin1412.fits outfile=/scratch/kocevski/617226/cmap_HighResolution_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.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.60
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617226/ft1_filtered_4FGL_J1113.6-1920_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/617226/ft2_4FGL_J1113.6-1920_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617226/Model_4FGL_J1113.6-1920_daily_bin1412.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/617226/ft1_filtered_4FGL_J1113.6-1920_daily_bin1412.fits.....................!
real 81.23
user 79.50
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.2248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9012       1.0000         .10000E-03   10000.    
     6 'norm      '    10.368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8493       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.542       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .52474       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7063       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.161       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8379       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    84.959       1.0000         .10000E-03   10000.    
    20 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2167       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81883       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=   9559.276     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2348 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8415        .19913E-07** at limit **
   2  Prefactor     8.2251        9.4370        .13632E-06   -.29509E-04
   3  Prefactor     .10000E-03    8.7445        .47662E-06** at limit **
   4  Prefactor     .10000E-03    3.1996       -.58354E-06** at limit **
   5  Prefactor     1.9012        3.4183        .30711E-06   -.46053E-03
   6  norm          10.368        5.6666        .10802E-06    .42513E-04
   7  Prefactor     3.8482        14.784       -.24279E-07   -.52739E-04
   8  Prefactor     44.947        64.861       -.52155E-06   -.30911E-04
   9  Prefactor     .10000E-03    9.5546       -.15369E-05** at limit **
  10  Prefactor     .10000E-03    19.646       -.32503E-06** at limit **
  11  Prefactor     17.539        25.313       -.60737E-06   -.10699E-03
  12  Prefactor     .10000E-03    3.2300        .57162E-06** at limit **
  13  Prefactor     .10000E-03    11.074        .12078E-05** at limit **
  14  norm          .52448        .82173        .15837E-06   -.52438E-03
  15  Prefactor     9.7056        7.2572        .13572E-05   -.83880E-03
  16  Prefactor     27.160        25.827       -.57595E-06   -.60068E-04
  17  Prefactor     2.8379        3.9789        .85211E-06    .18480E-03
  18  Prefactor     11.172        19.316       -.26779E-06    .33139E-06
  19  Prefactor     84.964        16.727        .63108E-06    .71775E-03
  20  norm          .10000E-03    2.3298        .17616E-06** at limit **
  21  Normalizat    1.2168        .17166       -.75726E-06    .33044E-05
  22  Prefactor     .81880        .10346       -.90068E-07   -.59172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.22508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90118
  norm       = 10.3679
  Prefactor  = 3.8482
  Prefactor  = 44.9469
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.5394
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.524481
  Prefactor  = 9.70563
  Prefactor  = 27.1599
  Prefactor  = 2.83794
  Prefactor  = 11.1724
  Prefactor  = 84.9636
  norm       = 0.0001
  Normalizat = 1.21681
  Prefactor  = 0.818798
 **********
 **   18 **HESSE 
 **********

 FCN=   9559.276     FROM HESSE     STATUS=OK           346 CALLS     2694 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8594        .12957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2251        9.4284        .13979E-03   -1.5134    
   3  Prefactor     .10000E-03    8.9419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2868        .17136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9012        3.4901        .23578E-03   -1.5432    
   6  norm          10.368        5.6781        .12443E-03   -1.5064    
   7  Prefactor     3.8482        14.736        .20569E-03   -1.5316    
   8  Prefactor     44.947        64.490        .59801E-04   -1.4366    
   9  Prefactor     .10000E-03    9.9303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.539        25.530        .95628E-04   -1.4870    
  12  Prefactor     .10000E-03    3.2914        .17293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .52448        .77379        .10409E-02   -1.5563    
  15  Prefactor     9.7056        7.7283        .64312E-03   -1.5085    
  16  Prefactor     27.160        25.837        .76869E-04   -1.4665    
  17  Prefactor     2.8379        3.9700        .21817E-03   -1.5371    
  18  Prefactor     11.172        19.291        .11986E-03   -1.5039    
  19  Prefactor     84.964        17.092        .21791E-03   -1.3862    
  20  norm          .10000E-03    2.3621        .14516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2168        .20449        .27645E-03   -.86085    
  22  Prefactor     .81880        .12358        .20477E-03   -.99039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73789e-09
Minuit parameter uncertainties:
  1  1.26179e-06
  2  9.43007
  3  5.81746e-05
  4  3.57665e-05
  5  3.4905
  6  5.67839
  7  14.7501
  8  64.5902
  9  0.000180885
  10  5.50612e-05
  11  25.5455
  12  4.56326e-05
  13  0.000163692
  14  0.773802
  15  7.72906
  16  25.8473
  17  3.97034
  18  19.3014
  19  17.0927
  20  1.93759e-05
  21  0.204625
  22  0.12362
Done.

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

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  4.495e+01  6.459e+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:  8.188e-01  1.236e-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:  1.217e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/617226/likelihoodResults_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.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) = 9559.10814077
delta logL = 0.167920113845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9559.07853405
delta logL = 0.197526837188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0888       1.0000          .0000       10.000    
     3 'Normalizat'    1.1926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82857       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9559.078     FROM MIGRAD    STATUS=FAILED        98 CALLS      332 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.317        769.53        .10572E-03   -.96780E-05
   2  Index         3.0911        6.4497        .69308E-02    .89053E-03
   3  Normalizat    1.1899        .18700        .27912E-03    .43118E-03
   4  Prefactor     .83021        .11429        .20351E-03   -.69233E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9559.078     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      419 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.317        769.53        .37037E-03   -.96780E-05
   2  Index         3.0911        6.4497        .65216E-03    .89053E-03
   3  Normalizat    1.1899        .18700        .14497E-03    .43118E-03
   4  Prefactor     .83021        .11429        .72188E-04   -.69233E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9559.078     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      451 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.316        76.827        .42289E-05   -.10753E-04
   2  Index         3.0911        2.0335        .13862E-02   -.27885E-05
   3  Normalizat    1.1899        .20364        .55823E-04    .15396E-04
   4  Prefactor     .83022        .12493        .40703E-04    .23686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3164
  Index      = 3.09106
  Normalizat = 1.18991
  Prefactor  = 0.830218
 **********
 **   18 **HESSE 
 **********

 FCN=   9559.078     FROM HESSE     STATUS=OK            23 CALLS      474 TOTAL
                     EDM=   .67E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.316        51.631        .84578E-06   -1.4951    
   2  Index         3.0911        1.6042        .55447E-04   -.39173    
   3  Normalizat    1.1899        .20262        .11165E-04   -.86915    
   4  Prefactor     .83022        .12427        .81405E-05   -.98624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65578e-13
Minuit parameter uncertainties:
  1  51.7925
  2  1.63835
  3  0.202749
  4  0.124312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617226': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9559.0784384
delta logL = 0.197622488795

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  1.432e+01  5.179e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  3.091e+00  1.638e+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:  8.302e-01  1.243e-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:  1.190e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 168.405 -19.336
Photon Index (Free Index): 3.09 +/- 1.64
Photon Flux (Free Index): 3.55e-08 +/- 3.95e-08
Energy Flux (Free Index): 6.79e-06 +/- 7.82e-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/617226/cmap_HighResolution_605318401_605577601_4FGL_J1113.6-1920_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', comment='SUCCESS', energy_flux2='6.79e-06', dlogl='1.98e-01', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-03 13:42:51.736931', photon_index_error2='1.64', photon_index2='3.09', ts='0.65', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='7.95e-08', energy_flux_error2='7.82e-06', EG='1.22', time_epoch_completed='1630701771.74', return_code='0', job_id='617226', GAL2='0.83', EG2='1.19', return_code2='0', photon_flux_error2='3.95e-08', ts2='1.07', photon_index='2.29' WHERE bin_id='1412' AND source_name='4FGL J1113.6-1920' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:42:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 617226: <4FGL_J1113.6-1920_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1113.6-1920_daily_bin1412 168.405 -19.3359 605318401 605577601 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 :                                   916.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            984 sec.

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

