/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 167 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1454.4+5124_daily_bin50
RA = 223.625, Dec = 51.409
tmin = 252288001, tmax = 252547201
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='847782', job_status='RUN', time_executed='2021-09-10 12:44:06.638336', time_epoch_executed='1631303046.64' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847782/ft1_4FGL_J1454.4+5124_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847782/ft2_4FGL_J1454.4+5124_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847782/ft1_4FGL_J1454.4+5124_daily_bin50.fits outfile=/scratch/kocevski/847782/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin50.fits ra=223.625 dec=51.409 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.54
user 2.36
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847782/ft1_filtered_4FGL_J1454.4+5124_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/847782/ft2_4FGL_J1454.4+5124_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/847782/ltcube_252288001_252547201_4FGL_J1454.4+5124_daily_bin50.fits outfile=/scratch/kocevski/847782/expmap_252288001_252547201_4FGL_J1454.4+5124_daily_bin50.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/847782/ltcube_252288001_252547201_4FGL_J1454.4+5124_daily_bin50.fits
.....................!
real 189.87
user 185.22
sys 4.22

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/847782/ft1_filtered_4FGL_J1454.4+5124_daily_bin50.fits scfile=/scratch/kocevski/847782/ft2_4FGL_J1454.4+5124_daily_bin50.fits outfile=/scratch/kocevski/847782/cmap_252288001_252547201_4FGL_J1454.4+5124_daily_bin50.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847782/ft1_filtered_4FGL_J1454.4+5124_daily_bin50.fits scfile=/scratch/kocevski/847782/ft2_4FGL_J1454.4+5124_daily_bin50.fits outfile=/scratch/kocevski/847782/cmap_HighResolution_252288001_252547201_4FGL_J1454.4+5124_daily_bin50.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3284       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23447E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.357       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.671       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6635       1.0000         .10000E-03   10000.    
    20 'norm      '    .19720E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.381       1.0000         .10000E-03   10000.    
    25 'norm      '    .13485E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    71.996       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98372       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1045       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=   5801.903     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3524 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    59.541       -.32316E-07** at limit **
   2  norm          3.3294        5.0132        .73281E-06    .88187E-06
   3  Prefactor     3.1332        9796.9       -.37669E-03   -.12430E-05
   4  Prefactor     .10000E-03    161.89       -.15565E-05** at limit **
   5  Prefactor     40.711        49.295        .30330E-05   -.65793E-04
   6  Prefactor     .10000E-03    1.9694       -.10639E-06** at limit **
   7  Prefactor     23.731        23.567        .97404E-06   -.42144E-04
   8  Prefactor     5.4635        3.4974        .38571E-07   -.15744E-03
   9  Prefactor     .10000E-03    18.220        .11407E-05** at limit **
  10  Prefactor     .10000E-03    27.887        .11692E-05** at limit **
  11  Prefactor     44.363        39.027       -.41368E-06    .38434E-05
  12  Prefactor     .10000E-03    9.7101        .29155E-06** at limit **
  13  Prefactor     15.669        28.850       -.20635E-06   -.17663E-04
  14  Prefactor     .10000E-03    6.5928        .32576E-06** at limit **
  15  Prefactor     .10000E-03    3.9005        .14342E-06** at limit **
  16  norm          .10000E-03    .56750        .23289E-06** at limit **
  17  Prefactor     .10000E-03    2.9932       -.17673E-06** at limit **
  18  Prefactor     .10000E-03    1.8443        .22913E-06** at limit **
  19  Prefactor     2.6629        4.5677        .92720E-05    .70629E-05
  20  norm          .10001E-03    1.8977        .70691E-06** at limit **
  21  Prefactor     .10000E-03    16.117        .10382E-06** at limit **
  22  Prefactor     10.667        23.632        .17410E-05   -.81576E-04
  23  Prefactor     .10000E-03    22.330       -.47962E-07** at limit **
  24  Prefactor     14.393        9.1524       -.10851E-06   -.54433E-03
  25  norm          .10003E-03    5.8884        .14380E-05** at limit **
  26  Prefactor     71.968        84.137        .39495E-05   -.60331E-04
  27  Normalizat    .98325        .18306       -.41766E-05   -.16191E-03
  28  Prefactor     1.1051        .20049        .41330E-06   -.34803E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.32936
  Prefactor  = 3.13316
  Prefactor  = 0.0001
  Prefactor  = 40.7108
  Prefactor  = 0.0001
  Prefactor  = 23.7308
  Prefactor  = 5.46354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.363
  Prefactor  = 0.0001
  Prefactor  = 15.6694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66291
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 10.6671
  Prefactor  = 0.0001
  Prefactor  = 14.3928
  norm       = 0.000100028
  Prefactor  = 71.9685
  Normalizat = 0.983253
  Prefactor  = 1.10509
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.903     FROM HESSE     STATUS=OK           513 CALLS     4037 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    59.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3294        4.9929        .19584E-03   -1.5343    
   3  Prefactor     3.1332        9997.6        .95055E-02   -1.5354    
   4  Prefactor     .10000E-03    163.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.711        49.386        .62810E-04   -1.4431    
   6  Prefactor     .10000E-03    1.9729        .10432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.731        23.692        .82244E-04   -1.4733    
   8  Prefactor     5.4635        3.4865        .10509E-03   -1.5240    
   9  Prefactor     .10000E-03    18.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.363        39.022        .60197E-04   -1.4375    
  12  Prefactor     .10000E-03    9.7246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.669        28.833        .10118E-03   -1.4916    
  14  Prefactor     .10000E-03    6.6189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9059        .14692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .58006        .56027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0037        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8528        .10102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6629        4.6419        .10496E-02   -1.5382    
  20  norm          .10001E-03    8.8939        .19992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.667        23.303        .12269E-03   -1.5055    
  23  Prefactor     .10000E-03    22.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.393        8.6009        .10562E-03   -1.4949    
  25  norm          .10003E-03    23.047        .33571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     71.968        84.174        .47314E-04   -1.4009    
  27  Normalizat    .98325        .22232        .23808E-03   -.93594    
  28  Prefactor     1.1051        .24403        .25990E-03   -.89304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28618e-09
Minuit parameter uncertainties:
  1  3.49207e-06
  2  4.99349
  3  557.769
  4  0.000547318
  5  49.436
  6  1.34855e-06
  7  23.7015
  8  3.48666
  9  4.18665e-05
  10  2.37091e-05
  11  39.044
  12  1.62463e-05
  13  28.8589
  14  1.0186e-05
  15  6.70665e-06
  16  2.1251e-06
  17  2.81175e-05
  18  4.26763e-06
  19  4.64256
  20  0.000434815
  21  3.6967e-05
  22  23.3231
  23  9.26202e-05
  24  8.6016
  25  0.00160266
  26  84.3134
  27  0.22253
  28  0.244279
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  2.125e-06  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.105e+00  2.443e-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.833e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 223.625 51.409
Photon Flux Upper Limit: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847782/likelihoodResults_252288001_252547201_4FGL_J1454.4+5124_daily_bin50.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): 102
logL (Free Index) = 5801.91062828
delta logL = -0.00794024494917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5801.90268828
delta logL = -2.38070242631e-07

Fit tolerance = 1e-08

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

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

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

 FCN=   5801.903     FROM MIGRAD    STATUS=FAILED        95 CALLS      241 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.295        .56064E-03** at limit **
   2  alpha         1.8749        2.8824        .50000        .71406E-06
   3  Normalizat    .98325        .69975E-01    .23807E-03    .89871E-04
   4  Prefactor     1.1051        .80812E-01    .25990E-03    .86523E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5801.903     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      433 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.295        .12172E-03** at limit **
   2  alpha         1.8749        2.8824        .26819E-06    .71406E-06
   3  Normalizat    .98325        .69975E-01    .94846E-08    .89871E-04
   4  Prefactor     1.1051        .80812E-01    .21758E-08    .86523E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5801.903     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      466 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .72196        .11213E-03** at limit **
   2  alpha         1.8750        3.3572        .50000        .52682E-07
   3  Normalizat    .98325        .20726        .95230E-05    .89536E-04
   4  Prefactor     1.1051        .23935        .10396E-04    .86392E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87505
  Normalizat = 0.983251
  Prefactor  = 1.10509
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.903     FROM HESSE     STATUS=OK            29 CALLS      495 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .58842        .22426E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8750        2.5507        .50000       -.25266    
   3  Normalizat    .98325        .20714        .19046E-05   -.93594    
   4  Prefactor     1.1051        .23929        .20792E-05   -.89304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16229e-11
Minuit parameter uncertainties:
  1  7.73113e-07
  2  67.1165
  3  0.207312
  4  0.239522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847782': 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) = 5801.90268748
delta logL = 5.62141394767e-07

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  7.731e-07  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.875e+00  6.712e+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.105e+00  2.395e-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.833e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 223.625 51.409

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/847782/cmap_HighResolution_252288001_252547201_4FGL_J1454.4+5124_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-05', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-09-10 12:57:42.313993', job_id='847782', GAL2='1.11', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631303862.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='50' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:57:42 PDT 2021


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

Job <4FGL_J1454.4+5124_daily_bin50> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 12:41:08 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:41:09 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:41:09 2021
Terminated at Fri Sep 10 12:57:43 2021
Results reported at Fri Sep 10 12:57:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin50 223.625 51.409 252288001 252547201 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 :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

