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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin183
RA = 206.465, Dec = 7.1072
tmin = 286761601, tmax = 287020801
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='944224', job_status='RUN', time_executed='2021-09-08 11:19:44.769932', time_epoch_executed='1631125184.77' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944224/ft1_4FGL_J1345.8+0706_daily_bin183.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944224/ft1_4FGL_J1345.8+0706_daily_bin183.fits outfile=/scratch/kocevski/944224/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin183.fits ra=206.465 dec=7.1072 rad=12.0 tmin=286761601.0 tmax=287020801.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.74
user 3.49
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944224/ft1_filtered_4FGL_J1345.8+0706_daily_bin183.fits" evtable="EVENTS" scfile=/scratch/kocevski/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits sctable="SC_DATA" outfile=/scratch/kocevski/944224/ltcube_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.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/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits
.....................!
real 16.02
user 15.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944224/ft1_filtered_4FGL_J1345.8+0706_daily_bin183.fits evtable="EVENTS" scfile=/scratch/kocevski/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits sctable="SC_DATA" expcube=/scratch/kocevski/944224/ltcube_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.fits outfile=/scratch/kocevski/944224/expmap_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.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/944224/ltcube_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.fits
.....................!
real 191.76
user 186.19
sys 5.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 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/944224/ft1_filtered_4FGL_J1345.8+0706_daily_bin183.fits scfile=/scratch/kocevski/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits outfile=/scratch/kocevski/944224/cmap_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944224/ft1_filtered_4FGL_J1345.8+0706_daily_bin183.fits scfile=/scratch/kocevski/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits outfile=/scratch/kocevski/944224/cmap_HighResolution_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/944224/ft1_filtered_4FGL_J1345.8+0706_daily_bin183.fits', '/scratch/kocevski/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits', expMap='/scratch/kocevski/944224/expmap_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.fits', expCube='/scratch/kocevski/944224/ltcube_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/944224/Model_4FGL_J1345.8+0706_daily_bin183.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/944224/ft1_filtered_4FGL_J1345.8+0706_daily_bin183.fits
Spacecraft file(s): /scratch/kocevski/944224/ft2_4FGL_J1345.8+0706_daily_bin183.fits
Exposure map: /scratch/kocevski/944224/expmap_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.fits
Exposure cube: /scratch/kocevski/944224/ltcube_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/944224/Model_4FGL_J1345.8+0706_daily_bin183.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) = 6097.59294907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.193       1.0000         .10000E-03   10000.    
     5 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.661       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3025       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .97194       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=   6097.587     FROM MIGRAD    STATUS=CONVERGED    301 CALLS     1429 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.769        .49580E-04** at limit **
   2  Prefactor     3.3777        10.673       -.40876E-06   -.18130E-03
   3  Prefactor     .10000E-03    9.7453       -.69419E-07** at limit **
   4  Prefactor     14.198        41.741        .94612E-05   -.58424E-05
   5  norm          .10000E-03    69.410       -.50335E-04** at limit **
   6  Prefactor     4.2353        3.7869       -.14738E-07   -.17201E-03
   7  Prefactor     66.444        31.118        .25228E-05    .14435E-03
   8  Prefactor     .10000E-03    1.4600       -.10943E-07** at limit **
   9  Prefactor     7.9307        13.909       -.23156E-06   -.59485E-04
  10  Prefactor     .10000E-03    26.167       -.17592E-04** at limit **
  11  Prefactor     .10000E-03    22.284        .89620E-05** at limit **
  12  Prefactor     82.667        41.309        .39433E-05   -.53641E-05
  13  Prefactor     .10000E-03    5.9261        .14181E-07** at limit **
  14  norm          .10000E-03    5.6813       -.29824E-08** at limit **
  15  Normalizat    1.3023        .21984       -.14536E-05   -.85290E-04
  16  Prefactor     .97206        .16099       -.28433E-06   -.57024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.37772
  Prefactor  = 0.0001
  Prefactor  = 14.1984
  norm       = 0.0001
  Prefactor  = 4.2353
  Prefactor  = 66.4443
  Prefactor  = 0.0001
  Prefactor  = 7.93074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.6666
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.30228
  Prefactor  = 0.972056
 **********
 **   18 **HESSE 
 **********

 FCN=   6097.587     FROM HESSE     STATUS=OK           197 CALLS     1626 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3777        10.686        .22019E-03   -1.5340    
   3  Prefactor     .10000E-03    9.7475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.198        41.744        .10632E-03   -1.4954    
   5  norm          .10000E-03    69.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2353        3.7849        .13831E-03   -1.5296    
   7  Prefactor     66.444        31.179        .49238E-04   -1.4076    
   8  Prefactor     .10000E-03    1.4625        .92137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9307        13.912        .14240E-03   -1.5145    
  10  Prefactor     .10000E-03    26.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     82.667        41.343        .44179E-04   -1.3887    
  13  Prefactor     .10000E-03    5.9278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.6818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3023        .26474        .27600E-03   -.83498    
  16  Prefactor     .97206        .19334        .23348E-03   -.93667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79118e-10
Minuit parameter uncertainties:
  1  0.00027833
  2  10.6916
  3  1.64827e-06
  4  41.83
  5  0.000237441
  6  3.78516
  7  31.1871
  8  7.04112e-07
  9  13.9174
  10  0.000192758
  11  4.08689e-06
  12  41.3579
  13  1.12997e-06
  14  8.68039e-07
  15  0.265013
  16  0.193476
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  4.235e+00  3.785e+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:  9.721e-01  1.935e-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.302e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/944224/likelihoodResults_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.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) = 6097.45783391
delta logL = 0.12942040225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6097.45149375
delta logL = 0.13576055627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8423       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0240       1.0000          .0000       10.000    
     3 'Normalizat'    1.3219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96185       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6097.451     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8423        4.3549        .14991E-03    .62261E-04
   2  Index         2.0239        .72336        .10204E-01    .35439E-04
   3  Normalizat    1.3219        .25994        .27424E-03   -.22054E-04
   4  Prefactor     .96188        .19346        .23453E-03   -.30200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8423
  Index      = 2.02386
  Normalizat = 1.3219
  Prefactor  = 0.96188
 **********
 **   18 **HESSE 
 **********

 FCN=   6097.451     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8423        4.3586        .59965E-05   -1.5268    
   2  Index         2.0239        .72390        .40817E-03   -.63755    
   3  Normalizat    1.3219        .26017        .10970E-04   -.82915    
   4  Prefactor     .96188        .19365        .93811E-05   -.94011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32127e-11
Minuit parameter uncertainties:
  1  4.35888
  2  0.727879
  3  0.260428
  4  0.193787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944224': 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) = 6097.45149373
delta logL = 0.135760579921

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  4.842e+00  4.359e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.024e+00  7.279e-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:  9.619e-01  1.938e-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.322e+00  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 206.465 7.107
Photon Index (Free Index): 2.02 +/- 0.73
Photon Flux (Free Index): 2.87e-08 +/- 3.47e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.42e-05

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/944224/cmap_HighResolution_286761601_287020801_4FGL_J1345.8+0706_daily_bin183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='1.87e-05', photon_flux_error='3.73e-08', dlogl='1.36e-01', energy_flux='1.30e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2021-09-08 11:28:05.780762', photon_index_error2='0.73', photon_index2='2.02', ts='2.36', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='2.42e-05', EG='1.30', time_epoch_completed='1631125685.78', return_code='0', job_id='944224', GAL2='0.96', EG2='1.32', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.47e-08', ts2='2.64', photon_index='2.44' WHERE bin_id='183' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:28:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 944224: <4FGL_J1345.8+0706_daily_bin183> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin183> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 11:15:23 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:16:49 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:16:49 2021
Terminated at Wed Sep  8 11:28:06 2021
Results reported at Wed Sep  8 11:28:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin183 206.465 7.1072 286761601 287020801 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 :                                   499.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            763 sec.

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

