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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin895
RA = 208.718, Dec = -10.6932
tmin = 471312001, tmax = 471571201
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='55233', job_status='RUN', time_executed='2021-09-08 17:34:31.499927', time_epoch_executed='1631147671.5' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55233/ft1_4FGL_J1354.8-1041_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55233/ft2_4FGL_J1354.8-1041_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55233/ft1_4FGL_J1354.8-1041_daily_bin895.fits outfile=/scratch/kocevski/55233/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin895.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.43
user 4.80
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55233/ft2_4FGL_J1354.8-1041_daily_bin895.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/55233/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/55233/ft1_filtered_4FGL_J1354.8-1041_daily_bin895.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55233/ft1_filtered_4FGL_J1354.8-1041_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/55233/ft2_4FGL_J1354.8-1041_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/55233/ltcube_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.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/55233/ft2_4FGL_J1354.8-1041_daily_bin895.fits
.....................!
real 15.92
user 15.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55233/ft1_filtered_4FGL_J1354.8-1041_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/55233/ft2_4FGL_J1354.8-1041_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/55233/ltcube_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.fits outfile=/scratch/kocevski/55233/expmap_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.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/55233/ltcube_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.fits
.....................!
real 189.86
user 185.13
sys 4.34

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/55233/ft1_filtered_4FGL_J1354.8-1041_daily_bin895.fits scfile=/scratch/kocevski/55233/ft2_4FGL_J1354.8-1041_daily_bin895.fits outfile=/scratch/kocevski/55233/cmap_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.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/55233/ft1_filtered_4FGL_J1354.8-1041_daily_bin895.fits scfile=/scratch/kocevski/55233/ft2_4FGL_J1354.8-1041_daily_bin895.fits outfile=/scratch/kocevski/55233/cmap_HighResolution_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55233/ft1_filtered_4FGL_J1354.8-1041_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/55233/ft2_4FGL_J1354.8-1041_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55233/Model_4FGL_J1354.8-1041_daily_bin895.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/55233/ft1_filtered_4FGL_J1354.8-1041_daily_bin895.fits.....................!
real 62.82
user 61.45
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74183E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5965       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3435       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6514       1.0000         .10000E-03   10000.    
     9 'norm      '    .23554E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6901       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.988       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7455       1.0000         .10000E-03   10000.    
    16 'norm      '    .92879       1.0000         .10000E-03   10000.    
    17 'norm      '    18.927       1.0000         .10000E-03   10000.    
    18 'norm      '    6.3130       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.148       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.194       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3187       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8004.549     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     2113 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    1.5841       -.29840E-05** at limit **
   2  Prefactor     .10001E-03    6.4310        .87450E-05** at limit **
   3  Prefactor     .10000E-03    4.0238        .70698E-06** at limit **
   4  Prefactor     .10000E-03    11.869       -.39356E-05** at limit **
   5  norm          .10000E-03    .42298        .69865E-07** at limit **
   6  norm          3.5967        2.7842       -.11202E-05   -.43276E-03
   7  norm          6.3466        4.2095        .37213E-05    .27981E-02
   8  Prefactor     9.6428        1.6183        .11704E-05   -.26049E-02
   9  norm          .10001E-03    92.058       -.26435E-05** at limit **
  10  Prefactor     3.6974        1.2380       -.10277E-05    .86365E-03
  11  norm          .10000E-03    .97033       -.48354E-06** at limit **
  12  Prefactor     .10000E-03    1.6698       -.28849E-06** at limit **
  13  Prefactor     .10000E-03    18.885        .31116E-05** at limit **
  14  Prefactor     29.985        1.0525       -.12061E-06    .10912E-02
  15  norm          2.7454        4.3615       -.56082E-05   -.81891E-03
  16  norm          .92888        1.5904       -.23027E-06   -.37851E-04
  17  norm          18.933        1.1917       -.42270E-06    .17010E-02
  18  norm          6.3125        1.1420       -.30997E-06   -.54563E-03
  19  Prefactor     32.155        1.1826       -.25672E-07    .20001E-03
  20  Prefactor     25.189        1.1243       -.25181E-07    .68820E-04
  21  norm          .10001E-03    6.9405       -.71773E-05** at limit **
  22  Normalizat    1.3187        .21781        .70837E-06   -.40218E-04
  23  Prefactor     .81773        .11480       -.95368E-07   -.84399E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100084
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.59672
  norm       = 6.34661
  Prefactor  = 9.64277
  norm       = 0.000100005
  Prefactor  = 3.69742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.9854
  norm       = 2.74537
  norm       = 0.928884
  norm       = 18.9326
  norm       = 6.3125
  Prefactor  = 32.1546
  Prefactor  = 25.1887
  norm       = 0.000100009
  Normalizat = 1.31872
  Prefactor  = 0.817731
 **********
 **   18 **HESSE 
 **********

 FCN=   8004.549     FROM HESSE     STATUS=OK           424 CALLS     2537 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10008E-03    5.1068        .10473       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    9.2441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .41611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5967        2.8831        .53268E-02   -1.5329    
   7  norm          6.3466        5.4641        .39842E-02   -1.5204    
   8  Prefactor     9.6428        12.179        .32248E-02   -1.5087    
   9  norm          .10001E-03    89.363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6974        9.0767        .52562E-02   -1.5323    
  11  norm          .10000E-03    .96873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.985        37.167        .18291E-02   -1.4612    
  15  norm          2.7454        4.4667        .61425E-02   -1.5377    
  16  norm          .92888        1.8120        .33400E-01   -1.5515    
  17  norm          18.933        11.745        .23016E-02   -1.4837    
  18  norm          6.3125        5.4936        .39939E-02   -1.5205    
  19  Prefactor     32.155        20.929        .17668E-02   -1.4573    
  20  Prefactor     25.189        21.285        .19952E-02   -1.4704    
  21  norm          .10001E-03    8.9539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3187        .19155        .66494E-01   -.83009    
  23  Prefactor     .81773        .10065        .43949E-01   -.99078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11221e-07
Minuit parameter uncertainties:
  1  0.00130737
  2  0.000653658
  3  3.87541e-06
  4  2.66326e-05
  5  1.27883e-07
  6  2.88326
  7  5.46449
  8  12.1819
  9  0.00139143
  10  9.08011
  11  1.16128e-07
  12  1.21587e-06
  13  0.000279337
  14  37.1955
  15  4.46723
  16  1.81211
  17  11.746
  18  5.49401
  19  20.9333
  20  21.2919
  21  0.000571813
  22  0.191653
  23  0.100677
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  2.745e+00  4.467e+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:  8.177e-01  1.007e-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.319e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55233/likelihoodResults_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.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) = 8004.49364127
delta logL = 0.0555971173089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8004.47755173
delta logL = 0.0716866547027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8210       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1731       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82476       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=   8004.478     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8148        69.754        .77359E-02    .93916E-03
   2  alpha         3.1773        2.8583        .43216        .62521E-04
   3  Normalizat    1.2968        .59174E-01    .66966E-01    .10794E-04
   4  Prefactor     .82478        .28114E-01    .44039E-01    .89042E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81476
  alpha      = 3.17733
  Normalizat = 1.29676
  Prefactor  = 0.824781
 **********
 **   18 **HESSE 
 **********

 FCN=   8004.478     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8148        161.49        .15835E-03   -1.5439    
   2  alpha         3.1773        3.4610        .32131E-01    .27436    
   3  Normalizat    1.2968        .34476        .29625E-03   -.83663    
   4  Prefactor     .82478        .15067        .19198E-03   -.98821    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17485e-06
Minuit parameter uncertainties:
  1  34.3332
  2  17.0349
  3  0.345374
  4  0.150742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55233': 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): 102
logL (Free Index) = 8004.47755027
delta logL = 0.0716881181233

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.815e+00  3.433e+01  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.177e+00  1.703e+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:  8.248e-01  1.507e-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.297e+00  3.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/55233/cmap_HighResolution_471312001_471571201_4FGL_J1354.8-1041_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-05', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-08 17:45:54.318772', job_id='55233', GAL2='0.82', fit_tolerance='1e-08', EG2='1.30', EG='1.32', time_epoch_completed='1631148354.32', return_code2='102', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='7.17e-02', ts2='0.65', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='895' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 55233: <4FGL_J1354.8-1041_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin895 208.718 -10.6932 471312001 471571201 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 :                                   679.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

