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


Performing analysis on: 4FGL_J1345.9-2612_daily_bin1561
RA = 206.482, Dec = -26.2116
tmin = 643939201, tmax = 644198401
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='961153', job_status='RUN', time_executed='2021-09-08 12:08:20.106164', time_epoch_executed='1631128100.11' WHERE source_name='4FGL J1345.9-2612' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961153/ft1_4FGL_J1345.9-2612_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961153/ft2_4FGL_J1345.9-2612_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961153/ft1_4FGL_J1345.9-2612_daily_bin1561.fits outfile=/scratch/kocevski/961153/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin1561.fits ra=206.482 dec=-26.2116 rad=12.0 tmin=643939201.0 tmax=644198401.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.70
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961153/ft1_filtered_4FGL_J1345.9-2612_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/961153/ft2_4FGL_J1345.9-2612_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/961153/ltcube_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.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/961153/ft2_4FGL_J1345.9-2612_daily_bin1561.fits
.....................!
real 14.03
user 13.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961153/ft1_filtered_4FGL_J1345.9-2612_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/961153/ft2_4FGL_J1345.9-2612_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/961153/ltcube_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.fits outfile=/scratch/kocevski/961153/expmap_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.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/961153/ltcube_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.fits
.....................!
real 156.64
user 152.29
sys 3.61

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/961153/ft1_filtered_4FGL_J1345.9-2612_daily_bin1561.fits scfile=/scratch/kocevski/961153/ft2_4FGL_J1345.9-2612_daily_bin1561.fits outfile=/scratch/kocevski/961153/cmap_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961153/ft1_filtered_4FGL_J1345.9-2612_daily_bin1561.fits scfile=/scratch/kocevski/961153/ft2_4FGL_J1345.9-2612_daily_bin1561.fits outfile=/scratch/kocevski/961153/cmap_HighResolution_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.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.48
user 0.34
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961153/ft1_filtered_4FGL_J1345.9-2612_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/961153/ft2_4FGL_J1345.9-2612_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961153/Model_4FGL_J1345.9-2612_daily_bin1561.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/961153/ft1_filtered_4FGL_J1345.9-2612_daily_bin1561.fits.....................!
real 89.97
user 88.54
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2371       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .15294       1.0000         .10000E-03   10000.    
     5 'norm      '    111.41       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7691       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10221E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    51.607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.412       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4312       1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    152.32       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1183       1.0000         .10000E-03   10000.    
    22 'norm      '    .11596E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.528       1.0000         .10000E-03   10000.    
    24 'Prefactor '    66.940       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3099       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86691       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=   6480.056     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3142 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2879        .24813E-07** at limit **
   2  Prefactor     9.2373        8.0099       -.12050E-05    .16773E-03
   3  norm          .10000E-03    2.4601       -.19467E-06** at limit **
   4  norm          .14945        1.7417       -.12142E-05    .27505E-03
   5  norm          111.41        15.829        .31013E-05    .15983E-03
   6  Prefactor     .10000E-03    8.8727       -.64396E-06** at limit **
   7  Prefactor     .10000E-03    11.876       -.59277E-05** at limit **
   8  Prefactor     .10000E-03    13.453        .58015E-05** at limit **
   9  Prefactor     1.7726        36.663       -.45520E-04   -.12347E-03
  10  norm          .10000E-03    1.7930        .99168E-07** at limit **
  11  Prefactor     .10001E-03    556.99       -.12166E-03** at limit **
  12  norm          .10000E-03    10.017        .44903E-05** at limit **
  13  norm          51.601        60.466        .19106E-05    .49450E-04
  14  Prefactor     52.410        67.971       -.21362E-05    .72381E-04
  15  norm          .10000E-03    4.1376        .10466E-07** at limit **
  16  Prefactor     8.4310        6.4480       -.41148E-06    .14628E-03
  17  Prefactor     68.792        91.443       -.12455E-04    .28798E-04
  18  Prefactor     152.24        108.20       -.49651E-04    .44184E-04
  19  Prefactor     .10000E-03    24.005       -.18105E-05** at limit **
  20  Prefactor     .10000E-03    12.569       -.16570E-05** at limit **
  21  Prefactor     1.1106        49.314        .13827E-04   -.19733E-03
  22  norm          .10000E-03    4.1202        .71516E-06** at limit **
  23  Prefactor     36.660        58.304        .30431E-04   -.22251E-04
  24  Prefactor     66.879        74.933       -.92133E-04   -.14147E-04
  25  Normalizat    1.3099        .32209        .11211E-04    .43775E-03
  26  Prefactor     .86690        .12678        .41152E-05    .78366E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.23729
  norm       = 0.0001
  norm       = 0.149447
  norm       = 111.411
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77255
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 51.6013
  Prefactor  = 52.4098
  norm       = 0.0001
  Prefactor  = 8.43103
  Prefactor  = 68.792
  Prefactor  = 152.241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1106
  norm       = 0.000100001
  Prefactor  = 36.6603
  Prefactor  = 66.8793
  Normalizat = 1.30987
  Prefactor  = 0.866899
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.056     FROM HESSE     STATUS=OK           448 CALLS     3590 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2373        7.9895        .13187E-03   -1.5100    
   3  norm          .10000E-03    2.4635        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .14945        12.481        .20405E-02   -1.5631    
   5  norm          111.41        15.821        .38109E-04   -1.3593    
   6  Prefactor     .10000E-03    8.8766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7726        37.400        .31486E-03   -1.5442    
  10  norm          .10000E-03    1.7951        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    566.37        .18148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          51.601        60.482        .55828E-04   -1.4270    
  14  Prefactor     52.410        68.009        .55399E-04   -1.4259    
  15  norm          .10000E-03    4.1385        .15989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4310        6.4776        .13806E-03   -1.5127    
  17  Prefactor     68.792        91.527        .48389E-04   -1.4047    
  18  Prefactor     152.24        108.17        .16330E-03   -1.3234    
  19  Prefactor     .10000E-03    24.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1106        50.701        .44467E-03   -1.5497    
  22  norm          .10000E-03    4.1588        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.660        58.144        .66310E-04   -1.4496    
  24  Prefactor     66.879        75.070        .24528E-03   -1.4071    
  25  Normalizat    1.3099        .39351        .39916E-03   -.83272    
  26  Prefactor     .86690        .15669        .19525E-03   -.97308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09913e-09
Minuit parameter uncertainties:
  1  4.03944e-05
  2  7.99046
  3  1.48664e-05
  4  2.73119
  5  15.8217
  6  0.00025103
  7  5.31562e-05
  8  0.000128143
  9  16.2954
  10  1.53252e-05
  11  0.00376387
  12  5.92082e-06
  13  60.5542
  14  68.1099
  15  6.43376e-06
  16  6.47815
  17  91.7151
  18  108.314
  19  2.20282e-05
  20  4.62625e-05
  21  15.0207
  22  0.000136601
  23  58.2338
  24  75.1761
  25  0.39441
  26  0.156768
Done.

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

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  5.921e-06  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.669e-01  1.568e-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.310e+00  3.944e-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: 2.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961153/likelihoodResults_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.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) = 6480.05692192
delta logL = -0.000474089556519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6480.05644801
delta logL = -1.71675310412e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6480.056     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      230 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    585.56        .18142E-01** at limit **
   2  alpha         1.4945        4.2365        .16746        .26205E-07
   3  Normalizat    1.3099        .60801E-01    .39916E-03   -.14215E-02
   4  Prefactor     .86690        .24944E-01    .19525E-03   -.29754E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.49453
  Normalizat = 1.30986
  Prefactor  = 0.866896
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.056     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.725        .25668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4945        3.6165        .66985E-02   -.41390    
   3  Normalizat    1.3099        .36694        .79832E-04   -.83272    
   4  Prefactor     .86690        .15076        .39049E-04   -.97308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75754e-09
Minuit parameter uncertainties:
  1  0.000103433
  2  798.403
  3  0.367674
  4  0.150834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961153': 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) = 6480.05644754
delta logL = 2.97455699183e-07

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  1.034e-04  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  1.495e+00  7.984e+02  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.669e-01  1.508e-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.310e+00  3.677e-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/961153/cmap_HighResolution_643939201_644198401_4FGL_J1345.9-2612_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='2.30e-08', time_completed='2021-09-08 12:20:20.527524', job_id='961153', GAL2='0.87', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631128820.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1561' AND source_name='4FGL J1345.9-2612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 12:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 961153: <4FGL_J1345.9-2612_daily_bin1561> in cluster <slac> Done

Job <4FGL_J1345.9-2612_daily_bin1561> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 12:05:31 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 12:07:02 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:07:02 2021
Terminated at Wed Sep  8 12:20:21 2021
Results reported at Wed Sep  8 12:20:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.9-2612_daily_bin1561 206.482 -26.2116 643939201 644198401 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 :                                   713.38 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            890 sec.

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

