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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin959
RA = 206.394, Dec = 44.8844
tmin = 487900801, tmax = 488160001
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='910643', job_status='RUN', time_executed='2021-09-08 10:26:02.715539', time_epoch_executed='1631121962.72' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910643/ft1_4FGL_J1345.5+4453_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910643/ft1_4FGL_J1345.5+4453_daily_bin959.fits outfile=/scratch/kocevski/910643/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin959.fits ra=206.394 dec=44.8844 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.10
user 5.83
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.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/910643/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/910643/ltcube_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.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/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits
.....................!
real 16.54
user 16.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/910643/ltcube_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.fits outfile=/scratch/kocevski/910643/expmap_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.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/910643/ltcube_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.fits
.....................!
real 193.77
user 187.21
sys 5.52

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
Added 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1345.5+4453 @ 206.394 44.8844

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits scfile=/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits outfile=/scratch/kocevski/910643/cmap_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.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.394 yref=44.8844 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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits scfile=/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits outfile=/scratch/kocevski/910643/cmap_HighResolution_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.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.394 yref=44.8844 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910643/Model_4FGL_J1345.5+4453_daily_bin959.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits......................!
real 30.03
user 28.63
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits', '/scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits', expMap='/scratch/kocevski/910643/expmap_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.fits', expCube='/scratch/kocevski/910643/ltcube_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/910643/Model_4FGL_J1345.5+4453_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1345.5+4453'

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  6.795e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
341         beta:  7.801e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  4.556e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/910643/ft1_filtered_4FGL_J1345.5+4453_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/910643/ft2_4FGL_J1345.5+4453_daily_bin959.fits
Exposure map: /scratch/kocevski/910643/expmap_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.fits
Exposure cube: /scratch/kocevski/910643/ltcube_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/910643/Model_4FGL_J1345.5+4453_daily_bin959.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) = 2605.19942393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7342       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8153       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.131       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.642       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23835E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.544       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.091       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.181       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4195       1.0000         .10000E-03   10000.    
    19 'norm      '    6.4035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15465E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.500       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9648       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.8108       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.5782       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    32.410       1.0000         .10000E-03   10000.    
    33 'Prefactor '    47.623       1.0000         .10000E-03   10000.    
    34 'Prefactor '    42.173       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .78369       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .62250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2605.036     FROM MIGRAD    STATUS=CONVERGED   1022 CALLS     5449 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7248        15.966       -.59403E-06    .56419E-05
   2  norm          2.8152        2.2216       -.34238E-07   -.15799E-04
   3  Prefactor     24.135        35.480        .72849E-07   -.47425E-05
   4  Prefactor     11.633        21.491       -.66052E-06   -.11335E-04
   5  norm          .10000E-03    10.814        .50174E-06** at limit **
   6  norm          .10000E-03    5.2162        .26735E-07** at limit **
   7  norm          3.5246        4.9512        .36530E-05    .22442E-03
   8  Prefactor     .10000E-03    5.9273        .43464E-06** at limit **
   9  Prefactor     85.002        54.368       -.19826E-05   -.74162E-05
  10  Prefactor     .10000E-03    40.918        .23533E-06** at limit **
  11  Prefactor     .10000E-03    11.411       -.99268E-07** at limit **
  12  Prefactor     .10000E-03    77.032       -.24800E-05** at limit **
  13  norm          .10000E-03    2.8676       -.23113E-06** at limit **
  14  Prefactor     63.554        58.683        .30334E-07    .26724E-04
  15  Prefactor     47.069        88.088       -.69444E-06   -.34744E-05
  16  norm          .10000E-03    .52096       -.16286E-07** at limit **
  17  norm          17.522        326.80        .26968E-04    .11755E-04
  18  norm          2.4043        5.2627       -.60490E-05   -.13771E-03
  19  norm          6.3986        19.803        .35993E-06    .18964E-05
  20  Prefactor     .10000E-03    109.54       -.13712E-05** at limit **
  21  Prefactor     .10000E-03    8.1802        .36447E-07** at limit **
  22  Prefactor     29.386        72.934        .69680E-05   -.33783E-04
  23  Prefactor     .10000E-03    2.9220       -.54844E-06** at limit **
  24  Prefactor     .10000E-03    11.133       -.45159E-06** at limit **
  25  norm          .10000E-03    1.4217        .24785E-07** at limit **
  26  Prefactor     .10000E-03    9.3908        .44942E-07** at limit **
  27  Prefactor     9.9659        7.4557       -.32858E-06    .62446E-04
  28  Prefactor     8.7972        25.480       -.13976E-05    .51816E-05
  29  norm          .10000E-03    6.0187        .68074E-08** at limit **
  30  Prefactor     6.5367        246.63        .62625E-05   -.26790E-06
  31  Prefactor     .10000E-03    352.07       -.11090E-04** at limit **
  32  Prefactor     32.404        46.151       -.84282E-06    .45333E-05
  33  Prefactor     47.563        96.293        .42787E-05   -.23968E-04
  34  Prefactor     42.144        36.498       -.15930E-06    .75735E-04
  35  Normalizat    .78396        .21268        .51804E-05   -.14188E-03
  36  Prefactor     .62229        .23272       -.77701E-05    .11015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72479
  norm       = 2.81522
  Prefactor  = 24.1345
  Prefactor  = 11.6328
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.52462
  Prefactor  = 0.0001
  Prefactor  = 85.0024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.5542
  Prefactor  = 47.0687
  norm       = 0.0001
  norm       = 17.5215
  norm       = 2.40431
  norm       = 6.39856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.96591
  Prefactor  = 8.79724
  norm       = 0.0001
  Prefactor  = 6.5367
  Prefactor  = 0.000100002
  Prefactor  = 32.404
  Prefactor  = 47.5632
  Prefactor  = 42.1441
  Normalizat = 0.783959
  Prefactor  = 0.622289
 **********
 **   18 **HESSE 
 **********

 FCN=   2605.036     FROM HESSE     STATUS=OK           803 CALLS     6252 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7248        15.968        .16773E-03   -1.5229    
   2  norm          2.8152        2.2225        .65838E-04   -1.5372    
   3  Prefactor     24.135        35.488        .81543E-04   -1.4725    
   4  Prefactor     11.633        21.541        .11741E-03   -1.5026    
   5  norm          .10000E-03    10.906        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.2165        .11386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5246        4.9661        .62418E-03   -1.5332    
   8  Prefactor     .10000E-03    6.0378        .12109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     85.002        54.743        .43558E-04   -1.3861    
  10  Prefactor     .10000E-03    40.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.439        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    77.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8980        .84354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     63.554        58.743        .50341E-04   -1.4112    
  15  Prefactor     47.069        89.171        .58431E-04   -1.4335    
  16  norm          .10000E-03    .52544        .35962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.522        328.12        .96625E-04   -1.4871    
  18  norm          2.4043        5.3429        .13193E-03   -1.5398    
  19  norm          6.3986        19.790        .15861E-03   -1.5202    
  20  Prefactor     .10000E-03    109.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1805        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.386        73.309        .73765E-04   -1.4623    
  23  Prefactor     .10000E-03    2.9265        .85222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.144        .16635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.4221        .59434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.3950        .15263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.9659        7.3996        .93191E-04   -1.5076    
  28  Prefactor     8.7972        25.496        .13504E-03   -1.5115    
  29  norm          .10000E-03    6.0191        .12230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.5367        243.25        .15647E-03   -1.5197    
  31  Prefactor     .10000E-03    352.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     32.404        46.169        .70384E-04   -1.4569    
  33  Prefactor     47.563        96.211        .58105E-04   -1.4328    
  34  Prefactor     42.144        36.424        .61729E-04   -1.4409    
  35  Normalizat    .78396        .24801        .19932E-03   -1.0067    
  36  Prefactor     .62229        .26492        .26727E-03   -1.0666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89666e-10
Minuit parameter uncertainties:
  1  15.9798
  2  2.22261
  3  35.5187
  4  21.5549
  5  1.76992e-05
  6  3.53615e-07
  7  4.96665
  8  3.23247e-06
  9  54.7754
  10  4.14375e-06
  11  7.98298e-06
  12  2.12033e-05
  13  2.5792e-06
  14  58.7963
  15  89.425
  16  1.97066e-07
  17  152.625
  18  5.34392
  19  19.81
  20  0.000427106
  21  8.65894e-07
  22  73.5353
  23  1.03484e-05
  24  8.28254e-06
  25  5.4854e-09
  26  2.02042e-06
  27  7.4003
  28  25.5279
  29  1.61341e-06
  30  80.1031
  31  0.0018366
  32  46.2201
  33  96.5276
  34  36.4431
  35  0.248367
  36  0.265453
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  1.000e-04  1.971e-07  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.171e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
341         beta:  7.801e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  4.556e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  6.223e-01  2.655e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  7.840e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 206.394 44.884
Photon Flux Upper Limit: 5.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/910643/likelihoodResults_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.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) = 2605.03586951
delta logL = -1.14123877211e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2605.03585827
delta logL = -1.66854533745e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1753       1.0000          .0000       5.0000    
     3 'Normalizat'    .78393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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=   2605.036     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      229 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .54495        .35969E-03** at limit **
   2  alpha         2.2896        3.6444        .16640       -.75975E-07
   3  Normalizat    .78396        .21145        .19932E-03   -.26196E-03
   4  Prefactor     .62228        .25602        .26728E-03   -.20467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28962
  Normalizat = 0.783963
  Prefactor  = 0.622283
 **********
 **   18 **HESSE 
 **********

 FCN=   2605.036     FROM HESSE     STATUS=OK            25 CALLS      254 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52793        .71939E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2896        3.6435        .66558E-02   -.84251E-01
   3  Normalizat    .78396        .21159        .39863E-04   -1.0067    
   4  Prefactor     .62228        .25619        .53456E-04   -1.0666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43868e-10
Minuit parameter uncertainties:
  1  2.87939e-06
  2  129.037
  3  0.211812
  4  0.256674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910643': 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) = 2605.03585765
delta logL = 4.46932972409e-07

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  1.000e-04  2.879e-06  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.290e+00  1.290e+02  0.000e+00  5.000e+00 ( 1.000e+00)
341         beta:  7.801e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  4.556e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  6.223e-01  2.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  7.840e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 206.394 44.884

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/910643/cmap_HighResolution_487900801_488160001_4FGL_J1345.5+4453_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-08 10:37:36.465642', job_id='910643', GAL2='0.62', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631122656.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='959' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:37:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 910643: <4FGL_J1345.5+4453_daily_bin959> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin959> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 10:25:23 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:25: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 10:25:47 2021
Terminated at Wed Sep  8 10:37:36 2021
Results reported at Wed Sep  8 10:37:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin959 206.394 44.8844 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1345.5+4453 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   689.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            733 sec.

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

