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


Performing analysis on: 4FGL_J2118.2+5752_daily_bin807
RA = 319.551, Dec = 57.8703
tmin = 448502401, tmax = 448761601
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='436679', job_status='RUN', time_executed='2021-09-26 10:30:50.077957', time_epoch_executed='1632677450.08' WHERE source_name='4FGL J2118.2+5752' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436679/ft1_4FGL_J2118.2+5752_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436679/ft1_4FGL_J2118.2+5752_daily_bin807.fits outfile=/scratch/kocevski/436679/ft1_filteredMKT_4FGL_J2118.2+5752_daily_bin807.fits ra=319.551 dec=57.8703 rad=12.0 tmin=448502401.0 tmax=448761601.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 6.67
user 5.75
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.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/436679/ft1_filteredMKT_4FGL_J2118.2+5752_daily_bin807.fits evtable="EVENTS" outfile="/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/436679/ltcube_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.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/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits
.....................!
real 18.42
user 17.74
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/436679/ltcube_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.fits outfile=/scratch/kocevski/436679/expmap_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.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/436679/ltcube_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.fits
.....................!
real 194.17
user 188.65
sys 4.52

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
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 186 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2118.2+5752 @ 319.551 57.8703

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits scfile=/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits outfile=/scratch/kocevski/436679/cmap_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.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=319.551 yref=57.8703 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits scfile=/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits outfile=/scratch/kocevski/436679/cmap_HighResolution_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.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=319.551 yref=57.8703 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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436679/Model_4FGL_J2118.2+5752_daily_bin807.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 CTB 109
adding source Cygnus Cocoon
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits.....................!
real 130.19
user 128.64
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits', '/scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits', expMap='/scratch/kocevski/436679/expmap_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.fits', expCube='/scratch/kocevski/436679/ltcube_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436679/Model_4FGL_J2118.2+5752_daily_bin807.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2118.2+5752'

4FGL J2118.2+5752
   Spectrum: PowerLaw
372    Prefactor:  3.009e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
373        Index:  2.516e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/436679/ft1_filtered_4FGL_J2118.2+5752_daily_bin807.fits
Spacecraft file(s): /scratch/kocevski/436679/ft2_4FGL_J2118.2+5752_daily_bin807.fits
Exposure map: /scratch/kocevski/436679/expmap_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.fits
Exposure cube: /scratch/kocevski/436679/ltcube_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436679/Model_4FGL_J2118.2+5752_daily_bin807.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) = 8224.73928772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    23.831       1.0000         .10000E-03   10000.    
     3 'Prefactor '    118.36       1.0000         .10000E-03   10000.    
     4 'norm      '    18.235       1.0000         .10000E-03   10000.    
     5 'norm      '    .14758E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77384E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.523       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.194       1.0000         .10000E-03   10000.    
    10 'norm      '    51.776       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2298       1.0000         .10000E-03   10000.    
    12 'Prefactor '    137.91       1.0000         .10000E-03   10000.    
    13 'Normalizat'    .29652       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .88244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8224.514     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      975 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3564       -.13841E-07** at limit **
   2  norm          21.096        106.99       -.17321E-04    .34282E-04
   3  Prefactor     137.32        138.56        .13634E-04    .15496E-05
   4  norm          18.081        13.439        .28946E-05    .34286E-04
   5  norm          .10000E-03    9.6509        .24565E-05** at limit **
   6  norm          13.038        14.974        .94181E-05    .37589E-04
   7  Prefactor     .10000E-03    16.683       -.87583E-06** at limit **
   8  Prefactor     21.885        50.650       -.34415E-04    .85522E-04
   9  Prefactor     17.946        15.991        .22370E-05    .79955E-04
  10  norm          50.871        38.449        .12672E-04   -.11071E-04
  11  norm          6.2552        6.8703        .12660E-05    .12573E-03
  12  Prefactor     144.40        88.691       -.36907E-05    .41690E-04
  13  Normalizat    .26554        .60767       -.65455E-04    .10709E-04
  14  Prefactor     .88413        .54452E-01    .25421E-05    .23917E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 21.0965
  Prefactor  = 137.324
  norm       = 18.0813
  norm       = 0.0001
  norm       = 13.0382
  Prefactor  = 0.0001
  Prefactor  = 21.8846
  Prefactor  = 17.9456
  norm       = 50.8707
  norm       = 6.25522
  Prefactor  = 144.402
  Normalizat = 0.265537
  Prefactor  = 0.884131
 **********
 **   18 **HESSE 
 **********

 FCN=   8224.514     FROM HESSE     STATUS=OK           198 CALLS     1173 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.096        115.21        .20514E-02   -1.4789    
   3  Prefactor     137.32        162.26        .92467E-03   -1.3359    
   4  norm          18.081        13.528        .23448E-02   -1.4857    
   5  norm          .10000E-03    9.6335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.038        15.098        .27652E-02   -1.4986    
   7  Prefactor     .10000E-03    16.672        .10461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.885        57.253        .21100E-02   -1.4772    
   9  Prefactor     17.946        16.658        .23474E-02   -1.4860    
  10  norm          50.871        39.864        .13934E-02   -1.4280    
  11  norm          6.2552        7.4996        .40208E-02   -1.5208    
  12  Prefactor     144.40        89.913        .85746E-03   -1.3299    
  13  Normalizat    .26554        1.5655        .36607       -1.2495    
  14  Prefactor     .88413        .10641        .25740E-01   -.96698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88843e-09
Minuit parameter uncertainties:
  1  9.79079e-07
  2  98.896
  3  162.789
  4  13.5302
  5  2.75305e-05
  6  15.1026
  7  4.3897e-05
  8  57.3969
  9  16.6623
  10  39.8845
  11  7.50075
  12  89.9982
  13  1.3201
  14  0.106438
Done.

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

Extracting fit parameters...

4FGL J2118.2+5752
   Spectrum: PowerLaw
372    Prefactor:  2.188e+01  5.740e+01  1.000e-04  1.000e+04 ( 1.000e-13)
373        Index:  2.516e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
670    Prefactor:  8.841e-01  1.064e-01  0.000e+00  1.000e+01 ( 1.000e+00)
671        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
672        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  2.655e-01  1.320e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 319.551 57.870
Photon Flux Upper Limit: 6.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436679/likelihoodResults_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.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) = 8223.03748893
delta logL = 1.47684229862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8222.88307061
delta logL = 1.63126062365

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8222.883     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      313 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13445        1.1751        .47258E-02   -.44269E-02
   2  Index         5.4907        1.9212        .10563       -.66246E-04
   3  Normalizat    .48149E-01    .83439E-01    .50000        .90358E-04
   4  Prefactor     .89040        .16162E-01    .25622E-01    .20584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.134454
  Index      = 5.49073
  Normalizat = 0.0481491
  Prefactor  = 0.890405
 **********
 **   18 **HESSE 
 **********

 FCN=   8222.883     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      350 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13445        2.8841        .21520E-03   -1.5635    
   2  Index         5.4907        3.4461        .39332E-02    .98305E-01
   3  Normalizat    .48149E-01    1.8000        .26934E-01   -1.4471    
   4  Prefactor     .89040        .49490E-01    .11325E-03   -.96477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37315e-09
Minuit parameter uncertainties:
  1  1.24505
  2  3.80666
  3  0.542455
  4  0.0494926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436679': 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) = 8222.88306527
delta logL = 1.63126595827

Extracting fit parameters...

4FGL J2118.2+5752
   Spectrum: PowerLaw
372    Prefactor:  1.345e-01  1.245e+00  1.000e-04  1.000e+04 ( 1.000e-13)
373        Index:  5.491e+00  3.807e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
670    Prefactor:  8.904e-01  4.949e-02  0.000e+00  1.000e+01 ( 1.000e+00)
671        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
672        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  4.815e-02  5.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.70
Ra Dec: 319.551 57.870
Photon Index (Free Index): 5.49 +/- 3.81
Photon Flux (Free Index): 5.18e-07 +/- 3.35e-07
Energy Flux (Free Index): 6.64e-05 +/- 4.90e-05

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/436679/cmap_HighResolution_448502401_448761601_4FGL_J2118.2+5752_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-02', comment='SUCCESS', energy_flux2='6.64e-05', dlogl='1.63e+00', photon_flux2='5.18e-07', job_status='DONE', time_completed='2021-09-26 10:42:23.681437', photon_index_error2='3.81', photon_index2='5.49', ts='0.22', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='6.50e-07', energy_flux_error2='4.90e-05', EG='0.27', time_epoch_completed='1632678143.68', return_code='0', job_id='436679', GAL2='0.89', EG2='0.05', return_code2='102', photon_flux_error2='3.35e-07', ts2='3.70', photon_index='2.52' WHERE bin_id='807' AND source_name='4FGL J2118.2+5752' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:42:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 436679: <4FGL_J2118.2+5752_daily_bin807> in cluster <slac> Done

Job <4FGL_J2118.2+5752_daily_bin807> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 10:30:18 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:30:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 10:30:38 2021
Terminated at Sun Sep 26 10:42:24 2021
Results reported at Sun Sep 26 10:42:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.2+5752_daily_bin807 319.551 57.8703 448502401 448761601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2118.2+5752 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   689.10 sec.
    Max Memory :                                 1045 MB
    Average Memory :                             361.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            726 sec.

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

