/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7438
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1454.4+5124_daily_bin1004
RA = 223.625, Dec = 51.409
tmin = 499564801, tmax = 499824001
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='852454', job_status='RUN', time_executed='2021-09-10 12:56:17.989277', time_epoch_executed='1631303777.99' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/852454

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/852454/ft1_4FGL_J1454.4+5124_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/852454/ft1_4FGL_J1454.4+5124_daily_bin1004.fits outfile=/scratch/kocevski/852454/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin1004.fits ra=223.625 dec=51.409 rad=12.0 tmin=499564801.0 tmax=499824001.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.10
user 4.83
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.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/852454/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/852454/ft1_filtered_4FGL_J1454.4+5124_daily_bin1004.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/852454/ft1_filtered_4FGL_J1454.4+5124_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/852454/ltcube_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.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/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits
.....................!
real 12.03
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/852454/ft1_filtered_4FGL_J1454.4+5124_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/852454/ltcube_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.fits outfile=/scratch/kocevski/852454/expmap_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.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/852454/ltcube_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.fits
.....................!
real 191.72
user 185.20
sys 6.10

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/852454/ft1_filtered_4FGL_J1454.4+5124_daily_bin1004.fits scfile=/scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits outfile=/scratch/kocevski/852454/cmap_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/852454/ft1_filtered_4FGL_J1454.4+5124_daily_bin1004.fits scfile=/scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits outfile=/scratch/kocevski/852454/cmap_HighResolution_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.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.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/852454/ft1_filtered_4FGL_J1454.4+5124_daily_bin1004.fits', '/scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits', expMap='/scratch/kocevski/852454/expmap_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.fits', expCube='/scratch/kocevski/852454/ltcube_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/852454/Model_4FGL_J1454.4+5124_daily_bin1004.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/852454/ft1_filtered_4FGL_J1454.4+5124_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/852454/ft2_4FGL_J1454.4+5124_daily_bin1004.fits
Exposure map: /scratch/kocevski/852454/expmap_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.fits
Exposure cube: /scratch/kocevski/852454/ltcube_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/852454/Model_4FGL_J1454.4+5124_daily_bin1004.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) = 6042.18535019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0799       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3696       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11660E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2893       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .68648       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8648       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .46363       1.0000         .10000E-03   10000.    
    25 'norm      '    6.2046       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1552       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94004       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=   6042.183     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3447 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    77.022        .13480E-04** at limit **
   2  norm          .10000E-03    2.6504        .80541E-07** at limit **
   3  Prefactor     .10000E-03    176.87       -.24973E-04** at limit **
   4  Prefactor     59.635        70.835       -.34846E-05   -.48832E-04
   5  Prefactor     .10000E-03    24.242       -.88919E-05** at limit **
   6  Prefactor     3.0798        4.5886        .17543E-06   -.31133E-04
   7  Prefactor     .10000E-03    8.3794        .14420E-05** at limit **
   8  Prefactor     5.3606        3.7317        .31254E-06   -.48717E-03
   9  Prefactor     .10000E-03    6.9439       -.31152E-05** at limit **
  10  Prefactor     .10000E-03    78.046        .16785E-04** at limit **
  11  Prefactor     .10000E-03    68.917       -.31674E-05** at limit **
  12  Prefactor     9.6479        19.213        .21793E-06   -.12970E-04
  13  Prefactor     .10000E-03    10.134       -.10995E-05** at limit **
  14  Prefactor     35.039        21.928        .74807E-06   -.15553E-03
  15  Prefactor     .10000E-03    29.086        .15818E-04** at limit **
  16  norm          1.2891        1.0903       -.19849E-07   -.41447E-03
  17  Prefactor     .10000E-03    6.2183        .42990E-06** at limit **
  18  Prefactor     .10000E-03    2.5313        .45529E-07** at limit **
  19  Prefactor     .10000E-03    6.4662        .40299E-05** at limit **
  20  norm          .68664        3.0301        .82429E-06   -.84062E-04
  21  Prefactor     7.8658        8.4999       -.45335E-06   -.86832E-04
  22  Prefactor     .10000E-03    5.6102        .19921E-06** at limit **
  23  Prefactor     .10000E-03    6.2900       -.15683E-05** at limit **
  24  Prefactor     .39308        4.5433        .18549E-05   -.80081E-03
  25  norm          6.2214        10.280       -.35112E-05    .13723E-03
  26  Prefactor     .10000E-03    48.387       -.18328E-04** at limit **
  27  Normalizat    1.1550        .18010       -.63014E-06   -.32271E-03
  28  Prefactor     .94021        .19491       -.12459E-05   -.23209E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 59.6346
  Prefactor  = 0.0001
  Prefactor  = 3.07983
  Prefactor  = 0.0001
  Prefactor  = 5.36061
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.64792
  Prefactor  = 0.0001
  Prefactor  = 35.0391
  Prefactor  = 0.000100001
  norm       = 1.28912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.686638
  Prefactor  = 7.86579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.393083
  norm       = 6.22144
  Prefactor  = 0.000100002
  Normalizat = 1.15496
  Prefactor  = 0.940213
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.183     FROM HESSE     STATUS=OK           517 CALLS     3964 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    77.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6662        .12355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    177.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     59.635        70.787        .51952E-04   -1.4162    
   5  Prefactor     .10000E-03    24.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0798        4.5762        .19720E-03   -1.5357    
   7  Prefactor     .10000E-03    8.3875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3606        3.7170        .11582E-03   -1.5245    
   9  Prefactor     .10000E-03    6.9480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    78.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    69.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.6479        19.211        .12902E-03   -1.5087    
  13  Prefactor     .10000E-03    10.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.039        21.909        .67682E-04   -1.4523    
  15  Prefactor     .10000E-03    29.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2891        1.0903        .39012E-04   -1.5481    
  17  Prefactor     .10000E-03    6.3493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5449        .12075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .68664        2.7555        .22608E-03   -1.5542    
  21  Prefactor     7.8658        8.1225        .14298E-03   -1.5147    
  22  Prefactor     .10000E-03    5.6181        .17980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .39308        6.1072        .10102       -1.5583    
  25  norm          6.2214        12.329        .16116E-03   -1.5209    
  26  Prefactor     .10000E-03    48.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1550        .21636        .23359E-03   -.88006    
  28  Prefactor     .94021        .23291        .27702E-03   -.94750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24893e-09
Minuit parameter uncertainties:
  1  0.000619465
  2  5.89246e-06
  3  0.00171076
  4  70.8875
  5  0.000206363
  6  4.57677
  7  2.53134e-05
  8  3.71717
  9  4.17405e-05
  10  0.000586952
  11  0.000148865
  12  19.2233
  13  1.74306e-05
  14  21.9145
  15  0.000310449
  16  1.09031
  17  8.40342e-06
  18  3.07839e-07
  19  5.15132e-05
  20  2.75104
  21  8.12359
  22  8.69374e-06
  23  4.35723e-06
  24  3.09877
  25  12.3339
  26  0.000603606
  27  0.216523
  28  0.233154
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.289e+00  1.090e+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:  9.402e-01  2.332e-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:  1.155e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.35
Ra Dec: 223.625 51.409
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.94e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.17e-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) = 6042.14981886
delta logL = 0.0332309604782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6042.14873873
delta logL = 0.0343110848717

Fit tolerance = 1e-08

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

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

 FCN=   6042.149     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      192 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3322        39.625        .95052E-02   -.64047E-04
   2  alpha         1.7836        2.9854        .43522       -.20593E-04
   3  Normalizat    1.1587        .11643        .52761E-01    .74524E-05
   4  Prefactor     .93864        .86533E-01    .45496E-01    .11764E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33219
  alpha      = 1.78361
  Normalizat = 1.15866
  Prefactor  = 0.938637
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.149     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3322        1.1396        .74247E-04   -1.5477    
   2  alpha         1.7836        .68013        .17300E-01   -.29063    
   3  Normalizat    1.1587        .21319        .23328E-03   -.87890    
   4  Prefactor     .93864        .23159        .27724E-03   -.94804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70122e-11
Minuit parameter uncertainties:
  1  1.13961
  2  0.689616
  3  0.213348
  4  0.231835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/852454': 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) = 6042.14873854
delta logL = 0.0343112837281

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.332e+00  1.140e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.784e+00  6.896e-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:  9.386e-01  2.318e-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:  1.159e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 223.625 51.409
Photon Index (Free Index): 1.78 +/- 0.69
Photon Flux (Free Index): 1.54e-08 +/- 1.87e-08
Energy Flux (Free Index): 1.70e-05 +/- 2.11e-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/852454/cmap_HighResolution_499564801_499824001_4FGL_J1454.4+5124_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-08', energy_flux2='1.70e-05', photon_flux_error='1.64e-08', dlogl='3.43e-02', energy_flux='1.39e-05', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-09-10 13:08:15.199487', photon_index_error2='0.69', photon_index2='1.78', ts='5.35', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.15', time_epoch_completed='1631304495.2', return_code='0', job_id='852454', GAL2='0.94', EG2='1.16', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.87e-08', ts2='5.42', photon_index='1.97' WHERE bin_id='1004' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 13:08:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 852454: <4FGL_J1454.4+5124_daily_bin1004> in cluster <slac> Done

Job <4FGL_J1454.4+5124_daily_bin1004> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 12:56:02 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:56:03 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:56:03 2021
Terminated at Fri Sep 10 13:08:16 2021
Results reported at Fri Sep 10 13:08:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin1004 223.625 51.409 499564801 499824001 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 :                                   714.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

