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


Performing analysis on: 4FGL_J1113.6-1920_daily_bin1270
RA = 168.405, Dec = -19.3359
tmin = 568512001, tmax = 568771201
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='617022', job_status='RUN', time_executed='2021-09-03 13:27:51.291080', time_epoch_executed='1630700871.29' WHERE source_name='4FGL J1113.6-1920' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617022/ft1_4FGL_J1113.6-1920_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617022/ft2_4FGL_J1113.6-1920_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617022/ft1_4FGL_J1113.6-1920_daily_bin1270.fits outfile=/scratch/kocevski/617022/ft1_filteredMKT_4FGL_J1113.6-1920_daily_bin1270.fits ra=168.405 dec=-19.3359 rad=12.0 tmin=568512001.0 tmax=568771201.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.65
user 3.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617022/ft1_filtered_4FGL_J1113.6-1920_daily_bin1270.fits" evtable="EVENTS" scfile=/scratch/kocevski/617022/ft2_4FGL_J1113.6-1920_daily_bin1270.fits sctable="SC_DATA" outfile=/scratch/kocevski/617022/ltcube_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.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/617022/ft2_4FGL_J1113.6-1920_daily_bin1270.fits
.....................!
real 17.42
user 16.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617022/ft1_filtered_4FGL_J1113.6-1920_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/617022/ft2_4FGL_J1113.6-1920_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/617022/ltcube_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.fits outfile=/scratch/kocevski/617022/expmap_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.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/617022/ltcube_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.fits
.....................!
real 193.55
user 187.41
sys 5.24

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/617022/ft1_filtered_4FGL_J1113.6-1920_daily_bin1270.fits scfile=/scratch/kocevski/617022/ft2_4FGL_J1113.6-1920_daily_bin1270.fits outfile=/scratch/kocevski/617022/cmap_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617022/ft1_filtered_4FGL_J1113.6-1920_daily_bin1270.fits scfile=/scratch/kocevski/617022/ft2_4FGL_J1113.6-1920_daily_bin1270.fits outfile=/scratch/kocevski/617022/cmap_HighResolution_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.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.58
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617022/ft1_filtered_4FGL_J1113.6-1920_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/617022/ft2_4FGL_J1113.6-1920_daily_bin1270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617022/Model_4FGL_J1113.6-1920_daily_bin1270.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/617022/ft1_filtered_4FGL_J1113.6-1920_daily_bin1270.fits.....................!
real 80.90
user 79.28
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2225       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.732       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.062       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.439       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4696       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2993       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.415       1.0000         .10000E-03   10000.    
    14 'norm      '    .35377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.992       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2193       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.883       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1634       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94677       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=   9198.085     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2445 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2222        3.8379        .83540E-06   -.17253E-02
   2  Prefactor     .10000E-03    9.7250       -.36341E-05** at limit **
   3  Prefactor     .10000E-03    9.6539        .33864E-05** at limit **
   4  Prefactor     .10000E-03    5.4907        .22379E-07** at limit **
   5  Prefactor     .10000E-03    3.0044       -.99915E-07** at limit **
   6  norm          6.0684        4.3480       -.15455E-05   -.60115E-04
   7  Prefactor     .10000E-03    54.952        .92972E-06** at limit **
   8  Prefactor     25.724        73.361       -.12326E-04   -.15681E-04
   9  Prefactor     10.064        10.745       -.15438E-05   -.32990E-04
  10  Prefactor     13.454        49.851        .30335E-04    .17050E-04
  11  Prefactor     1.4704        47.769       -.10861E-05   -.28329E-03
  12  Prefactor     2.2998        6.5655       -.50856E-06   -.10459E-02
  13  Prefactor     16.414        27.172       -.42860E-06   -.12272E-04
  14  norm          .35373        .73877        .17561E-06    .47024E-03
  15  Prefactor     14.506        7.4167       -.36581E-06   -.51546E-04
  16  Prefactor     26.991        26.482       -.10769E-05   -.65036E-05
  17  Prefactor     1.2198        4.2894        .15934E-07   -.18767E-03
  18  Prefactor     .10000E-03    16.755        .70360E-06** at limit **
  19  Prefactor     41.883        13.388       -.59618E-07   -.50868E-05
  20  norm          .10000E-03    1.3189        .11238E-08** at limit **
  21  Normalizat    1.1636        .17985        .59382E-06   -.55994E-04
  22  Prefactor     .94668        .10989       -.47599E-07    .25247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.06836
  Prefactor  = 0.000100003
  Prefactor  = 25.724
  Prefactor  = 10.0636
  Prefactor  = 13.4535
  Prefactor  = 1.47035
  Prefactor  = 2.29976
  Prefactor  = 16.4145
  norm       = 0.353726
  Prefactor  = 14.5064
  Prefactor  = 26.9907
  Prefactor  = 1.21983
  Prefactor  = 0.0001
  Prefactor  = 41.883
  norm       = 0.0001
  Normalizat = 1.16357
  Prefactor  = 0.94668
 **********
 **   18 **HESSE 
 **********

 FCN=   9198.085     FROM HESSE     STATUS=OK           352 CALLS     2797 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2222        5.2217        .13791E-02   -1.5410    
   2  Prefactor     .10000E-03    9.8063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1019        .32432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0684        4.3481        .16298E-03   -1.5215    
   7  Prefactor     .10000E-03    56.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.724        72.940        .78970E-04   -1.4693    
   9  Prefactor     10.064        10.748        .12632E-03   -1.5073    
  10  Prefactor     13.454        49.792        .10926E-03   -1.4974    
  11  Prefactor     1.4704        56.188        .17726E-02   -1.5465    
  12  Prefactor     2.2998        7.5805        .13532E-02   -1.5405    
  13  Prefactor     16.414        26.951        .98855E-04   -1.4897    
  14  norm          .35373        .67727        .11016E-02   -1.5589    
  15  Prefactor     14.506        7.4230        .10516E-03   -1.4946    
  16  Prefactor     26.991        26.490        .77109E-04   -1.4668    
  17  Prefactor     1.2198        4.3132        .35397E-03   -1.5487    
  18  Prefactor     .10000E-03    16.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.883        13.360        .61941E-04   -1.4413    
  20  norm          .10000E-03    1.3256        .10733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1636        .21575        .29088E-03   -.87736    
  22  Prefactor     .94668        .13304        .19945E-03   -.94529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7836e-09
Minuit parameter uncertainties:
  1  5.22273
  2  1.15504e-05
  3  2.32882e-06
  4  5.90698e-06
  5  9.05989e-07
  6  4.34833
  7  0.000886458
  8  73.1945
  9  10.7504
  10  49.9461
  11  18.1965
  12  7.58363
  13  26.9707
  14  0.67728
  15  7.42349
  16  26.502
  17  4.31432
  18  1.19008e-06
  19  13.3613
  20  1.49223e-08
  21  0.215915
  22  0.133087
Done.

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

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  2.572e+01  7.319e+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:  9.467e-01  1.331e-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.164e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/617022/likelihoodResults_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.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) = 9198.0660028
delta logL = 0.0193005601686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9198.0635098
delta logL = 0.0217935538803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.262       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4962       1.0000          .0000       10.000    
     3 'Normalizat'    1.1597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94797       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=   9198.064     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      273 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.238        70.933        .86865E-04   -.10894E-03
   2  Index         2.4991        1.1477        .93287E-02   -.87698E-04
   3  Normalizat    1.1601        .21055        .29126E-03   -.12920E-03
   4  Prefactor     .94772        .13149        .19934E-03    .86458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2381
  Index      = 2.49906
  Normalizat = 1.16006
  Prefactor  = 0.947724
 **********
 **   18 **HESSE 
 **********

 FCN=   9198.064     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.238        63.808        .17373E-04   -1.4786    
   2  Index         2.4991        1.0340        .37315E-03   -.52381    
   3  Normalizat    1.1601        .21080        .11651E-04   -.87846    
   4  Prefactor     .94772        .13158        .79737E-05   -.94493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89622e-10
Minuit parameter uncertainties:
  1  64.0138
  2  1.04414
  3  0.210955
  4  0.131625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617022': 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) = 9198.06350267
delta logL = 0.0218006890409

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  2.124e+01  6.401e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.499e+00  1.044e+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:  9.477e-01  1.316e-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.160e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/617022/cmap_HighResolution_568512001_568771201_4FGL_J1113.6-1920_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-03 13:42:38.022895', job_id='617022', GAL2='0.95', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630701758.02', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.18e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1270' AND source_name='4FGL J1113.6-1920' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:42:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 617022: <4FGL_J1113.6-1920_daily_bin1270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1113.6-1920_daily_bin1270 168.405 -19.3359 568512001 568771201 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 :                                   883.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            985 sec.

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

