/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 159 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 = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1354.8-1041_daily_bin335
RA = 208.718, Dec = -10.6932
tmin = 326160001, tmax = 326419201
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='53743', job_status='RUN', time_executed='2021-09-08 17:28:25.144028', time_epoch_executed='1631147305.14' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53743/ft1_4FGL_J1354.8-1041_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53743/ft2_4FGL_J1354.8-1041_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53743/ft1_4FGL_J1354.8-1041_daily_bin335.fits outfile=/scratch/kocevski/53743/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin335.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=326160001.0 tmax=326419201.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.00
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53743/ft1_filtered_4FGL_J1354.8-1041_daily_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/53743/ft2_4FGL_J1354.8-1041_daily_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/53743/ltcube_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.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/53743/ft2_4FGL_J1354.8-1041_daily_bin335.fits
.....................!
real 15.87
user 15.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53743/ft1_filtered_4FGL_J1354.8-1041_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/53743/ft2_4FGL_J1354.8-1041_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/53743/ltcube_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.fits outfile=/scratch/kocevski/53743/expmap_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.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/53743/ltcube_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.fits
.....................!
real 191.20
user 185.45
sys 5.36

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/53743/ft1_filtered_4FGL_J1354.8-1041_daily_bin335.fits scfile=/scratch/kocevski/53743/ft2_4FGL_J1354.8-1041_daily_bin335.fits outfile=/scratch/kocevski/53743/cmap_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53743/ft1_filtered_4FGL_J1354.8-1041_daily_bin335.fits scfile=/scratch/kocevski/53743/ft2_4FGL_J1354.8-1041_daily_bin335.fits outfile=/scratch/kocevski/53743/cmap_HighResolution_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/53743/ft1_filtered_4FGL_J1354.8-1041_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/53743/ft2_4FGL_J1354.8-1041_daily_bin335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/53743/Model_4FGL_J1354.8-1041_daily_bin335.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/53743/ft1_filtered_4FGL_J1354.8-1041_daily_bin335.fits.....................!
real 58.69
user 57.19
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1012       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11698E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .80550       1.0000         .10000E-03   10000.    
     6 'norm      '    .12131E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2091       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.467       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0277       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.124       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .23421E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5121       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12149E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    16.485       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2692       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90033       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=   7359.808     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2221 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6294        8.8513        .33836E-07   -.11626E-04
   2  Prefactor     15.230        9.5035       -.14246E-06   -.20531E-04
   3  Prefactor     6.1015        7.1277       -.70205E-07   -.34922E-04
   4  Prefactor     .10005E-03    14.112       -.78733E-06** at limit **
   5  norm          .80542        1.5003        .34664E-06   -.12905E-03
   6  norm          .10000E-03    2.8934        .10809E-05** at limit **
   7  norm          5.4530        5.7206       -.61143E-06   -.16796E-03
   8  Prefactor     .10000E-03    4.2919       -.14163E-07** at limit **
   9  norm          2.1990        131.90       -.26151E-05   -.13388E-04
  10  Prefactor     26.463        12.672        .30486E-07   -.10456E-04
  11  norm          4.3541        3.2672       -.22272E-06    .14062E-03
  12  Prefactor     7.0324        4.9743       -.29551E-07   -.25923E-03
  13  Prefactor     14.124        17.142        .50054E-07   -.14683E-05
  14  Prefactor     .10000E-03    8.9366       -.97533E-06** at limit **
  15  norm          .10000E-03    8.1786        .89457E-06** at limit **
  16  norm          5.5130        2.9890        .63470E-07   -.99904E-04
  17  norm          .10000E-03    16.316        .11245E-05** at limit **
  18  norm          3.5980        5.4357        .34104E-06   -.38400E-04
  19  Prefactor     .10000E-03    48.077        .16420E-05** at limit **
  20  Prefactor     .10000E-03    19.559       -.10740E-05** at limit **
  21  norm          16.483        17.118        .50734E-07    .23979E-05
  22  Normalizat    1.2690        .23058       -.60045E-06   -.83855E-04
  23  Prefactor     .90047        .11447       -.78172E-07   -.14845E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.62944
  Prefactor  = 15.2304
  Prefactor  = 6.10151
  Prefactor  = 0.000100046
  norm       = 0.805422
  norm       = 0.0001
  norm       = 5.45303
  Prefactor  = 0.0001
  norm       = 2.19895
  Prefactor  = 26.4626
  norm       = 4.35412
  Prefactor  = 7.0324
  Prefactor  = 14.124
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.51301
  norm       = 0.0001
  norm       = 3.59805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4835
  Normalizat = 1.26899
  Prefactor  = 0.900472
 **********
 **   18 **HESSE 
 **********

 FCN=   7359.808     FROM HESSE     STATUS=OK           380 CALLS     2601 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6294        8.8484        .14518E-03   -1.5155    
   2  Prefactor     15.230        9.4890        .10263E-03   -1.4927    
   3  Prefactor     6.1015        7.1388        .16254E-03   -1.5214    
   4  Prefactor     .10005E-03    76.415        .53800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .80542        1.4851        .13346E-03   -1.5528    
   6  norm          .10000E-03    4.5546        .24052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4530        5.7262        .17228E-03   -1.5241    
   8  Prefactor     .10000E-03    4.2960        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1990        134.43        .27676E-03   -1.5411    
  10  Prefactor     26.463        12.679        .77869E-04   -1.4679    
  11  norm          4.3541        3.2558        .64960E-03   -1.5291    
  12  Prefactor     7.0324        5.0152        .15133E-03   -1.5178    
  13  Prefactor     14.124        17.153        .10658E-03   -1.4956    
  14  Prefactor     .10000E-03    8.9977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.5938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5130        2.9909        .10345E-03   -1.5238    
  17  norm          .10000E-03    16.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5980        5.4089        .21307E-03   -1.5329    
  19  Prefactor     .10000E-03    49.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.483        17.129        .98644E-04   -1.4896    
  22  Normalizat    1.2690        .26921        .32402E-03   -.84497    
  23  Prefactor     .90047        .13458        .19821E-03   -.96125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04937e-10
Minuit parameter uncertainties:
  1  8.84994
  2  9.48996
  3  7.13976
  4  0.00376063
  5  1.48517
  6  5.36862e-05
  7  5.72681
  8  1.55539e-06
  9  34.4675
  10  12.6799
  11  3.25591
  12  5.01545
  13  17.1592
  14  4.58243e-05
  15  4.49283e-05
  16  2.99096
  17  4.94147e-05
  18  5.40964
  19  0.000145724
  20  6.95133e-05
  21  17.134
  22  0.269505
  23  0.134626
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  4.493e-05  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.005e-01  1.346e-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.269e+00  2.695e-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: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/53743/likelihoodResults_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.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) = 7359.80862005
delta logL = -0.000555721047931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7359.80806616
delta logL = -1.8313567125e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3238       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90073       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7359.808     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      257 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    14.166        .32621E-02** at limit **
   2  alpha         2.3860        3.5888        .50000       -.33316E-04
   3  Normalizat    1.2690        .24783        .32402E-03    .10852E-03
   4  Prefactor     .90047        .13115        .19821E-03    .18312E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100038
  alpha      = 2.38604
  Normalizat = 1.26899
  Prefactor  = 0.900473
 **********
 **   18 **HESSE 
 **********

 FCN=   7359.808     FROM HESSE     STATUS=OK            29 CALLS      286 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    11.599        .65241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3860        3.5270        .50000       -.45600E-01
   3  Normalizat    1.2690        .24800        .12961E-04   -.84497    
   4  Prefactor     .90047        .13125        .39641E-04   -.96125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79175e-09
Minuit parameter uncertainties:
  1  0.00133168
  2  2.5072
  3  0.248231
  4  0.131293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53743': 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) = 7359.80806284
delta logL = 1.49312290887e-06

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  1.332e-03  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.386e+00  2.507e+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:  9.005e-01  1.313e-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.269e+00  2.482e-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/53743/cmap_HighResolution_326160001_326419201_4FGL_J1354.8-1041_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-08 17:39:46.373713', job_id='53743', GAL2='0.90', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631147986.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='335' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 53743: <4FGL_J1354.8-1041_daily_bin335> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin335> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 17:25:34 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:25:36 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:25:36 2021
Terminated at Wed Sep  8 17:39:47 2021
Results reported at Wed Sep  8 17:39:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin335 208.718 -10.6932 326160001 326419201 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

