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


Performing analysis on: 4FGL_J1345.6-3356_monthly_bin18
RA = 206.408, Dec = -33.9453
tmin = 283651201, tmax = 286243201
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='433496', job_status='RUN', time_executed='2021-10-25 06:36:43.761064', time_epoch_executed='1635169003.76' WHERE source_name='4FGL J1345.6-3356' and cadence='monthly' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433496

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433496/ft1_4FGL_J1345.6-3356_monthly_bin18.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433496/ft1_4FGL_J1345.6-3356_monthly_bin18.fits outfile=/scratch/kocevski/433496/ft1_filteredMKT_4FGL_J1345.6-3356_monthly_bin18.fits ra=206.408 dec=-33.9453 rad=12.0 tmin=283651201.0 tmax=286243201.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 25.06
user 24.35
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.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/433496/ft1_filteredMKT_4FGL_J1345.6-3356_monthly_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.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.70
user 0.53
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/433496/ltcube_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.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/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits
.....................!
real 90.41
user 89.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/433496/ltcube_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.fits outfile=/scratch/kocevski/433496/expmap_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.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/433496/ltcube_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.fits
.....................!
real 153.97
user 149.26
sys 4.45

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/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits scfile=/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits outfile=/scratch/kocevski/433496/cmap_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.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.64
user 0.49
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits scfile=/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits outfile=/scratch/kocevski/433496/cmap_HighResolution_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.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.68
user 0.51
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433496/Model_4FGL_J1345.6-3356_monthly_bin18.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/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits.....................!
real 1314.53
user 1311.42
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits', '/scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits', expMap='/scratch/kocevski/433496/expmap_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.fits', expCube='/scratch/kocevski/433496/ltcube_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433496/Model_4FGL_J1345.6-3356_monthly_bin18.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/433496/ft1_filtered_4FGL_J1345.6-3356_monthly_bin18.fits
Spacecraft file(s): /scratch/kocevski/433496/ft2_4FGL_J1345.6-3356_monthly_bin18.fits
Exposure map: /scratch/kocevski/433496/expmap_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.fits
Exposure cube: /scratch/kocevski/433496/ltcube_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433496/Model_4FGL_J1345.6-3356_monthly_bin18.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) = 106688.030344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0798       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9751       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.872       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1924       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78861E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.5096       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1585       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0514       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1451       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.191       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1881       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5435       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4846       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .64314       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2404       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2925       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   106688.0     FROM MIGRAD    STATUS=CONVERGED     68 CALLS     2176 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51361        1.1458       -.10431E-05   -.14998E-03
   2  Prefactor     2.8994        1.7050       -.29532E-06   -.44016E-04
   3  Prefactor     2.0798        1.4672        .28266E-06    .28204E-05
   4  norm          1.9752        1.3684       -.26702E-06   -.39769E-03
   5  Prefactor     23.870        1.1625       -.63476E-06    .23092E-02
   6  Prefactor     3.2453        1.0376       -.62422E-06   -.61760E-03
   7  Prefactor     2.1926        2.4036       -.68194E-06    .21821E-04
   8  Prefactor     .10001E-03    16.457        .42580E-04** at limit **
   9  norm          6.5094        1.0280       -.46514E-06   -.11546E-02
  10  norm          7.1581        1.0108        .26201E-06    .27159E-04
  11  norm          3.0515        2.0183        .85954E-06    .22097E-04
  12  Prefactor     2.1451        1.0268       -.63158E-07   -.42238E-04
  13  Prefactor     25.878        1.0017        .55917E-07    .86385E-04
  14  Prefactor     .10000E-03    10.116       -.23834E-05** at limit **
  15  Prefactor     12.094        1.0009       -.60373E-08   -.39193E-04
  16  Prefactor     .10000E-03    24.741       -.75835E-05** at limit **
  17  Prefactor     43.191        1.0027       -.56842E-07    .28992E-03
  18  Prefactor     8.1882        1.0027        .79004E-07    .17583E-03
  19  Prefactor     8.5442        1.3318        .16635E-05    .46370E-02
  20  norm          3.4853        1.1615       -.13767E-07    .97603E-03
  21  Prefactor     .10000E-03    2.9696        .57181E-06** at limit **
  22  norm          .64314        .57350E-01    .15203E-07   -.31155E-02
  23  Prefactor     1.2330        1.7869       -.66189E-05   -.49615E-03
  24  Prefactor     .10000E-03    2.1084       -.30255E-06** at limit **
  25  Normalizat    1.2925        .92068E-01   -.89617E-06   -.17099E-03
  26  Prefactor     1.0090        .34612E-01    .60363E-06   -.72365E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.513611
  Prefactor  = 2.89941
  Prefactor  = 2.07984
  norm       = 1.97524
  Prefactor  = 23.8701
  Prefactor  = 3.24533
  Prefactor  = 2.19257
  Prefactor  = 0.000100007
  norm       = 6.50941
  norm       = 7.15805
  norm       = 3.05152
  Prefactor  = 2.14511
  Prefactor  = 25.8785
  Prefactor  = 0.0001
  Prefactor  = 12.094
  Prefactor  = 0.0001
  Prefactor  = 43.1911
  Prefactor  = 8.1882
  Prefactor  = 8.54416
  norm       = 3.48526
  Prefactor  = 0.0001
  norm       = 0.643141
  Prefactor  = 1.23296
  Prefactor  = 0.0001
  Normalizat = 1.29248
  Prefactor  = 1.00901
 **********
 **   18 **HESSE 
 **********

 FCN=   106688.0     FROM HESSE     STATUS=OK           536 CALLS     2712 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51361        .63344        .74703E-01   -1.5565    
   2  Prefactor     2.8994        1.7090        .59660E-02   -1.5367    
   3  Prefactor     2.0798        1.4748        .71590E-02   -1.5420    
   4  norm          1.9752        1.3790        .73746E-02   -1.5427    
   5  Prefactor     23.870        28.189        .20496E-02   -1.4730    
   6  Prefactor     3.2453        4.9335        .56207E-02   -1.5348    
   7  Prefactor     2.1926        2.4473        .69486E-02   -1.5412    
   8  Prefactor     .10001E-03    2.5395        .19888       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.5094        4.3692        .39324E-02   -1.5198    
  10  norm          7.1581        7.5709        .37481E-02   -1.5173    
  11  norm          3.0515        2.0295        .58063E-02   -1.5359    
  12  Prefactor     2.1451        1.0329        .70344E-02   -1.5415    
  13  Prefactor     25.878        10.285        .19687E-02   -1.4690    
  14  Prefactor     .10000E-03    10.083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.094        8.0338        .28797E-02   -1.5012    
  16  Prefactor     .10000E-03    24.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.191        16.827        .15250E-02   -1.4393    
  18  Prefactor     8.1882        4.4946        .35027E-02   -1.5136    
  19  Prefactor     8.5442        4.6708        .34286E-02   -1.5123    
  20  norm          3.4853        1.1807        .54153E-02   -1.5335    
  21  Prefactor     .10000E-03    2.9623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .64314        .57528E-01    .51007E-02   -1.5548    
  23  Prefactor     1.2330        10.707        .10066E-01   -1.5486    
  24  Prefactor     .10000E-03    2.0930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2925        .79259E-01    .93552E-01   -.83791    
  26  Prefactor     1.0090        .29229E-01    .43477E-01   -.92430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31785e-06
Minuit parameter uncertainties:
  1  0.63345
  2  1.70906
  3  1.47479
  4  1.37906
  5  28.2043
  6  4.93413
  7  2.44744
  8  0.00026412
  9  4.36946
  10  7.57191
  11  2.02959
  12  1.03286
  13  10.2853
  14  6.50903e-05
  15  8.03454
  16  4.88169e-05
  17  16.8285
  18  4.49476
  19  4.67097
  20  1.18071
  21  3.44123e-06
  22  0.0575281
  23  7.26824
  24  1.54729e-05
  25  0.0792667
  26  0.0292291
Done.

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

Extracting fit parameters...

4FGL J1345.6-3356
   Spectrum: PowerLaw
312    Prefactor:  1.000e-04  2.641e-04  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.009e+00  2.923e-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.292e+00  7.927e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 206.408 -33.945
Photon Flux Upper Limit: 1.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.79e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433496/likelihoodResults_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.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) = 106687.969111
delta logL = -0.000269073716481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 106687.968841
delta logL = 5.04078343511e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12501E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9539       1.0000          .0000       10.000    
     3 'Normalizat'    1.2925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0090       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   106687.9     FROM MIGRAD    STATUS=FAILED       199 CALLS      381 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0438        925.70        .36285E-03    .13535E-04
   2  Index         1.3313        9.1615        .50000       -.79949E-03
   3  Normalizat    1.2925        .39387E-01    .41438E-03   -.14881E-03
   4  Prefactor     1.0089        .11048E-01    .17489E-03   -.36069E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   106687.9     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      465 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0438        925.70        .30694E-03    .13535E-04
   2  Index         1.3313        9.1615        .38492E-02   -.79949E-03
   3  Normalizat    1.2925        .39387E-01    .47593E-04   -.14881E-03
   4  Prefactor     1.0089        .11048E-01    .18315E-04   -.36069E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   106687.9     FROM MIGRAD    STATUS=FAILED        73 CALLS      538 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0438        935.72        .29028E-05    .12533E-04
   2  Index         1.3313        9.1110        .50000       -.79949E-03
   3  Normalizat    1.2925        .40755E-01    .33151E-05   -.14266E-03
   4  Prefactor     1.0089        .11277E-01    .69957E-05   -.36402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04378
  Index      = 1.33126
  Normalizat = 1.29248
  Prefactor  = 1.00893
 **********
 **   18 **HESSE 
 **********

 FCN=   106687.9     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      573 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0438        940.53        .58056E-04   -1.5504    
   2  Index         1.3313        9.1274        .50000       -.82382    
   3  Normalizat    1.2925        .39929E-01    .66301E-06   -.83791    
   4  Prefactor     1.0089        .11208E-01    .13991E-05   -.92433    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18511e-05
Minuit parameter uncertainties:
  1  63.6914
  2  14.6018
  3  0.0399302
  4  0.0112077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433496': 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): 1
logL (Free Index) = 106687.948315
delta logL = 0.020526514505

Extracting fit parameters...

4FGL J1345.6-3356
   Spectrum: PowerLaw
312    Prefactor:  1.044e+00  6.369e+01  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  1.331e+00  1.460e+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.009e+00  1.121e-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.292e+00  3.993e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 206.408 -33.945

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/433496/cmap_HighResolution_283651201_286243201_4FGL_J1345.6-3356_monthly_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-04', job_status='DONE', photon_flux_upper_limit='1.17e-08', time_completed='2021-10-25 08:41:32.401361', job_id='433496', GAL2='1.01', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1635176492.4', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.05e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='18' AND source_name='4FGL J1345.6-3356' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 08:41:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 433496: <4FGL_J1345.6-3356_monthly_bin18> in cluster <slac> Done

Job <4FGL_J1345.6-3356_monthly_bin18> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Oct 25 06:36:21 2021
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 06:36:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 25 06:36:23 2021
Terminated at Mon Oct 25 08:41:33 2021
Results reported at Mon Oct 25 08:41:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.6-3356_monthly_bin18 206.408 -33.9453 283651201 286243201 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 :                                   7403.65 sec.
    Max Memory :                                 644 MB
    Average Memory :                             483.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2953 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   7510 sec.
    Turnaround time :                            7512 sec.

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

