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


Performing analysis on: 4FGL_J1345.9-2612_daily_bin1439
RA = 206.482, Dec = -26.2116
tmin = 612316801, tmax = 612576001
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='960979', job_status='RUN', time_executed='2021-09-08 12:06:01.297550', time_epoch_executed='1631127961.3' WHERE source_name='4FGL J1345.9-2612' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960979/ft1_4FGL_J1345.9-2612_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960979/ft1_4FGL_J1345.9-2612_daily_bin1439.fits outfile=/scratch/kocevski/960979/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin1439.fits ra=206.482 dec=-26.2116 rad=12.0 tmin=612316801.0 tmax=612576001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.32
user 3.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.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/960979/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin1439.fits evtable="EVENTS" outfile="/scratch/kocevski/960979/ft1_filtered_4FGL_J1345.9-2612_daily_bin1439.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.54
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960979/ft1_filtered_4FGL_J1345.9-2612_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/960979/ltcube_612316801_612576001_4FGL_J1345.9-2612_daily_bin1439.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/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.fits
.....................!
real 16.56
user 16.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960979/ft1_filtered_4FGL_J1345.9-2612_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/960979/ltcube_612316801_612576001_4FGL_J1345.9-2612_daily_bin1439.fits outfile=/scratch/kocevski/960979/expmap_612316801_612576001_4FGL_J1345.9-2612_daily_bin1439.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/960979/ltcube_612316801_612576001_4FGL_J1345.9-2612_daily_bin1439.fits
.....................!
real 192.58
user 186.95
sys 5.05

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/960979/ft1_filtered_4FGL_J1345.9-2612_daily_bin1439.fits scfile=/scratch/kocevski/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.fits outfile=/scratch/kocevski/960979/cmap_612316801_612576001_4FGL_J1345.9-2612_daily_bin1439.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960979/ft1_filtered_4FGL_J1345.9-2612_daily_bin1439.fits scfile=/scratch/kocevski/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.fits outfile=/scratch/kocevski/960979/cmap_HighResolution_612316801_612576001_4FGL_J1345.9-2612_daily_bin1439.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=206.482 yref=-26.2116 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960979/ft1_filtered_4FGL_J1345.9-2612_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/960979/ft2_4FGL_J1345.9-2612_daily_bin1439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960979/Model_4FGL_J1345.9-2612_daily_bin1439.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/960979/ft1_filtered_4FGL_J1345.9-2612_daily_bin1439.fits.....................!
real 77.95
user 76.22
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2493       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7118       1.0000         .10000E-03   10000.    
     3 'norm      '    8.6965       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1914       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2095       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11188       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5750       1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.622       1.0000         .10000E-03   10000.    
    12 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    59.568       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    97.132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24498E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4996       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2176       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4386.193     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2595 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2479        6.2624       -.10954E-04   -.18570E-02
   2  Prefactor     1.7090        4.2020        .48912E-05    .13416E-03
   3  norm          8.6945        1.0250        .90910E-07   -.29704E-03
   4  norm          3.1897        3.1170        .33308E-06    .37216E-04
   5  norm          .10000E-03    2.1941        .23303E-05** at limit **
   6  Prefactor     .10001E-03    14.824       -.72500E-05** at limit **
   7  Prefactor     4.2289        2.3105        .94470E-06    .69236E-04
   8  Prefactor     .10001E-03    16.485        .66340E-05** at limit **
   9  Prefactor     .10019E-03    453.95       -.20333E-04** at limit **
  10  norm          6.5761        5.4107       -.16239E-06   -.25553E-03
  11  Prefactor     59.604        2.6840       -.14508E-05    .45855E-02
  12  norm          .10142E-03    49.773       -.44974E-04** at limit **
  13  norm          59.575        1.1314        .18281E-06   -.53268E-03
  14  Prefactor     .10126E-03    33.194        .22622E-04** at limit **
  15  norm          .10000E-03    6.6127       -.11497E-05** at limit **
  16  Prefactor     .10000E-03    13.428        .63361E-05** at limit **
  17  Prefactor     97.120        1.7601       -.63091E-06    .32035E-02
  18  Prefactor     .10099E-03    90.006        .61012E-04** at limit **
  19  Prefactor     .10297E-03    11.139        .78107E-06** at limit **
  20  Prefactor     .10031E-03    10.078        .11357E-04** at limit **
  21  Prefactor     3.4784        1.8542        .26543E-05   -.43575E-03
  22  norm          .10000E-03    4.7786       -.12862E-05** at limit **
  23  Prefactor     .10079E-03    12.596        .22110E-04** at limit **
  24  Prefactor     .10101E-03    19.420       -.25274E-04** at limit **
  25  Normalizat    1.2184        .38777        .29177E-05   -.13589E-03
  26  Prefactor     .88329        .16283        .51623E-06   -.16818E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.2479
  Prefactor  = 1.709
  norm       = 8.6945
  norm       = 3.18972
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 4.22886
  Prefactor  = 0.000100008
  Prefactor  = 0.000100188
  norm       = 6.57611
  Prefactor  = 59.6044
  norm       = 0.000101425
  norm       = 59.5748
  Prefactor  = 0.000101259
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.1204
  Prefactor  = 0.000100987
  Prefactor  = 0.000102968
  Prefactor  = 0.000100308
  Prefactor  = 3.4784
  norm       = 0.0001
  Prefactor  = 0.000100792
  Prefactor  = 0.000101008
  Normalizat = 1.21839
  Prefactor  = 0.883294
 **********
 **   18 **HESSE 
 **********

 FCN=   4386.193     FROM HESSE     STATUS=OK           510 CALLS     3105 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2479        6.3083        .34896E-02   -1.5134    
   2  Prefactor     1.7090        4.2504        .80316E-02   -1.5447    
   3  norm          8.6945        7.8214        .33981E-02   -1.5118    
   4  norm          3.1897        3.1250        .56705E-02   -1.5351    
   5  norm          .10000E-03    2.1940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    14.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2289        52.589        .49104E-02   -1.5297    
   8  Prefactor     .10001E-03    16.425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10019E-03    14.779        .95677E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.5761        5.4441        .39126E-02   -1.5195    
  11  Prefactor     59.604        129.33        .12990E-02   -1.4162    
  12  norm          .10142E-03    60.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          59.575        67.267        .12996E-02   -1.4163    
  14  Prefactor     .10126E-03    41.126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9785        .48049E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     97.120        109.44        .10196E-02   -1.3734    
  18  Prefactor     .10099E-03    98.937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10297E-03    394.66        .10019E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10031E-03    28.658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4784        64.147        .54031E-02   -1.5335    
  22  norm          .10000E-03    4.7573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10079E-03    29.419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10101E-03    26.787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2184        .33229        .82893E-01   -.86036    
  26  Prefactor     .88329        .13486        .44791E-01   -.96727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7815e-07
Minuit parameter uncertainties:
  1  6.30879
  2  4.25116
  3  7.82236
  4  3.12521
  5  3.40331e-05
  6  0.00072103
  7  29.8577
  8  0.000722223
  9  0.00333317
  10  5.44456
  11  129.943
  12  0.0186097
  13  67.3529
  14  0.0144014
  15  3.02356e-05
  16  5.55937e-05
  17  109.67
  18  0.0198003
  19  0.0689056
  20  0.00594082
  21  29.9119
  22  2.99689e-05
  23  0.00965823
  24  0.0103996
  25  0.332868
  26  0.134916
Done.

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

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.014e-04  1.861e-02  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:  8.833e-01  1.349e-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.218e+00  3.329e-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: 3.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/960979/likelihoodResults_612316801_612576001_4FGL_J1345.9-2612_daily_bin1439.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) = 4386.19322342
delta logL = -7.75336457082e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4386.19322341
delta logL = -7.7519939623e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96349E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88329       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=   4386.193     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      199 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    71.490        .90714E-02** at limit **
   2  alpha         2.1442        3.4841        .41848       -.39383E-05
   3  Normalizat    1.2184        .31816        .82893E-01    .28735E-04
   4  Prefactor     .88329        .13279        .44792E-01    .18152E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.14417
  Normalizat = 1.21839
  Prefactor  = 0.883293
 **********
 **   18 **HESSE 
 **********

 FCN=   4386.193     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    66.034        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1442        3.4608        .50000       -.14282    
   3  Normalizat    1.2184        .38343        .36700E-03   -.86036    
   4  Prefactor     .88329        .16036        .17539E-03   -.96727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50918e-11
Minuit parameter uncertainties:
  1  0.000786658
  2  2.48163
  3  0.38432
  4  0.16045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960979': 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) = 4386.1931458
delta logL = 8.48431227496e-08

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  7.867e-04  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  2.144e+00  2.482e+00  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:  8.833e-01  1.605e-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.218e+00  3.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-05', job_status='DONE', photon_flux_upper_limit='3.88e-08', time_completed='2021-09-08 12:17:04.181286', job_id='960979', GAL2='0.88', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631128624.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1439' AND source_name='4FGL J1345.9-2612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 12:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 960979: <4FGL_J1345.9-2612_daily_bin1439> in cluster <slac> Done

Job <4FGL_J1345.9-2612_daily_bin1439> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 12:05:20 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 12:05:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 12:05:45 2021
Terminated at Wed Sep  8 12:17:04 2021
Results reported at Wed Sep  8 12:17:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.9-2612_daily_bin1439 206.482 -26.2116 612316801 612576001 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 :                                   656.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            704 sec.

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

