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


Performing analysis on: 4FGL_J1454.4+5124_daily_bin38
RA = 223.625, Dec = 51.409
tmin = 249177601, tmax = 249436801
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='847764', job_status='RUN', time_executed='2021-09-10 12:42:15.454683', time_epoch_executed='1631302935.45' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847764/ft1_4FGL_J1454.4+5124_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847764/ft2_4FGL_J1454.4+5124_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847764/ft1_4FGL_J1454.4+5124_daily_bin38.fits outfile=/scratch/kocevski/847764/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin38.fits ra=223.625 dec=51.409 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.47
user 1.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847764/ft2_4FGL_J1454.4+5124_daily_bin38.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/847764/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/847764/ft1_filtered_4FGL_J1454.4+5124_daily_bin38.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847764/ft1_filtered_4FGL_J1454.4+5124_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/847764/ft2_4FGL_J1454.4+5124_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/847764/ltcube_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.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/847764/ft2_4FGL_J1454.4+5124_daily_bin38.fits
.....................!
real 12.60
user 12.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847764/ft1_filtered_4FGL_J1454.4+5124_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/847764/ft2_4FGL_J1454.4+5124_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/847764/ltcube_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.fits outfile=/scratch/kocevski/847764/expmap_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.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/847764/ltcube_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.fits
.....................!
real 190.38
user 185.49
sys 4.44

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/847764/ft1_filtered_4FGL_J1454.4+5124_daily_bin38.fits scfile=/scratch/kocevski/847764/ft2_4FGL_J1454.4+5124_daily_bin38.fits outfile=/scratch/kocevski/847764/cmap_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847764/ft1_filtered_4FGL_J1454.4+5124_daily_bin38.fits scfile=/scratch/kocevski/847764/ft2_4FGL_J1454.4+5124_daily_bin38.fits outfile=/scratch/kocevski/847764/cmap_HighResolution_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.722       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90623E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29249       1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.760       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.874       1.0000         .10000E-03   10000.    
    16 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5373       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1353       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16135       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.132       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76420       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95082       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.

 FCN=   4596.212     FROM MIGRAD    STATUS=CONVERGED   1249 CALLS     4081 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    53.918        .18142E-02** at limit **
   2  norm          17.728        7.1203        .95141E-04   -.16872E-03
   3  Prefactor     .10000E-03    381.41        .20826E-02** at limit **
   4  Prefactor     .79083        79.487        .14966        .11800E-03
   5  Prefactor     7.4910        35.750        .14710E-03   -.33001E-04
   6  Prefactor     .10000E-03    3.7530        .12669E-02** at limit **
   7  Prefactor     .10000E-03    5.3297        .15277E-02** at limit **
   8  Prefactor     .10000E-03    1.3119        .75279E-03** at limit **
   9  Prefactor     .26821        20.038        .93966E-01    .25149E-03
  10  Prefactor     46.804        30.915        .58636E-04   -.26733E-03
  11  Prefactor     .10000E-03    21.405        .18142E-02** at limit **
  12  Prefactor     .10000E-03    10.210        .18142E-02** at limit **
  13  Prefactor     .10000E-03    12.443        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.5218        .16900E-02** at limit **
  15  Prefactor     26.904        21.565        .77277E-04   -.54807E-03
  16  norm          .10000E-03    3.5195        .16479E-02** at limit **
  17  Prefactor     3.5510        12.156        .21492E-03    .18255E-03
  18  Prefactor     .10000E-03    4.0115        .13216E-02** at limit **
  19  Prefactor     2.1273        10.593        .28211E-03    .25506E-03
  20  norm          .10000E-03    1.1520        .70909E-03** at limit **
  21  Prefactor     .10000E-03    4.9590        .14664E-02** at limit **
  22  Prefactor     .10000E-03    9.2879        .18142E-02** at limit **
  23  Prefactor     .20924        128.23        .33839E-02    .51142E-03
  24  Prefactor     .10000E-03    4.7311        .14330E-02** at limit **
  25  norm          20.131        10.320        .89266E-04   -.29037E-04
  26  Prefactor     .10000E-03    24.102        .18142E-02** at limit **
  27  Normalizat    .76434        .21738        .22925E-03   -.54071E-03
  28  Prefactor     .95085        .22425        .23450E-03   -.88106E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 17.7279
  Prefactor  = 0.000100001
  Prefactor  = 0.790832
  Prefactor  = 7.49101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.268207
  Prefactor  = 46.8038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9042
  norm       = 0.0001
  Prefactor  = 3.55099
  Prefactor  = 0.0001
  Prefactor  = 2.12728
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.209239
  Prefactor  = 0.0001
  norm       = 20.1312
  Prefactor  = 0.0001
  Normalizat = 0.764336
  Prefactor  = 0.950847
 **********
 **   18 **HESSE 
 **********

 FCN=   4596.212     FROM HESSE     STATUS=OK           513 CALLS     4594 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    53.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.728        7.1174        .38056E-05   -1.4866    
   3  Prefactor     .10000E-03    381.41        .41652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .79083        77.456        .15208       -1.5530    
   5  Prefactor     7.4910        35.698        .58840E-05   -1.5161    
   6  Prefactor     .10000E-03    3.7546        .25337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3299        .30554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3120        .15056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26821        19.683        .95394E-01   -1.5604    
  10  Prefactor     46.804        30.905        .11727E-04   -1.4339    
  11  Prefactor     .10000E-03    21.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5220        .33800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.904        21.551        .15455E-04   -1.4670    
  16  norm          .10000E-03    3.5354        .32959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5510        12.135        .85969E-05   -1.5331    
  18  Prefactor     .10000E-03    4.0118        .26433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1273        10.540        .11284E-04   -1.5416    
  20  norm          .10000E-03    1.1521        .14182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9589        .29328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .20924        128.42        .67678E-03   -1.5616    
  24  Prefactor     .10000E-03    4.7319        .28660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.131        10.317        .35706E-05   -1.4810    
  26  Prefactor     .10000E-03    24.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76434        .21600        .45850E-04   -1.0141    
  28  Prefactor     .95085        .22426        .46899E-04   -.94386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6127e-09
Minuit parameter uncertainties:
  1  0.000120484
  2  7.11772
  3  0.00112687
  4  15.673
  5  32.7374
  6  1.99358e-05
  7  1.00961e-05
  8  2.52977e-05
  9  4.596
  10  30.9151
  11  1.3687e-05
  12  4.37441e-05
  13  8.57825e-06
  14  9.49098e-06
  15  21.5571
  16  4.3198e-05
  17  12.1438
  18  5.3074e-05
  19  9.47259
  20  5.96507e-06
  21  2.87729e-05
  22  2.84203e-05
  23  10.3874
  24  1.22143e-05
  25  10.3181
  26  2.11362e-05
  27  0.216245
  28  0.224477
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  4.320e-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:  9.508e-01  2.245e-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:  7.643e-01  2.162e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847764/likelihoodResults_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.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) = 4596.21312439
delta logL = -0.00135752103779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4596.21171597
delta logL = 5.08918592459e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4594.223     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56508E-01    .17699       -.16416E-05    .14828E-01
   2  alpha         4.3844        1.2045        .21287E-03    .12970E-03
   3  Normalizat    .62665        .20147        .36437E-04   -.62567E-03
   4  Prefactor     1.0375        .22599       -.30573E-04   -.63321E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0565077
  alpha      = 4.38443
  Normalizat = 0.626648
  Prefactor  = 1.03749
 **********
 **   18 **HESSE 
 **********

 FCN=   4594.223     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      255 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56508E-01    .49652        .19018E-02   -1.5660    
   2  alpha         4.3844        4.2609        .21054        .85379    
   3  Normalizat    .62665        .54872E-01    .43144E-01   -1.0686    
   4  Prefactor     1.0375        .62388E-01    .45648E-01   -.91490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.84588e-10
Minuit parameter uncertainties:
  1  0.334714
  2  2.57587
  3  0.0548764
  4  0.0623924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847764': 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) = 4594.22312134
delta logL = 1.98864552688

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  5.651e-02  3.347e-01  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  4.384e+00  2.576e+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:  1.037e+00  6.239e-02  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:  6.266e-01  5.488e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 223.625 51.409
Photon Index (Free Index): 4.38 +/- 2.58
Photon Flux (Free Index): 1.25e-07 +/- 3.92e-08
Energy Flux (Free Index): 1.82e-05 +/- 8.13e-06

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/847764/cmap_HighResolution_249177601_249436801_4FGL_J1454.4+5124_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-05', comment='SUCCESS', energy_flux2='1.82e-05', dlogl='1.99e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-10 12:54:22.298237', photon_index_error2='2.58', photon_index2='4.38', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.83e-08', energy_flux_error2='8.13e-06', EG='0.76', time_epoch_completed='1631303662.3', return_code='0', job_id='847764', GAL2='1.04', EG2='0.63', return_code2='102', photon_flux_error2='3.92e-08', ts2='4.33', photon_index='1.97' WHERE bin_id='38' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:54:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 847764: <4FGL_J1454.4+5124_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin38 223.625 51.409 249177601 249436801 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 :                                   725.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

