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


Performing analysis on: 4FGL_J1345.9-2612_daily_bin500
RA = 206.482, Dec = -26.2116
tmin = 368928001, tmax = 369187201
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='954849', job_status='RUN', time_executed='2021-09-08 11:47:18.669335', time_epoch_executed='1631126838.67' WHERE source_name='4FGL J1345.9-2612' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954849

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954849/ft1_4FGL_J1345.9-2612_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954849/ft1_4FGL_J1345.9-2612_daily_bin500.fits outfile=/scratch/kocevski/954849/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin500.fits ra=206.482 dec=-26.2116 rad=12.0 tmin=368928001.0 tmax=369187201.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.36
user 3.14
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.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/954849/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.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.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/954849/ltcube_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.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/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits
.....................!
real 16.71
user 16.13
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/954849/ltcube_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.fits outfile=/scratch/kocevski/954849/expmap_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.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/954849/ltcube_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.fits
.....................!
real 192.83
user 186.80
sys 5.19

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 198 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1345.9-2612 @ 206.482 -26.2116

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits scfile=/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits outfile=/scratch/kocevski/954849/cmap_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.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.482 yref=-26.2116 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits scfile=/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits outfile=/scratch/kocevski/954849/cmap_HighResolution_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.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.482 yref=-26.2116 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954849/Model_4FGL_J1345.9-2612_daily_bin500.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits.....................!
real 109.18
user 107.20
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits', '/scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits', expMap='/scratch/kocevski/954849/expmap_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.fits', expCube='/scratch/kocevski/954849/ltcube_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954849/Model_4FGL_J1345.9-2612_daily_bin500.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1345.9-2612'

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  3.152e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.998e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  1.662e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/954849/ft1_filtered_4FGL_J1345.9-2612_daily_bin500.fits
Spacecraft file(s): /scratch/kocevski/954849/ft2_4FGL_J1345.9-2612_daily_bin500.fits
Exposure map: /scratch/kocevski/954849/expmap_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.fits
Exposure cube: /scratch/kocevski/954849/ltcube_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954849/Model_4FGL_J1345.9-2612_daily_bin500.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) = 6560.70389166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0629       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0756       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.334       1.0000         .10000E-03   10000.    
    10 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    140.81       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.587       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11258E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.838       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.977       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8223       1.0000         .10000E-03   10000.    
    22 'norm      '    5.9053       1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.700       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.902       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6573       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6560.688     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3041 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.596        10.599       -.15317E-06   -.21024E-03
   2  Prefactor     .10000E-03    11.285        .27952E-05** at limit **
   3  norm          2.0608        3.5676        .20092E-05   -.24480E-02
   4  norm          1.0748        2.5116       -.25987E-07   -.25953E-03
   5  norm          .10000E-03    3.2695       -.34628E-07** at limit **
   6  Prefactor     .10000E-03    18.159       -.14084E-05** at limit **
   7  Prefactor     .10000E-03    12.968       -.23166E-05** at limit **
   8  Prefactor     .10000E-03    10.353        .22415E-05** at limit **
   9  Prefactor     22.343        17.461        .38986E-05    .22139E-03
  10  norm          .10000E-03    2.3883       -.77967E-07** at limit **
  11  Prefactor     140.81        80.958        .43471E-05    .56581E-04
  12  norm          .10000E-03    9.9194       -.21704E-05** at limit **
  13  norm          .10000E-03    12.635       -.11041E-05** at limit **
  14  Prefactor     72.585        57.851       -.93264E-06   -.66278E-05
  15  norm          .10000E-03    4.4273        .35676E-07** at limit **
  16  Prefactor     .10000E-03    2.2791        .15513E-06** at limit **
  17  Prefactor     34.839        41.149        .11002E-05    .12916E-04
  18  Prefactor     .10000E-03    22.059        .29347E-05** at limit **
  19  Prefactor     23.967        51.774       -.11841E-04   -.72052E-04
  20  Prefactor     .10000E-03    24.401       -.33962E-06** at limit **
  21  Prefactor     6.8092        23.305       -.16778E-04   -.14866E-03
  22  norm          5.9064        5.3667        .51743E-06    .11308E-03
  23  Prefactor     59.705        53.352        .43126E-05    .58338E-04
  24  Prefactor     25.902        35.204       -.70525E-07    .64644E-05
  25  Normalizat    1.6562        .30140       -.53302E-06   -.17981E-04
  26  Prefactor     .77259        .11580        .21228E-06   -.99350E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.5963
  Prefactor  = 0.0001
  norm       = 2.06078
  norm       = 1.07478
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3434
  norm       = 0.0001
  Prefactor  = 140.814
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 72.5853
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8388
  Prefactor  = 0.0001
  Prefactor  = 23.9673
  Prefactor  = 0.0001
  Prefactor  = 6.80924
  norm       = 5.90635
  Prefactor  = 59.7052
  Prefactor  = 25.9019
  Normalizat = 1.65621
  Prefactor  = 0.772587
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.688     FROM HESSE     STATUS=OK           450 CALLS     3491 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.596        10.556        .90519E-04   -1.4822    
   2  Prefactor     .10000E-03    11.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0608        7.1187        .14385E-02   -1.5421    
   4  norm          1.0748        2.4617        .18913E-03   -1.5501    
   5  norm          .10000E-03    3.2852        .14301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.343        17.646        .84755E-04   -1.4762    
  10  norm          .10000E-03    2.3961        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     140.81        81.000        .16975E-03   -1.3329    
  12  norm          .10000E-03    9.9238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     72.585        57.865        .47122E-04   -1.4002    
  15  norm          .10000E-03    4.4346        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.865        .23245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.839        41.158        .67895E-04   -1.4527    
  18  Prefactor     .10000E-03    22.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.967        51.867        .81805E-04   -1.4728    
  20  Prefactor     .10000E-03    24.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8092        23.476        .15361E-03   -1.5186    
  22  norm          5.9064        5.3616        .16525E-03   -1.5222    
  23  Prefactor     59.705        53.328        .51926E-04   -1.4161    
  24  Prefactor     25.902        35.202        .78711E-04   -1.4690    
  25  Normalizat    1.6562        .36322        .34991E-03   -.73479    
  26  Prefactor     .77259        .14079        .19545E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5046e-08
Minuit parameter uncertainties:
  1  10.5568
  2  5.34464e-05
  3  7.12163
  4  2.46189
  5  1.78866e-06
  6  0.000288368
  7  8.48805e-05
  8  2.53119e-05
  9  17.65
  10  8.04313e-06
  11  81.0636
  12  4.57423e-05
  13  2.61497e-05
  14  57.9098
  15  4.57485e-07
  16  0.000187777
  17  41.1915
  18  0.000104185
  19  51.9647
  20  5.18949e-05
  21  23.5079
  22  5.362
  23  53.3704
  24  35.2305
  25  0.363805
  26  0.140856
Done.

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

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  4.574e-05  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.998e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  1.662e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  7.726e-01  1.409e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.656e+00  3.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 206.482 -26.212
Photon Flux Upper Limit: 2.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954849/likelihoodResults_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.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) = 6560.68884775
delta logL = -0.000470051193588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6560.6883777
delta logL = -2.08638084587e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77260       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6560.688     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      240 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.891        .18142E-02** at limit **
   2  alpha         1.6636        2.7390        .16744       -.29874E-08
   3  Normalizat    1.6562        .34291        .34991E-03    .99681E-04
   4  Prefactor     .77259        .13824        .19545E-03   -.10604E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66363
  Normalizat = 1.65621
  Prefactor  = 0.772586
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.688     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6636        2.5242        .66977E-02   -.34113    
   3  Normalizat    1.6562        .34330        .13996E-04   -.73479    
   4  Prefactor     .77259        .13839        .78178E-05   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05782e-10
Minuit parameter uncertainties:
  1  7.54883e-06
  2  769.796
  3  0.34379
  4  0.138457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954849': 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) = 6560.68837754
delta logL = 1.60292074725e-07

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  7.549e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  1.664e+00  7.698e+02  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  9.998e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  1.662e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  7.726e-01  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.656e+00  3.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 206.482 -26.212

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/954849/cmap_HighResolution_368928001_369187201_4FGL_J1345.9-2612_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='2.17e-08', time_completed='2021-09-08 12:01:41.478746', job_id='954849', GAL2='0.77', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1631127701.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='500' AND source_name='4FGL J1345.9-2612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 12:01:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 954849: <4FGL_J1345.9-2612_daily_bin500> in cluster <slac> Done

Job <4FGL_J1345.9-2612_daily_bin500> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 11:45:21 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:45:45 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:45:45 2021
Terminated at Wed Sep  8 12:01:42 2021
Results reported at Wed Sep  8 12:01:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.9-2612_daily_bin500 206.482 -26.2116 368928001 369187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1345.9-2612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   852.08 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             328.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            981 sec.

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

