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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1014
RA = 208.718, Dec = -10.6932
tmin = 502156801, tmax = 502416001
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='55437', job_status='RUN', time_executed='2021-09-08 17:35:06.708222', time_epoch_executed='1631147706.71' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55437

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55437/ft1_4FGL_J1354.8-1041_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55437/ft1_4FGL_J1354.8-1041_daily_bin1014.fits outfile=/scratch/kocevski/55437/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1014.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=502156801.0 tmax=502416001.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.08
user 3.80
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.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/55437/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.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 1.24
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/55437/ltcube_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.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/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits
.....................!
real 12.35
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/55437/ltcube_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.fits outfile=/scratch/kocevski/55437/expmap_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.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/55437/ltcube_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.fits
.....................!
real 193.30
user 186.97
sys 5.92

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1354.8-1041 @ 208.718 -10.6932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits scfile=/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits outfile=/scratch/kocevski/55437/cmap_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.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=208.718 yref=-10.6932 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits scfile=/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits outfile=/scratch/kocevski/55437/cmap_HighResolution_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.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=208.718 yref=-10.6932 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55437/Model_4FGL_J1354.8-1041_daily_bin1014.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/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits.....................!
real 53.89
user 52.52
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits', '/scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits', expMap='/scratch/kocevski/55437/expmap_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.fits', expCube='/scratch/kocevski/55437/ltcube_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55437/Model_4FGL_J1354.8-1041_daily_bin1014.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1354.8-1041'

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  2.768e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.271e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/55437/ft1_filtered_4FGL_J1354.8-1041_daily_bin1014.fits
Spacecraft file(s): /scratch/kocevski/55437/ft2_4FGL_J1354.8-1041_daily_bin1014.fits
Exposure map: /scratch/kocevski/55437/expmap_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.fits
Exposure cube: /scratch/kocevski/55437/ltcube_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55437/Model_4FGL_J1354.8-1041_daily_bin1014.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) = 6621.67413358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2351       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.058       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7313       1.0000         .10000E-03   10000.    
     6 'norm      '    .10601E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .95737E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4822       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.430       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0851       1.0000         .10000E-03   10000.    
    16 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.935       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87549       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6621.670     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2523 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2448        .19091E-06** at limit **
   2  Prefactor     7.2351        7.8138        .77124E-07    .29178E-05
   3  Prefactor     5.0625        8.1652        .16175E-05   -.11150E-02
   4  Prefactor     18.050        19.495       -.26594E-05   -.24335E-03
   5  norm          5.7314        2.0251       -.28128E-07   -.45741E-04
   6  norm          .10000E-03    2.5093        .76732E-07** at limit **
   7  norm          .10001E-03    5.5582        .24250E-06** at limit **
   8  Prefactor     .10000E-03    19.742       -.10076E-05** at limit **
   9  norm          .10000E-03    11.428        .33158E-05** at limit **
  10  Prefactor     2.4794        9.7822        .13267E-06   -.67991E-04
  11  norm          .10000E-03    1.9962        .69013E-08** at limit **
  12  Prefactor     .10000E-03    3.5018       -.44580E-06** at limit **
  13  Prefactor     .10000E-03    4.9737       -.17549E-06** at limit **
  14  Prefactor     43.434        50.643        .30779E-05    .76422E-04
  15  norm          8.0862        6.8394        .34386E-06   -.92246E-03
  16  norm          .10000E-03    1.6321       -.47463E-08** at limit **
  17  norm          .10000E-03    8.1145       -.49523E-06** at limit **
  18  norm          10.933        7.7864        .76046E-07   -.31802E-03
  19  Prefactor     .10000E-03    29.616       -.23743E-05** at limit **
  20  Prefactor     .10000E-03    23.179        .41740E-05** at limit **
  21  norm          .10000E-03    13.019       -.28125E-05** at limit **
  22  Normalizat    .87548        .25691        .32149E-06    .57193E-05
  23  Prefactor     1.1558        .13326       -.20730E-06    .81573E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.2351
  Prefactor  = 5.06247
  Prefactor  = 18.0496
  norm       = 5.73138
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.47936
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 43.4342
  norm       = 8.0862
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.9328
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.875478
  Prefactor  = 1.15584
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.670     FROM HESSE     STATUS=OK           368 CALLS     2891 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2351        7.8350        .14912E-03   -1.5170    
   3  Prefactor     5.0625        11.360        .89348E-03   -1.5258    
   4  Prefactor     18.050        19.111        .94250E-04   -1.4858    
   5  norm          5.7314        2.0324        .64866E-04   -1.5229    
   6  norm          .10000E-03    2.5335        .12534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    16.987        .35610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4794        9.7964        .25948E-03   -1.5393    
  11  norm          .10000E-03    2.0051        .11225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.398        .28546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9747        .17725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.434        50.550        .60833E-04   -1.4389    
  15  norm          8.0862        7.1249        .70502E-03   -1.5139    
  16  norm          .10000E-03    3.7025        .19955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.1561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.933        7.8094        .60578E-03   -1.5047    
  19  Prefactor     .10000E-03    29.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87548        .29814        .38550E-03   -.97327    
  23  Prefactor     1.1558        .15364        .18373E-03   -.87701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73614e-09
Minuit parameter uncertainties:
  1  5.95118e-06
  2  7.83613
  3  11.3651
  4  19.1173
  5  2.03239
  6  3.64745e-05
  7  0.000756214
  8  5.94083e-05
  9  0.000168409
  10  9.80272
  11  1.53397e-06
  12  0.000308986
  13  6.3492e-06
  14  50.5995
  15  7.12564
  16  5.95504e-06
  17  2.15716e-05
  18  7.81012
  19  0.000199324
  20  0.000295433
  21  0.000150456
  22  0.298699
  23  0.153695
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  8.086e+00  7.126e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.271e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.156e+00  1.537e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.755e-01  2.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 208.718 -10.693
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.39e-05

TS (Fixed Index): 1.90
Ra Dec: 208.718 -10.693
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55437/likelihoodResults_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.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): 0
logL (Free Index) = 6620.33025447
delta logL = 1.34013168309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6620.31015331
delta logL = 1.3602328393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2439       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1250       1.0000          .0000       5.0000    
     3 'Normalizat'    .90869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6620.310     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2478        6.2148        .32954E-02    .11241E-02
   2  alpha         1.1252        .41060        .37295       -.41697E-04
   3  Normalizat    .90877        .23987        .85536E-01    .17368E-04
   4  Prefactor     1.1405        .13022        .36219E-01   -.91640E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.24776
  alpha      = 1.12523
  Normalizat = 0.90877
  Prefactor  = 1.14046
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.310     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2478        8.0155        .65909E-03   -1.5100    
   2  alpha         1.1252        .55514        .15649E-01   -.58225    
   3  Normalizat    .90877        .27409        .37874E-03   -.96153    
   4  Prefactor     1.1405        .14928        .18456E-03   -.88184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19367e-09
Minuit parameter uncertainties:
  1  8.01641
  2  0.561892
  3  0.274515
  4  0.149336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55437': 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) = 6620.31015308
delta logL = 1.36023307302

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  9.248e+00  8.016e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.125e+00  5.619e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.140e+00  1.493e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.088e-01  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 208.718 -10.693
Photon Index (Free Index): 1.13 +/- 0.56
Photon Flux (Free Index): 2.43e-08 +/- 2.01e-08
Energy Flux (Free Index): 5.52e-05 +/- 5.24e-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/55437/cmap_HighResolution_502156801_502416001_4FGL_J1354.8-1041_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-05', comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='5.52e-05', photon_flux_error='3.70e-08', dlogl='1.36e+00', energy_flux='1.58e-05', photon_flux2='2.43e-08', job_status='DONE', time_completed='2021-09-08 17:45:36.616494', photon_index_error2='0.56', photon_index2='1.13', ts='1.90', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='5.24e-05', EG='0.88', time_epoch_completed='1631148336.62', return_code='0', job_id='55437', GAL2='1.14', EG2='0.91', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='2.01e-08', ts2='4.63', photon_index='2.27' WHERE bin_id='1014' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:45:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 55437: <4FGL_J1354.8-1041_daily_bin1014> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1014> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:31:03 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:31:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:31:05 2021
Terminated at Wed Sep  8 17:45:37 2021
Results reported at Wed Sep  8 17:45:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1014 208.718 -10.6932 502156801 502416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1354.8-1041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   625.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

