/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 1 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1113.6-1920_daily_bin353
RA = 168.405, Dec = -19.3359
tmin = 330825601, tmax = 331084801
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='611238', job_status='RUN', time_executed='2021-09-03 13:07:06.723351', time_epoch_executed='1630699626.72' WHERE source_name='4FGL J1113.6-1920' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611238/ft1_4FGL_J1113.6-1920_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611238/ft2_4FGL_J1113.6-1920_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611238/ft1_4FGL_J1113.6-1920_daily_bin353.fits outfile=/scratch/kocevski/611238/ft1_filteredMKT_4FGL_J1113.6-1920_daily_bin353.fits ra=168.405 dec=-19.3359 rad=12.0 tmin=330825601.0 tmax=331084801.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.43
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611238/ft1_filtered_4FGL_J1113.6-1920_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/611238/ft2_4FGL_J1113.6-1920_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/611238/ltcube_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.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/611238/ft2_4FGL_J1113.6-1920_daily_bin353.fits
.....................!
real 17.14
user 16.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611238/ft1_filtered_4FGL_J1113.6-1920_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/611238/ft2_4FGL_J1113.6-1920_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/611238/ltcube_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.fits outfile=/scratch/kocevski/611238/expmap_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.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/611238/ltcube_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.fits
.....................!
real 191.29
user 186.77
sys 4.00

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/611238/ft1_filtered_4FGL_J1113.6-1920_daily_bin353.fits scfile=/scratch/kocevski/611238/ft2_4FGL_J1113.6-1920_daily_bin353.fits outfile=/scratch/kocevski/611238/cmap_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611238/ft1_filtered_4FGL_J1113.6-1920_daily_bin353.fits scfile=/scratch/kocevski/611238/ft2_4FGL_J1113.6-1920_daily_bin353.fits outfile=/scratch/kocevski/611238/cmap_HighResolution_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/611238/ft1_filtered_4FGL_J1113.6-1920_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/611238/ft2_4FGL_J1113.6-1920_daily_bin353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/611238/Model_4FGL_J1113.6-1920_daily_bin353.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/611238/ft1_filtered_4FGL_J1113.6-1920_daily_bin353.fits.....................!
real 76.11
user 74.71
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.459       1.0000         .10000E-03   10000.    
     6 'norm      '    9.7679       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7950       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .69216       1.0000         .10000E-03   10000.    
    20 'norm      '    14.254       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80979       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1716       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=   8792.905     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2069 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.039        5.5246        .28523E-06    .57043E-05
   2  Prefactor     7.8651        12.158        .21358E-06   -.45754E-04
   3  Prefactor     .10000E-03    10.121       -.15472E-05** at limit **
   4  Prefactor     .10000E-03    2.4861       -.66615E-08** at limit **
   5  Prefactor     13.460        5.2482       -.48167E-06   -.67524E-04
   6  norm          9.7685        5.6684        .47109E-06   -.19640E-04
   7  Prefactor     .10000E-03    21.791        .43468E-05** at limit **
   8  Prefactor     .10000E-03    89.855       -.35694E-04** at limit **
   9  Prefactor     .10000E-03    7.1564       -.41125E-07** at limit **
  10  Prefactor     .10000E-03    36.870       -.29972E-04** at limit **
  11  Prefactor     8.6116        36.079       -.39247E-06   -.11619E-04
  12  Prefactor     .10000E-03    5.3100        .35566E-06** at limit **
  13  Prefactor     9.7980        38.048        .49140E-05   -.53674E-05
  14  norm          2.7966        1.1313       -.51367E-07   -.15836E-03
  15  Prefactor     .10000E-03    4.0825        .90694E-08** at limit **
  16  Prefactor     .10000E-03    9.4021        .11949E-05** at limit **
  17  Prefactor     .65398        2.4102       -.86324E-06   -.53878E-03
  18  Prefactor     .10000E-03    51.256        .51387E-04** at limit **
  19  Prefactor     .71960        14.628        .43842E-05   -.41889E-03
  20  norm          14.226        7.4233       -.20563E-05   -.27621E-02
  21  Normalizat    .80985        .19528        .26441E-06   -.22722E-03
  22  Prefactor     1.1715        .12170        .62694E-07   -.42108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0386
  Prefactor  = 7.86513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.46
  norm       = 9.76852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.61163
  Prefactor  = 0.0001
  Prefactor  = 9.79804
  norm       = 2.7966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.653983
  Prefactor  = 0.000100001
  Prefactor  = 0.719596
  norm       = 14.2257
  Normalizat = 0.809853
  Prefactor  = 1.17146
 **********
 **   18 **HESSE 
 **********

 FCN=   8792.905     FROM HESSE     STATUS=OK           344 CALLS     2413 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.039        5.5247        .12647E-03   -1.5074    
   2  Prefactor     7.8651        12.142        .14299E-03   -1.5147    
   3  Prefactor     .10000E-03    10.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5108        .14433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.460        5.2519        .10918E-03   -1.4974    
   6  norm          9.7685        5.6700        .12822E-03   -1.5083    
   7  Prefactor     .10000E-03    21.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    89.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6116        36.057        .13659E-03   -1.5121    
  12  Prefactor     .10000E-03    5.3296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7980        38.004        .12804E-03   -1.5082    
  14  norm          2.7966        1.1294        .59858E-04   -1.5373    
  15  Prefactor     .10000E-03    4.1277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.4098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .65398        7.5807        .26534E-02   -1.5546    
  18  Prefactor     .10000E-03    51.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .71960        253.51        .49198E-02   -1.5538    
  20  norm          14.226        10.543        .10609E-03   -1.4953    
  21  Normalizat    .80985        .22315        .34762E-03   -.99704    
  22  Prefactor     1.1715        .14078        .18821E-03   -.87214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71042e-09
Minuit parameter uncertainties:
  1  5.52502
  2  12.1454
  3  5.86605e-06
  4  2.65114e-07
  5  5.25205
  6  5.67036
  7  5.66691e-06
  8  2.29124e-05
  9  1.11223e-06
  10  1.47536e-05
  11  35.279
  12  3.82664e-07
  13  38.0976
  14  1.1294
  15  9.02178e-07
  16  7.48247e-07
  17  4.45351
  18  0.000548509
  19  27.1275
  20  10.5444
  21  0.223406
  22  0.14083
Done.

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

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  2.291e-05  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.171e+00  1.408e-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.099e-01  2.234e-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: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611238/likelihoodResults_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.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) = 8792.90528434
delta logL = -5.29315166204e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8792.90523149
delta logL = -8.97089194041e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2409       1.0000          .0000       10.000    
     3 'Normalizat'    .80985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1715       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=   8792.905     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      244 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    1279.2        .90712E-02** at limit **
   2  Index         2.3132        8.6136        .50000       -.97049E-05
   3  Normalizat    .80985        .17310E-01    .78527E-01    .37573E-04
   4  Prefactor     1.1715        .11122E-01    .35343E-01   -.72003E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100029
  Index      = 2.31316
  Normalizat = 0.809853
  Prefactor  = 1.17146
 **********
 **   18 **HESSE 
 **********

 FCN=   8792.905     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    7077.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3132        6.1133        .50000       -.56731    
   3  Normalizat    .80985        .34495E-01    .34762E-03   -.99704    
   4  Prefactor     1.1715        .22211E-01    .18821E-03   -.87214    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.47333e-08
Minuit parameter uncertainties:
  1  0.0238011
  2  29.9402
  3  0.0344956
  4  0.0222116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611238': 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) = 8792.90523134
delta logL = 6.11726136412e-08

Extracting fit parameters...

4FGL J1113.6-1920
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  2.380e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.313e+00  2.994e+01  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.171e+00  2.221e-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:  8.099e-01  3.450e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/611238/cmap_HighResolution_330825601_331084801_4FGL_J1113.6-1920_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-03 13:20:37.361374', job_id='611238', GAL2='1.17', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630700437.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='6.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='353' AND source_name='4FGL J1113.6-1920' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 13:20:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 611238: <4FGL_J1113.6-1920_daily_bin353> in cluster <slac> Done

Job <4FGL_J1113.6-1920_daily_bin353> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 13:06:19 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 13:06:57 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:06:57 2021
Terminated at Fri Sep  3 13:20:38 2021
Results reported at Fri Sep  3 13:20:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1113.6-1920_daily_bin353 168.405 -19.3359 330825601 331084801 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 :                                   802.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            859 sec.

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

