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


Performing analysis on: 4FGL_J1454.4+5124_daily_bin1
RA = 223.625, Dec = 51.409
tmin = 239587201, tmax = 239846401
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='847712', job_status='RUN', time_executed='2021-09-10 12:41:29.025491', time_epoch_executed='1631302889.03' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847712

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847712/ft1_4FGL_J1454.4+5124_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847712/ft2_4FGL_J1454.4+5124_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847712/ft1_4FGL_J1454.4+5124_daily_bin1.fits outfile=/scratch/kocevski/847712/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin1.fits ra=223.625 dec=51.409 rad=12.0 tmin=239587201.0 tmax=239846401.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.32
user 1.13
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847712/ft1_filtered_4FGL_J1454.4+5124_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/847712/ft2_4FGL_J1454.4+5124_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/847712/ltcube_239587201_239846401_4FGL_J1454.4+5124_daily_bin1.fits outfile=/scratch/kocevski/847712/expmap_239587201_239846401_4FGL_J1454.4+5124_daily_bin1.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/847712/ltcube_239587201_239846401_4FGL_J1454.4+5124_daily_bin1.fits
.....................!
real 189.90
user 184.88
sys 4.59

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/847712/ft1_filtered_4FGL_J1454.4+5124_daily_bin1.fits scfile=/scratch/kocevski/847712/ft2_4FGL_J1454.4+5124_daily_bin1.fits outfile=/scratch/kocevski/847712/cmap_239587201_239846401_4FGL_J1454.4+5124_daily_bin1.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 1.16
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847712/ft1_filtered_4FGL_J1454.4+5124_daily_bin1.fits scfile=/scratch/kocevski/847712/ft2_4FGL_J1454.4+5124_daily_bin1.fits outfile=/scratch/kocevski/847712/cmap_HighResolution_239587201_239846401_4FGL_J1454.4+5124_daily_bin1.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 1.09
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .56952E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12725E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13923E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.420       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17719E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8195       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1529       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.7953       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91140       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0247       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=   4113.367     FROM MIGRAD    STATUS=CONVERGED   1290 CALLS     4665 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    37.374        .18142E-02** at limit **
   2  norm          .23530E-02    11.087        .40413E-01** at limit **
   3  Prefactor     .10005E-03    407.01        .18142E-02** at limit **
   4  Prefactor     .10003E-03    293.24        .18142E-02** at limit **
   5  Prefactor     .12653E-03    78.191        .13853    ** at limit **
   6  Prefactor     .10000E-03    10.790        .27678E-02** at limit **
   7  Prefactor     .10000E-03    13.990        .18142E-02** at limit **
   8  Prefactor     3.3011        6.4427        .14797E-03   -.55911E-03
   9  Prefactor     .10000E-03    13.998        .18142E-02** at limit **
  10  Prefactor     29.530        59.968        .73865E-04   -.13735E-03
  11  Prefactor     .10001E-03    215.14        .18142E-02** at limit **
  12  Prefactor     .10000E-03    14.497        .18142E-02** at limit **
  13  Prefactor     31.339        31.585        .71594E-04   -.33347E-05
  14  Prefactor     .10000E-03    20.224        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.9997        .16559E-02** at limit **
  16  norm          .10000E-03    .58707        .47755E-03** at limit **
  17  Prefactor     .10000E-03    4.5150        .13298E-02** at limit **
  18  Prefactor     2.8187        3.9024        .14531E-03   -.46785E-04
  19  Prefactor     8.1460        10.271        .14041E-03   -.28176E-04
  20  norm          .10000E-03    2.0614        .89309E-03** at limit **
  21  Prefactor     .10000E-03    2.8136        .10496E-02** at limit **
  22  Prefactor     .10000E-03    12.143        .18142E-02** at limit **
  23  Prefactor     .10000E-03    5.8673        .15142E-02** at limit **
  24  Prefactor     .10000E-03    6.6411        .16064E-02** at limit **
  25  norm          5.7914        9.1301        .16683E-03   -.39523E-05
  26  Prefactor     .10000E-03    24.330        .18142E-02** at limit **
  27  Normalizat    .91194        .24099        .22824E-03   -.55657E-03
  28  Prefactor     1.0244        .25616        .24291E-03   -.35656E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.00235301
  Prefactor  = 0.000100053
  Prefactor  = 0.00010003
  Prefactor  = 0.000126534
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.30106
  Prefactor  = 0.0001
  Prefactor  = 29.5301
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 31.3388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.81871
  Prefactor  = 8.14597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.79144
  Prefactor  = 0.0001
  Normalizat = 0.911937
  Prefactor  = 1.02444
 **********
 **   18 **HESSE 
 **********

 FCN=   4113.367     FROM HESSE     STATUS=OK           511 CALLS     5176 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    37.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .23530E-02    7.8386        .49879E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    407.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    293.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12653E-03    79.782        .13683       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.841        .55356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3011        6.4273        .59187E-05   -1.5345    
   9  Prefactor     .10000E-03    13.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.530        59.907        .14773E-04   -1.4621    
  11  Prefactor     .10001E-03    215.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.339        31.580        .28638E-05   -1.4588    
  14  Prefactor     .10000E-03    20.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0001        .33117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .58708        .95509E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5152        .26596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8187        3.9024        .58126E-05   -1.5372    
  19  Prefactor     8.1460        10.270        .56165E-05   -1.5137    
  20  norm          .10000E-03    2.0616        .17862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8136        .20992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.8680        .30283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.6423        .32129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.7914        9.1293        .66734E-05   -1.5227    
  26  Prefactor     .10000E-03    24.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91194        .24108        .45648E-04   -.96042    
  28  Prefactor     1.0244        .25639        .48583E-04   -.91919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27769e-09
Minuit parameter uncertainties:
  1  5.51534e-06
  2  0.26582
  3  0.00938813
  4  0.00600324
  5  0.0921424
  6  0.000150709
  7  5.55098e-05
  8  6.42866
  9  0.000158501
  10  60.0295
  11  0.00251823
  12  5.46947e-05
  13  31.5968
  14  2.30452e-05
  15  6.63693e-06
  16  2.19475e-06
  17  1.12699e-05
  18  3.90271
  19  10.2726
  20  2.53803e-05
  21  1.61196e-05
  22  7.20687e-05
  23  4.30334e-05
  24  3.87966e-05
  25  9.13146
  26  2.58915e-05
  27  0.241368
  28  0.256694
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  2.195e-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.024e+00  2.567e-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.119e-01  2.414e-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: 4.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847712/likelihoodResults_239587201_239846401_4FGL_J1454.4+5124_daily_bin1.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): 0
logL (Free Index) = 4113.36746566
delta logL = -5.06465185026e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4113.367416
delta logL = -9.7905194707e-07

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 'alpha     '    1.9732       1.0000          .0000       5.0000    
     3 'Normalizat'    .91217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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=   4113.367     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      193 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .58302        .90712E-02** at limit **
   2  alpha         1.9756        3.4084        .42370       -.20257E-04
   3  Normalizat    .91194        .18809        .45057E-01    .84700E-05
   4  Prefactor     1.0244        .21197        .41734E-01    .10463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97556
  Normalizat = 0.911941
  Prefactor  = 1.02444
 **********
 **   18 **HESSE 
 **********

 FCN=   4113.367     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .58837        .47766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9756        3.4083        .50000       -.21135    
   3  Normalizat    .91194        .22121        .22823E-03   -.96042    
   4  Prefactor     1.0244        .24936        .24292E-03   -.91919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14142e-10
Minuit parameter uncertainties:
  1  4.39808e-07
  2  2.44651
  3  0.221428
  4  0.249646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847712': 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) = 4113.36741496
delta logL = 5.97565303906e-08

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  4.398e-07  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.976e+00  2.447e+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.024e+00  2.496e-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.119e-01  2.214e-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/847712/cmap_HighResolution_239587201_239846401_4FGL_J1454.4+5124_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-09-10 12:53:47.634370', job_id='847712', GAL2='1.02', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631303627.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:53:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 847712: <4FGL_J1454.4+5124_daily_bin1> in cluster <slac> Done

Job <4FGL_J1454.4+5124_daily_bin1> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 12:41:03 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:41:05 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:05 2021
Terminated at Fri Sep 10 12:53:48 2021
Results reported at Fri Sep 10 12:53:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin1 223.625 51.409 239587201 239846401 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 :                                   710.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

