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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin898
RA = 208.718, Dec = -10.6932
tmin = 472089601, tmax = 472348801
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='55238', job_status='RUN', time_executed='2021-09-08 17:32:53.985726', time_epoch_executed='1631147573.99' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55238/ft1_4FGL_J1354.8-1041_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55238/ft2_4FGL_J1354.8-1041_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55238/ft1_4FGL_J1354.8-1041_daily_bin898.fits outfile=/scratch/kocevski/55238/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin898.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=472089601.0 tmax=472348801.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.33
user 3.32
sys 0.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55238/ft1_filtered_4FGL_J1354.8-1041_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/55238/ft2_4FGL_J1354.8-1041_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/55238/ltcube_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.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/55238/ft2_4FGL_J1354.8-1041_daily_bin898.fits
.....................!
real 12.84
user 11.72
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55238/ft1_filtered_4FGL_J1354.8-1041_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/55238/ft2_4FGL_J1354.8-1041_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/55238/ltcube_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.fits outfile=/scratch/kocevski/55238/expmap_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.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/55238/ltcube_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.fits
.....................!
real 196.82
user 186.09
sys 9.18

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/55238/ft1_filtered_4FGL_J1354.8-1041_daily_bin898.fits scfile=/scratch/kocevski/55238/ft2_4FGL_J1354.8-1041_daily_bin898.fits outfile=/scratch/kocevski/55238/cmap_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55238/ft1_filtered_4FGL_J1354.8-1041_daily_bin898.fits scfile=/scratch/kocevski/55238/ft2_4FGL_J1354.8-1041_daily_bin898.fits outfile=/scratch/kocevski/55238/cmap_HighResolution_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24191E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.179       1.0000         .10000E-03   10000.    
     5 'norm      '    .58087       1.0000         .10000E-03   10000.    
     6 'norm      '    .28638       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2171       1.0000         .10000E-03   10000.    
    11 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.655       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3896       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9298       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6526       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9553       1.0000         .10000E-03   10000.    
    21 'norm      '    .22547E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4275       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85514       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=   10754.07     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2640 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5618        .12635E-06** at limit **
   2  Prefactor     5.9412        8.3177        .54964E-07    .31501E-03
   3  Prefactor     .10001E-03    3.2122       -.11686E-06** at limit **
   4  Prefactor     23.192        20.616        .68650E-05    .12292E-02
   5  norm          .58151        1.2435        .81710E-07   -.13040E-04
   6  norm          .28041        2.5392       -.15942E-05    .18659E-02
   7  norm          4.5345        5.7013       -.54923E-05    .86500E-03
   8  Prefactor     .10000E-03    13.398       -.84918E-06** at limit **
   9  norm          .10000E-03    5.9795        .54545E-06** at limit **
  10  Prefactor     5.2202        7.8445        .63978E-07   -.22455E-03
  11  norm          .10000E-03    1.5515        .49314E-07** at limit **
  12  Prefactor     .10001E-03    1.3304       -.86497E-07** at limit **
  13  Prefactor     11.681        16.169       -.31374E-06    .78994E-06
  14  Prefactor     21.654        17.420       -.22597E-06    .47454E-04
  15  norm          .10000E-03    1.8505       -.15276E-06** at limit **
  16  norm          1.3892        1.6419       -.34375E-07   -.30016E-04
  17  norm          2.9310        5.0574       -.16057E-06   -.13963E-04
  18  norm          1.6527        1.5402        .22930E-06   -.12618E-02
  19  Prefactor     .10000E-03    6.4540        .16989E-05** at limit **
  20  Prefactor     6.9600        17.844        .26182E-05    .35330E-04
  21  norm          .10000E-03    7.6370       -.55843E-06** at limit **
  22  Normalizat    1.4280        .17882       -.23681E-06    .62318E-03
  23  Prefactor     .85463        .90949E-01    .24261E-06    .69037E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.94116
  Prefactor  = 0.000100005
  Prefactor  = 23.1918
  norm       = 0.581507
  norm       = 0.280409
  norm       = 4.53451
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.22022
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 11.6814
  Prefactor  = 21.6545
  norm       = 0.0001
  norm       = 1.38923
  norm       = 2.93097
  norm       = 1.65268
  Prefactor  = 0.0001
  Prefactor  = 6.95997
  norm       = 0.0001
  Normalizat = 1.42804
  Prefactor  = 0.854628
 **********
 **   18 **HESSE 
 **********

 FCN=   10754.07     FROM HESSE     STATUS=OK           378 CALLS     3018 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9412        8.2445        .16475E-03   -1.5220    
   3  Prefactor     .10001E-03    23.712        .34830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.192        24.989        .83199E-04   -1.4744    
   5  norm          .58151        1.2627        .15651E-03   -1.5555    
   6  norm          .28041        22.350        .21237E-02   -1.5602    
   7  norm          4.5345        5.6100        .18919E-03   -1.5282    
   8  Prefactor     .10000E-03    13.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.9798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2202        7.9937        .87994E-03   -1.5251    
  11  norm          .10000E-03    3.1420        .24961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    6.2779        .22850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.681        16.191        .11717E-03   -1.5024    
  14  Prefactor     21.654        17.407        .86073E-04   -1.4777    
  15  norm          .10000E-03    1.8657        .13768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3892        1.6272        .13733E-03   -1.5472    
  17  norm          2.9310        5.0407        .23732E-03   -1.5366    
  18  norm          1.6527        5.8415        .16419E-02   -1.5451    
  19  Prefactor     .10000E-03    6.4729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9600        17.533        .15212E-03   -1.5180    
  21  norm          .10000E-03    47.428        .54405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4280        .20828        .28962E-03   -.79821    
  23  Prefactor     .85463        .10669        .19595E-03   -.97745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47389e-08
Minuit parameter uncertainties:
  1  4.93344e-07
  2  8.24604
  3  0.000716562
  4  25.0004
  5  1.26276
  6  5.00789
  7  5.61068
  8  1.32923e-05
  9  2.23373e-07
  10  7.99532
  11  4.24876e-06
  12  0.00052468
  13  16.1976
  14  17.4114
  15  3.41935e-06
  16  1.62725
  17  5.04145
  18  5.84353
  19  2.13293e-06
  20  17.5459
  21  9.04155e-05
  22  0.208406
  23  0.10672
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  3.419e-06  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:  8.546e-01  1.067e-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.428e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 208.718 -10.693
Photon Flux Upper Limit: 4.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55238/likelihoodResults_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.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) = 10754.0724952
delta logL = -0.00255122182898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10754.0699438
delta logL = 1.87461409951e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2851       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85463       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=   10754.07     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1049        .90712E-02** at limit **
   2  alpha         2.2994        3.5351        .41345       -.38647E-04
   3  Normalizat    1.4280        .16494        .65474E-01    .94864E-04
   4  Prefactor     .85463        .89514E-01    .44424E-01    .44864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29939
  Normalizat = 1.42803
  Prefactor  = 0.854629
 **********
 **   18 **HESSE 
 **********

 FCN=   10754.07     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9041        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2994        3.5037        .50000       -.80332E-01
   3  Normalizat    1.4280        .19244        .28962E-03   -.79821    
   4  Prefactor     .85463        .10451        .19595E-03   -.97745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59245e-09
Minuit parameter uncertainties:
  1  2.50008e-05
  2  2.49756
  3  0.192539
  4  0.10453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55238': 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) = 10754.0699435
delta logL = 4.42254531663e-07

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  2.500e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.299e+00  2.498e+00  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:  8.546e-01  1.045e-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.428e+00  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 208.718 -10.693

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/55238/cmap_HighResolution_472089601_472348801_4FGL_J1354.8-1041_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-05', job_status='DONE', photon_flux_upper_limit='4.07e-08', time_completed='2021-09-08 17:47:25.083619', job_id='55238', GAL2='0.85', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631148445.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='898' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 55238: <4FGL_J1354.8-1041_daily_bin898> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin898> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:30:46 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:30:48 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:48 2021
Terminated at Wed Sep  8 17:47:25 2021
Results reported at Wed Sep  8 17:47:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin898 208.718 -10.6932 472089601 472348801 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 :                                   866.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

