aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 97 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 = 74011
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1345.6-3356_monthly_bin170
RA = 206.408, Dec = -33.9453
tmin = 677635201, tmax = 680227201
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='103674', job_status='RUN', time_executed='2022-07-23 01:52:22.870268', time_epoch_executed='1658566342.87' WHERE source_name='4FGL J1345.6-3356' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103674

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103674/ft1_4FGL_J1345.6-3356_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103674/ft1_4FGL_J1345.6-3356_monthly_bin170.fits outfile=/scratch/kocevski/103674/ft1_filteredMKT_4FGL_J1345.6-3356_monthly_bin170.fits ra=206.408 dec=-33.9453 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.04
user 31.20
sys 0.76

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.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/103674/ft1_filteredMKT_4FGL_J1345.6-3356_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.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.84
user 0.66
sys 0.17

Number of photons that the gtmktime cut: 11165

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/103674/ltcube_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.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/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits
.....................!
real 109.60
user 109.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/103674/ltcube_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.fits outfile=/scratch/kocevski/103674/expmap_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.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/103674/ltcube_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.fits
.....................!
real 189.84
user 185.22
sys 4.27

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 201 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.6-3356 @ 206.408 -33.9453

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits scfile=/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits outfile=/scratch/kocevski/103674/cmap_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.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.408 yref=-33.9453 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.80
user 0.60
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits scfile=/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits outfile=/scratch/kocevski/103674/cmap_HighResolution_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.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.408 yref=-33.9453 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.78
user 0.63
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103674/Model_4FGL_J1345.6-3356_monthly_bin170.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/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits.....................!
real 1858.32
user 1853.57
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits', '/scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits', expMap='/scratch/kocevski/103674/expmap_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.fits', expCube='/scratch/kocevski/103674/ltcube_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/103674/Model_4FGL_J1345.6-3356_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1345.6-3356'

4FGL J1345.6-3356
   Spectrum: PowerLaw
312    Prefactor:  9.990e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/103674/ft1_filtered_4FGL_J1345.6-3356_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/103674/ft2_4FGL_J1345.6-3356_monthly_bin170.fits
Exposure map: /scratch/kocevski/103674/expmap_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.fits
Exposure cube: /scratch/kocevski/103674/ltcube_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/103674/Model_4FGL_J1345.6-3356_monthly_bin170.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) = 113954.966315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1242       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3731       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    83.597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5494       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.259       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1425       1.0000         .10000E-03   10000.    
    10 'norm      '    22.528       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.854       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.941       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6444       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6853       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9332       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13442E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.843       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2941       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   113954.8     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2734 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26410        .49206       -.20491E-06   -.20814E-02
   2  Prefactor     2.1242        1.5941        .19323E-05   -.20300E-02
   3  Prefactor     4.3733        1.5545       -.18287E-08   -.17753E-03
   4  norm          4.5823        1.4145        .24356E-07   -.53610E-03
   5  Prefactor     83.565        51.519        .39297E-06   -.16334E-03
   6  Prefactor     .70659        1.6876       -.48837E-06   -.24197E-03
   7  Prefactor     2.5495        1.8841        .66134E-07   -.21367E-03
   8  Prefactor     11.258        12.315        .14086E-06   -.38239E-04
   9  norm          4.1429        3.8931       -.81360E-07    .46217E-04
  10  norm          22.529        8.2314        .16073E-07   -.70864E-04
  11  norm          .10000E-03    .48847        .10313E-06** at limit **
  12  Prefactor     .10000E-03    .19386        .18711E-06** at limit **
  13  Prefactor     15.854        9.2126        .49306E-07   -.50997E-04
  14  Prefactor     .10000E-03    7.7251        .10308E-06** at limit **
  15  Prefactor     11.968        10.446        .48228E-07   -.80123E-04
  16  Prefactor     .10000E-03    22.305        .37752E-07** at limit **
  17  Prefactor     28.943        14.627       -.86277E-08   -.17254E-04
  18  Prefactor     3.6445        3.2926        .18160E-07   -.44201E-04
  19  Prefactor     .10000E-03    1.9221        .12141E-06** at limit **
  20  norm          1.6851        1.0579       -.12947E-06   -.26213E-02
  21  Prefactor     .10000E-03    8.7485       -.39727E-06** at limit **
  22  norm          2.9332        .10260        .43409E-10   -.35174E-02
  23  Prefactor     .10000E-03    2.2473        .27713E-05** at limit **
  24  Prefactor     14.842        7.7359        .63232E-07   -.45361E-03
  25  Normalizat    1.2943        .78037E-01   -.13764E-05   -.19942E-02
  26  Prefactor     1.0041        .29297E-01    .36239E-06   -.19015E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.264097
  Prefactor  = 2.12424
  Prefactor  = 4.37333
  norm       = 4.58234
  Prefactor  = 83.5654
  Prefactor  = 0.706586
  Prefactor  = 2.54952
  Prefactor  = 11.2585
  norm       = 4.14289
  norm       = 22.5289
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8541
  Prefactor  = 0.0001
  Prefactor  = 11.9685
  Prefactor  = 0.0001
  Prefactor  = 28.9429
  Prefactor  = 3.64447
  Prefactor  = 0.0001
  norm       = 1.68514
  Prefactor  = 0.000100001
  norm       = 2.9332
  Prefactor  = 0.000100003
  Prefactor  = 14.8418
  Normalizat = 1.29432
  Prefactor  = 1.00415
 **********
 **   18 **HESSE 
 **********

 FCN=   113954.8     FROM HESSE     STATUS=OK           484 CALLS     3218 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26410        .86390        .31271E-02   -1.5605    
   2  Prefactor     2.1242        1.6529        .14147E-02   -1.5416    
   3  Prefactor     4.3733        1.5541        .19260E-03   -1.5290    
   4  norm          4.5823        1.4128        .18804E-03   -1.5280    
   5  Prefactor     83.565        51.629        .21967E-03   -1.3877    
   6  Prefactor     .70659        9.1926        .64216E-02   -1.5540    
   7  Prefactor     2.5495        1.8786        .25573E-03   -1.5389    
   8  Prefactor     11.258        12.315        .11940E-03   -1.5037    
   9  norm          4.1429        3.8930        .19804E-03   -1.5301    
  10  norm          22.529        8.2328        .84391E-04   -1.4758    
  11  norm          .10000E-03    1.8791        .45287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0724        .28092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.854        9.2126        .10059E-03   -1.4911    
  14  Prefactor     .10000E-03    7.7519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.968        10.443        .11579E-03   -1.5016    
  16  Prefactor     .10000E-03    22.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.943        14.639        .74473E-04   -1.4631    
  18  Prefactor     3.6445        3.2940        .21161E-03   -1.5326    
  19  Prefactor     .10000E-03    1.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6851        1.0625        .16219E-03   -1.5448    
  21  Prefactor     .10000E-03    8.9608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9332        .10276        .19548E-04   -1.5365    
  23  Prefactor     .10000E-03    1.7574        .16876       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.842        7.7271        .10396E-03   -1.4937    
  25  Normalizat    1.2943        .91877E-01    .42971E-03   -.83736    
  26  Prefactor     1.0041        .35206E-01    .18271E-03   -.92591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50017e-06
Minuit parameter uncertainties:
  1  0.863936
  2  1.65294
  3  1.55407
  4  1.41285
  5  51.6567
  6  5.0978
  7  1.87865
  8  12.3176
  9  3.89329
  10  8.23317
  11  4.76856e-06
  12  5.98267e-06
  13  9.21342
  14  4.5012e-05
  15  10.4445
  16  8.67032e-06
  17  14.641
  18  3.2942
  19  1.41017e-05
  20  1.06249
  21  0.000148168
  22  0.102755
  23  0.000147558
  24  7.72757
  25  0.0918882
  26  0.0352066
Done.

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

Extracting fit parameters...

4FGL J1345.6-3356
   Spectrum: PowerLaw
312    Prefactor:  1.126e+01  1.232e+01  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
670    Prefactor:  1.004e+00  3.521e-02  0.000e+00  1.000e+01 ( 1.000e+00)
671        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
672        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
669   Normalization:  1.294e+00  9.189e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 206.408 -33.945
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.99e-09 +/- 6.55e-09
Energy Flux (Fixed Index): 3.64e-06 +/- 3.98e-06

TS (Fixed Index): 1.16
Ra Dec: 206.408 -33.945
Photon Flux Upper Limit: 2.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103674/likelihoodResults_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.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) = 113954.397251
delta logL = 0.451062049877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 113954.38213
delta logL = 0.466182572854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0496       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3304       1.0000          .0000       10.000    
     3 'Normalizat'    1.2983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+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=   113954.4     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      280 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0469        10.966        .13323E-03   -.81916E-05
   2  Index         1.3303        .61622        .28424E-01   -.80871E-04
   3  Normalizat    1.2983        .90298E-01    .42911E-03    .59346E-05
   4  Prefactor     1.0039        .34596E-01    .18272E-03   -.19811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.04689
  Index      = 1.33032
  Normalizat = 1.29829
  Prefactor  = 1.00393
 **********
 **   18 **HESSE 
 **********

 FCN=   113954.4     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0469        12.189        .53293E-05   -1.5106    
   2  Index         1.3303        .68471        .11370E-02   -.82410    
   3  Normalizat    1.2983        .90385E-01    .17164E-04   -.83617    
   4  Prefactor     1.0039        .34631E-01    .73087E-05   -.92599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18431e-12
Minuit parameter uncertainties:
  1  12.1924
  2  0.689433
  3  0.0903961
  4  0.034632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103674': 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) = 113954.38213
delta logL = 0.466182603312

Extracting fit parameters...

4FGL J1345.6-3356
   Spectrum: PowerLaw
312    Prefactor:  9.047e+00  1.219e+01  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  1.330e+00  6.894e-01  0.000e+00  1.000e+01 (-1.000e+00)
314        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
670    Prefactor:  1.004e+00  3.463e-02  0.000e+00  1.000e+01 ( 1.000e+00)
671        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
672        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
669   Normalization:  1.298e+00  9.040e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 206.408 -33.945
Photon Index (Free Index): 1.33 +/- 0.69
Photon Flux (Free Index): 1.48e-09 +/- 2.65e-09
Energy Flux (Free Index): 8.23e-06 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/103674/cmap_HighResolution_677635201_680227201_4FGL_J1345.6-3356_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-03', comment='SUCCESS', photon_flux='5.99e-09', energy_flux2='8.23e-06', photon_flux_error='6.55e-09', dlogl='4.66e-01', energy_flux='3.64e-06', photon_flux2='1.48e-09', job_status='DONE', time_completed='2022-07-23 04:47:21.361253', photon_index_error2='0.69', photon_index2='1.33', ts='1.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.07e-08', energy_flux_error2='1.02e-05', EG='1.29', time_epoch_completed='1658576841.36', return_code='0', job_id='103674', GAL2='1.00', EG2='1.30', return_code2='0', energy_flux_error='3.98e-06', photon_flux_error2='2.65e-09', ts2='2.08', photon_index='2.05' WHERE bin_id='170' AND source_name='4FGL J1345.6-3356' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:47:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 103674: <4FGL_J1345.6-3356_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1345.6-3356_monthly_bin170> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Jul 23 01:50:32 2022
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 01:50:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 01:50:33 2022
Terminated at Sat Jul 23 04:47:22 2022
Results reported at Sat Jul 23 04:47:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.6-3356_monthly_bin170 206.408 -33.9453 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1345.6-3356 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10456.00 sec.
    Max Memory :                                 637 MB
    Average Memory :                             492.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10609 sec.
    Turnaround time :                            10610 sec.

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

