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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin109
RA = 206.465, Dec = 7.1072
tmin = 267580801, tmax = 267840001
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='940477', job_status='RUN', time_executed='2021-09-08 11:13:47.392982', time_epoch_executed='1631124827.39' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940477

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940477/ft1_4FGL_J1345.8+0706_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940477/ft2_4FGL_J1345.8+0706_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940477/ft1_4FGL_J1345.8+0706_daily_bin109.fits outfile=/scratch/kocevski/940477/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin109.fits ra=206.465 dec=7.1072 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.40
user 1.20
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/940477/ft2_4FGL_J1345.8+0706_daily_bin109.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/940477/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin109.fits evtable="EVENTS" outfile="/scratch/kocevski/940477/ft1_filtered_4FGL_J1345.8+0706_daily_bin109.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/940477/ft1_filtered_4FGL_J1345.8+0706_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/940477/ft2_4FGL_J1345.8+0706_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/940477/ltcube_267580801_267840001_4FGL_J1345.8+0706_daily_bin109.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/940477/ft2_4FGL_J1345.8+0706_daily_bin109.fits
.....................!
real 16.31
user 15.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940477/ft1_filtered_4FGL_J1345.8+0706_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/940477/ft2_4FGL_J1345.8+0706_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/940477/ltcube_267580801_267840001_4FGL_J1345.8+0706_daily_bin109.fits outfile=/scratch/kocevski/940477/expmap_267580801_267840001_4FGL_J1345.8+0706_daily_bin109.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/940477/ltcube_267580801_267840001_4FGL_J1345.8+0706_daily_bin109.fits
.....................!
real 191.55
user 186.07
sys 5.02

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/940477/ft1_filtered_4FGL_J1345.8+0706_daily_bin109.fits scfile=/scratch/kocevski/940477/ft2_4FGL_J1345.8+0706_daily_bin109.fits outfile=/scratch/kocevski/940477/cmap_267580801_267840001_4FGL_J1345.8+0706_daily_bin109.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    76.616       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11947E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.915       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3203       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .89770       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=   5678.641     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1438 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.412        .44908E-05** at limit **
   2  Prefactor     .10000E-03    5.2790        .93913E-07** at limit **
   3  Prefactor     23.039        27.198       -.11612E-05   -.39548E-05
   4  Prefactor     76.641        74.450        .26847E-04    .57495E-04
   5  norm          .10000E-03    12.697       -.76000E-05** at limit **
   6  Prefactor     .10000E-03    2.5399       -.24032E-06** at limit **
   7  Prefactor     16.800        20.866        .15729E-05   -.13672E-04
   8  Prefactor     .10001E-03    4.6725       -.14308E-05** at limit **
   9  Prefactor     .10000E-03    10.570        .27677E-05** at limit **
  10  Prefactor     .10000E-03    7.0775       -.28923E-06** at limit **
  11  Prefactor     15.802        19.191        .38196E-06   -.11397E-04
  12  Prefactor     33.002        31.247        .20687E-05    .31206E-05
  13  Prefactor     12.910        18.297       -.30448E-05   -.96738E-05
  14  norm          .10000E-03    35.552       -.25764E-06** at limit **
  15  Normalizat    1.3204        .21826       -.16486E-05    .17562E-03
  16  Prefactor     .89769        .16297       -.88647E-06    .11455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0393
  Prefactor  = 76.6407
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7998
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8018
  Prefactor  = 33.0017
  Prefactor  = 12.9096
  norm       = 0.0001
  Normalizat = 1.32038
  Prefactor  = 0.89769
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.641     FROM HESSE     STATUS=OK           201 CALLS     1639 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2943        .16908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.039        27.200        .83449E-04   -1.4748    
   4  Prefactor     76.641        74.555        .45875E-04   -1.3955    
   5  norm          .10000E-03    12.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0863        .23181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.800        20.860        .97721E-04   -1.4888    
   8  Prefactor     .10001E-03    14.015        .31299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.802        19.189        .10076E-03   -1.4913    
  12  Prefactor     33.002        31.263        .69755E-04   -1.4558    
  13  Prefactor     12.910        18.304        .11146E-03   -1.4989    
  14  norm          .10000E-03    35.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3204        .26601        .25742E-03   -.82960    
  16  Prefactor     .89769        .19906        .23005E-03   -.96222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14725e-10
Minuit parameter uncertainties:
  1  2.10039e-05
  2  4.50161e-06
  3  27.2151
  4  74.6465
  5  7.73324e-06
  6  2.84955e-05
  7  20.869
  8  0.000806024
  9  2.46723e-05
  10  8.51023e-06
  11  19.1968
  12  31.278
  13  18.3115
  14  0.000130359
  15  0.266288
  16  0.199225
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.850e-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.977e-01  1.992e-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.320e+00  2.663e-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: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940477/likelihoodResults_267580801_267840001_4FGL_J1345.8+0706_daily_bin109.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) = 5678.64228563
delta logL = -0.000935738727094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5678.64134856
delta logL = 1.32963032229e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3775       1.0000          .0000       10.000    
     3 'Normalizat'    1.3204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89764       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=   5678.626     FROM MIGRAD    STATUS=FAILED       181 CALLS      353 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45613        701.13        .25640E-02    .24536E-03
   2  Index         1.5879        8.3138        .50000       -.28057E-04
   3  Normalizat    1.3229        .10144        .25742E-03    .74903E-04
   4  Prefactor     .89430        .90815E-01    .23005E-03    .69483E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5678.626     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      451 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45613        701.13        .22404E-03    .24536E-03
   2  Index         1.5879        8.3138        .20773E-02   -.28057E-04
   3  Normalizat    1.3229        .10144        .38583E-04    .74903E-04
   4  Prefactor     .89430        .90815E-01    .58752E-04    .69483E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5678.626     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      486 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45612        4.2622        .10256E-03    .54317E-05
   2  Index         1.5879        1.5864        .17332E-01   -.10104E-03
   3  Normalizat    1.3229        .26318        .10297E-04    .72209E-04
   4  Prefactor     .89430        .19997        .92019E-05    .64245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.456121
  Index      = 1.5879
  Normalizat = 1.32294
  Prefactor  = 0.894296
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.626     FROM HESSE     STATUS=OK            25 CALLS      511 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45612        4.3850        .41024E-05   -1.5573    
   2  Index         1.5879        1.6093        .34663E-02   -.75107    
   3  Normalizat    1.3229        .26384        .20593E-05   -.82884    
   4  Prefactor     .89430        .20046        .18404E-05   -.96341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61487e-12
Minuit parameter uncertainties:
  1  2.82846
  2  1.66648
  3  0.264112
  4  0.200625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940477': 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) = 5678.62625786
delta logL = 0.0150920251499

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  4.561e-01  2.828e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.588e+00  1.666e+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.943e-01  2.006e-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.323e+00  2.641e-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/940477/cmap_HighResolution_267580801_267840001_4FGL_J1345.8+0706_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.78e-08', time_completed='2021-09-08 11:21:54.523988', job_id='940477', GAL2='0.89', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631125314.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.51e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='109' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 940477: <4FGL_J1345.8+0706_daily_bin109> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin109> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 11:10:44 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:11:09 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:11:09 2021
Terminated at Wed Sep  8 11:21:55 2021
Results reported at Wed Sep  8 11:21:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin109 206.465 7.1072 267580801 267840001 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 :                                   488.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             211.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            671 sec.

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

