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


Performing analysis on: 4FGL_J1345.6-3356_daily_bin1577
RA = 206.408, Dec = -33.9453
tmin = 648086401, tmax = 648345601
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='940182', job_status='RUN', time_executed='2021-09-08 11:11:44.506161', time_epoch_executed='1631124704.51' WHERE source_name='4FGL J1345.6-3356' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940182/ft1_4FGL_J1345.6-3356_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940182/ft1_4FGL_J1345.6-3356_daily_bin1577.fits outfile=/scratch/kocevski/940182/ft1_filteredMKT_4FGL_J1345.6-3356_daily_bin1577.fits ra=206.408 dec=-33.9453 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.25
user 4.00
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.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/940182/ft1_filteredMKT_4FGL_J1345.6-3356_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/940182/ft1_filtered_4FGL_J1345.6-3356_daily_bin1577.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/940182/ft1_filtered_4FGL_J1345.6-3356_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/940182/ltcube_648086401_648345601_4FGL_J1345.6-3356_daily_bin1577.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/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.fits
.....................!
real 14.59
user 14.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940182/ft1_filtered_4FGL_J1345.6-3356_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/940182/ltcube_648086401_648345601_4FGL_J1345.6-3356_daily_bin1577.fits outfile=/scratch/kocevski/940182/expmap_648086401_648345601_4FGL_J1345.6-3356_daily_bin1577.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/940182/ltcube_648086401_648345601_4FGL_J1345.6-3356_daily_bin1577.fits
.....................!
real 191.45
user 185.59
sys 5.41

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/940182/ft1_filtered_4FGL_J1345.6-3356_daily_bin1577.fits scfile=/scratch/kocevski/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.fits outfile=/scratch/kocevski/940182/cmap_648086401_648345601_4FGL_J1345.6-3356_daily_bin1577.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940182/ft1_filtered_4FGL_J1345.6-3356_daily_bin1577.fits scfile=/scratch/kocevski/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.fits outfile=/scratch/kocevski/940182/cmap_HighResolution_648086401_648345601_4FGL_J1345.6-3356_daily_bin1577.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/940182/ft1_filtered_4FGL_J1345.6-3356_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/940182/ft2_4FGL_J1345.6-3356_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/940182/Model_4FGL_J1345.6-3356_daily_bin1577.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/940182/ft1_filtered_4FGL_J1345.6-3356_daily_bin1577.fits.....................!
real 126.72
user 125.15
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9253       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8597       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.013       1.0000         .10000E-03   10000.    
     8 'Prefactor '    99.406       1.0000         .10000E-03   10000.    
     9 'norm      '    14.134       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.845       1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .83057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    134.75       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.791       1.0000         .10000E-03   10000.    
    20 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .24026       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.170       1.0000         .10000E-03   10000.    
    25 'Normalizat'    2.5271       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .51320       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=   7106.867     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3131 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9271        6.9610       -.25512E-06   -.10672E-03
   2  Prefactor     8.3087        10.094       -.22527E-05   -.14537E-02
   3  Prefactor     5.8596        5.4954       -.44878E-06    .99783E-04
   4  norm          5.7456        7.0445       -.47322E-05   -.18169E-03
   5  Prefactor     .10000E-03    152.34       -.54645E-04** at limit **
   6  Prefactor     .10000E-03    16.147        .20938E-05** at limit **
   7  Prefactor     34.026        19.303       -.90587E-06    .26129E-04
   8  Prefactor     99.415        73.610        .64366E-05   -.49163E-05
   9  norm          14.131        22.781        .14734E-06   -.26191E-05
  10  norm          .10000E-03    117.19        .56247E-04** at limit **
  11  norm          20.649        18.019       -.50892E-06    .21416E-04
  12  Prefactor     .10000E-03    8.1561       -.67556E-06** at limit **
  13  Prefactor     15.801        50.661       -.59503E-04   -.22373E-04
  14  Prefactor     76.377        107.78       -.45323E-07    .36379E-05
  15  Prefactor     .10000E-03    32.741       -.28165E-04** at limit **
  16  Prefactor     .10000E-03    351.88       -.13593E-03** at limit **
  17  Prefactor     134.73        78.327       -.13169E-04    .78294E-05
  18  Prefactor     .10000E-03    63.516        .53050E-05** at limit **
  19  Prefactor     23.802        23.925       -.52275E-06   -.16836E-04
  20  norm          .10000E-03    3.0995       -.25057E-06** at limit **
  21  Prefactor     .10000E-03    27.590        .26095E-04** at limit **
  22  norm          .24009        .18100        .28682E-07    .97569E-04
  23  Prefactor     .10000E-03    19.806       -.72303E-05** at limit **
  24  Prefactor     18.185        35.176        .63443E-05   -.20736E-04
  25  Normalizat    2.5264        .33697        .22231E-05   -.26148E-04
  26  Prefactor     .51342        .11232        .29776E-05   -.12097E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.92713
  Prefactor  = 8.3087
  Prefactor  = 5.85955
  norm       = 5.74563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0257
  Prefactor  = 99.4145
  norm       = 14.1312
  norm       = 0.000100001
  norm       = 20.6491
  Prefactor  = 0.0001
  Prefactor  = 15.8006
  Prefactor  = 76.3773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.734
  Prefactor  = 0.0001
  Prefactor  = 23.8025
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.240087
  Prefactor  = 0.0001
  Prefactor  = 18.1846
  Normalizat = 2.52636
  Prefactor  = 0.513422
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.867     FROM HESSE     STATUS=OK           460 CALLS     3591 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9271        6.9580        .15245E-03   -1.5182    
   2  Prefactor     8.3087        10.160        .69541E-03   -1.5131    
   3  Prefactor     5.8596        5.4986        .16590E-03   -1.5224    
   4  norm          5.7456        7.0512        .16755E-03   -1.5229    
   5  Prefactor     .10000E-03    152.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.026        19.427        .68711E-04   -1.4541    
   8  Prefactor     99.415        73.612        .20160E-03   -1.3711    
   9  norm          14.131        22.794        .10654E-03   -1.4956    
  10  norm          .10000E-03    120.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.649        18.009        .88158E-04   -1.4799    
  12  Prefactor     .10000E-03    8.3297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.801        50.767        .10062E-03   -1.4913    
  14  Prefactor     76.377        108.04        .45947E-04   -1.3958    
  15  Prefactor     .10000E-03    32.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    351.05        .20880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     134.73        78.288        .17346E-03   -1.3381    
  18  Prefactor     .10000E-03    64.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.802        24.092        .82124E-04   -1.4732    
  20  norm          .10000E-03    3.1181        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .24009        .17485        .29852E-03   -1.5610    
  23  Prefactor     .10000E-03    19.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.185        35.198        .93960E-04   -1.4855    
  25  Normalizat    2.5264        .40639        .34527E-03   -.51925    
  26  Prefactor     .51342        .13344        .23219E-03   -1.1136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71838e-09
Minuit parameter uncertainties:
  1  6.95878
  2  10.1618
  3  5.49907
  4  7.05219
  5  3.51804e-05
  6  2.24582e-05
  7  19.4307
  8  73.6796
  9  22.8077
  10  0.000742132
  11  18.0139
  12  6.3171e-05
  13  50.9065
  14  108.319
  15  3.42322e-05
  16  0.000565693
  17  78.3488
  18  0.000305222
  19  24.1014
  20  2.91102e-05
  21  9.82011e-05
  22  0.174852
  23  5.9211e-05
  24  35.2385
  25  0.406988
  26  0.133525
Done.

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

Extracting fit parameters...

4FGL J1345.6-3356
   Spectrum: PowerLaw
312    Prefactor:  9.941e+01  7.368e+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:  5.134e-01  1.335e-01  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:  2.526e+00  4.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.74
Ra Dec: 206.408 -33.945
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.29e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 2.38e-05

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) = 7106.71498538
delta logL = 0.152164947525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7106.71484441
delta logL = 0.152305915597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    129.20       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7978       1.0000          .0000       10.000    
     3 'Normalizat'    2.5386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51104       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=   7106.715     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      292 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.99        105.76        .17710E-03   -.27603E-05
   2  Index         1.7965        .46206        .76932E-02    .31977E-03
   3  Normalizat    2.5386        .38027        .34472E-03    .44324E-04
   4  Prefactor     .51109        .13012        .23268E-03   -.73484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.99
  Index      = 1.79651
  Normalizat = 2.53863
  Prefactor  = 0.511087
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.715     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.99        104.33        .35421E-04   -1.3432    
   2  Index         1.7965        .45588        .15386E-02   -.69541    
   3  Normalizat    2.5386        .38059        .13789E-04   -.51642    
   4  Prefactor     .51109        .13024        .93073E-05   -1.1147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37915e-11
Minuit parameter uncertainties:
  1  104.483
  2  0.45696
  3  0.381084
  4  0.130315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940182': 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) = 7106.71483484
delta logL = 0.152315481941

Extracting fit parameters...

4FGL J1345.6-3356
   Spectrum: PowerLaw
312    Prefactor:  1.290e+02  1.045e+02  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  1.797e+00  4.570e-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:  5.111e-01  1.303e-01  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:  2.539e+00  3.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 206.408 -33.945
Photon Index (Free Index): 1.80 +/- 0.46
Photon Flux (Free Index): 4.09e-08 +/- 3.82e-08
Energy Flux (Free Index): 4.94e-05 +/- 5.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/940182/cmap_HighResolution_648086401_648345601_4FGL_J1345.6-3356_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.29e-08', energy_flux2='4.94e-05', photon_flux_error='3.92e-08', dlogl='1.52e-01', energy_flux='3.21e-05', photon_flux2='4.09e-08', job_status='DONE', time_completed='2021-09-08 11:26:00.123879', photon_index_error2='0.46', photon_index2='1.80', ts='4.74', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='5.52e-05', EG='2.53', time_epoch_completed='1631125560.12', return_code='0', job_id='940182', GAL2='0.51', EG2='2.54', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='3.82e-08', ts2='5.04', photon_index='2.05' WHERE bin_id='1577' AND source_name='4FGL J1345.6-3356' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:26:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 940182: <4FGL_J1345.6-3356_daily_bin1577> in cluster <slac> Done

Job <4FGL_J1345.6-3356_daily_bin1577> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 11:10:32 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:10:47 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:10:47 2021
Terminated at Wed Sep  8 11:26:00 2021
Results reported at Wed Sep  8 11:26:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.6-3356_daily_bin1577 206.408 -33.9453 648086401 648345601 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 :                                   850.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            928 sec.

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

