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


Performing analysis on: 4FGL_J1454.4+5124_daily_bin1002
RA = 223.625, Dec = 51.409
tmin = 499046401, tmax = 499305601
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='852452', job_status='RUN', time_executed='2021-09-10 12:56:15.709766', time_epoch_executed='1631303775.71' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/852452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/852452/ft1_4FGL_J1454.4+5124_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/852452/ft2_4FGL_J1454.4+5124_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/852452/ft1_4FGL_J1454.4+5124_daily_bin1002.fits outfile=/scratch/kocevski/852452/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin1002.fits ra=223.625 dec=51.409 rad=12.0 tmin=499046401.0 tmax=499305601.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.35
user 4.03
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/852452/ft2_4FGL_J1454.4+5124_daily_bin1002.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/852452/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/852452/ft1_filtered_4FGL_J1454.4+5124_daily_bin1002.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/852452/ft1_filtered_4FGL_J1454.4+5124_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/852452/ft2_4FGL_J1454.4+5124_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/852452/ltcube_499046401_499305601_4FGL_J1454.4+5124_daily_bin1002.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/852452/ft2_4FGL_J1454.4+5124_daily_bin1002.fits
.....................!
real 11.83
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/852452/ft1_filtered_4FGL_J1454.4+5124_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/852452/ft2_4FGL_J1454.4+5124_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/852452/ltcube_499046401_499305601_4FGL_J1454.4+5124_daily_bin1002.fits outfile=/scratch/kocevski/852452/expmap_499046401_499305601_4FGL_J1454.4+5124_daily_bin1002.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/852452/ltcube_499046401_499305601_4FGL_J1454.4+5124_daily_bin1002.fits
.....................!
real 190.65
user 185.11
sys 5.11

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/852452/ft1_filtered_4FGL_J1454.4+5124_daily_bin1002.fits scfile=/scratch/kocevski/852452/ft2_4FGL_J1454.4+5124_daily_bin1002.fits outfile=/scratch/kocevski/852452/cmap_499046401_499305601_4FGL_J1454.4+5124_daily_bin1002.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/852452/ft1_filtered_4FGL_J1454.4+5124_daily_bin1002.fits scfile=/scratch/kocevski/852452/ft2_4FGL_J1454.4+5124_daily_bin1002.fits outfile=/scratch/kocevski/852452/cmap_HighResolution_499046401_499305601_4FGL_J1454.4+5124_daily_bin1002.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5528       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22227E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48866E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9133       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2102       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .67122       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21043       1.0000         .10000E-03   10000.    
    25 'norm      '    18.303       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2339       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75901       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=   8390.899     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3556 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.904       -.61240E-05** at limit **
   2  norm          16.758        5.9701        .18451E-06    .54364E-03
   3  Prefactor     .10000E-03    125.78        .11659E-04** at limit **
   4  Prefactor     .10000E-03    28.805       -.22006E-05** at limit **
   5  Prefactor     9.8029        39.224       -.34311E-05    .37230E-04
   6  Prefactor     4.9346        4.1701        .14530E-06   -.25305E-05
   7  Prefactor     8.2199        20.287       -.54392E-06   -.13326E-03
   8  Prefactor     2.5543        2.5058        .44513E-06    .20386E-02
   9  Prefactor     32.144        26.631        .19657E-05    .55842E-03
  10  Prefactor     .10002E-03    144.99       -.10316E-03** at limit **
  11  Prefactor     21.718        43.503       -.82187E-05   -.12499E-04
  12  Prefactor     .10002E-03    113.86        .68942E-04** at limit **
  13  Prefactor     .10000E-03    27.033        .10495E-04** at limit **
  14  Prefactor     .10003E-03    10.465        .31627E-05** at limit **
  15  Prefactor     .10000E-03    7.4496        .29900E-05** at limit **
  16  norm          3.9137        1.5647        .27381E-07   -.10622E-03
  17  Prefactor     .10000E-03    7.1864       -.28545E-05** at limit **
  18  Prefactor     2.2093        3.5194       -.30042E-06   -.60914E-03
  19  Prefactor     .10000E-03    3.8622        .13674E-07** at limit **
  20  norm          .67135        1.5610       -.42493E-06   -.20217E-02
  21  Prefactor     .10000E-03    1.2867       -.62117E-08** at limit **
  22  Prefactor     .10000E-03    5.0274        .27570E-07** at limit **
  23  Prefactor     .10000E-03    1.8831        .10202E-07** at limit **
  24  Prefactor     .25397        5.7761       -.24274E-05    .80631E-04
  25  norm          18.282        9.8001        .12784E-05    .10444E-02
  26  Prefactor     .10000E-03    31.359       -.70621E-05** at limit **
  27  Normalizat    1.2338        .15269        .11073E-06    .26809E-03
  28  Prefactor     .75918        .15919        .12512E-06    .11962E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 16.7579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80294
  Prefactor  = 4.93462
  Prefactor  = 8.2199
  Prefactor  = 2.55426
  Prefactor  = 32.1442
  Prefactor  = 0.000100021
  Prefactor  = 21.7176
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 3.91368
  Prefactor  = 0.0001
  Prefactor  = 2.20935
  Prefactor  = 0.0001
  norm       = 0.67135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.253972
  norm       = 18.2818
  Prefactor  = 0.0001
  Normalizat = 1.23379
  Prefactor  = 0.759176
 **********
 **   18 **HESSE 
 **********

 FCN=   8390.899     FROM HESSE     STATUS=OK           519 CALLS     4075 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.758        5.9709        .97842E-04   -1.4889    
   3  Prefactor     .10000E-03    125.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8029        39.121        .12796E-03   -1.5082    
   6  Prefactor     4.9346        4.1584        .16161E-03   -1.5264    
   7  Prefactor     8.2199        20.411        .13985E-03   -1.5134    
   8  Prefactor     2.5543        2.4861        .13439E-03   -1.5388    
   9  Prefactor     32.144        26.693        .70676E-04   -1.4573    
  10  Prefactor     .10002E-03    145.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.718        42.308        .85932E-04   -1.4776    
  12  Prefactor     .10002E-03    115.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    51.376        .54524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9137        1.5555        .69374E-04   -1.5312    
  17  Prefactor     .10000E-03    7.4313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2093        3.4983        .20932E-03   -1.5411    
  19  Prefactor     .10000E-03    3.9045        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .67135        1.2036        .16929E-02   -1.5544    
  21  Prefactor     .10000E-03    1.2886        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8858        .12275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .25397        37.146        .36299E-02   -1.5607    
  25  norm          18.282        9.9946        .93617E-04   -1.4853    
  26  Prefactor     .10000E-03    31.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2338        .18700        .21976E-03   -.85565    
  28  Prefactor     .75918        .19383        .29697E-03   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71922e-09
Minuit parameter uncertainties:
  1  1.5863e-06
  2  5.97113
  3  2.70929e-06
  4  4.16603e-05
  5  39.2112
  6  4.15861
  7  20.4279
  8  2.48617
  9  26.7025
  10  0.00355008
  11  42.3666
  12  0.00299401
  13  3.83064e-05
  14  0.00252954
  15  1.13377e-06
  16  1.55555
  17  3.03868e-05
  18  3.49865
  19  3.18799e-06
  20  1.20365
  21  3.80026e-07
  22  1.60631e-07
  23  2.87624e-07
  24  6.14566
  25  9.99552
  26  2.42497e-07
  27  0.187099
  28  0.193999
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  3.914e+00  1.556e+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:  7.592e-01  1.940e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.234e+00  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.10
Ra Dec: 223.625 51.409
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 1.67e-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) = 8389.96511048
delta logL = 0.933452843918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8389.95351102
delta logL = 0.945052306495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7167       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4654       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74869       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=   8389.954     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7163        1.6207        .52366E-02   -.48284E-04
   2  alpha         1.4653        .29091        .27714       -.46878E-04
   3  Normalizat    1.2613        .14532        .49267E-01    .36747E-05
   4  Prefactor     .74869        .15833        .67604E-01    .29430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.71634
  alpha      = 1.4653
  Normalizat = 1.26135
  Prefactor  = 0.748687
 **********
 **   18 **HESSE 
 **********

 FCN=   8389.954     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7163        1.8078        .74290E-04   -1.5322    
   2  alpha         1.4653        .35109        .11255E-01   -.42671    
   3  Normalizat    1.2613        .17443        .21780E-03   -.84728    
   4  Prefactor     .74869        .19016        .29912E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33555e-12
Minuit parameter uncertainties:
  1  1.8078
  2  0.352499
  3  0.174514
  4  0.190323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/852452': 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) = 8389.953511
delta logL = 0.945052328203

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  3.716e+00  1.808e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.465e+00  3.525e-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:  7.487e-01  1.903e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.261e+00  1.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.98
Ra Dec: 223.625 51.409
Photon Index (Free Index): 1.47 +/- 0.35
Photon Flux (Free Index): 3.07e-08 +/- 2.01e-08
Energy Flux (Free Index): 8.21e-05 +/- 5.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/852452/cmap_HighResolution_499046401_499305601_4FGL_J1454.4+5124_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='8.21e-05', photon_flux_error='2.34e-08', dlogl='9.45e-01', energy_flux='4.21e-05', photon_flux2='3.07e-08', job_status='DONE', time_completed='2021-09-10 13:11:04.912884', photon_index_error2='0.35', photon_index2='1.47', ts='21.10', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='5.67e-05', EG='1.23', time_epoch_completed='1631304664.91', return_code='0', job_id='852452', GAL2='0.75', EG2='1.26', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='2.01e-08', ts2='22.98', photon_index='1.97' WHERE bin_id='1002' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 13:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 852452: <4FGL_J1454.4+5124_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1454.4+5124_daily_bin1002> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 12:56:02 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:56:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:56:03 2021
Terminated at Fri Sep 10 13:11:05 2021
Results reported at Fri Sep 10 13:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin1002 223.625 51.409 499046401 499305601 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 :                                   887.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

