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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin967
RA = 208.718, Dec = -10.6932
tmin = 489974401, tmax = 490233601
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='55364', job_status='RUN', time_executed='2021-09-08 17:31:09.875612', time_epoch_executed='1631147469.88' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55364

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55364/ft1_4FGL_J1354.8-1041_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55364/ft1_4FGL_J1354.8-1041_daily_bin967.fits outfile=/scratch/kocevski/55364/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin967.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=489974401.0 tmax=490233601.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.75
user 3.53
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.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/55364/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin967.fits evtable="EVENTS" outfile="/scratch/kocevski/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/55364/ltcube_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.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/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits
.....................!
real 12.68
user 12.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/55364/ltcube_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.fits outfile=/scratch/kocevski/55364/expmap_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.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/55364/ltcube_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.fits
.....................!
real 191.19
user 186.01
sys 4.68

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/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits scfile=/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits outfile=/scratch/kocevski/55364/cmap_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits scfile=/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits outfile=/scratch/kocevski/55364/cmap_HighResolution_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55364/Model_4FGL_J1354.8-1041_daily_bin967.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/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits.....................!
real 78.82
user 77.46
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits', '/scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits', expMap='/scratch/kocevski/55364/expmap_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.fits', expCube='/scratch/kocevski/55364/ltcube_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55364/Model_4FGL_J1354.8-1041_daily_bin967.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/55364/ft1_filtered_4FGL_J1354.8-1041_daily_bin967.fits
Spacecraft file(s): /scratch/kocevski/55364/ft2_4FGL_J1354.8-1041_daily_bin967.fits
Exposure map: /scratch/kocevski/55364/expmap_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.fits
Exposure cube: /scratch/kocevski/55364/ltcube_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55364/Model_4FGL_J1354.8-1041_daily_bin967.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) = 10217.3984342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1108       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36296E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.469       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0053       1.0000         .10000E-03   10000.    
     6 'norm      '    23.592       1.0000         .10000E-03   10000.    
     7 'norm      '    .36978E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.207       1.0000         .10000E-03   10000.    
     9 'norm      '    14.036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .38842       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1787       1.0000         .10000E-03   10000.    
    15 'norm      '    10.030       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8400       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .59061E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.319       1.0000         .10000E-03   10000.    
    21 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8612       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62454       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=   10217.39     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2596 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9064        4.8299       -.66352E-06   -.21840E-03
   2  Prefactor     3.1089        5.9691        .32657E-05    .18505E-03
   3  Prefactor     .10000E-03    5.0283        .21906E-05** at limit **
   4  Prefactor     18.465        18.181       -.46900E-06   -.10289E-03
   5  norm          3.0051        1.6410        .73426E-07   -.37779E-03
   6  norm          23.599        6.0653       -.20879E-06   -.73499E-03
   7  norm          .10003E-03    5.6358       -.27539E-05** at limit **
   8  Prefactor     22.205        11.906        .27818E-07   -.58013E-04
   9  norm          13.972        26.405        .15944E-05   -.55076E-04
  10  Prefactor     .10000E-03    4.3408        .16057E-06** at limit **
  11  norm          .38447        2.1164       -.16784E-05    .41341E-03
  12  Prefactor     .10000E-03    2.5232        .23108E-06** at limit **
  13  Prefactor     .10000E-03    9.0914       -.29790E-08** at limit **
  14  Prefactor     2.1802        94.420        .97218E-05    .27476E-04
  15  norm          10.033        5.4008       -.66902E-07   -.23929E-04
  16  norm          2.8414        1.9138        .11642E-06    .58370E-03
  17  norm          .10000E-03    3.8721        .44328E-07** at limit **
  18  norm          .10000E-03    3.8647       -.25289E-05** at limit **
  19  Prefactor     1.3123        60.993        .10867E-04    .77178E-04
  20  Prefactor     28.313        19.048       -.12187E-06   -.20890E-05
  21  norm          .10000E-03    3.1069        .49578E-07** at limit **
  22  Normalizat    1.8613        .19628       -.80434E-06   -.28605E-03
  23  Prefactor     .62457        .97077E-01   -.77170E-06   -.44052E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.90642
  Prefactor  = 3.1089
  Prefactor  = 0.000100004
  Prefactor  = 18.4647
  norm       = 3.00508
  norm       = 23.5989
  norm       = 0.000100029
  Prefactor  = 22.2047
  norm       = 13.9725
  Prefactor  = 0.0001
  norm       = 0.384474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.18021
  norm       = 10.0327
  norm       = 2.84139
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.31233
  Prefactor  = 28.3133
  norm       = 0.0001
  Normalizat = 1.8613
  Prefactor  = 0.624566
 **********
 **   18 **HESSE 
 **********

 FCN=   10217.39     FROM HESSE     STATUS=OK           382 CALLS     2978 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9064        4.8604        .90790E-03   -1.5265    
   2  Prefactor     3.1089        6.2800        .11495E-02   -1.5355    
   3  Prefactor     .10000E-03    19.892        .40950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.465        18.219        .93197E-04   -1.4848    
   5  norm          3.0051        1.6441        .90291E-04   -1.5361    
   6  norm          23.599        5.7641        .82469E-04   -1.4736    
   7  norm          .10003E-03    17.039        .37415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.205        11.848        .84998E-04   -1.4765    
   9  norm          13.972        26.325        .10691E-03   -1.4960    
  10  Prefactor     .10000E-03    4.3674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .38447        7.7574        .24778E-02   -1.5584    
  12  Prefactor     .10000E-03    2.6299        .31337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.1106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1802        96.723        .13946E-02   -1.5413    
  15  norm          10.033        5.3952        .12652E-03   -1.5074    
  16  norm          2.8414        1.9047        .10997E-03   -1.5371    
  17  norm          .10000E-03    3.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.5872        .35155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3123        63.592        .38768E-03   -1.5479    
  20  Prefactor     28.313        19.042        .75285E-04   -1.4643    
  21  norm          .10000E-03    3.1095        .17400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8613        .22570        .28131E-03   -.68074    
  23  Prefactor     .62457        .11286        .23213E-03   -1.0656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63471e-09
Minuit parameter uncertainties:
  1  4.86082
  2  6.28135
  3  0.000595869
  4  18.2249
  5  1.64412
  6  5.76426
  7  0.00140826
  8  11.8489
  9  26.3464
  10  2.63465e-05
  11  3.45406
  12  2.9089e-05
  13  1.28318e-05
  14  29.0927
  15  5.39548
  16  1.9047
  17  4.909e-06
  18  9.61519e-05
  19  18.2905
  20  19.0463
  21  6.10674e-06
  22  0.225823
  23  0.1129
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.003e+01  5.395e+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:  6.246e-01  1.129e-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:  1.861e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.37
Ra Dec: 208.718 -10.693
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.05e-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) = 10216.0382114
delta logL = 1.34747352592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10216.0242682
delta logL = 1.36141678212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.038       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4135       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61531       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=   10216.02     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.061        5.2840        .31619E-02   -.11117E-04
   2  alpha         1.4146        .38517        .41484       -.34414E-04
   3  Normalizat    1.8922        .18592        .63205E-01    .16572E-04
   4  Prefactor     .61529        .95489E-01    .41262E-01    .18856E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0614
  alpha      = 1.41463
  Normalizat = 1.89218
  Prefactor  = 0.615289
 **********
 **   18 **HESSE 
 **********

 FCN=   10216.02     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.061        6.0871        .12647E-03   -1.5073    
   2  alpha         1.4146        .48168        .16829E-01   -.44909    
   3  Normalizat    1.8922        .21373        .27950E-03   -.67281    
   4  Prefactor     .61529        .10979        .23359E-03   -1.0695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38622e-09
Minuit parameter uncertainties:
  1  6.08748
  2  0.485428
  3  0.213837
  4  0.109823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55364': 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) = 10216.0242608
delta logL = 1.36142419297

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.006e+01  6.087e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.415e+00  4.854e-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:  6.153e-01  1.098e-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:  1.892e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.10
Ra Dec: 208.718 -10.693
Photon Index (Free Index): 1.41 +/- 0.49
Photon Flux (Free Index): 2.73e-08 +/- 1.90e-08
Energy Flux (Free Index): 3.49e-05 +/- 2.41e-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/55364/cmap_HighResolution_489974401_490233601_4FGL_J1354.8-1041_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='3.49e-05', photon_flux_error='2.80e-08', dlogl='1.36e+00', energy_flux='1.95e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-09-08 17:43:38.822691', photon_index_error2='0.49', photon_index2='1.41', ts='6.37', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='1.86', time_epoch_completed='1631148218.82', return_code='0', job_id='55364', GAL2='0.62', EG2='1.89', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.90e-08', ts2='9.10', photon_index='2.27' WHERE bin_id='967' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:43:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 55364: <4FGL_J1354.8-1041_daily_bin967> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin967> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:30:55 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:30:57 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:30:57 2021
Terminated at Wed Sep  8 17:43:39 2021
Results reported at Wed Sep  8 17:43:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin967 208.718 -10.6932 489974401 490233601 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 :                                   736.34 sec.
    Max Memory :                                 1060 MB
    Average Memory :                             346.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

