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


Performing analysis on: 4FGL_J1345.8+0706_daily_bin942
RA = 206.465, Dec = 7.1072
tmin = 483494401, tmax = 483753601
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='950038', job_status='RUN', time_executed='2021-09-08 11:30:53.629320', time_epoch_executed='1631125853.63' WHERE source_name='4FGL J1345.8+0706' and cadence='daily' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950038/ft1_4FGL_J1345.8+0706_daily_bin942.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950038/ft2_4FGL_J1345.8+0706_daily_bin942.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950038/ft1_4FGL_J1345.8+0706_daily_bin942.fits outfile=/scratch/kocevski/950038/ft1_filteredMKT_4FGL_J1345.8+0706_daily_bin942.fits ra=206.465 dec=7.1072 rad=12.0 tmin=483494401.0 tmax=483753601.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.51
user 6.23
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950038/ft1_filtered_4FGL_J1345.8+0706_daily_bin942.fits" evtable="EVENTS" scfile=/scratch/kocevski/950038/ft2_4FGL_J1345.8+0706_daily_bin942.fits sctable="SC_DATA" outfile=/scratch/kocevski/950038/ltcube_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.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/950038/ft2_4FGL_J1345.8+0706_daily_bin942.fits
.....................!
real 13.18
user 12.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950038/ft1_filtered_4FGL_J1345.8+0706_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/950038/ft2_4FGL_J1345.8+0706_daily_bin942.fits sctable="SC_DATA" expcube=/scratch/kocevski/950038/ltcube_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.fits outfile=/scratch/kocevski/950038/expmap_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.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/950038/ltcube_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.fits
.....................!
real 193.86
user 187.68
sys 5.63

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/950038/ft1_filtered_4FGL_J1345.8+0706_daily_bin942.fits scfile=/scratch/kocevski/950038/ft2_4FGL_J1345.8+0706_daily_bin942.fits outfile=/scratch/kocevski/950038/cmap_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.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/950038/ft1_filtered_4FGL_J1345.8+0706_daily_bin942.fits scfile=/scratch/kocevski/950038/ft2_4FGL_J1345.8+0706_daily_bin942.fits outfile=/scratch/kocevski/950038/cmap_HighResolution_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.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/950038/ft1_filtered_4FGL_J1345.8+0706_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/950038/ft2_4FGL_J1345.8+0706_daily_bin942.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950038/Model_4FGL_J1345.8+0706_daily_bin942.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/950038/ft1_filtered_4FGL_J1345.8+0706_daily_bin942.fits.....................!
real 41.48
user 39.53
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.870       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.205       1.0000         .10000E-03   10000.    
     5 'norm      '    .14711       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.273       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7319       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13564E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71818       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85932E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    9.4345       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2520       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .89082       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=   4854.610     FROM MIGRAD    STATUS=FAILED       578 CALLS     1763 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.586        21.849        .69152E-04   -.17476E-03
   2  Prefactor     .10000E-03    2.6228        .11018E-02** at limit **
   3  Prefactor     23.875        23.948        .81989E-04   -.68721E-04
   4  Prefactor     31.221        42.091        .71728E-04    .37184E-04
   5  norm          .10420E-03    35.765        .13370    ** at limit **
   6  Prefactor     5.1080        5.4474        .78610E-03    .38915E-03
   7  Prefactor     26.278        25.257        .78155E-04   -.25311E-04
   8  Prefactor     1.7321        4.8583        .24721E-03    .68475E-04
   9  Prefactor     .10000E-03    3.7637        .13195E-02** at limit **
  10  Prefactor     .10000E-03    4.0281        .13645E-02** at limit **
  11  Prefactor     .10000E-03    26.266        .18142E-02** at limit **
  12  Prefactor     .61328        267.38        .66742E-02    .49321E-03
  13  Prefactor     .10003E-03    22.558        .92714E-01** at limit **
  14  norm          9.4301        14.859        .13047E-03   -.27099E-04
  15  Normalizat    1.2518        .27009        .25262E-03    .42738E-03
  16  Prefactor     .89101        .20427        .22412E-03    .50951E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4854.610     FROM SIMPLEX   STATUS=PROGRESS     721 CALLS     2484 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.587        21.849        .10137E-06   -1.4548    
   2  Prefactor     .10000E-03    2.6228        .32263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.875        23.948        .41975E-08   -1.4730    
   4  Prefactor     31.221        42.091        .59022E-08   -1.4590    
   5  norm          .10420E-03    35.765        .15322E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1080        5.4474        .29714E-08   -1.5256    
   7  Prefactor     26.278        25.257        .10416E-07   -1.4682    
   8  Prefactor     1.7321        4.8583        .58089E-08   -1.5445    
   9  Prefactor     .10000E-03    3.7637        .37408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0281        .13575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.266        .59069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61328        267.38        .13519E-06   -1.5551    
  13  Prefactor     .10003E-03    22.558        .80376E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.4301        14.859        .39317E-08   -1.5094    
  15  Normalizat    1.2518        .27009        .18933E-08   -.85018    
  16  Prefactor     .89101        .20427        .25272E-09   -.96456    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4854.610     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2697 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.587        21.847        .13830E-04    .21372E-04
   2  Prefactor     .10000E-03    2.6228        .22036E-03** at limit **
   3  Prefactor     23.876        23.947        .16398E-04    .33833E-04
   4  Prefactor     31.221        42.087        .14346E-04   -.18703E-04
   5  norm          .10359E-03    35.398        .13489    ** at limit **
   6  Prefactor     5.1080        5.4442        .31444E-04   -.18801E-03
   7  Prefactor     26.278        25.257        .31262E-05    .26183E-04
   8  Prefactor     1.7321        4.8574        .98885E-05   -.34950E-04
   9  Prefactor     .10000E-03    3.7638        .26389E-03** at limit **
  10  Prefactor     .10000E-03    4.0282        .27290E-03** at limit **
  11  Prefactor     .10000E-03    26.272        .36285E-03** at limit **
  12  Prefactor     .61389        273.76        .13348E-02    .19342E-04
  13  Prefactor     .10004E-03    20.494        .10022    ** at limit **
  14  norm          9.4301        14.860        .52189E-05    .10020E-04
  15  Normalizat    1.2518        .27028        .50525E-04   -.21385E-03
  16  Prefactor     .89101        .20428        .44824E-04   -.21533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.5867
  Prefactor  = 0.0001
  Prefactor  = 23.8756
  Prefactor  = 31.2213
  norm       = 0.000103593
  Prefactor  = 5.108
  Prefactor  = 26.2784
  Prefactor  = 1.73215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.613887
  Prefactor  = 0.000100038
  norm       = 9.43015
  Normalizat = 1.25176
  Prefactor  = 0.891012
 **********
 **   18 **HESSE 
 **********

 FCN=   4854.610     FROM HESSE     STATUS=OK           205 CALLS     2902 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.587        21.847        .27661E-05   -1.4548    
   2  Prefactor     .10000E-03    2.6228        .44072E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.876        23.949        .32795E-05   -1.4730    
   4  Prefactor     31.221        42.087        .28691E-05   -1.4590    
   5  norm          .10359E-03    35.452        .13471       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1080        5.4438        .12578E-05   -1.5256    
   7  Prefactor     26.278        25.244        .62524E-06   -1.4682    
   8  Prefactor     1.7321        4.8573        .19777E-05   -1.5445    
   9  Prefactor     .10000E-03    3.7638        .52778E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0283        .54580E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.272        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61389        273.28        .53394E-04   -1.5551    
  13  Prefactor     .10004E-03    20.873        .98719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.4301        14.885        .10438E-05   -1.5094    
  15  Normalizat    1.2518        .27031        .10105E-04   -.85018    
  16  Prefactor     .89101        .20428        .89647E-05   -.96456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95758e-10
Minuit parameter uncertainties:
  1  21.8525
  2  1.97551e-06
  3  23.9585
  4  42.1267
  5  0.0225856
  6  5.44431
  7  25.2546
  8  4.85842
  9  4.47123e-08
  10  1.33097e-05
  11  7.7393e-05
  12  26.0228
  13  0.00178047
  14  14.8907
  15  0.270616
  16  0.204455
Done.

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

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  5.108e+00  5.444e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.910e-01  2.045e-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.252e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 206.465 7.107
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 5.36e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/950038/likelihoodResults_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.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) = 4853.62246495
delta logL = 0.987979700195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.60052183
delta logL = 1.00992281391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76105       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1459       1.0000          .0000       10.000    
     3 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4853.601     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      249 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76051        7.9824        .85159E-02    .68057E-03
   2  Index         4.1464        2.9745        .11284        .11991E-03
   3  Normalizat    1.1608        .63432E-01    .58919E-01    .45671E-05
   4  Prefactor     .94160        .48595E-01    .45533E-01    .19553E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.760513
  Index      = 4.14635
  Normalizat = 1.16081
  Prefactor  = 0.941597
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.601     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76051        15.856        .38392E-04   -1.5534    
   2  Index         4.1464        6.9298        .44027E-02   -.17157    
   3  Normalizat    1.1608        .25005        .26058E-03   -.87823    
   4  Prefactor     .94160        .19134        .21861E-03   -.94702    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.2176e-10
Minuit parameter uncertainties:
  1  6.94683
  2  5.21656
  3  0.250308
  4  0.191482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950038': 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): 102
logL (Free Index) = 4853.60052179
delta logL = 1.00992285795

Extracting fit parameters...

4FGL J1345.8+0706
   Spectrum: PowerLaw
286    Prefactor:  7.605e-01  6.947e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  4.146e+00  5.217e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  7.607e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.416e-01  1.915e-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.161e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 206.465 7.107
Photon Index (Free Index): 4.15 +/- 5.22
Photon Flux (Free Index): 1.09e-07 +/- 7.44e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.85e-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/950038/cmap_HighResolution_483494401_483753601_4FGL_J1345.8+0706_daily_bin942.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='1.60e-05', photon_flux_error='5.36e-08', dlogl='1.01e+00', energy_flux='1.56e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-08 11:39:56.632980', photon_index_error2='5.22', photon_index2='4.15', ts='1.15', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.85e-05', EG='1.25', time_epoch_completed='1631126396.63', return_code='0', job_id='950038', GAL2='0.94', EG2='1.16', return_code2='102', energy_flux_error='1.67e-05', photon_flux_error2='7.44e-08', ts2='3.35', photon_index='2.44' WHERE bin_id='942' AND source_name='4FGL J1345.8+0706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:39:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 950038: <4FGL_J1345.8+0706_daily_bin942> in cluster <slac> Done

Job <4FGL_J1345.8+0706_daily_bin942> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 11:30:29 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:30:40 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:30:40 2021
Terminated at Wed Sep  8 11:39:57 2021
Results reported at Wed Sep  8 11:39:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.8+0706_daily_bin942 206.465 7.1072 483494401 483753601 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 :                                   538.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            568 sec.

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

