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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin428
RA = 206.465, Dec = 7.1072
tmin = 350265601, tmax = 350524801
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='947383', job_status='RUN', time_executed='2021-09-08 11:25:09.947836', time_epoch_executed='1631125509.95' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947383/ft1_4FGL_J1345.8+0706_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947383/ft2_4FGL_J1345.8+0706_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947383/ft1_4FGL_J1345.8+0706_daily_bin428.fits outfile=/scratch/kocevski/947383/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin428.fits ra=206.465 dec=7.1072 rad=12.0 tmin=350265601.0 tmax=350524801.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.34
user 3.15
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947383/ft1_filtered_4FGL_J1345.8+0706_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/947383/ft2_4FGL_J1345.8+0706_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/947383/ltcube_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.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/947383/ft2_4FGL_J1345.8+0706_daily_bin428.fits
.....................!
real 15.46
user 15.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947383/ft1_filtered_4FGL_J1345.8+0706_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/947383/ft2_4FGL_J1345.8+0706_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/947383/ltcube_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.fits outfile=/scratch/kocevski/947383/expmap_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.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/947383/ltcube_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.fits
.....................!
real 194.16
user 188.45
sys 4.88

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/947383/ft1_filtered_4FGL_J1345.8+0706_daily_bin428.fits scfile=/scratch/kocevski/947383/ft2_4FGL_J1345.8+0706_daily_bin428.fits outfile=/scratch/kocevski/947383/cmap_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947383/ft1_filtered_4FGL_J1345.8+0706_daily_bin428.fits scfile=/scratch/kocevski/947383/ft2_4FGL_J1345.8+0706_daily_bin428.fits outfile=/scratch/kocevski/947383/cmap_HighResolution_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.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/947383/ft1_filtered_4FGL_J1345.8+0706_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/947383/ft2_4FGL_J1345.8+0706_daily_bin428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/947383/Model_4FGL_J1345.8+0706_daily_bin428.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/947383/ft1_filtered_4FGL_J1345.8+0706_daily_bin428.fits.....................!
real 45.77
user 44.35
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24991       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.826       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.475       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9540       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5439       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.924       1.0000         .10000E-03   10000.    
    14 'norm      '    .14293E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3044       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .77618       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=   5712.599     FROM MIGRAD    STATUS=CONVERGED    307 CALLS     1479 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.605        19.510       -.80220E-06    .16118E-05
   2  Prefactor     .13033        8.7472       -.21686E-05    .38134E-03
   3  Prefactor     .10000E-03    57.994        .67829E-04** at limit **
   4  Prefactor     .10000E-03    18.424        .14268E-05** at limit **
   5  norm          17.824        19.931       -.11050E-06    .48275E-05
   6  Prefactor     .10000E-03    2.2177       -.93577E-07** at limit **
   7  Prefactor     14.467        19.496       -.14666E-05   -.16968E-04
   8  Prefactor     5.9534        4.4679       -.10010E-05   -.28898E-02
   9  Prefactor     .10000E-03    16.659       -.90286E-06** at limit **
  10  Prefactor     2.5405        8.4161        .29312E-05   -.25543E-03
  11  Prefactor     .10000E-03    5.7189       -.10773E-07** at limit **
  12  Prefactor     14.300        23.925       -.79957E-05   -.26184E-05
  13  Prefactor     23.900        22.744        .24374E-06    .36020E-03
  14  norm          .10000E-03    52.775       -.54872E-04** at limit **
  15  Normalizat    1.3045        .20079        .73680E-06    .22769E-03
  16  Prefactor     .77629        .14989        .52977E-06    .26430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6054
  Prefactor  = 0.130331
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 17.8239
  Prefactor  = 0.0001
  Prefactor  = 14.4675
  Prefactor  = 5.95336
  Prefactor  = 0.0001
  Prefactor  = 2.54054
  Prefactor  = 0.0001
  Prefactor  = 14.3005
  Prefactor  = 23.9004
  norm       = 0.000100003
  Normalizat = 1.30452
  Prefactor  = 0.776291
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.599     FROM HESSE     STATUS=OK           207 CALLS     1686 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.605        19.551        .90439E-04   -1.4822    
   2  Prefactor     .13033        17.656        .64800E-01   -1.5636    
   3  Prefactor     .10000E-03    57.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.824        19.934        .94863E-04   -1.4863    
   6  Prefactor     .10000E-03    2.2515        .10984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.467        19.494        .10528E-03   -1.4947    
   8  Prefactor     5.9534        4.5032        .67402E-03   -1.5220    
   9  Prefactor     .10000E-03    17.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5405        8.3687        .25603E-03   -1.5389    
  11  Prefactor     .10000E-03    5.7251        .17653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.300        23.954        .10588E-03   -1.4951    
  13  Prefactor     23.900        22.758        .81895E-04   -1.4730    
  14  norm          .10000E-03    53.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3045        .24325        .24023E-03   -.83431    
  16  Prefactor     .77629        .18057        .22840E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74228e-09
Minuit parameter uncertainties:
  1  19.5579
  2  3.03366
  3  0.000941275
  4  1.08404e-06
  5  19.9413
  6  2.5679e-06
  7  19.5029
  8  4.50349
  9  2.2113e-05
  10  8.37253
  11  4.78822e-06
  12  23.9698
  13  22.7663
  14  0.000856739
  15  0.243467
  16  0.180709
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.568e-06  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:  7.763e-01  1.807e-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.305e+00  2.435e-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: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947383/likelihoodResults_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.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) = 5712.6013703
delta logL = -0.00211333907282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5712.59925695
delta logL = 8.40555003379e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4658       1.0000          .0000       10.000    
     3 'Normalizat'    1.3044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77639       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=   5712.599     FROM MIGRAD    STATUS=FAILED        91 CALLS      242 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    3.7714        .11210E-02** at limit **
   2  Index         2.4894        6.1835        .50000       -.92145E-04
   3  Normalizat    1.3045        .23602        .24023E-03   -.26455E-04
   4  Prefactor     .77629        .17899        .22840E-03   -.47535E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5712.599     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      367 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    3.7714        .25610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4894        6.1835        .40788E-03   -.52605    
   3  Normalizat    1.3045        .23602        .41104E-04   -.83431    
   4  Prefactor     .77629        .17899        .23046E-04   -1.0061    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5712.500     FROM MIGRAD    STATUS=CONVERGED    173 CALLS      540 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12340        30.076        .28362E-03   -.20595E-02
   2  Index         4.3676        5.9692        .10480E-01   -.42336E-04
   3  Normalizat    1.2690        .19315        .19218E-05    .22124E-03
   4  Prefactor     .79254        .13744        .18272E-05    .68565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.123396
  Index      = 4.36763
  Normalizat = 1.26896
  Prefactor  = 0.792542
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.500     FROM HESSE     STATUS=OK            27 CALLS      567 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12340        .70171        .11345E-04   -1.5638    
   2  Index         4.3676        2.3724        .41922E-03   -.12681    
   3  Normalizat    1.2690        .24936        .38436E-06   -.84498    
   4  Prefactor     .79254        .18483        .36544E-06   -1.0000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3014e-09
Minuit parameter uncertainties:
  1  0.588287
  2  2.47374
  3  0.249599
  4  0.184974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947383': 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) = 5712.50014941
delta logL = 0.0991075521442

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.234e-01  5.883e-01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  4.368e+00  2.474e+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:  7.925e-01  1.850e-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.269e+00  2.496e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/947383/cmap_HighResolution_350265601_350524801_4FGL_J1345.8+0706_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-08 11:33:36.325040', job_id='947383', GAL2='0.79', fit_tolerance='1e-08', EG2='1.27', EG='1.30', time_epoch_completed='1631126016.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.91e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='428' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:33:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 947383: <4FGL_J1345.8+0706_daily_bin428> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin428> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:20:26 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:21:01 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:21:01 2021
Terminated at Wed Sep  8 11:33:36 2021
Results reported at Wed Sep  8 11:33:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin428 206.465 7.1072 350265601 350524801 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 :                                   504.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            790 sec.

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

