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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin222
RA = 206.465, Dec = 7.1072
tmin = 296870401, tmax = 297129601
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='944318', job_status='RUN', time_executed='2021-09-08 11:22:17.981940', time_epoch_executed='1631125337.98' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944318/ft1_4FGL_J1345.8+0706_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944318/ft2_4FGL_J1345.8+0706_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944318/ft1_4FGL_J1345.8+0706_daily_bin222.fits outfile=/scratch/kocevski/944318/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin222.fits ra=206.465 dec=7.1072 rad=12.0 tmin=296870401.0 tmax=297129601.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.62
user 3.42
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/944318/ft2_4FGL_J1345.8+0706_daily_bin222.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/944318/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin222.fits evtable="EVENTS" outfile="/scratch/kocevski/944318/ft1_filtered_4FGL_J1345.8+0706_daily_bin222.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944318/ft1_filtered_4FGL_J1345.8+0706_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/944318/ft2_4FGL_J1345.8+0706_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/944318/ltcube_296870401_297129601_4FGL_J1345.8+0706_daily_bin222.fits outfile=/scratch/kocevski/944318/expmap_296870401_297129601_4FGL_J1345.8+0706_daily_bin222.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/944318/ltcube_296870401_297129601_4FGL_J1345.8+0706_daily_bin222.fits
.....................!
real 191.69
user 186.39
sys 4.80

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/944318/ft1_filtered_4FGL_J1345.8+0706_daily_bin222.fits scfile=/scratch/kocevski/944318/ft2_4FGL_J1345.8+0706_daily_bin222.fits outfile=/scratch/kocevski/944318/cmap_296870401_297129601_4FGL_J1345.8+0706_daily_bin222.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944318/ft1_filtered_4FGL_J1345.8+0706_daily_bin222.fits scfile=/scratch/kocevski/944318/ft2_4FGL_J1345.8+0706_daily_bin222.fits outfile=/scratch/kocevski/944318/cmap_HighResolution_296870401_297129601_4FGL_J1345.8+0706_daily_bin222.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/944318/ft1_filtered_4FGL_J1345.8+0706_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/944318/ft2_4FGL_J1345.8+0706_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/944318/Model_4FGL_J1345.8+0706_daily_bin222.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/944318/ft1_filtered_4FGL_J1345.8+0706_daily_bin222.fits.....................!
real 52.88
user 51.22
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7889       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12286E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-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      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1794       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .89833       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=   6828.014     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     1414 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.030        23.152        .21835E-02    .11841E-02
   2  Prefactor     .10000E-03    2.4290        .90712E-02** at limit **
   3  Prefactor     26.712        21.149        .19378E-02    .27508E-03
   4  Prefactor     .10003E-03    25.870        .90712E-02** at limit **
   5  norm          .10000E-03    16.997        .90712E-02** at limit **
   6  Prefactor     4.7893        4.9964        .45962E-02    .77532E-03
   7  Prefactor     .10002E-03    15.234        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.4572        .44911E-01** at limit **
   9  Prefactor     .10000E-03    4.5361        .90712E-02** at limit **
  10  Prefactor     .10000E-03    13.242        .90712E-02** at limit **
  11  Prefactor     .10003E-03    24.057        .90712E-02** at limit **
  12  Prefactor     .10000E-03    7.8497        .90712E-02** at limit **
  13  Prefactor     .10000E-03    17.036        .90712E-02** at limit **
  14  norm          .10000E-03    17.049        .90712E-02** at limit **
  15  Normalizat    1.1794        .18719        .58282E-01    .13171E-03
  16  Prefactor     .89831        .13559        .44984E-01    .19843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0301
  Prefactor  = 0.0001
  Prefactor  = 26.7116
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 4.78927
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.17942
  Prefactor  = 0.898311
 **********
 **   18 **HESSE 
 **********

 FCN=   6828.014     FROM HESSE     STATUS=OK           193 CALLS     1607 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.030        23.250        .87339E-04   -1.4790    
   2  Prefactor     .10000E-03    2.4315        .12577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.712        21.150        .77512E-04   -1.4674    
   4  Prefactor     .10003E-03    25.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7893        5.0023        .17566E-03   -1.5270    
   7  Prefactor     .10002E-03    15.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4193        .25113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5477        .17187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    24.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1794        .22863        .25775E-03   -.87241    
  16  Prefactor     .89831        .16521        .21559E-03   -.96200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40229e-09
Minuit parameter uncertainties:
  1  23.2601
  2  6.14101e-06
  3  21.1555
  4  0.00171774
  5  3.75365e-05
  6  5.00271
  7  0.0010136
  8  2.56917e-05
  9  1.40261e-05
  10  0.000380872
  11  0.00175883
  12  1.67759e-05
  13  0.000115343
  14  9.31766e-05
  15  0.228828
  16  0.165303
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  4.789e+00  5.003e+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:  8.983e-01  1.653e-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.179e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/944318/likelihoodResults_296870401_297129601_4FGL_J1345.8+0706_daily_bin222.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) = 6827.88623172
delta logL = 0.127701653382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6827.87378199
delta logL = 0.140151377718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5459       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1095       1.0000          .0000       10.000    
     3 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91565       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=   6827.874     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      278 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5454        8.1200        .11393E-03   -.55391E-03
   2  Index         3.1096        1.9890        .79685E-02   -.10039E-03
   3  Normalizat    1.1496        .23326        .26064E-03   -.18995E-03
   4  Prefactor     .91557        .17025        .21379E-03   -.25909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54537
  Index      = 3.10963
  Normalizat = 1.14958
  Prefactor  = 0.915573
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.874     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5454        4.9250        .45573E-05   -1.5389    
   2  Index         3.1096        1.2288        .31874E-03   -.38772    
   3  Normalizat    1.1496        .23171        .10426E-04   -.88176    
   4  Prefactor     .91557        .16805        .42757E-04   -.95599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21812e-10
Minuit parameter uncertainties:
  1  4.9258
  2  1.24368
  3  0.231918
  4  0.168149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944318': 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) = 6827.87378187
delta logL = 0.140151498728

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  2.545e+00  4.926e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.110e+00  1.244e+00  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.156e-01  1.681e-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.150e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 206.465 7.107
Photon Index (Free Index): 3.11 +/- 1.24
Photon Flux (Free Index): 6.65e-08 +/- 6.46e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/944318/cmap_HighResolution_296870401_297129601_4FGL_J1345.8+0706_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.26e-05', photon_flux_error='4.93e-08', dlogl='1.40e-01', energy_flux='1.46e-05', photon_flux2='6.65e-08', job_status='DONE', time_completed='2021-09-08 11:30:54.767040', photon_index_error2='1.24', photon_index2='3.11', ts='1.14', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.24e-05', EG='1.18', time_epoch_completed='1631125854.77', return_code='0', job_id='944318', GAL2='0.92', EG2='1.15', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.46e-08', ts2='1.46', photon_index='2.44' WHERE bin_id='222' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:30:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 944318: <4FGL_J1345.8+0706_daily_bin222> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin222> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 11:15:27 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:18:13 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:18:13 2021
Terminated at Wed Sep  8 11:30:55 2021
Results reported at Wed Sep  8 11:30:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin222 206.465 7.1072 296870401 297129601 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 :                                   513.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            928 sec.

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

