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


Performing analysis on: 4FGL_J1454.4+5124_daily_bin704
RA = 223.625, Dec = 51.409
tmin = 421804801, tmax = 422064001
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='850920', job_status='RUN', time_executed='2021-09-10 12:54:07.644807', time_epoch_executed='1631303647.64' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850920/ft1_4FGL_J1454.4+5124_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850920/ft2_4FGL_J1454.4+5124_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850920/ft1_4FGL_J1454.4+5124_daily_bin704.fits outfile=/scratch/kocevski/850920/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin704.fits ra=223.625 dec=51.409 rad=12.0 tmin=421804801.0 tmax=422064001.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.54
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850920/ft1_filtered_4FGL_J1454.4+5124_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/850920/ft2_4FGL_J1454.4+5124_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/850920/ltcube_421804801_422064001_4FGL_J1454.4+5124_daily_bin704.fits outfile=/scratch/kocevski/850920/expmap_421804801_422064001_4FGL_J1454.4+5124_daily_bin704.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/850920/ltcube_421804801_422064001_4FGL_J1454.4+5124_daily_bin704.fits
.....................!
real 190.43
user 185.21
sys 4.84

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/850920/ft1_filtered_4FGL_J1454.4+5124_daily_bin704.fits scfile=/scratch/kocevski/850920/ft2_4FGL_J1454.4+5124_daily_bin704.fits outfile=/scratch/kocevski/850920/cmap_421804801_422064001_4FGL_J1454.4+5124_daily_bin704.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=223.625 yref=51.409 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.182       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15031E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.455       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.088       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49210       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.222       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4021       1.0000         .10000E-03   10000.    
    25 'norm      '    12.091       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79466       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=   5911.358     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3480 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.183        44.870        .59118E-06    .36198E-05
   2  norm          .10000E-03    1.2177        .13315E-07** at limit **
   3  Prefactor     .10000E-03    135.57        .16761E-04** at limit **
   4  Prefactor     .10001E-03    296.88       -.13528E-03** at limit **
   5  Prefactor     .10000E-03    32.244        .18163E-04** at limit **
   6  Prefactor     .10000E-03    5.1935        .14066E-05** at limit **
   7  Prefactor     .10000E-03    12.145       -.11833E-05** at limit **
   8  Prefactor     4.5237        2.9415        .25594E-06    .15955E-02
   9  Prefactor     22.985        21.852       -.49106E-06    .99888E-04
  10  Prefactor     .10000E-03    16.978       -.47033E-05** at limit **
  11  Prefactor     .10000E-03    57.936        .12643E-04** at limit **
  12  Prefactor     14.457        22.068       -.42101E-06   -.34758E-05
  13  Prefactor     .10000E-03    14.483        .42857E-05** at limit **
  14  Prefactor     14.090        13.554       -.46179E-08    .26552E-04
  15  Prefactor     .10000E-03    5.3527       -.14149E-05** at limit **
  16  norm          5.0080        1.9176       -.72510E-08    .21299E-03
  17  Prefactor     .10000E-03    4.8747       -.22274E-07** at limit **
  18  Prefactor     .10000E-03    2.0652       -.97492E-08** at limit **
  19  Prefactor     .50973        3.1141       -.74963E-06    .24357E-04
  20  norm          .10000E-03    1.2689        .16039E-07** at limit **
  21  Prefactor     .10000E-03    4.7781        .18481E-07** at limit **
  22  Prefactor     .10000E-03    37.306       -.10529E-04** at limit **
  23  Prefactor     37.225        16.314       -.16956E-07    .19686E-03
  24  Prefactor     9.4030        8.1843        .38905E-06   -.98562E-05
  25  norm          12.093        11.039        .39360E-07   -.37414E-04
  26  Prefactor     .10000E-03    39.920       -.16505E-04** at limit **
  27  Normalizat    1.0560        .17090        .36470E-06    .54817E-03
  28  Prefactor     .79447        .18271        .83426E-07    .39294E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 35.183
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.5237
  Prefactor  = 22.9846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4571
  Prefactor  = 0.0001
  Prefactor  = 14.0896
  Prefactor  = 0.0001
  norm       = 5.00801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.509727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.225
  Prefactor  = 9.40303
  norm       = 12.0927
  Prefactor  = 0.0001
  Normalizat = 1.056
  Prefactor  = 0.794471
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.358     FROM HESSE     STATUS=OK           509 CALLS     3989 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.183        44.869        .67563E-04   -1.4521    
   2  norm          .10000E-03    1.2231        .82827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    135.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    298.57        .20469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3501        .34192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5237        2.9416        .99727E-04   -1.5283    
   9  Prefactor     22.985        21.872        .83555E-04   -1.4749    
  10  Prefactor     .10000E-03    17.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    58.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.457        22.080        .10535E-03   -1.4947    
  13  Prefactor     .10000E-03    14.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.090        13.552        .10671E-03   -1.4957    
  15  Prefactor     .10000E-03    5.3595        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0080        1.9177        .63387E-04   -1.5260    
  17  Prefactor     .10000E-03    4.9203        .16561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0729        .10789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .50973        13.398        .25704E-02   -1.5565    
  20  norm          .10000E-03    1.2725        .84535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7917        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.225        16.314        .65692E-04   -1.4487    
  24  Prefactor     9.4030        8.1767        .13070E-03   -1.5095    
  25  norm          12.093        11.037        .11520E-03   -1.5012    
  26  Prefactor     .10000E-03    39.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0560        .19949        .21768E-03   -.91177    
  28  Prefactor     .79447        .21245        .27545E-03   -.99932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59858e-10
Minuit parameter uncertainties:
  1  44.9125
  2  1.2024e-06
  3  1.15679e-06
  4  0.00357849
  5  2.74488e-05
  6  1.48873e-05
  7  5.8567e-06
  8  2.94165
  9  21.8801
  10  1.61367e-05
  11  1.37011e-05
  12  22.0924
  13  4.0745e-06
  14  13.5554
  15  3.6826e-07
  16  1.91769
  17  7.51497e-06
  18  4.01325e-07
  19  5.22732
  20  6.15997e-08
  21  1.43369e-06
  22  0.000135702
  23  16.3155
  24  8.17769
  25  11.0393
  26  1.91309e-06
  27  0.199628
  28  0.212669
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  5.008e+00  1.918e+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.945e-01  2.127e-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.056e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.18
Ra Dec: 223.625 51.409
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 7.53e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 5.39e-05 +/- 2.06e-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) = 5911.27438942
delta logL = 0.0837145110954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5911.26773351
delta logL = 0.090370420523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6532       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1028       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79848       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=   5911.268     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      228 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6536        28.604        .46642E-02    .11914E-03
   2  alpha         2.1029        3.5496        .18180        .72422E-04
   3  Normalizat    1.0463        .13028        .40816E-01    .56865E-05
   4  Prefactor     .79845        .10085        .43697E-01    .36620E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.6536
  alpha      = 2.1029
  Normalizat = 1.04628
  Prefactor  = 0.798454
 **********
 **   18 **HESSE 
 **********

 FCN=   5911.268     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6536        2.0196        .58895E-04   -1.5276    
   2  alpha         2.1029        .32022        .73710E-02   -.15951    
   3  Normalizat    1.0463        .19104        .21848E-03   -.91496    
   4  Prefactor     .79845        .21166        .27469E-03   -.99785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08821e-12
Minuit parameter uncertainties:
  1  2.01962
  2  0.321122
  3  0.191165
  4  0.211878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850920': 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) = 5911.26773323
delta logL = 0.0903707022344

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  4.654e+00  2.020e+00  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  2.103e+00  3.211e-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.985e-01  2.119e-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.046e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.30
Ra Dec: 223.625 51.409
Photon Index (Free Index): 2.10 +/- 0.32
Photon Flux (Free Index): 8.66e-08 +/- 4.10e-08
Energy Flux (Free Index): 4.74e-05 +/- 2.23e-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/850920/cmap_HighResolution_421804801_422064001_4FGL_J1454.4+5124_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.53e-08', energy_flux2='4.74e-05', photon_flux_error='2.88e-08', dlogl='9.04e-02', energy_flux='5.39e-05', photon_flux2='8.66e-08', job_status='DONE', time_completed='2021-09-10 13:05:53.756591', photon_index_error2='0.32', photon_index2='2.10', ts='30.18', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.06', time_epoch_completed='1631304353.76', return_code='0', job_id='850920', GAL2='0.80', EG2='1.05', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='4.10e-08', ts2='30.30', photon_index='1.97' WHERE bin_id='704' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 13:05:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 850920: <4FGL_J1454.4+5124_daily_bin704> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin704 223.625 51.409 421804801 422064001 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 :                                   706.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            889 sec.

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

