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


Performing analysis on: 4FGL_J1454.4+5124_daily_bin840
RA = 223.625, Dec = 51.409
tmin = 457056001, tmax = 457315201
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='851119', job_status='RUN', time_executed='2021-09-10 12:54:49.657834', time_epoch_executed='1631303689.66' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='840'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851119

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851119/ft1_4FGL_J1454.4+5124_daily_bin840.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851119/ft2_4FGL_J1454.4+5124_daily_bin840.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851119/ft1_4FGL_J1454.4+5124_daily_bin840.fits outfile=/scratch/kocevski/851119/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin840.fits ra=223.625 dec=51.409 rad=12.0 tmin=457056001.0 tmax=457315201.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 4.63
user 4.16
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851119/ft1_filtered_4FGL_J1454.4+5124_daily_bin840.fits" evtable="EVENTS" scfile=/scratch/kocevski/851119/ft2_4FGL_J1454.4+5124_daily_bin840.fits sctable="SC_DATA" outfile=/scratch/kocevski/851119/ltcube_457056001_457315201_4FGL_J1454.4+5124_daily_bin840.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/851119/ft2_4FGL_J1454.4+5124_daily_bin840.fits
.....................!
real 11.84
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851119/ft1_filtered_4FGL_J1454.4+5124_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/851119/ft2_4FGL_J1454.4+5124_daily_bin840.fits sctable="SC_DATA" expcube=/scratch/kocevski/851119/ltcube_457056001_457315201_4FGL_J1454.4+5124_daily_bin840.fits outfile=/scratch/kocevski/851119/expmap_457056001_457315201_4FGL_J1454.4+5124_daily_bin840.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/851119/ltcube_457056001_457315201_4FGL_J1454.4+5124_daily_bin840.fits
.....................!
real 191.84
user 187.30
sys 4.18

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/851119/ft1_filtered_4FGL_J1454.4+5124_daily_bin840.fits scfile=/scratch/kocevski/851119/ft2_4FGL_J1454.4+5124_daily_bin840.fits outfile=/scratch/kocevski/851119/cmap_457056001_457315201_4FGL_J1454.4+5124_daily_bin840.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851119/ft1_filtered_4FGL_J1454.4+5124_daily_bin840.fits scfile=/scratch/kocevski/851119/ft2_4FGL_J1454.4+5124_daily_bin840.fits outfile=/scratch/kocevski/851119/cmap_HighResolution_457056001_457315201_4FGL_J1454.4+5124_daily_bin840.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=223.625 yref=51.409 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6241       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.948       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2151       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5485       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3968       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.106       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74213       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1781       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=   6442.421     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3480 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.455        .40006E-06** at limit **
   2  norm          3.6236        3.7111        .10513E-06   -.83973E-04
   3  Prefactor     .10000E-03    173.03       -.15715E-05** at limit **
   4  Prefactor     21.942        37.786       -.19178E-05   -.15298E-04
   5  Prefactor     .10000E-03    14.792       -.22596E-06** at limit **
   6  Prefactor     3.4104        4.5088        .20685E-05    .61245E-04
   7  Prefactor     .10000E-03    38.764       -.41516E-07** at limit **
   8  Prefactor     4.5537        2.5352        .48483E-07   -.90903E-04
   9  Prefactor     .10000E-03    10.789        .34540E-06** at limit **
  10  Prefactor     .10000E-03    6.7590        .57096E-06** at limit **
  11  Prefactor     .10000E-03    28.407        .25101E-06** at limit **
  12  Prefactor     45.273        25.288       -.19839E-07   -.35021E-05
  13  Prefactor     .10000E-03    60.215        .16747E-05** at limit **
  14  Prefactor     3.2159        5.0419        .31880E-06   -.66335E-03
  15  Prefactor     .10000E-03    8.7130       -.37569E-06** at limit **
  16  norm          2.1562        1.3189        .36055E-08    .40019E-05
  17  Prefactor     .10000E-03    5.6612        .11155E-05** at limit **
  18  Prefactor     1.5495        5.9105       -.14961E-06   -.17377E-03
  19  Prefactor     .10000E-03    4.7174       -.17809E-06** at limit **
  20  norm          5.3978        3.4064        .61619E-07    .12788E-04
  21  Prefactor     .10000E-03    3.2590       -.31747E-07** at limit **
  22  Prefactor     .10000E-03    5.9690       -.13231E-05** at limit **
  23  Prefactor     .10000E-03    4.5471        .15215E-06** at limit **
  24  Prefactor     .10000E-03    3.1073       -.22843E-07** at limit **
  25  norm          10.106        7.9090       -.91055E-07   -.16324E-04
  26  Prefactor     .10000E-03    40.936       -.21825E-05** at limit **
  27  Normalizat    .74219        .15076       -.97446E-07   -.35186E-04
  28  Prefactor     1.1781        .17558       -.27376E-06   -.10554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.62361
  Prefactor  = 0.0001
  Prefactor  = 21.9422
  Prefactor  = 0.0001
  Prefactor  = 3.41042
  Prefactor  = 0.0001
  Prefactor  = 4.55367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.2732
  Prefactor  = 0.0001
  Prefactor  = 3.21589
  Prefactor  = 0.0001
  norm       = 2.15623
  Prefactor  = 0.0001
  Prefactor  = 1.54954
  Prefactor  = 0.0001
  norm       = 5.3978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1056
  Prefactor  = 0.0001
  Normalizat = 0.742195
  Prefactor  = 1.17808
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.421     FROM HESSE     STATUS=OK           515 CALLS     3995 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6236        3.7092        .14919E-03   -1.5327    
   3  Prefactor     .10000E-03    173.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.942        37.786        .85498E-04   -1.4771    
   5  Prefactor     .10000E-03    14.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4104        4.5133        .18932E-03   -1.5339    
   7  Prefactor     .10000E-03    39.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5537        2.5308        .89237E-04   -1.5281    
   9  Prefactor     .10000E-03    10.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.273        25.311        .59587E-04   -1.4361    
  13  Prefactor     .10000E-03    60.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2159        11.071        .11297E-02   -1.5349    
  15  Prefactor     .10000E-03    8.7727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1562        1.3268        .69681E-04   -1.5414    
  17  Prefactor     .10000E-03    5.7090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5495        5.9917        .34236E-03   -1.5459    
  19  Prefactor     .10000E-03    4.8190        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3978        3.4007        .11331E-03   -1.5243    
  21  Prefactor     .10000E-03    3.2756        .14136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.5655        .16711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.1158        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.106        7.9118        .12605E-03   -1.5072    
  26  Prefactor     .10000E-03    40.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .74219        .17902        .24489E-03   -1.0225    
  28  Prefactor     1.1781        .20974        .23504E-03   -.87009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73002e-09
Minuit parameter uncertainties:
  1  7.84879e-06
  2  3.70939
  3  7.41335e-05
  4  37.8272
  5  1.96482e-05
  6  4.51371
  7  0.000208623
  8  2.53083
  9  4.28095e-06
  10  5.40847e-06
  11  1.31354e-06
  12  25.317
  13  4.61601e-05
  14  11.0778
  15  2.25962e-07
  16  1.32681
  17  1.00523e-05
  18  5.99404
  19  7.7919e-07
  20  3.40082
  21  3.18943e-08
  22  1.08535e-05
  23  2.39118e-06
  24  1.62287e-06
  25  7.91257
  26  4.67621e-05
  27  0.179161
  28  0.209889
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  2.156e+00  1.327e+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

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.178e+00  2.099e-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.422e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.23
Ra Dec: 223.625 51.409
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.43e-05

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) = 6441.28535161
delta logL = 1.1353603886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6441.20208459
delta logL = 1.21862740377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4309       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0954       1.0000          .0000       5.0000    
     3 'Normalizat'    .75193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1846       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=   6441.202     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      214 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4310        1.0292        .90280E-02   -.30085E-03
   2  alpha         1.0954        .36797        .31984       -.41671E-04
   3  Normalizat    .75195        .14660        .42980E-01    .19796E-04
   4  Prefactor     1.1846        .17435        .53079E-01    .43812E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43105
  alpha      = 1.09538
  Normalizat = 0.751949
  Prefactor  = 1.18462
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.202     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4310        1.4128        .63421E-04   -1.5469    
   2  alpha         1.0954        .53102        .13183E-01   -.59662    
   3  Normalizat    .75195        .17472        .24352E-03   -1.0188    
   4  Prefactor     1.1846        .20795        .23468E-03   -.86806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10242e-12
Minuit parameter uncertainties:
  1  1.41279
  2  0.537035
  3  0.174851
  4  0.208098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851119': 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) = 6441.20208458
delta logL = 1.21862741852

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.431e+00  1.413e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.095e+00  5.370e-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.185e+00  2.081e-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.519e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.66
Ra Dec: 223.625 51.409
Photon Index (Free Index): 1.10 +/- 0.54
Photon Flux (Free Index): 1.05e-08 +/- 9.57e-09
Energy Flux (Free Index): 8.11e-05 +/- 8.77e-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/851119/cmap_HighResolution_457056001_457315201_4FGL_J1454.4+5124_daily_bin840.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='8.11e-05', photon_flux_error='1.99e-08', dlogl='1.22e+00', energy_flux='2.32e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-10 13:07:23.584384', photon_index_error2='0.54', photon_index2='1.10', ts='16.23', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='8.77e-05', EG='0.74', time_epoch_completed='1631304443.58', return_code='0', job_id='851119', GAL2='1.18', EG2='0.75', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='9.57e-09', ts2='18.66', photon_index='1.97' WHERE bin_id='840' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 13:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 851119: <4FGL_J1454.4+5124_daily_bin840> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin840 223.625 51.409 457056001 457315201 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 :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

