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


Performing analysis on: 4FGL_J1345.5+4453_daily_bin714
RA = 206.394, Dec = 44.8844
tmin = 424396801, tmax = 424656001
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='909288', job_status='RUN', time_executed='2021-09-08 10:21:36.456043', time_epoch_executed='1631121696.46' WHERE source_name='4FGL J1345.5+4453' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909288/ft1_4FGL_J1345.5+4453_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909288/ft2_4FGL_J1345.5+4453_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909288/ft1_4FGL_J1345.5+4453_daily_bin714.fits outfile=/scratch/kocevski/909288/ft1_filteredMKT_4FGL_J1345.5+4453_daily_bin714.fits ra=206.394 dec=44.8844 rad=12.0 tmin=424396801.0 tmax=424656001.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 5.12
user 4.84
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909288/ft1_filtered_4FGL_J1345.5+4453_daily_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/909288/ft2_4FGL_J1345.5+4453_daily_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/909288/ltcube_424396801_424656001_4FGL_J1345.5+4453_daily_bin714.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/909288/ft2_4FGL_J1345.5+4453_daily_bin714.fits
.....................!
real 13.55
user 13.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909288/ft1_filtered_4FGL_J1345.5+4453_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/909288/ft2_4FGL_J1345.5+4453_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/909288/ltcube_424396801_424656001_4FGL_J1345.5+4453_daily_bin714.fits outfile=/scratch/kocevski/909288/expmap_424396801_424656001_4FGL_J1345.5+4453_daily_bin714.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/909288/ltcube_424396801_424656001_4FGL_J1345.5+4453_daily_bin714.fits
.....................!
real 191.68
user 185.70
sys 5.29

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/909288/ft1_filtered_4FGL_J1345.5+4453_daily_bin714.fits scfile=/scratch/kocevski/909288/ft2_4FGL_J1345.5+4453_daily_bin714.fits outfile=/scratch/kocevski/909288/cmap_424396801_424656001_4FGL_J1345.5+4453_daily_bin714.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909288/ft1_filtered_4FGL_J1345.5+4453_daily_bin714.fits scfile=/scratch/kocevski/909288/ft2_4FGL_J1345.5+4453_daily_bin714.fits outfile=/scratch/kocevski/909288/cmap_HighResolution_424396801_424656001_4FGL_J1345.5+4453_daily_bin714.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    20.863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3016       1.0000         .10000E-03   10000.    
     5 'norm      '    17.611       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7577       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.1280       1.0000         .10000E-03   10000.    
    17 'norm      '    .14210E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6366       1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.120       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5755       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.677       1.0000         .10000E-03   10000.    
    25 'norm      '    15.772       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.584       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .25269E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .36406E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.984       1.0000         .10000E-03   10000.    
    31 'Prefactor '    46.296       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    18.781       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.5717       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .67715       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=   2089.988     FROM MIGRAD    STATUS=CONVERGED   1017 CALLS     5388 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.847        .28142E-06** at limit **
   2  norm          20.864        13.255        .48117E-07    .23655E-04
   3  Prefactor     .10000E-03    113.85       -.19634E-06** at limit **
   4  Prefactor     2.3261        898.51        .66568E-05   -.62388E-05
   5  norm          17.609        19.422       -.92438E-07   -.39161E-04
   6  norm          .10000E-03    22.446        .31967E-07** at limit **
   7  norm          .10000E-03    5.8989        .90083E-06** at limit **
   8  Prefactor     5.7566        15.598        .58416E-07   -.78314E-04
   9  Prefactor     1.1287        1561.9        .30039E-04    .14714E-04
  10  Prefactor     .10000E-03    62.186       -.27390E-06** at limit **
  11  Prefactor     22.536        38.466        .68517E-06    .72188E-04
  12  Prefactor     .10000E-03    41.576        .13431E-05** at limit **
  13  norm          8.1365        9.5203        .40166E-06    .20501E-03
  14  Prefactor     .10000E-03    45.216        .51202E-06** at limit **
  15  Prefactor     .10000E-03    124.77        .30344E-06** at limit **
  16  norm          7.1292        4.3326        .10829E-06    .20705E-03
  17  norm          .10000E-03    400.39       -.39635E-06** at limit **
  18  norm          .10000E-03    6.3977        .82635E-07** at limit **
  19  norm          .10000E-03    16.030        .69941E-08** at limit **
  20  Prefactor     .10000E-03    39.773       -.26084E-06** at limit **
  21  Prefactor     3.6781        63.851       -.75304E-06    .82380E-05
  22  Prefactor     51.066        104.29        .10792E-05    .29306E-04
  23  Prefactor     2.5840        11.947       -.16362E-06   -.42413E-04
  24  Prefactor     13.677        22.778       -.67248E-07   -.65336E-05
  25  norm          15.764        10.822       -.14469E-07    .11961E-03
  26  Prefactor     38.509        33.772        .22697E-06    .84459E-04
  27  Prefactor     .10000E-03    3.6388       -.14995E-05** at limit **
  28  Prefactor     .10000E-03    16.540        .14222E-06** at limit **
  29  norm          .10002E-03    322.08        .27246E-04** at limit **
  30  Prefactor     26.951        48.473        .72298E-05    .11723E-03
  31  Prefactor     46.334        104.28        .84909E-06   -.15405E-04
  32  Prefactor     .10000E-03    32.203       -.33860E-06** at limit **
  33  Prefactor     .10000E-03    29.980        .32636E-06** at limit **
  34  Prefactor     18.781        25.496       -.20988E-06   -.25974E-06
  35  Normalizat    1.5715        .42115       -.38893E-05    .40207E-03
  36  Prefactor     .67731        .45250        .70849E-05    .90686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 20.8641
  Prefactor  = 0.0001
  Prefactor  = 2.3261
  norm       = 17.6086
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.75661
  Prefactor  = 1.12869
  Prefactor  = 0.0001
  Prefactor  = 22.5364
  Prefactor  = 0.0001
  norm       = 8.13649
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.12919
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67812
  Prefactor  = 51.0664
  Prefactor  = 2.584
  Prefactor  = 13.6768
  norm       = 15.7641
  Prefactor  = 38.5089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100024
  Prefactor  = 26.9515
  Prefactor  = 46.3343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7813
  Normalizat = 1.57152
  Prefactor  = 0.677306
 **********
 **   18 **HESSE 
 **********

 FCN=   2089.988     FROM HESSE     STATUS=OK           805 CALLS     6193 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.864        13.247        .87691E-04   -1.4794    
   3  Prefactor     .10000E-03    113.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3261        869.49        .27050E-03   -1.5403    
   5  norm          17.609        19.357        .95440E-04   -1.4868    
   6  norm          .10000E-03    22.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.9286        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7566        15.466        .16739E-03   -1.5228    
   9  Prefactor     1.1287        1624.7        .38674E-02   -1.5495    
  10  Prefactor     .10000E-03    62.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.536        38.441        .84392E-04   -1.4758    
  12  Prefactor     .10000E-03    41.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1365        9.5198        .13536E-03   -1.5137    
  14  Prefactor     .10000E-03    45.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    124.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.1292        4.3251        .69542E-04   -1.5174    
  17  norm          .10000E-03    401.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.5937        .22568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.043        .17881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6781        63.293        .21185E-03   -1.5324    
  22  Prefactor     51.066        103.27        .56092E-04   -1.4278    
  23  Prefactor     2.5840        11.456        .25432E-03   -1.5386    
  24  Prefactor     13.677        22.755        .10831E-03   -1.4968    
  25  norm          15.764        10.699        .10085E-03   -1.4914    
  26  Prefactor     38.509        32.629        .64526E-04   -1.4466    
  27  Prefactor     .10000E-03    60.507        .15143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10002E-03    316.18        .60856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     26.951        48.903        .77120E-04   -1.4669    
  31  Prefactor     46.334        104.15        .58928E-04   -1.4346    
  32  Prefactor     .10000E-03    32.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    29.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     18.781        25.479        .92420E-04   -1.4841    
  35  Normalizat    1.5715        .45631        .23629E-03   -.75788    
  36  Prefactor     .67731        .48221        .40273E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43035e-09
Minuit parameter uncertainties:
  1  7.99119e-05
  2  13.2488
  3  0.000421108
  4  91.3114
  5  19.3637
  6  6.74322e-06
  7  8.34596e-05
  8  15.4764
  9  88.1546
  10  0.000160566
  11  38.4834
  12  0.000260302
  13  9.5216
  14  0.000309469
  15  0.000392031
  16  4.32526
  17  0.000287221
  18  4.67935e-05
  19  6.21005e-06
  20  0.00010233
  21  30.5531
  22  103.631
  23  10.8846
  24  22.7692
  25  10.7002
  26  32.6442
  27  0.000178462
  28  2.08102e-05
  29  0.00555935
  30  48.976
  31  104.559
  32  0.000164984
  33  0.00015222
  34  25.494
  35  0.457521
  36  0.485221
Done.

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

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  7.129e+00  4.325e+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:  6.773e-01  4.852e-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:  1.572e+00  4.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 206.394 44.884
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 9.12e-08
Energy Flux (Fixed Index): 5.78e-05 +/- 3.51e-05

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) = 2089.97857956
delta logL = 0.00970574570874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2089.97814945
delta logL = 0.0101358532647

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2040       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0980       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66940       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=   2089.978     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2053        5.1001        .37362E-02   -.10721E-03
   2  alpha         2.0979        .56609        .20485       -.13270E-04
   3  Normalizat    1.5802        .34677        .53327E-01   -.19411E-03
   4  Prefactor     .66886        .41077        .91404E-01   -.57914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.20532
  alpha      = 2.09792
  Normalizat = 1.58019
  Prefactor  = 0.668864
 **********
 **   18 **HESSE 
 **********

 FCN=   2089.978     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2053        4.3622        .70106E-04   -1.5171    
   2  alpha         2.0979        .50595        .87084E-02   -.16153    
   3  Normalizat    1.5802        .39661        .23576E-03   -.75549    
   4  Prefactor     .66886        .46348        .40500E-03   -1.0476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36754e-10
Minuit parameter uncertainties:
  1  4.36236
  2  0.509562
  3  0.397403
  4  0.466183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909288': 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) = 2089.97814707
delta logL = 0.0101382279831

Extracting fit parameters...

4FGL J1345.5+4453
   Spectrum: LogParabola
339         norm:  7.205e+00  4.362e+00  1.000e-04  1.000e+04 ( 1.000e-11)
340        alpha:  2.098e+00  5.096e-01  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.689e-01  4.662e-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:  1.580e+00  3.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 206.394 44.884
Photon Index (Free Index): 2.10 +/- 0.51
Photon Flux (Free Index): 1.45e-07 +/- 9.56e-08
Energy Flux (Free Index): 6.15e-05 +/- 4.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/909288/cmap_HighResolution_424396801_424656001_4FGL_J1345.5+4453_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='6.15e-05', photon_flux_error='9.12e-08', dlogl='1.01e-02', energy_flux='5.78e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-08 10:30:55.178784', photon_index_error2='0.51', photon_index2='2.10', ts='4.44', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='4.64e-05', EG='1.57', time_epoch_completed='1631122255.18', return_code='0', job_id='909288', GAL2='0.67', EG2='1.58', return_code2='0', energy_flux_error='3.51e-05', photon_flux_error2='9.56e-08', ts2='4.37', photon_index='2.17' WHERE bin_id='714' AND source_name='4FGL J1345.5+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 10:30:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 909288: <4FGL_J1345.5+4453_daily_bin714> in cluster <slac> Done

Job <4FGL_J1345.5+4453_daily_bin714> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  8 10:20:33 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 10:21: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:21:26 2021
Terminated at Wed Sep  8 10:30:55 2021
Results reported at Wed Sep  8 10:30:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.5+4453_daily_bin714 206.394 44.8844 424396801 424656001 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 :                                   556.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            622 sec.

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

