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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin735
RA = 206.465, Dec = 7.1072
tmin = 429840001, tmax = 430099201
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='948918', job_status='RUN', time_executed='2021-09-08 11:29:16.396348', time_epoch_executed='1631125756.4' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948918/ft1_4FGL_J1345.8+0706_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948918/ft2_4FGL_J1345.8+0706_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948918/ft1_4FGL_J1345.8+0706_daily_bin735.fits outfile=/scratch/kocevski/948918/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin735.fits ra=206.465 dec=7.1072 rad=12.0 tmin=429840001.0 tmax=430099201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.12
user 5.69
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948918/ft1_filtered_4FGL_J1345.8+0706_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/948918/ft2_4FGL_J1345.8+0706_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/948918/ltcube_429840001_430099201_4FGL_J1345.8+0706_daily_bin735.fits outfile=/scratch/kocevski/948918/expmap_429840001_430099201_4FGL_J1345.8+0706_daily_bin735.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/948918/ltcube_429840001_430099201_4FGL_J1345.8+0706_daily_bin735.fits
.....................!
real 194.33
user 187.50
sys 4.44

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/948918/ft1_filtered_4FGL_J1345.8+0706_daily_bin735.fits scfile=/scratch/kocevski/948918/ft2_4FGL_J1345.8+0706_daily_bin735.fits outfile=/scratch/kocevski/948918/cmap_429840001_430099201_4FGL_J1345.8+0706_daily_bin735.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948918/ft1_filtered_4FGL_J1345.8+0706_daily_bin735.fits scfile=/scratch/kocevski/948918/ft2_4FGL_J1345.8+0706_daily_bin735.fits outfile=/scratch/kocevski/948918/cmap_HighResolution_429840001_430099201_4FGL_J1345.8+0706_daily_bin735.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.205       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4674       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.842       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58914E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9344       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1390       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.670       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .86548       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=   11703.82     FROM MIGRAD    STATUS=CONVERGED    301 CALLS     1450 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.204        14.499        .17618E-06   -.93801E-05
   2  Prefactor     8.4649        9.2252        .92088E-06   -.56560E-04
   3  Prefactor     20.496        18.890        .14108E-06   -.15221E-04
   4  Prefactor     31.824        30.788        .17269E-05   -.40093E-04
   5  norm          .10000E-03    5.5914        .58407E-07** at limit **
   6  Prefactor     .10000E-03    1.1736        .19126E-06** at limit **
   7  Prefactor     .10000E-03    45.537        .19974E-05** at limit **
   8  Prefactor     1.0221        1.2430       -.44406E-07   -.26921E-03
   9  Prefactor     7.9328        7.8773        .19165E-06   -.42223E-04
  10  Prefactor     15.299        8.4327       -.26244E-06   -.43504E-04
  11  Prefactor     2.1389        6.6828        .62071E-05   -.39746E-04
  12  Prefactor     .10000E-03    6.0519        .51682E-07** at limit **
  13  Prefactor     .10000E-03    16.632        .39896E-06** at limit **
  14  norm          18.666        14.266       -.14397E-10   -.90936E-05
  15  Normalizat    1.2667        .14122       -.86585E-06   -.17871E-03
  16  Prefactor     .86548        .10444        .14239E-06   -.39244E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2039
  Prefactor  = 8.46488
  Prefactor  = 20.4956
  Prefactor  = 31.8239
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.02209
  Prefactor  = 7.93277
  Prefactor  = 15.299
  Prefactor  = 2.13892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.666
  Normalizat = 1.26669
  Prefactor  = 0.865476
 **********
 **   18 **HESSE 
 **********

 FCN=   11703.82     FROM HESSE     STATUS=OK           209 CALLS     1659 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.204        14.503        .11023E-03   -1.4981    
   2  Prefactor     8.4649        9.2399        .68881E-03   -1.5126    
   3  Prefactor     20.496        18.894        .88467E-04   -1.4802    
   4  Prefactor     31.824        30.785        .71008E-04   -1.4579    
   5  norm          .10000E-03    5.5951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2900        .22594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.501        .37934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0221        1.2200        .12964E-03   -1.5506    
   9  Prefactor     7.9328        7.8824        .14235E-03   -1.5145    
  10  Prefactor     15.299        8.4462        .10243E-03   -1.4925    
  11  Prefactor     2.1389        6.6984        .14092E-02   -1.5415    
  12  Prefactor     .10000E-03    6.0661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.666        14.267        .92693E-04   -1.4844    
  15  Normalizat    1.2667        .16906        .24945E-03   -.84566    
  16  Prefactor     .86548        .12513        .22239E-03   -.97358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85438e-10
Minuit parameter uncertainties:
  1  14.5068
  2  9.24149
  3  18.8996
  4  30.8008
  5  3.4997e-06
  6  1.37604e-05
  7  0.000922758
  8  1.22002
  9  7.88341
  10  8.44682
  11  6.70079
  12  1.17308e-05
  13  0.000120109
  14  14.2692
  15  0.169131
  16  0.12517
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.376e-05  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.655e-01  1.252e-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.267e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 206.465 7.107
Photon Flux Upper Limit: 5.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948918/likelihoodResults_429840001_430099201_4FGL_J1345.8+0706_daily_bin735.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): 102
logL (Free Index) = 11703.8224134
delta logL = -0.00207909778146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11703.8203344
delta logL = -4.95292624692e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4027       1.0000          .0000       10.000    
     3 'Normalizat'    1.2665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86569       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11703.82     FROM MIGRAD    STATUS=FAILED       162 CALLS      330 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006        835.73        .23448E-02    .47005E-03
   2  Index         1.5051        8.1692        .50000       -.61565E-04
   3  Normalizat    1.2671        .95560E-01    .24945E-03   -.46669E-04
   4  Prefactor     .86483        .90620E-01    .22239E-03   -.40591E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11703.82     FROM SIMPLEX   STATUS=UNCHANGED     99 CALLS      429 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006        835.73        .31578E-03    .47005E-03
   2  Index         1.5051        8.1692        .18672E-02   -.61565E-04
   3  Normalizat    1.2671        .95560E-01    .47893E-05   -.46669E-04
   4  Prefactor     .86483        .90620E-01    .61096E-05   -.40591E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11703.82     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      474 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006        4.1001         .0000        .18425E-04
   2  Index         1.5051        2.2373         .0000       -.24267E-03
   3  Normalizat    1.2671        .16472         .0000       -.48310E-04
   4  Prefactor     .86483        .12486         .0000       -.43965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.100061
  Index      = 1.50511
  Normalizat = 1.26711
  Prefactor  = 0.864833
 **********
 **   18 **HESSE 
 **********

 FCN=   11703.82     FROM HESSE     STATUS=OK            25 CALLS      499 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006        4.2271        .37516E-05   -1.5645    
   2  Index         1.5051        2.2805        .70765E-02   -.77397    
   3  Normalizat    1.2671        .16454        .19956E-05   -.84554    
   4  Prefactor     .86483        .12470        .17791E-05   -.97381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10075e-12
Minuit parameter uncertainties:
  1  1.30017
  2  2.47299
  3  0.164613
  4  0.124739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948918': 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) = 11703.8170921
delta logL = 0.00324225159966

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.001e-01  1.300e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.505e+00  2.473e+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:  8.648e-01  1.247e-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.267e+00  1.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 206.465 7.107

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/948918/cmap_HighResolution_429840001_430099201_4FGL_J1345.8+0706_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2021-09-08 11:41:14.029207', job_id='948918', GAL2='0.86', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631126474.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.24e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='735' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:41:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 948918: <4FGL_J1345.8+0706_daily_bin735> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin735> 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) <bullet0295>, 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:41:14 2021
Results reported at Wed Sep  8 11:41:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin735 206.465 7.1072 429840001 430099201 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 :                                   708.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            935 sec.

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

