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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1377
RA = 208.718, Dec = -10.6932
tmin = 596246401, tmax = 596505601
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='59395', job_status='RUN', time_executed='2021-09-08 17:40:43.504199', time_epoch_executed='1631148043.5' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59395/ft1_4FGL_J1354.8-1041_daily_bin1377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59395/ft2_4FGL_J1354.8-1041_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59395/ft1_4FGL_J1354.8-1041_daily_bin1377.fits outfile=/scratch/kocevski/59395/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1377.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=596246401.0 tmax=596505601.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.90
user 4.65
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59395/ft1_filtered_4FGL_J1354.8-1041_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/59395/ft2_4FGL_J1354.8-1041_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/59395/ltcube_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.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/59395/ft2_4FGL_J1354.8-1041_daily_bin1377.fits
.....................!
real 11.99
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59395/ft1_filtered_4FGL_J1354.8-1041_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/59395/ft2_4FGL_J1354.8-1041_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/59395/ltcube_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.fits outfile=/scratch/kocevski/59395/expmap_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.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/59395/ltcube_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.fits
.....................!
real 192.90
user 187.79
sys 4.65

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/59395/ft1_filtered_4FGL_J1354.8-1041_daily_bin1377.fits scfile=/scratch/kocevski/59395/ft2_4FGL_J1354.8-1041_daily_bin1377.fits outfile=/scratch/kocevski/59395/cmap_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.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/59395/ft1_filtered_4FGL_J1354.8-1041_daily_bin1377.fits scfile=/scratch/kocevski/59395/ft2_4FGL_J1354.8-1041_daily_bin1377.fits outfile=/scratch/kocevski/59395/cmap_HighResolution_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59395/ft1_filtered_4FGL_J1354.8-1041_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/59395/ft2_4FGL_J1354.8-1041_daily_bin1377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59395/Model_4FGL_J1354.8-1041_daily_bin1377.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/59395/ft1_filtered_4FGL_J1354.8-1041_daily_bin1377.fits....................!
real 68.08
user 66.57
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2358       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .48559       1.0000         .10000E-03   10000.    
     6 'norm      '    7.9571       1.0000         .10000E-03   10000.    
     7 'norm      '    17.675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.2587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.5736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.5008       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6770       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8042       1.0000         .10000E-03   10000.    
    18 'norm      '    26.413       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4113       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92161       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=   8825.260     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2491 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2625        .90712E-02** at limit **
   2  Prefactor     .10000E-03    2.3698        .90712E-02** at limit **
   3  Prefactor     2.2359        5.6909        .68726E-02    .73868E-03
   4  Prefactor     .10000E-03    7.5428        .90712E-02** at limit **
   5  norm          .48559        1.0035        .29459E-01    .19053E-02
   6  norm          7.9578        4.0103        .35535E-02    .17440E-02
   7  norm          17.675        8.0462        .23817E-02    .61661E-03
   8  Prefactor     .10001E-03    5.3626        .90712E-02** at limit **
   9  norm          7.2579        14.377        .37219E-02    .29966E-03
  10  Prefactor     .10000E-03    4.4726        .90712E-02** at limit **
  11  norm          9.5737        5.5110        .32379E-02    .26676E-03
  12  Prefactor     .10001E-03    4.1965        .90712E-02** at limit **
  13  Prefactor     .10000E-03    17.769        .90712E-02** at limit **
  14  Prefactor     .10000E-03    12.643        .90712E-02** at limit **
  15  norm          9.4997        8.0673        .32504E-02    .30331E-02
  16  norm          6.6769        3.5072        .38823E-02   -.50696E-03
  17  norm          5.8042        8.1577        .41676E-02    .76969E-03
  18  norm          26.413        12.433        .19487E-02   -.10772E-03
  19  Prefactor     37.480        32.606        .16367E-02    .61391E-03
  20  Prefactor     .10000E-03    7.7588        .90712E-02** at limit **
  21  norm          .10001E-03    4.7108        .90712E-02** at limit **
  22  Normalizat    1.4113        .21855        .74663E-01   -.43658E-05
  23  Prefactor     .92159        .11120        .45280E-01   -.21647E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23593
  Prefactor  = 0.0001
  norm       = 0.485592
  norm       = 7.95779
  norm       = 17.6746
  Prefactor  = 0.000100011
  norm       = 7.25791
  Prefactor  = 0.000100004
  norm       = 9.57369
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 9.4997
  norm       = 6.67692
  norm       = 5.80417
  norm       = 26.4134
  Prefactor  = 37.4796
  Prefactor  = 0.000100004
  norm       = 0.000100009
  Normalizat = 1.41132
  Prefactor  = 0.921592
 **********
 **   18 **HESSE 
 **********

 FCN=   8825.260     FROM HESSE     STATUS=OK           370 CALLS     2861 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2664        .16571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3775        .14122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2359        5.6773        .27490E-03   -1.5409    
   4  Prefactor     .10000E-03    7.5534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .48559        .97646        .12765E-03   -1.5569    
   6  norm          7.9578        4.0058        .11836E-03   -1.5144    
   7  norm          17.675        8.0460        .95268E-04   -1.4867    
   8  Prefactor     .10001E-03    5.3861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.2579        14.370        .14888E-03   -1.5169    
  10  Prefactor     .10000E-03    4.5086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.5737        5.5148        .12952E-03   -1.5089    
  12  Prefactor     .10001E-03    4.2580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.4997        8.0357        .65007E-03   -1.5091    
  16  norm          6.6769        3.5070        .11802E-03   -1.5191    
  17  norm          5.8042        8.1532        .83352E-03   -1.5226    
  18  norm          26.413        12.419        .77948E-04   -1.4680    
  19  Prefactor     37.480        32.595        .65466E-04   -1.4483    
  20  Prefactor     .10000E-03    7.7668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    4.7133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4113        .24993        .33040E-03   -.80302    
  23  Prefactor     .92159        .12844        .21095E-03   -.95391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98094e-09
Minuit parameter uncertainties:
  1  1.56527e-05
  2  2.07519e-07
  3  5.67865
  4  4.74326e-05
  5  0.976494
  6  4.00594
  7  8.04645
  8  0.000483175
  9  14.377
  10  0.000264118
  11  5.5151
  12  0.000329965
  13  0.000292037
  14  0.000404306
  15  8.0366
  16  3.50706
  17  8.15475
  18  12.4206
  19  32.6106
  20  0.000348624
  21  0.000400611
  22  0.250148
  23  0.128486
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  9.500e+00  8.037e+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:  9.216e-01  1.285e-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.411e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 208.718 -10.693
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.94e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/59395/likelihoodResults_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.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) = 8824.49053691
delta logL = 0.769000528093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8824.48015632
delta logL = 0.779381118475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5031       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1241       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93825       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=   8824.480     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      237 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5031        73.578        .39344E-02    .13111E-02
   2  alpha         3.1241        4.0512        .36650        .14568E-03
   3  Normalizat    1.3545        .81162E-01    .75878E-01    .13445E-04
   4  Prefactor     .93824        .40792E-01    .45491E-01    .74086E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50314
  alpha      = 3.12414
  Normalizat = 1.3545
  Prefactor  = 0.938244
 **********
 **   18 **HESSE 
 **********

 FCN=   8824.480     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5031        7.5710        .14170E-03   -1.5198    
   2  alpha         3.1241        .81082        .13919E-01    .25233    
   3  Normalizat    1.3545        .24524        .33580E-03   -.81954    
   4  Prefactor     .93824        .12835        .20919E-03   -.94817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53961e-10
Minuit parameter uncertainties:
  1  7.57215
  2  0.826797
  3  0.245451
  4  0.128392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59395': 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) = 8824.48015631
delta logL = 0.779381120679

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  6.503e+00  7.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.124e+00  8.268e-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:  9.382e-01  1.284e-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.355e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 208.718 -10.693
Photon Index (Free Index): 3.12 +/- 0.83
Photon Flux (Free Index): 1.02e-07 +/- 6.74e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.39e-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/59395/cmap_HighResolution_596246401_596505601_4FGL_J1354.8-1041_daily_bin1377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-05', comment='SUCCESS', photon_flux='4.94e-08', energy_flux2='2.15e-05', photon_flux_error='4.18e-08', dlogl='7.79e-01', energy_flux='1.85e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-08 17:53:33.568522', photon_index_error2='0.83', photon_index2='3.12', ts='1.85', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.39e-05', EG='1.41', time_epoch_completed='1631148813.57', return_code='0', job_id='59395', GAL2='0.94', EG2='1.35', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.74e-08', ts2='3.46', photon_index='2.27' WHERE bin_id='1377' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:53:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 59395: <4FGL_J1354.8-1041_daily_bin1377> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1377> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:40:25 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:40:26 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:40:26 2021
Terminated at Wed Sep  8 17:53:34 2021
Results reported at Wed Sep  8 17:53:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1377 208.718 -10.6932 596246401 596505601 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 :                                   739.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

