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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin874
RA = 206.465, Dec = 7.1072
tmin = 465868801, tmax = 466128001
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='949933', job_status='RUN', time_executed='2021-09-08 11:32:28.294689', time_epoch_executed='1631125948.29' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='874'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949933/ft1_4FGL_J1345.8+0706_daily_bin874.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949933/ft1_4FGL_J1345.8+0706_daily_bin874.fits outfile=/scratch/kocevski/949933/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin874.fits ra=206.465 dec=7.1072 rad=12.0 tmin=465868801.0 tmax=466128001.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.96
user 3.72
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.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/949933/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin874.fits evtable="EVENTS" outfile="/scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits" evtable="EVENTS" scfile=/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits sctable="SC_DATA" outfile=/scratch/kocevski/949933/ltcube_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.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/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits
.....................!
real 15.27
user 14.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits sctable="SC_DATA" expcube=/scratch/kocevski/949933/ltcube_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.fits outfile=/scratch/kocevski/949933/expmap_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.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/949933/ltcube_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.fits
.....................!
real 190.66
user 185.81
sys 4.37

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1345.8+0706 @ 206.465 7.1072

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits scfile=/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits outfile=/scratch/kocevski/949933/cmap_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.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=206.465 yref=7.1072 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits scfile=/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits outfile=/scratch/kocevski/949933/cmap_HighResolution_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.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=206.465 yref=7.1072 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949933/Model_4FGL_J1345.8+0706_daily_bin874.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/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits.....................!
real 43.67
user 42.22
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits', '/scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits', expMap='/scratch/kocevski/949933/expmap_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.fits', expCube='/scratch/kocevski/949933/ltcube_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/949933/Model_4FGL_J1345.8+0706_daily_bin874.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1345.8+0706'

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.852e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/949933/ft1_filtered_4FGL_J1345.8+0706_daily_bin874.fits
Spacecraft file(s): /scratch/kocevski/949933/ft2_4FGL_J1345.8+0706_daily_bin874.fits
Exposure map: /scratch/kocevski/949933/expmap_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.fits
Exposure cube: /scratch/kocevski/949933/ltcube_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/949933/Model_4FGL_J1345.8+0706_daily_bin874.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) = 5263.5549031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.826       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92854       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0358       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5262.651     FROM MIGRAD    STATUS=CONVERGED    294 CALLS     1254 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.435       -.23240E-05** at limit **
   2  Prefactor     .10000E-03    11.254        .94687E-05** at limit **
   3  Prefactor     70.820        43.809       -.25138E-05    .43577E-05
   4  Prefactor     21.790        35.726       -.51297E-04    .48140E-05
   5  norm          .10000E-03    13.435       -.69860E-05** at limit **
   6  Prefactor     3.7926        4.3774       -.17731E-06   -.31971E-03
   7  Prefactor     .10000E-03    30.895        .68634E-05** at limit **
   8  Prefactor     .92524        2.7786       -.90322E-06   -.85689E-03
   9  Prefactor     .10000E-03    5.6763        .75809E-06** at limit **
  10  Prefactor     .10000E-03    6.9619        .95429E-06** at limit **
  11  Prefactor     .10000E-03    25.860       -.99427E-06** at limit **
  12  Prefactor     .10000E-03    9.8078        .81116E-06** at limit **
  13  Prefactor     .10000E-03    9.7875        .53117E-06** at limit **
  14  norm          .10000E-03    9.5142       -.39889E-05** at limit **
  15  Normalizat    1.0399        .20984        .24617E-05   -.87923E-04
  16  Prefactor     1.0359        .15980        .11283E-05   -.65437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.8203
  Prefactor  = 21.7898
  norm       = 0.0001
  Prefactor  = 3.79264
  Prefactor  = 0.0001
  Prefactor  = 0.925242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.03993
  Prefactor  = 1.03587
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.651     FROM HESSE     STATUS=OK           197 CALLS     1451 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     70.820        43.824        .47701E-04   -1.4023    
   4  Prefactor     21.790        35.639        .85736E-04   -1.4774    
   5  norm          .10000E-03    13.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7926        4.3746        .15507E-03   -1.5318    
   7  Prefactor     .10000E-03    31.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .92524        2.4302        .20330E-02   -1.5516    
   9  Prefactor     .10000E-03    5.6924        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.7978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.5233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0399        .25269        .27033E-03   -.91704    
  16  Prefactor     1.0359        .19298        .20753E-03   -.91543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97869e-10
Minuit parameter uncertainties:
  1  0.000129899
  2  4.58277e-05
  3  43.8444
  4  35.6741
  5  7.10282e-06
  6  4.37497
  7  0.00015008
  8  2.43042
  9  8.7147e-06
  10  2.17809e-05
  11  9.67999e-05
  12  1.02937e-05
  13  1.5844e-05
  14  7.94711e-06
  15  0.252977
  16  0.193114
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  3.793e+00  4.375e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.036e+00  1.931e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.040e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.34e-05

TS (Fixed Index): 1.00
Ra Dec: 206.465 7.107
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949933/likelihoodResults_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.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) = 5261.70475256
delta logL = 0.946646201309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5261.53685436
delta logL = 1.11454440291

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5261.537     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1510        1.3819        .10774E-01   -.24190E-03
   2  Index         1.0509        .39842        .19719       -.63325E-04
   3  Normalizat    1.0678        .20653        .60372E-01    .91782E-05
   4  Prefactor     1.0294        .15916        .41304E-01    .40765E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15103
  Index      = 1.05089
  Normalizat = 1.06779
  Prefactor  = 1.02944
 **********
 **   18 **HESSE 
 **********

 FCN=   5261.537     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1510        2.4195        .81244E-04   -1.5493    
   2  Index         1.0509        .72836        .82189E-02   -.91052    
   3  Normalizat    1.0678        .24968        .26701E-03   -.90793    
   4  Prefactor     1.0294        .19261        .20805E-03   -.91755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64619e-12
Minuit parameter uncertainties:
  1  2.41975
  2  0.735391
  3  0.24996
  4  0.192736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949933': 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) = 5261.53685428
delta logL = 1.11454447365

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.151e+00  2.420e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.051e+00  7.354e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.029e+00  1.927e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.068e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 206.465 7.107
Photon Index (Free Index): 1.05 +/- 0.74
Photon Flux (Free Index): 5.65e-09 +/- 7.97e-09
Energy Flux (Free Index): 7.19e-05 +/- 1.07e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/949933/cmap_HighResolution_465868801_466128001_4FGL_J1345.8+0706_daily_bin874.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='7.19e-05', photon_flux_error='4.31e-08', dlogl='1.11e+00', energy_flux='1.16e-05', photon_flux2='5.65e-09', job_status='DONE', time_completed='2021-09-08 11:40:30.546460', photon_index_error2='0.74', photon_index2='1.05', ts='1.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.07e-04', EG='1.04', time_epoch_completed='1631126430.55', return_code='0', job_id='949933', GAL2='1.03', EG2='1.07', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='7.97e-09', ts2='3.22', photon_index='2.44' WHERE bin_id='874' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:40:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 949933: <4FGL_J1345.8+0706_daily_bin874> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin874> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:30:22 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:30:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 11:30:27 2021
Terminated at Wed Sep  8 11:40:31 2021
Results reported at Wed Sep  8 11:40:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin874 206.465 7.1072 465868801 466128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1345.8+0706 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   462.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            609 sec.

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

