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


Performing analysis on: 4FGL_J1454.4+5124_daily_bin671
RA = 223.625, Dec = 51.409
tmin = 413251201, tmax = 413510401
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='850872', job_status='RUN', time_executed='2021-09-10 12:53:13.730836', time_epoch_executed='1631303593.73' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850872/ft1_4FGL_J1454.4+5124_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850872/ft1_4FGL_J1454.4+5124_daily_bin671.fits outfile=/scratch/kocevski/850872/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin671.fits ra=223.625 dec=51.409 rad=12.0 tmin=413251201.0 tmax=413510401.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.78
user 5.49
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.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/850872/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin671.fits evtable="EVENTS" outfile="/scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.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.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/850872/ltcube_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.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/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits
.....................!
real 16.11
user 15.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/850872/ltcube_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.fits outfile=/scratch/kocevski/850872/expmap_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.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/850872/ltcube_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.fits
.....................!
real 199.23
user 192.52
sys 5.42

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

Setting source of interest to:
4FGL J1454.4+5124 @ 223.625 51.409

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits scfile=/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits outfile=/scratch/kocevski/850872/cmap_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.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=223.625 yref=51.409 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits scfile=/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits outfile=/scratch/kocevski/850872/cmap_HighResolution_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.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=223.625 yref=51.409 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/850872/Model_4FGL_J1454.4+5124_daily_bin671.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/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits.....................!
real 41.61
user 40.33
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits', '/scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits', expMap='/scratch/kocevski/850872/expmap_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.fits', expCube='/scratch/kocevski/850872/ltcube_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/850872/Model_4FGL_J1454.4+5124_daily_bin671.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1454.4+5124'

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  2.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
309         beta:  5.547e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
310           Eb:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/850872/ft1_filtered_4FGL_J1454.4+5124_daily_bin671.fits
Spacecraft file(s): /scratch/kocevski/850872/ft2_4FGL_J1454.4+5124_daily_bin671.fits
Exposure map: /scratch/kocevski/850872/expmap_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.fits
Exposure cube: /scratch/kocevski/850872/ltcube_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/850872/Model_4FGL_J1454.4+5124_daily_bin671.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) = 4745.2047642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    138.73       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.645       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11124E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3801       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2666       1.0000         .10000E-03   10000.    
    20 'norm      '    .59594E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.069       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3951       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1096       1.0000         .10000E-03   10000.    
    25 'norm      '    16.868       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15755E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91676       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4745.176     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     4071 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    62.842       -.64731E-06** at limit **
   2  norm          3.1022        5.3525        .62528E-06   -.37130E-04
   3  Prefactor     137.24        1021.6       -.35576E-04   -.65995E-04
   4  Prefactor     .10000E-03    24.837        .61895E-07** at limit **
   5  Prefactor     19.440        47.485       -.36096E-05   -.25460E-04
   6  Prefactor     3.3560        6.5107        .10087E-04   -.50679E-03
   7  Prefactor     32.665        33.095       -.34900E-05   -.10592E-03
   8  Prefactor     9.1723        4.0268        .95356E-07   -.11193E-03
   9  Prefactor     .10000E-03    70.314        .10718E-05** at limit **
  10  Prefactor     .10000E-03    20.909        .22376E-06** at limit **
  11  Prefactor     41.615        78.464       -.14410E-06    .16695E-04
  12  Prefactor     .10000E-03    11.214        .19633E-06** at limit **
  13  Prefactor     26.326        41.169        .69675E-06   -.14704E-04
  14  Prefactor     .10000E-03    8.1495        .23176E-06** at limit **
  15  Prefactor     .10000E-03    5.5094        .12190E-06** at limit **
  16  norm          3.3802        2.1355        .46444E-07   -.56870E-04
  17  Prefactor     .10000E-03    13.317       -.52476E-06** at limit **
  18  Prefactor     .10000E-03    1.9352        .98339E-07** at limit **
  19  Prefactor     2.2720        8.8724        .20482E-05   -.32926E-04
  20  norm          .10005E-03    2.5502        .22552E-06** at limit **
  21  Prefactor     12.102        10.582       -.11398E-05   -.43202E-03
  22  Prefactor     .10000E-03    7.4324       -.22283E-06** at limit **
  23  Prefactor     1.3803        52.156        .85913E-05   -.28862E-04
  24  Prefactor     5.1127        17.066        .12611E-05    .23474E-06
  25  norm          16.868        16.515       -.23505E-06   -.84257E-05
  26  Prefactor     .10000E-03    278.03        .18686E-05** at limit **
  27  Normalizat    .91584        .21514       -.38588E-05   -.69155E-04
  28  Prefactor     1.0970        .22397        .18707E-05   -.27469E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 3.10224
  Prefactor  = 137.238
  Prefactor  = 0.0001
  Prefactor  = 19.4402
  Prefactor  = 3.35597
  Prefactor  = 32.665
  Prefactor  = 9.17226
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 41.6145
  Prefactor  = 0.0001
  Prefactor  = 26.3258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27203
  norm       = 0.000100049
  Prefactor  = 12.1018
  Prefactor  = 0.0001
  Prefactor  = 1.38028
  Prefactor  = 5.11273
  norm       = 16.8684
  Prefactor  = 0.0001
  Normalizat = 0.915836
  Prefactor  = 1.09702
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.176     FROM HESSE     STATUS=OK           519 CALLS     4590 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    62.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1022        5.3361        .19761E-03   -1.5356    
   3  Prefactor     137.24        1038.5        .17100E-03   -1.3360    
   4  Prefactor     .10000E-03    24.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.440        47.492        .90851E-04   -1.4826    
   6  Prefactor     3.3560        6.5282        .11045E-02   -1.5342    
   7  Prefactor     32.665        33.476        .70131E-04   -1.4564    
   8  Prefactor     9.1723        4.0252        .86420E-04   -1.5102    
   9  Prefactor     .10000E-03    71.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.615        78.441        .62152E-04   -1.4417    
  12  Prefactor     .10000E-03    11.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.326        41.128        .78059E-04   -1.4681    
  14  Prefactor     .10000E-03    8.1588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5142        .15791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3802        2.1316        .76861E-04   -1.5340    
  17  Prefactor     .10000E-03    13.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9385        .93581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2720        8.8513        .27282E-03   -1.5406    
  20  norm          .10005E-03    39.908        .19729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.102        9.8380        .11531E-03   -1.5012    
  22  Prefactor     .10000E-03    7.4394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3803        47.243        .36766E-03   -1.5473    
  24  Prefactor     5.1127        16.779        .17787E-03   -1.5256    
  25  norm          16.868        16.257        .97519E-04   -1.4886    
  26  Prefactor     .10000E-03    281.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91584        .25864        .25052E-03   -.95906    
  28  Prefactor     1.0970        .27077        .25997E-03   -.89562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64878e-09
Minuit parameter uncertainties:
  1  0.000558351
  2  5.33687
  3  774.579
  4  1.09474e-05
  5  47.5844
  6  6.52954
  7  33.4948
  8  4.02534
  9  0.000680856
  10  4.60132e-07
  11  78.6363
  12  1.1238e-05
  13  41.1727
  14  9.40755e-08
  15  2.39962e-06
  16  2.13165
  17  4.94818e-05
  18  1.04321e-06
  19  8.85638
  20  0.00278741
  21  9.8393
  22  1.5318e-05
  23  16.1637
  24  16.7948
  25  16.2609
  26  0.00042997
  27  0.25899
  28  0.271114
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  3.380e+00  2.132e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
309         beta:  5.547e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
310           Eb:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.097e+00  2.711e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  9.158e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.04
Ra Dec: 223.625 51.409
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 3.64e-05 +/- 2.29e-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) = 4744.94890145
delta logL = 0.226911135969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4744.9419296
delta logL = 0.233882991069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5593       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3510       1.0000          .0000       5.0000    
     3 'Normalizat'    .88900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1146       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4744.942     FROM MIGRAD    STATUS=FAILED        89 CALLS      276 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5593        4.3007        .61109E-04   -.57542E-03
   2  alpha         2.3510        1.1038        .43263E-01    .17170E-02
   3  Normalizat    .88899        .24937        .25373E-03    .11201E-05
   4  Prefactor     1.1146        .27383        .25809E-03    .26429E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4744.942     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      359 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5593        4.3007        .57681E-04   -1.5388    
   2  alpha         2.3510        1.1038        .82380E-03   -.59630E-01
   3  Normalizat    .88899        .24937        .27160E-03   -.96848    
   4  Prefactor     1.1146        .27383        .32812E-03   -.89002    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4744.942     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      388 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5593        2.2858        .24444E-05   -.57393E-03
   2  alpha         2.3510        .60238        .50827E-02   -.22173E-04
   3  Normalizat    .88899        .23784        .10149E-04   -.44806E-05
   4  Prefactor     1.1146        .26555        .10324E-04   -.17620E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.5593
  alpha      = 2.35102
  Normalizat = 0.888988
  Prefactor  = 1.11457
 **********
 **   18 **HESSE 
 **********

 FCN=   4744.942     FROM HESSE     STATUS=OK            25 CALLS      413 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5593        2.2045        .48887E-06   -1.5388    
   2  alpha         2.3510        .58121        .20331E-03   -.59629E-01
   3  Normalizat    .88899        .23763        .20299E-05   -.96848    
   4  Prefactor     1.1146        .26543        .20647E-05   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79054e-11
Minuit parameter uncertainties:
  1  2.20456
  2  0.586593
  3  0.237911
  4  0.265744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850872': 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) = 4744.94192959
delta logL = 0.233882993391

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  2.559e+00  2.205e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  2.351e+00  5.866e-01  0.000e+00  5.000e+00 ( 1.000e+00)
309         beta:  5.547e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
310           Eb:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.115e+00  2.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  8.890e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 223.625 51.409
Photon Index (Free Index): 2.35 +/- 0.59
Photon Flux (Free Index): 7.32e-08 +/- 5.24e-08
Energy Flux (Free Index): 2.72e-05 +/- 1.82e-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/850872/cmap_HighResolution_413251201_413510401_4FGL_J1454.4+5124_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='2.72e-05', photon_flux_error='3.20e-08', dlogl='2.34e-01', energy_flux='3.64e-05', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-09-10 13:04:50.256157', photon_index_error2='0.59', photon_index2='2.35', ts='5.04', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='0.92', time_epoch_completed='1631304290.26', return_code='0', job_id='850872', GAL2='1.11', EG2='0.89', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='5.24e-08', ts2='5.48', photon_index='1.97' WHERE bin_id='671' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 13:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 850872: <4FGL_J1454.4+5124_daily_bin671> in cluster <slac> Done

Job <4FGL_J1454.4+5124_daily_bin671> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 12:51:04 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:51:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:51:06 2021
Terminated at Fri Sep 10 13:04:51 2021
Results reported at Fri Sep 10 13:04:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin671 223.625 51.409 413251201 413510401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1454.4+5124 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   695.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

