/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 60 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1454.4+5124_daily_bin31
RA = 223.625, Dec = 51.409
tmin = 247363201, tmax = 247622401
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='847754', job_status='RUN', time_executed='2021-09-10 12:42:17.184120', time_epoch_executed='1631302937.18' WHERE source_name='4FGL J1454.4+5124' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847754/ft1_4FGL_J1454.4+5124_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847754/ft2_4FGL_J1454.4+5124_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847754/ft1_4FGL_J1454.4+5124_daily_bin31.fits outfile=/scratch/kocevski/847754/ft1_filteredMKT_4FGL_J1454.4+5124_daily_bin31.fits ra=223.625 dec=51.409 rad=12.0 tmin=247363201.0 tmax=247622401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.45
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847754/ft1_filtered_4FGL_J1454.4+5124_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/847754/ft2_4FGL_J1454.4+5124_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/847754/ltcube_247363201_247622401_4FGL_J1454.4+5124_daily_bin31.fits outfile=/scratch/kocevski/847754/expmap_247363201_247622401_4FGL_J1454.4+5124_daily_bin31.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/847754/ltcube_247363201_247622401_4FGL_J1454.4+5124_daily_bin31.fits
.....................!
real 190.47
user 185.00
sys 4.81

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/847754/ft1_filtered_4FGL_J1454.4+5124_daily_bin31.fits scfile=/scratch/kocevski/847754/ft2_4FGL_J1454.4+5124_daily_bin31.fits outfile=/scratch/kocevski/847754/cmap_247363201_247622401_4FGL_J1454.4+5124_daily_bin31.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847754/ft1_filtered_4FGL_J1454.4+5124_daily_bin31.fits scfile=/scratch/kocevski/847754/ft2_4FGL_J1454.4+5124_daily_bin31.fits outfile=/scratch/kocevski/847754/cmap_HighResolution_247363201_247622401_4FGL_J1454.4+5124_daily_bin31.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11909E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0688       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5941       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2724       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9314       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13295E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .96569       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.239       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.704       1.0000         .10000E-03   10000.    
    25 'norm      '    .14711E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75566       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2105       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=   6527.044     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3034 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.990       -.75843E-06** at limit **
   2  norm          .10000E-03    1.5436       -.48635E-08** at limit **
   3  Prefactor     .10000E-03    208.63       -.33715E-05** at limit **
   4  Prefactor     .10000E-03    13.582        .32585E-05** at limit **
   5  Prefactor     .10000E-03    20.542        .15886E-05** at limit **
   6  Prefactor     .10000E-03    2.6873       -.10868E-06** at limit **
   7  Prefactor     17.220        17.329        .22210E-06   -.34730E-04
   8  Prefactor     2.0688        1.8157       -.55505E-07   -.32086E-04
   9  Prefactor     .10000E-03    9.8144        .30318E-06** at limit **
  10  Prefactor     5.6307        15.589       -.11526E-07   -.60145E-04
  11  Prefactor     .10000E-03    20.282        .17418E-06** at limit **
  12  Prefactor     .10000E-03    12.840       -.21818E-05** at limit **
  13  Prefactor     25.893        24.657        .26385E-05   -.19002E-03
  14  Prefactor     .10000E-03    10.270       -.43681E-06** at limit **
  15  Prefactor     6.5962        13.545        .10618E-06   -.10488E-04
  16  norm          .10000E-03    .54962        .31601E-07** at limit **
  17  Prefactor     2.2763        5.9953       -.37829E-05   -.28968E-03
  18  Prefactor     4.9334        6.3468       -.15294E-05   -.20529E-05
  19  Prefactor     .10002E-03    4.8236        .52581E-06** at limit **
  20  norm          .96789        1.7658        .77750E-09   -.65578E-04
  21  Prefactor     .10000E-03    2.7645       -.15881E-07** at limit **
  22  Prefactor     40.262        28.329       -.15553E-05    .13355E-03
  23  Prefactor     10.227        14.554        .79389E-06   -.33457E-04
  24  Prefactor     10.729        8.1088       -.22027E-06   -.14752E-04
  25  norm          .10000E-03    19.696       -.13029E-06** at limit **
  26  Prefactor     .10000E-03    62.658        .79502E-06** at limit **
  27  Normalizat    .75548        .15888        .59673E-06   -.49198E-04
  28  Prefactor     1.2108        .17830        .85835E-07   -.46957E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2196
  Prefactor  = 2.06879
  Prefactor  = 0.0001
  Prefactor  = 5.63069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.8932
  Prefactor  = 0.0001
  Prefactor  = 6.5962
  norm       = 0.0001
  Prefactor  = 2.27634
  Prefactor  = 4.93344
  Prefactor  = 0.000100022
  norm       = 0.967895
  Prefactor  = 0.0001
  Prefactor  = 40.2622
  Prefactor  = 10.2268
  Prefactor  = 10.7294
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.755478
  Prefactor  = 1.21076
 **********
 **   18 **HESSE 
 **********

 FCN=   6527.044     FROM HESSE     STATUS=OK           521 CALLS     3555 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    32.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5566        .97979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    208.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3577        .25444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.220        17.202        .96555E-04   -1.4878    
   8  Prefactor     2.0688        1.8161        .96794E-04   -1.5420    
   9  Prefactor     .10000E-03    9.8288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6307        15.549        .16936E-03   -1.5233    
  11  Prefactor     .10000E-03    20.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.893        24.371        .78704E-04   -1.4690    
  14  Prefactor     .10000E-03    10.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5962        13.383        .15627E-03   -1.5194    
  16  norm          .10000E-03    .87993        .11544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2763        6.3665        .27243E-03   -1.5406    
  18  Prefactor     4.9334        6.3511        .18111E-03   -1.5264    
  19  Prefactor     .10002E-03    16.260        .32998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .96789        1.3597        .13932E-02   -1.5511    
  21  Prefactor     .10000E-03    2.7665        .13101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     40.262        28.031        .63190E-04   -1.4438    
  23  Prefactor     10.227        14.372        .12529E-03   -1.5068    
  24  Prefactor     10.729        8.0361        .12246E-03   -1.5053    
  25  norm          .10000E-03    20.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    62.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .75548        .18828        .24827E-03   -1.0174    
  28  Prefactor     1.2108        .21350        .23548E-03   -.86001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74168e-09
Minuit parameter uncertainties:
  1  7.14196e-05
  2  1.97762e-06
  3  0.000804338
  4  0.000202356
  5  0.000131889
  6  1.53108e-05
  7  17.2074
  8  1.81616
  9  2.95201e-05
  10  15.5601
  11  1.47481e-05
  12  0.000127103
  13  24.38
  14  2.62197e-05
  15  13.3892
  16  3.58142e-06
  17  6.36842
  18  6.35194
  19  0.00118366
  20  1.35978
  21  4.06359e-06
  22  28.0402
  23  14.3773
  24  8.03688
  25  5.03406e-05
  26  0.000122312
  27  0.188445
  28  0.213657
Done.

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

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  3.581e-06  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
309         beta:  5.547e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
310           Eb:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.211e+00  2.137e-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.555e-01  1.884e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847754/likelihoodResults_247363201_247622401_4FGL_J1454.4+5124_daily_bin31.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) = 6527.04971427
delta logL = -0.0053907241645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6527.04432454
delta logL = -9.92388777377e-07

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 'alpha     '    1.9725       1.0000          .0000       5.0000    
     3 'Normalizat'    .75550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6527.044     FROM MIGRAD    STATUS=FAILED        88 CALLS      246 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    76.063        .11515E-02** at limit **
   2  alpha         2.0150        3.3072        .50000       -.94403E-05
   3  Normalizat    .75548        .38291E-01    .24827E-03    .23573E-03
   4  Prefactor     1.2108        .45137E-01    .23548E-03    .24055E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6527.044     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      404 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    76.063        .15387E-03** at limit **
   2  alpha         2.0150        3.3072        .31713E-04   -.94403E-05
   3  Normalizat    .75548        .38291E-01    .49078E-06    .23573E-03
   4  Prefactor     1.2108        .45137E-01    .35848E-06    .24055E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6527.044     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      483 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .92535        .46059E-04** at limit **
   2  alpha         2.0453        3.9455        .50000        .12672E-05
   3  Normalizat    .75548        .18046        .19862E-05   -.68686E-05
   4  Prefactor     1.2108        .21273        .94194E-05   -.13759E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04525
  Normalizat = 0.755478
  Prefactor  = 1.21076
 **********
 **   18 **HESSE 
 **********

 FCN=   6527.044     FROM HESSE     STATUS=OK            27 CALLS      510 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .88829        .92118E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0453        3.8889        .50000       -.18292    
   3  Normalizat    .75548        .18052        .39724E-06   -1.0174    
   4  Prefactor     1.2108        .21306        .18839E-05   -.86001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3757e-09
Minuit parameter uncertainties:
  1  4.13433e-06
  2  71.9881
  3  0.180658
  4  0.213216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847754': 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) = 6527.04432317
delta logL = 3.76653588319e-07

Extracting fit parameters...

4FGL J1454.4+5124
   Spectrum: LogParabola
307         norm:  1.000e-04  4.134e-06  1.000e-04  1.000e+04 ( 1.000e-12)
308        alpha:  2.045e+00  7.199e+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.211e+00  2.132e-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.555e-01  1.807e-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/847754/cmap_HighResolution_247363201_247622401_4FGL_J1454.4+5124_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-10 12:56:03.469188', job_id='847754', GAL2='1.21', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631303763.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='31' AND source_name='4FGL J1454.4+5124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 847754: <4FGL_J1454.4+5124_daily_bin31> in cluster <slac> Done

Job <4FGL_J1454.4+5124_daily_bin31> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 12:41:06 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:41:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:41:07 2021
Terminated at Fri Sep 10 12:56:03 2021
Results reported at Fri Sep 10 12:56:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.4+5124_daily_bin31 223.625 51.409 247363201 247622401 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 :                                   824.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

