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


Performing analysis on: 4FGL_J1454.4+5124_daily_bin657
RA = 223.625, Dec = 51.409
tmin = 409622401, tmax = 409881601
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='850851', job_status='RUN', time_executed='2021-09-10 12:53:36.882600', time_epoch_executed='1631303616.88' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850851/ft1_4FGL_J1454.4+5124_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850851/ft2_4FGL_J1454.4+5124_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850851/ft1_4FGL_J1454.4+5124_daily_bin657.fits outfile=/scratch/kocevski/850851/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin657.fits ra=223.625 dec=51.409 rad=12.0 tmin=409622401.0 tmax=409881601.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.79
user 5.49
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/850851/ft1_filtered_4FGL_J1454.4+5124_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/850851/ft2_4FGL_J1454.4+5124_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/850851/ltcube_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.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/850851/ft2_4FGL_J1454.4+5124_daily_bin657.fits
.....................!
real 12.32
user 11.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850851/ft1_filtered_4FGL_J1454.4+5124_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/850851/ft2_4FGL_J1454.4+5124_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/850851/ltcube_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.fits outfile=/scratch/kocevski/850851/expmap_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.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/850851/ltcube_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.fits
.....................!
real 190.45
user 185.29
sys 4.78

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/850851/ft1_filtered_4FGL_J1454.4+5124_daily_bin657.fits scfile=/scratch/kocevski/850851/ft2_4FGL_J1454.4+5124_daily_bin657.fits outfile=/scratch/kocevski/850851/cmap_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/850851/ft1_filtered_4FGL_J1454.4+5124_daily_bin657.fits scfile=/scratch/kocevski/850851/ft2_4FGL_J1454.4+5124_daily_bin657.fits outfile=/scratch/kocevski/850851/cmap_HighResolution_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    61.061       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.265       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82421       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.422       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3178       1.0000         .10000E-03   10000.    
    16 'norm      '    .32981E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67755       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3626       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .38047       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=   3569.233     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3504 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          61.067        72.456        .50390E-05   -.87280E-06
   2  norm          7.3055        5.3786       -.23329E-05   -.41031E-04
   3  Prefactor     .10000E-03    239.55       -.98549E-04** at limit **
   4  Prefactor     .10000E-03    38.291       -.79135E-05** at limit **
   5  Prefactor     10.238        39.486       -.13899E-04    .19379E-04
   6  Prefactor     .82147        4.2614       -.44786E-06   -.55593E-03
   7  Prefactor     .10000E-03    17.082       -.13091E-04** at limit **
   8  Prefactor     9.2653        4.4107        .87072E-06    .16310E-04
   9  Prefactor     .10000E-03    13.728        .38848E-05** at limit **
  10  Prefactor     .10000E-03    13.868        .44292E-05** at limit **
  11  Prefactor     .10000E-03    22.638        .10761E-04** at limit **
  12  Prefactor     .10000E-03    8.7164        .11997E-04** at limit **
  13  Prefactor     36.422        42.002       -.58439E-06    .93756E-05
  14  Prefactor     .10000E-03    9.9047       -.70572E-05** at limit **
  15  Prefactor     8.3099        15.276       -.65971E-06    .27496E-04
  16  norm          .10000E-03    1.1754       -.35631E-07** at limit **
  17  Prefactor     5.7841        12.839        .70209E-06    .62083E-04
  18  Prefactor     .10000E-03    2.4694       -.24791E-08** at limit **
  19  Prefactor     .10000E-03    8.2217       -.78941E-05** at limit **
  20  norm          .10000E-03    2.8443        .20226E-07** at limit **
  21  Prefactor     .10000E-03    7.1982        .34038E-05** at limit **
  22  Prefactor     .10000E-03    70.898        .81958E-05** at limit **
  23  Prefactor     .70214        15.390       -.28088E-05   -.63279E-04
  24  Prefactor     .10000E-03    5.6619       -.43621E-06** at limit **
  25  norm          .10000E-03    7.2278       -.31388E-05** at limit **
  26  Prefactor     .10000E-03    187.72        .65151E-04** at limit **
  27  Normalizat    1.3626        .22033        .16385E-05    .28198E-03
  28  Prefactor     .38038        .22907       -.10240E-05    .13626E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 61.0674
  norm       = 7.30549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2379
  Prefactor  = 0.821472
  Prefactor  = 0.0001
  Prefactor  = 9.26529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.4217
  Prefactor  = 0.0001
  Prefactor  = 8.30992
  norm       = 0.0001
  Prefactor  = 5.78412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.702136
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36262
  Prefactor  = 0.380377
 **********
 **   18 **HESSE 
 **********

 FCN=   3569.233     FROM HESSE     STATUS=OK           513 CALLS     4017 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          61.067        72.464        .51348E-04   -1.4143    
   2  norm          7.3055        5.3815        .11141E-03   -1.5167    
   3  Prefactor     .10000E-03    239.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.238        39.413        .12506E-03   -1.5068    
   6  Prefactor     .82147        4.0891        .23497E-03   -1.5527    
   7  Prefactor     .10000E-03    17.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2653        4.4210        .79503E-04   -1.5099    
   9  Prefactor     .10000E-03    13.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7137        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.422        41.977        .66406E-04   -1.4500    
  14  Prefactor     .10000E-03    9.9607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3099        15.078        .13900E-03   -1.5131    
  16  norm          .10000E-03    5.9783        .12366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7841        12.839        .16696E-03   -1.5227    
  18  Prefactor     .10000E-03    2.4725        .91674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2845        .16712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9301        .19646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2227        .15612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    71.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .70214        61.961        .43687E-02   -1.5540    
  24  Prefactor     .10000E-03    5.6850        .13884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.2505        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    187.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3626        .24276        .18287E-03   -.81716    
  28  Prefactor     .38038        .24725        .35641E-03   -1.1782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92919e-08
Minuit parameter uncertainties:
  1  72.5689
  2  5.3819
  3  7.0427e-06
  4  4.88283e-05
  5  39.5138
  6  3.66574
  7  4.6171e-05
  8  4.42112
  9  9.84256e-06
  10  2.36205e-05
  11  1.5136e-05
  12  2.5142e-06
  13  42.0108
  14  1.97235e-05
  15  15.0853
  16  2.97271e-05
  17  12.845
  18  2.60496e-07
  19  9.26773e-06
  20  3.84574e-06
  21  1.67741e-05
  22  0.000245609
  23  13.2048
  24  1.3361e-06
  25  2.13708e-06
  26  0.000117125
  27  0.242966
  28  0.247947
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  2.973e-05  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:  3.804e-01  2.479e-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.363e+00  2.430e-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: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/850851/likelihoodResults_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.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) = 3569.23373763
delta logL = -0.000809449419194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3569.23284056
delta logL = 8.76191729731e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20751E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1021       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38053       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=   3568.754     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      252 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74409E-01    1.5915        .39549E-02    .18759E-02
   2  alpha         3.8596        4.2853        .30589        .34363E-04
   3  Normalizat    1.3123        .42615E-01    .31771E-01    .98428E-06
   4  Prefactor     .40753        .46490E-01    .77773E-01    .90048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.074409
  alpha      = 3.85964
  Normalizat = 1.31227
  Prefactor  = 0.407527
 **********
 **   18 **HESSE 
 **********

 FCN=   3568.754     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      287 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74409E-01    4.6517        .17975E-03   -1.5653    
   2  alpha         3.8596        3.6241        .11826E-01    .57503    
   3  Normalizat    1.3123        .17616        .18550E-03   -.83201    
   4  Prefactor     .40753        .19135        .34450E-03   -1.1643    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.47873e-08
Minuit parameter uncertainties:
  1  1.17596
  2  7.03502
  3  0.176243
  4  0.191646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850851': 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): 102
logL (Free Index) = 3568.75353427
delta logL = 0.47939391248

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  7.441e-02  1.176e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  3.860e+00  7.035e+00  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:  4.075e-01  1.916e-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.312e+00  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 223.625 51.409
Photon Index (Free Index): 3.86 +/- 7.04
Photon Flux (Free Index): 4.95e-08 +/- 5.33e-08
Energy Flux (Free Index): 7.90e-06 +/- 1.41e-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/850851/cmap_HighResolution_409622401_409881601_4FGL_J1454.4+5124_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', comment='SUCCESS', energy_flux2='7.90e-06', dlogl='4.79e-01', photon_flux2='4.95e-08', job_status='DONE', time_completed='2021-09-10 13:04:12.836479', photon_index_error2='7.04', photon_index2='3.86', ts='-0.00', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='1.41e-05', EG='1.36', time_epoch_completed='1631304252.84', return_code='0', job_id='850851', GAL2='0.41', EG2='1.31', return_code2='102', photon_flux_error2='5.33e-08', ts2='1.02', photon_index='1.97' WHERE bin_id='657' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 13:04:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 850851: <4FGL_J1454.4+5124_daily_bin657> in cluster <slac> Done

Job <4FGL_J1454.4+5124_daily_bin657> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 12:51:03 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:51: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:51:03 2021
Terminated at Fri Sep 10 13:04:15 2021
Results reported at Fri Sep 10 13:04:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin657 223.625 51.409 409622401 409881601 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 :                                   635.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

