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


Performing analysis on: 4FGL_J1345.9-2612_daily_bin322
RA = 206.482, Dec = -26.2116
tmin = 322790401, tmax = 323049601
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='953499', job_status='RUN', time_executed='2021-09-08 11:44:12.578037', time_epoch_executed='1631126652.58' WHERE source_name='4FGL J1345.9-2612' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953499/ft1_4FGL_J1345.9-2612_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953499/ft1_4FGL_J1345.9-2612_daily_bin322.fits outfile=/scratch/kocevski/953499/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin322.fits ra=206.482 dec=-26.2116 rad=12.0 tmin=322790401.0 tmax=323049601.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 10.21
user 9.83
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.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/953499/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.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.47
user 0.31
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/953499/ltcube_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.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/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits
.....................!
real 13.00
user 12.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/953499/ltcube_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.fits outfile=/scratch/kocevski/953499/expmap_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.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/953499/ltcube_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.fits
.....................!
real 159.27
user 155.13
sys 3.73

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/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits scfile=/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits outfile=/scratch/kocevski/953499/cmap_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.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.64
user 0.33
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits scfile=/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits outfile=/scratch/kocevski/953499/cmap_HighResolution_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.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.79
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953499/Model_4FGL_J1345.9-2612_daily_bin322.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/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits.....................!
real 44.10
user 42.85
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits', '/scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits', expMap='/scratch/kocevski/953499/expmap_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.fits', expCube='/scratch/kocevski/953499/ltcube_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953499/Model_4FGL_J1345.9-2612_daily_bin322.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/953499/ft1_filtered_4FGL_J1345.9-2612_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/953499/ft2_4FGL_J1345.9-2612_daily_bin322.fits
Exposure map: /scratch/kocevski/953499/expmap_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.fits
Exposure cube: /scratch/kocevski/953499/ltcube_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953499/Model_4FGL_J1345.9-2612_daily_bin322.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) = 2776.08480017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1335       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3102       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50541E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10509E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81616E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1769       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.794       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5222       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    56.196       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1313       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=   2776.053     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3264 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7502        11.725       -.16706E-06   -.41102E-05
   2  Prefactor     .10000E-03    19.790        .20425E-06** at limit **
   3  norm          2.1285        33.114       -.21361E-06    .34261E-06
   4  norm          1.3083        5.3863       -.10364E-06    .67616E-05
   5  norm          .10000E-03    5.0376        .26278E-07** at limit **
   6  Prefactor     53.110        34.447       -.13111E-05    .15375E-03
   7  Prefactor     80.849        60.194       -.87391E-06    .15580E-04
   8  Prefactor     .10000E-03    17.951        .76195E-07** at limit **
   9  Prefactor     .33370E-01    59.215       -.24458E-05    .20767E-03
  10  norm          2.7356        9.1964       -.21004E-06    .52203E-04
  11  Prefactor     .10000E-03    186.37       -.35446E-05** at limit **
  12  norm          .10000E-03    483.59        .20984E-04** at limit **
  13  norm          .10000E-03    53.608       -.44989E-06** at limit **
  14  Prefactor     .10000E-03    40.154        .12821E-06** at limit **
  15  norm          .10000E-03    13.603        .89990E-07** at limit **
  16  Prefactor     .82391E-01    319.47       -.73728E-05   -.48573E-04
  17  Prefactor     .10000E-03    86.283        .55308E-06** at limit **
  18  Prefactor     .10000E-03    819.91       -.37322E-05** at limit **
  19  Prefactor     2.1640        6162.4       -.53903E-04   -.58468E-05
  20  Prefactor     10.831        37.921       -.13383E-05   -.23031E-04
  21  Prefactor     .10000E-03    23.614        .18150E-06** at limit **
  22  norm          1.5205        10.694       -.21238E-06    .82588E-05
  23  Prefactor     .10000E-03    48.818        .11486E-05** at limit **
  24  Prefactor     56.155        97.365        .64144E-06    .51507E-05
  25  Normalizat    1.0645        .52409       -.59186E-05    .32725E-04
  26  Prefactor     1.1315        .21918        .24146E-05    .73036E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.75025
  Prefactor  = 0.0001
  norm       = 2.1285
  norm       = 1.3083
  norm       = 0.0001
  Prefactor  = 53.1095
  Prefactor  = 80.8486
  Prefactor  = 0.0001
  Prefactor  = 0.0333699
  norm       = 2.73556
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0823905
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.16399
  Prefactor  = 10.8308
  Prefactor  = 0.0001
  norm       = 1.52047
  Prefactor  = 0.0001
  Prefactor  = 56.1554
  Normalizat = 1.06449
  Prefactor  = 1.1315
 **********
 **   18 **HESSE 
 **********

 FCN=   2776.053     FROM HESSE     STATUS=OK           470 CALLS     3734 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7502        11.626        .20845E-03   -1.5321    
   2  Prefactor     .10000E-03    19.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1285        33.298        .28224E-03   -1.5416    
   4  norm          1.3083        5.3965        .23204E-03   -1.5479    
   5  norm          .10000E-03    5.0396        .11550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.110        35.991        .55069E-04   -1.4249    
   7  Prefactor     80.849        60.769        .22332E-03   -1.3907    
   8  Prefactor     .10000E-03    18.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33370E-01    52.218        .77593E-01   -1.5671    
  10  norm          2.7356        9.1944        .12308E-02   -1.5377    
  11  Prefactor     .10000E-03    186.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    486.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    53.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .82391E-01    21.074        .51311E-01   -1.5651    
  17  Prefactor     .10000E-03    86.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    823.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1640        6275.0        .22737E-02   -1.5414    
  20  Prefactor     10.831        37.929        .12195E-03   -1.5050    
  21  Prefactor     .10000E-03    23.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5205        10.940        .16742E-02   -1.5461    
  23  Prefactor     .10000E-03    48.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     56.155        97.486        .53512E-04   -1.4208    
  25  Normalizat    1.0645        .57936        .43992E-03   -.90900    
  26  Prefactor     1.1315        .23784        .17932E-03   -.88466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19776e-09
Minuit parameter uncertainties:
  1  11.6332
  2  2.1636e-05
  3  16.8483
  4  5.31484
  5  5.62069e-07
  6  36.0059
  7  60.8157
  8  2.01277e-05
  9  2.63843
  10  9.19918
  11  0.000518245
  12  0.000198242
  13  3.64877e-05
  14  6.77125e-08
  15  4.53732e-07
  16  2.63471
  17  4.46493e-05
  18  0.00154987
  19  160.122
  20  38.0141
  21  2.14212e-06
  22  8.15891
  23  6.48516e-05
  24  97.7651
  25  0.582851
  26  0.23806
Done.

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

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  1.982e-04  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:  1.132e+00  2.381e-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.064e+00  5.829e-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: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953499/likelihoodResults_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.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) = 2776.05286434
delta logL = -9.65679464571e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2776.05285474
delta logL = -5.91167008679e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12055E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0851       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1315       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.

 FCN=   2774.326     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      310 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3710        7.8021        .90712E-02   -.16504E-03
   2  alpha         5.0000        3.6453        .41891    ** at limit **
   3  Normalizat    1.0382        .46620        .99982E-01    .62351E-04
   4  Prefactor     1.1116        .19613        .36496E-01    .11256E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.37096
  alpha      = 5
  Normalizat = 1.03824
  Prefactor  = 1.11156
 **********
 **   18 **HESSE 
 **********

 FCN=   2774.326     FROM HESSE     STATUS=OK            31 CALLS      341 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3710        5.0837        .10165E-03   -1.5203    
   2  alpha         5.0000        3.7499        .48886E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0382        .53212        .44306E-03   -.91760    
   4  Prefactor     1.1116        .22502        .17990E-03   -.89098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8624e-11
Minuit parameter uncertainties:
  1  5.08408
  2  1.47204e-05
  3  0.534883
  4  0.225217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953499': 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) = 2774.32567748
delta logL = 1.72717720541

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  6.371e+00  5.084e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  5.000e+00  1.472e-05  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:  1.112e+00  2.252e-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.038e+00  5.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 206.482 -26.212
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.96e-08 +/- 7.15e-08
Energy Flux (Free Index): 2.86e-05 +/- 2.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953499/cmap_HighResolution_322790401_323049601_4FGL_J1345.9-2612_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-05', comment='SUCCESS', energy_flux2='2.86e-05', dlogl='1.73e+00', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-08 11:52:42.140166', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='7.32e-08', energy_flux_error2='2.29e-05', EG='1.06', time_epoch_completed='1631127162.14', return_code='0', job_id='953499', GAL2='1.11', EG2='1.04', return_code2='0', photon_flux_error2='7.15e-08', ts2='3.46', photon_index='2.10' WHERE bin_id='322' AND source_name='4FGL J1345.9-2612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 11:52:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 953499: <4FGL_J1345.9-2612_daily_bin322> in cluster <slac> Done

Job <4FGL_J1345.9-2612_daily_bin322> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 11:40:42 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 11:41:09 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:41:09 2021
Terminated at Wed Sep  8 11:52:42 2021
Results reported at Wed Sep  8 11:52:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.9-2612_daily_bin322 206.482 -26.2116 322790401 323049601 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 :                                   502.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            720 sec.

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

