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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin1118
RA = 206.394, Dec = 44.8844
tmin = 529113601, tmax = 529372801
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='910899', job_status='RUN', time_executed='2021-09-08 10:26:43.431771', time_epoch_executed='1631122003.43' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910899/ft1_4FGL_J1345.5+4453_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910899/ft1_4FGL_J1345.5+4453_daily_bin1118.fits outfile=/scratch/kocevski/910899/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin1118.fits ra=206.394 dec=44.8844 rad=12.0 tmin=529113601.0 tmax=529372801.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.95
user 3.67
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/910899/ltcube_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.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/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits
.....................!
real 15.39
user 14.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/910899/ltcube_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.fits outfile=/scratch/kocevski/910899/expmap_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.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/910899/ltcube_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.fits
.....................!
real 194.45
user 186.65
sys 5.30

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/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits scfile=/scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits outfile=/scratch/kocevski/910899/cmap_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits scfile=/scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits outfile=/scratch/kocevski/910899/cmap_HighResolution_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.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.96
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910899/Model_4FGL_J1345.5+4453_daily_bin1118.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/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits.....................!
real 40.18
user 38.38
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits', '/scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits', expMap='/scratch/kocevski/910899/expmap_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.fits', expCube='/scratch/kocevski/910899/ltcube_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/910899/Model_4FGL_J1345.5+4453_daily_bin1118.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/910899/ft1_filtered_4FGL_J1345.5+4453_daily_bin1118.fits
Spacecraft file(s): /scratch/kocevski/910899/ft2_4FGL_J1345.5+4453_daily_bin1118.fits
Exposure map: /scratch/kocevski/910899/expmap_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.fits
Exposure cube: /scratch/kocevski/910899/ltcube_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/910899/Model_4FGL_J1345.5+4453_daily_bin1118.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) = 4426.91052965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12135E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1573       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .24403E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.525       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.054       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40928E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.6030       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4385       1.0000         .10000E-03   10000.    
    17 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.357       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1516       1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.663       1.0000         .10000E-03   10000.    
    25 'norm      '    .27454       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.211       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17366E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.6105       1.0000         .10000E-03   10000.    
    29 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    36.586       1.0000         .10000E-03   10000.    
    33 'Prefactor '    50.360       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .67037       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0824       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=   4426.897     FROM MIGRAD    STATUS=CONVERGED   1037 CALLS     5349 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.556        .51213E-06** at limit **
   2  norm          2.1572        2.1728        .29211E-07   -.31267E-04
   3  Prefactor     46.488        65.876       -.14428E-06   -.40649E-04
   4  Prefactor     .10000E-03    6.2160       -.28157E-08** at limit **
   5  norm          .10001E-03    12.380       -.47682E-05** at limit **
   6  norm          17.526        14.941        .74196E-07   -.66110E-05
   7  norm          1.0614        5.5882       -.24110E-06    .61787E-04
   8  Prefactor     2.1174        3.6671       -.23995E-06    .87682E-04
   9  Prefactor     19.990        41.776        .25648E-05    .13855E-03
  10  Prefactor     .10000E-03    17.069       -.10331E-05** at limit **
  11  Prefactor     .10000E-03    10.369        .14771E-06** at limit **
  12  Prefactor     .10001E-03    105.38       -.12754E-05** at limit **
  13  norm          7.6032        5.0930       -.14102E-06   -.19847E-03
  14  Prefactor     .10000E-03    66.063       -.16331E-05** at limit **
  15  Prefactor     .10001E-03    36.017        .34510E-05** at limit **
  16  norm          2.4387        1.8532       -.24524E-08   -.55288E-04
  17  norm          .10000E-03    30.724       -.15040E-05** at limit **
  18  norm          .10000E-03    2.5670        .12698E-07** at limit **
  19  norm          16.285        12.938        .15298E-06    .81538E-05
  20  Prefactor     20.311        49.634       -.24358E-05   -.80692E-04
  21  Prefactor     .10000E-03    4.6697        .40976E-07** at limit **
  22  Prefactor     .10000E-03    24.943       -.20325E-05** at limit **
  23  Prefactor     4.1517        3.9479       -.10008E-07   -.36858E-04
  24  Prefactor     49.675        23.699        .37075E-06    .82216E-04
  25  norm          .27915        4.7080       -.26099E-05    .27533E-03
  26  Prefactor     15.218        15.258        .60679E-06    .84485E-04
  27  Prefactor     .10000E-03    2.2986       -.70238E-06** at limit **
  28  Prefactor     6.6063        19.336       -.99667E-06    .16713E-03
  29  norm          .10000E-03    21.896        .39660E-06** at limit **
  30  Prefactor     .10000E-03    20.570        .10095E-05** at limit **
  31  Prefactor     .10000E-03    17.672        .15731E-07** at limit **
  32  Prefactor     36.582        29.998        .18534E-06    .12445E-04
  33  Prefactor     50.338        51.954        .15007E-05    .11126E-03
  34  Prefactor     .10000E-03    5.4404        .39498E-08** at limit **
  35  Normalizat    .67011        .18377       -.77160E-06   -.22146E-03
  36  Prefactor     1.0825        .21031       -.51206E-06   -.36188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.15723
  Prefactor  = 46.4879
  Prefactor  = 0.0001
  norm       = 0.000100014
  norm       = 17.5258
  norm       = 1.0614
  Prefactor  = 2.11736
  Prefactor  = 19.9903
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 7.60322
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  norm       = 2.43868
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 16.2846
  Prefactor  = 20.311
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.15171
  Prefactor  = 49.6749
  norm       = 0.279149
  Prefactor  = 15.2185
  Prefactor  = 0.000100001
  Prefactor  = 6.60632
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.5819
  Prefactor  = 50.3377
  Prefactor  = 0.0001
  Normalizat = 0.670108
  Prefactor  = 1.08249
 **********
 **   18 **HESSE 
 **********

 FCN=   4426.897     FROM HESSE     STATUS=OK           811 CALLS     6160 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    226.86        .46817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1572        2.1800        .95722E-04   -1.5414    
   3  Prefactor     46.488        65.925        .58811E-04   -1.4343    
   4  Prefactor     .10000E-03    6.2221        .16200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    19.416        .28452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.526        14.939        .95674E-04   -1.4870    
   7  norm          1.0614        5.3350        .27524E-03   -1.5502    
   8  Prefactor     2.1174        3.5192        .15487E-03   -1.5417    
   9  Prefactor     19.990        41.495        .89440E-04   -1.4813    
  10  Prefactor     .10000E-03    17.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    107.08        .21253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.6032        5.0922        .11669E-03   -1.5156    
  14  Prefactor     .10000E-03    66.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    36.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4387        1.8441        .73595E-04   -1.5396    
  17  norm          .10000E-03    30.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6030        .10407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.285        12.939        .99237E-04   -1.4901    
  20  Prefactor     20.311        49.130        .88773E-04   -1.4806    
  21  Prefactor     .10000E-03    4.6704        .14043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.1517        3.9481        .12471E-03   -1.5300    
  24  Prefactor     49.675        23.767        .56905E-04   -1.4297    
  25  norm          .27915        10.941        .20254E-02   -1.5602    
  26  Prefactor     15.218        15.130        .10269E-03   -1.4928    
  27  Prefactor     .10000E-03    3.2397        .17879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.6063        19.174        .78039E-03   -1.5194    
  29  norm          .10000E-03    22.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    17.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     36.582        30.009        .66258E-04   -1.4498    
  33  Prefactor     50.338        52.155        .56511E-04   -1.4288    
  34  Prefactor     .10000E-03    5.4478        .15157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .67011        .21281        .24166E-03   -1.0509    
  36  Prefactor     1.0825        .24898        .24516E-03   -.90028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73467e-09
Minuit parameter uncertainties:
  1  0.0010721
  2  2.1801
  3  66.0282
  4  9.91544e-06
  5  0.00102698
  6  14.9421
  7  4.75969
  8  3.51953
  9  41.555
  10  0.0001916
  11  3.65497e-05
  12  0.00187691
  13  5.09251
  14  0.000515946
  15  0.00100057
  16  1.84413
  17  0.000389483
  18  4.55903e-06
  19  12.9417
  20  49.2277
  21  5.69088e-06
  22  0.000475016
  23  3.94834
  24  23.7718
  25  3.49533
  26  15.1339
  27  8.35223e-05
  28  19.1921
  29  0.000102603
  30  0.000214103
  31  5.27961e-06
  32  30.0213
  33  52.2019
  34  2.88796e-06
  35  0.21307
  36  0.249242
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  2.439e+00  1.844e+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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.082e+00  2.492e-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:  6.701e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.50e-05

TS (Fixed Index): 2.49
Ra Dec: 206.394 44.884
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/910899/likelihoodResults_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.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) = 4423.57601487
delta logL = 3.32084435268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4423.52203691
delta logL = 3.37482231655

Fit tolerance = 1e-08

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

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

 FCN=   4423.522     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39891        .29794        .38333E-02   -.20696E-03
   2  alpha         4.7962        .60988        .48181       -.53477E-04
   3  Normalizat    .53968        .17018        .60188E-01    .14939E-04
   4  Prefactor     1.2045        .21207        .52890E-01   -.99475E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.39891
  alpha      = 4.79621
  Normalizat = 0.539682
  Prefactor  = 1.20446
 **********
 **   18 **HESSE 
 **********

 FCN=   4423.522     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39891        .72101        .17068E-04   -1.5582    
   2  alpha         4.7962        3.9720        .24698E-01    1.1642    
   3  Normalizat    .53968        .19899        .26629E-03   -1.1061    
   4  Prefactor     1.2045        .24973        .23383E-03   -.86194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98713e-10
Minuit parameter uncertainties:
  1  0.721027
  2  1.41013
  3  0.199251
  4  0.249975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910899': 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) = 4423.52202437
delta logL = 3.37483484962

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  3.989e-01  7.210e-01  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  4.796e+00  1.410e+00  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:  1.204e+00  2.500e-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:  5.397e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.84
Ra Dec: 206.394 44.884
Photon Index (Free Index): 4.80 +/- 1.41
Photon Flux (Free Index): 1.34e-07 +/- 5.74e-08
Energy Flux (Free Index): 1.84e-05 +/- 8.33e-06

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/910899/cmap_HighResolution_529113601_529372801_4FGL_J1345.5+4453_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-05', comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='1.84e-05', photon_flux_error='3.89e-08', dlogl='3.37e+00', energy_flux='1.98e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-08 10:41:59.182355', photon_index_error2='1.41', photon_index2='4.80', ts='2.49', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='8.33e-06', EG='0.67', time_epoch_completed='1631122919.18', return_code='0', job_id='910899', GAL2='1.20', EG2='0.54', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.74e-08', ts2='9.84', photon_index='2.17' WHERE bin_id='1118' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:41:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 910899: <4FGL_J1345.5+4453_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin1118 206.394 44.8844 529113601 529372801 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 :                                   904.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            971 sec.

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

