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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin728
RA = 206.465, Dec = 7.1072
tmin = 428025601, tmax = 428284801
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='948909', job_status='RUN', time_executed='2021-09-08 11:27:13.063615', time_epoch_executed='1631125633.06' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948909/ft1_4FGL_J1345.8+0706_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948909/ft2_4FGL_J1345.8+0706_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948909/ft1_4FGL_J1345.8+0706_daily_bin728.fits outfile=/scratch/kocevski/948909/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin728.fits ra=206.465 dec=7.1072 rad=12.0 tmin=428025601.0 tmax=428284801.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 5.69
user 5.35
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948909/ft1_filtered_4FGL_J1345.8+0706_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/948909/ft2_4FGL_J1345.8+0706_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/948909/ltcube_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.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/948909/ft2_4FGL_J1345.8+0706_daily_bin728.fits
.....................!
real 17.96
user 17.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948909/ft1_filtered_4FGL_J1345.8+0706_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/948909/ft2_4FGL_J1345.8+0706_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/948909/ltcube_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.fits outfile=/scratch/kocevski/948909/expmap_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.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/948909/ltcube_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.fits
.....................!
real 193.40
user 187.53
sys 5.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/948909/ft1_filtered_4FGL_J1345.8+0706_daily_bin728.fits scfile=/scratch/kocevski/948909/ft2_4FGL_J1345.8+0706_daily_bin728.fits outfile=/scratch/kocevski/948909/cmap_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948909/ft1_filtered_4FGL_J1345.8+0706_daily_bin728.fits scfile=/scratch/kocevski/948909/ft2_4FGL_J1345.8+0706_daily_bin728.fits outfile=/scratch/kocevski/948909/cmap_HighResolution_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0522       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.289       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6598       1.0000         .10000E-03   10000.    
    14 'norm      '    16.934       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96176       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=   5606.662     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     1394 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.702        20.584       -.38833E-06   -.18478E-03
   2  Prefactor     .10000E-03    7.9416       -.11833E-05** at limit **
   3  Prefactor     .10000E-03    12.473       -.46668E-05** at limit **
   4  Prefactor     .10000E-03    20.827        .11756E-04** at limit **
   5  norm          .10000E-03    9.3598        .34949E-05** at limit **
   6  Prefactor     6.9735        4.8641       -.40501E-07   -.15164E-03
   7  Prefactor     .10000E-03    24.256       -.97354E-05** at limit **
   8  Prefactor     .10000E-03    1.6102       -.10819E-06** at limit **
   9  Prefactor     7.0524        12.839       -.36743E-06   -.60900E-04
  10  Prefactor     .10000E-03    4.4556        .23639E-07** at limit **
  11  Prefactor     .10000E-03    4.5694        .24415E-06** at limit **
  12  Prefactor     38.290        31.523        .16252E-05   -.48210E-06
  13  Prefactor     8.6558        21.233       -.64354E-05   -.22935E-04
  14  norm          16.934        20.460        .68558E-06    .78313E-06
  15  Normalizat    1.2280        .21907        .50708E-06    .26869E-04
  16  Prefactor     .96170        .15962       -.29412E-06    .83534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.97354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.05236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2902
  Prefactor  = 8.65582
  norm       = 16.9345
  Normalizat = 1.22796
  Prefactor  = 0.961696
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.662     FROM HESSE     STATUS=OK           201 CALLS     1595 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.702        20.643        .44015E-03   -1.4798    
   2  Prefactor     .10000E-03    7.9893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.3565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9735        4.8820        .13130E-03   -1.5180    
   7  Prefactor     .10000E-03    24.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6139        .92786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0524        12.850        .15106E-03   -1.5177    
  10  Prefactor     .10000E-03    4.4697        .15435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5711        .15633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.290        31.529        .64773E-04   -1.4470    
  13  Prefactor     8.6558        21.334        .13621E-03   -1.5119    
  14  norm          16.934        20.458        .97328E-04   -1.4885    
  15  Normalizat    1.2280        .26653        .26955E-03   -.85743    
  16  Prefactor     .96170        .19375        .22210E-03   -.94017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14454e-10
Minuit parameter uncertainties:
  1  20.65
  2  1.38102e-06
  3  1.54872e-07
  4  3.80837e-06
  5  2.76952e-07
  6  4.88228
  7  3.61036e-05
  8  4.79014e-08
  9  12.8553
  10  2.6915e-06
  11  2.02822e-06
  12  31.5422
  13  21.3527
  14  20.4667
  15  0.266827
  16  0.193892
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  6.974e+00  4.882e+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.617e-01  1.939e-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.228e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.88e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/948909/likelihoodResults_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.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) = 5605.87384892
delta logL = 0.787820040943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5605.863061
delta logL = 0.798607958946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1705       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3941       1.0000          .0000       10.000    
     3 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0025       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=   5605.863     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      276 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1702        5.1713        .66678E-04   -.64620E-03
   2  Index         3.3942        1.0999        .46529E-02   -.79473E-04
   3  Normalizat    1.1470        .27245        .27724E-03   -.20796E-03
   4  Prefactor     1.0025        .19818        .21798E-03   -.28468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17017
  Index      = 3.39419
  Normalizat = 1.14696
  Prefactor  = 1.0025
 **********
 **   18 **HESSE 
 **********

 FCN=   5605.863     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1702        3.9418        .26671E-05   -1.5352    
   2  Index         3.3942        .84078        .18612E-03   -.32696    
   3  Normalizat    1.1470        .27115        .55447E-04   -.88258    
   4  Prefactor     1.0025        .19735        .43596E-04   -.92646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11562e-10
Minuit parameter uncertainties:
  1  3.94215
  2  0.84526
  3  0.271484
  4  0.197495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948909': 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) = 5605.86306099
delta logL = 0.798607967029

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  3.170e+00  3.942e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.394e+00  8.453e-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.003e+00  1.975e-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.147e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 206.465 7.107
Photon Index (Free Index): 3.39 +/- 0.85
Photon Flux (Free Index): 1.30e-07 +/- 7.58e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.19e-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/948909/cmap_HighResolution_428025601_428284801_4FGL_J1345.8+0706_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.88e-08', energy_flux2='2.23e-05', photon_flux_error='4.81e-08', dlogl='7.99e-01', energy_flux='2.13e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-08 11:35:38.885191', photon_index_error2='0.85', photon_index2='3.39', ts='3.86', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.19e-05', EG='1.23', time_epoch_completed='1631126138.89', return_code='0', job_id='948909', GAL2='1.00', EG2='1.15', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='7.58e-08', ts2='5.62', photon_index='2.44' WHERE bin_id='728' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 948909: <4FGL_J1345.8+0706_daily_bin728> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin728> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 11:25:39 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:26:37 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:26:37 2021
Terminated at Wed Sep  8 11:35:39 2021
Results reported at Wed Sep  8 11:35:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin728 206.465 7.1072 428025601 428284801 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 :                                   495.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            600 sec.

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

