/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 129 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 = 7260
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1454.4+5124_daily_bin338
RA = 223.625, Dec = 51.409
tmin = 326937601, tmax = 327196801
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='849348', job_status='RUN', time_executed='2021-09-10 12:48:28.375787', time_epoch_executed='1631303308.38' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849348

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849348/ft1_4FGL_J1454.4+5124_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849348/ft2_4FGL_J1454.4+5124_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849348/ft1_4FGL_J1454.4+5124_daily_bin338.fits outfile=/scratch/kocevski/849348/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin338.fits ra=223.625 dec=51.409 rad=12.0 tmin=326937601.0 tmax=327196801.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 3.33
user 3.10
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849348/ft1_filtered_4FGL_J1454.4+5124_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/849348/ft2_4FGL_J1454.4+5124_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/849348/ltcube_326937601_327196801_4FGL_J1454.4+5124_daily_bin338.fits outfile=/scratch/kocevski/849348/expmap_326937601_327196801_4FGL_J1454.4+5124_daily_bin338.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/849348/ltcube_326937601_327196801_4FGL_J1454.4+5124_daily_bin338.fits
.....................!
real 193.03
user 185.68
sys 5.40

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/849348/ft1_filtered_4FGL_J1454.4+5124_daily_bin338.fits scfile=/scratch/kocevski/849348/ft2_4FGL_J1454.4+5124_daily_bin338.fits outfile=/scratch/kocevski/849348/cmap_326937601_327196801_4FGL_J1454.4+5124_daily_bin338.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.157       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.413       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14104       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.304       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2942       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3801       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11863E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    39.769       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82281       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1605       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=   5620.706     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     3007 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    124.93        .27774E-04** at limit **
   2  norm          .10000E-03    2.6650        .52886E-06** at limit **
   3  Prefactor     .44475E-03    326.51        .63159E-05** at limit **
   4  Prefactor     .10000E-03    14.356       -.14646E-04** at limit **
   5  Prefactor     .10037E-03    19.720        .98943E-05** at limit **
   6  Prefactor     1.7170        5.3383       -.24958E-05   -.45174E-04
   7  Prefactor     .10001E-03    42.497       -.57337E-05** at limit **
   8  Prefactor     .10000E-03    2.6496        .60019E-06** at limit **
   9  Prefactor     19.155        1.5732        .74239E-06   -.82560E-04
  10  Prefactor     13.416        1.9799       -.10906E-05   -.14027E-03
  11  Prefactor     .10003E-03    31.346        .46677E-05** at limit **
  12  Prefactor     .10000E-03    7.4194       -.15126E-05** at limit **
  13  Prefactor     14.537        1.2021        .44045E-06   -.43553E-04
  14  Prefactor     .65186E-02    1899.6       -.31805E-04    .49113E-03
  15  Prefactor     10.333        5.8661       -.30844E-05   -.31860E-02
  16  norm          .10000E-03    .84115        .76248E-06** at limit **
  17  Prefactor     .10000E-03    7.0174        .27180E-05** at limit **
  18  Prefactor     .10000E-03    1.7397       -.42257E-06** at limit **
  19  Prefactor     8.2920        8.8609       -.58489E-05   -.28147E-03
  20  norm          .10000E-03    1.8192       -.11855E-07** at limit **
  21  Prefactor     6.3534        9.1640       -.55725E-05   -.11338E-03
  22  Prefactor     .10000E-03    9.3867        .45169E-05** at limit **
  23  Prefactor     .10006E-03    112.95       -.59428E-04** at limit **
  24  Prefactor     .10000E-03    3.2561       -.10983E-06** at limit **
  25  norm          39.768        1.0911        .35584E-07    .20436E-03
  26  Prefactor     .10047E-03    20.846        .38626E-05** at limit **
  27  Normalizat    .82290        .19921       -.56549E-05   -.13628E-03
  28  Prefactor     1.1606        .22792        .41416E-05   -.13861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.00044475
  Prefactor  = 0.0001
  Prefactor  = 0.000100372
  Prefactor  = 1.71695
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 19.1547
  Prefactor  = 13.4156
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 14.5374
  Prefactor  = 0.0065186
  Prefactor  = 10.3329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.29198
  norm       = 0.0001
  Prefactor  = 6.35343
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  norm       = 39.7681
  Prefactor  = 0.000100469
  Normalizat = 0.822902
  Prefactor  = 1.16056
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.706     FROM HESSE     STATUS=OK           583 CALLS     3590 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    138.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44475E-03    700.88        .90712E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10037E-03    38.217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7170        5.3687        .80205E-02   -1.5446    
   7  Prefactor     .10001E-03    43.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3296        .29817E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.155        30.590        .22877E-02   -1.4832    
  10  Prefactor     13.416        21.559        .27342E-02   -1.4975    
  11  Prefactor     .10003E-03    32.090        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.537        45.674        .26261E-02   -1.4945    
  14  Prefactor     .65186E-02    16.725        .97051E-01   -1.5692    
  15  Prefactor     10.333        15.827        .31206E-02   -1.5065    
  16  norm          .10000E-03    .82084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9724        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2920        8.8917        .34801E-02   -1.5132    
  20  norm          .10000E-03    1.8101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.3534        11.871        .39726E-02   -1.5204    
  22  Prefactor     .10000E-03    9.3791        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10006E-03    14.410        .90823E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2515        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          39.768        13.927        .15890E-02   -1.4446    
  26  Prefactor     .10047E-03    35.743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .82290        .17113        .43907E-01   -.99225    
  28  Prefactor     1.1606        .18982        .54047E-01   -.87554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63068e-07
Minuit parameter uncertainties:
  1  0.0013856
  2  7.70651e-09
  3  0.994977
  4  2.29274e-05
  5  0.0075503
  6  5.37016
  7  0.00102574
  8  2.304e-07
  9  30.6146
  10  21.5714
  11  0.00204015
  12  2.73944e-07
  13  45.7846
  14  0.655475
  15  15.8338
  16  3.24801e-07
  17  1.30513e-06
  18  2.5321e-07
  19  8.89307
  20  9.20031e-08
  21  11.8757
  22  5.37497e-06
  23  0.00179398
  24  3.81332e-08
  25  13.9278
  26  0.00819578
  27  0.171239
  28  0.189932
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  3.248e-07  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.161e+00  1.899e-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:  8.229e-01  1.712e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849348/likelihoodResults_326937601_327196801_4FGL_J1454.4+5124_daily_bin338.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) = 5620.71195324
delta logL = -0.0056045091369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5620.70634923
delta logL = -5.03509909322e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9685       1.0000          .0000       5.0000    
     3 'Normalizat'    .82294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1606       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=   5620.706     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1455        .90712E-02** at limit **
   2  alpha         1.9686        3.4847        .42393       -.96473E-06
   3  Normalizat    .82290        .12701E-01    .43909E-01    .15023E-03
   4  Prefactor     1.1606        .14924E-01    .54047E-01    .11900E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.9686
  Normalizat = 0.822903
  Prefactor  = 1.16056
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.706     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6287        .13220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9686        2.8150        .50000       -.21419    
   3  Normalizat    .82290        .19162        .23848E-03   -.99225    
   4  Prefactor     1.1606        .22516        .23897E-03   -.87554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09449e-09
Minuit parameter uncertainties:
  1  2.24545e-05
  2  91.4745
  3  0.191777
  4  0.225349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849348': 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) = 5620.70634873
delta logL = 4.0017766878e-11

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  2.245e-05  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.969e+00  9.147e+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.161e+00  2.253e-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:  8.229e-01  1.918e-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/849348/cmap_HighResolution_326937601_327196801_4FGL_J1454.4+5124_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-05', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2021-09-10 13:01:05.918572', job_id='849348', GAL2='1.16', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631304065.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='338' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 13:01:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 849348: <4FGL_J1454.4+5124_daily_bin338> in cluster <slac> Done

Job <4FGL_J1454.4+5124_daily_bin338> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 12:46:08 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:46:10 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:46:10 2021
Terminated at Fri Sep 10 13:01:06 2021
Results reported at Fri Sep 10 13:01:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin338 223.625 51.409 326937601 327196801 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 :                                   755.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

