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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1104
RA = 208.718, Dec = -10.6932
tmin = 525484801, tmax = 525744001
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='57404', job_status='RUN', time_executed='2021-09-08 17:36:04.009613', time_epoch_executed='1631147764.01' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57404/ft1_4FGL_J1354.8-1041_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57404/ft2_4FGL_J1354.8-1041_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57404/ft1_4FGL_J1354.8-1041_daily_bin1104.fits outfile=/scratch/kocevski/57404/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1104.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=525484801.0 tmax=525744001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57404/ft1_filtered_4FGL_J1354.8-1041_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/57404/ft2_4FGL_J1354.8-1041_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/57404/ltcube_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.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/57404/ft2_4FGL_J1354.8-1041_daily_bin1104.fits
.....................!
real 12.29
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57404/ft1_filtered_4FGL_J1354.8-1041_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/57404/ft2_4FGL_J1354.8-1041_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/57404/ltcube_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.fits outfile=/scratch/kocevski/57404/expmap_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.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/57404/ltcube_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.fits
.....................!
real 190.37
user 186.04
sys 3.96

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/57404/ft1_filtered_4FGL_J1354.8-1041_daily_bin1104.fits scfile=/scratch/kocevski/57404/ft2_4FGL_J1354.8-1041_daily_bin1104.fits outfile=/scratch/kocevski/57404/cmap_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57404/ft1_filtered_4FGL_J1354.8-1041_daily_bin1104.fits scfile=/scratch/kocevski/57404/ft2_4FGL_J1354.8-1041_daily_bin1104.fits outfile=/scratch/kocevski/57404/cmap_HighResolution_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57404/ft1_filtered_4FGL_J1354.8-1041_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/57404/ft2_4FGL_J1354.8-1041_daily_bin1104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57404/Model_4FGL_J1354.8-1041_daily_bin1104.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/57404/ft1_filtered_4FGL_J1354.8-1041_daily_bin1104.fits.....................!
real 53.70
user 51.83
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.004       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4945       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5739       1.0000         .10000E-03   10000.    
     7 'norm      '    .30148E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0383       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11916E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.677       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8392       1.0000         .10000E-03   10000.    
    18 'norm      '    12.279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11412E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6941       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72927       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=   6306.675     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2190 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.002        13.862        .17698E-07   -.66477E-05
   2  Prefactor     .10000E-03    5.1955       -.36739E-07** at limit **
   3  Prefactor     21.577        13.679       -.35345E-07   -.77938E-04
   4  Prefactor     .10000E-03    26.647        .40977E-05** at limit **
   5  norm          1.4949        1.6457       -.97426E-07    .22214E-03
   6  norm          5.5825        4.6739        .51040E-07   -.27190E-03
   7  norm          .10000E-03    6.9903        .17514E-05** at limit **
   8  Prefactor     .10000E-03    14.295        .10172E-05** at limit **
   9  norm          .10000E-03    8.5286       -.43336E-07** at limit **
  10  Prefactor     1.0542        10.398       -.12114E-05   -.12260E-03
  11  norm          .10000E-03    1.6777        .55082E-07** at limit **
  12  Prefactor     .10000E-03    17.496        .69790E-05** at limit **
  13  Prefactor     .10000E-03    24.955        .12391E-05** at limit **
  14  Prefactor     .10000E-03    92.857        .45622E-05** at limit **
  15  norm          11.692        9.1461       -.96997E-06   -.18446E-03
  16  norm          .10000E-03    .83695        .13085E-06** at limit **
  17  norm          9.8357        11.411       -.25404E-07    .66294E-06
  18  norm          12.279        8.7325       -.51556E-07    .12563E-04
  19  Prefactor     .10000E-03    14.571       -.81836E-06** at limit **
  20  Prefactor     .10000E-03    41.983       -.26951E-05** at limit **
  21  norm          .10011E-03    27.524        .68476E-05** at limit **
  22  Normalizat    1.6936        .24751       -.20468E-06   -.32038E-03
  23  Prefactor     .72964        .11997       -.81719E-08   -.32595E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.0019
  Prefactor  = 0.0001
  Prefactor  = 21.5767
  Prefactor  = 0.0001
  norm       = 1.49486
  norm       = 5.58254
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.05417
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.6921
  norm       = 0.0001
  norm       = 9.83573
  norm       = 12.2795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100109
  Normalizat = 1.69359
  Prefactor  = 0.729643
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.675     FROM HESSE     STATUS=OK           372 CALLS     2562 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.002        13.861        .85388E-04   -1.4769    
   2  Prefactor     .10000E-03    5.2088        .17675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.577        13.733        .86220E-04   -1.4779    
   4  Prefactor     .10000E-03    26.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4949        1.6292        .10143E-03   -1.5463    
   6  norm          5.5825        4.3124        .13829E-03   -1.5235    
   7  norm          .10000E-03    14.176        .34692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.5288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0542        35.928        .46846E-02   -1.5503    
  11  norm          .10000E-03    1.6845        .10044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.832        .33631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    93.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.692        9.2382        .11723E-03   -1.5024    
  16  norm          .10000E-03    .84391        .70958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8357        11.410        .12775E-03   -1.5081    
  18  norm          12.279        8.7279        .11432E-03   -1.5007    
  19  Prefactor     .10000E-03    14.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10011E-03    90.800        .51160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6936        .28582        .29715E-03   -.72475    
  23  Prefactor     .72964        .13842        .21569E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72992e-09
Minuit parameter uncertainties:
  1  13.8625
  2  2.12345e-06
  3  13.7353
  4  0.000132217
  5  1.62927
  6  4.31267
  7  0.000465116
  8  7.03451e-05
  9  1.25594e-06
  10  12.3158
  11  1.20346e-06
  12  0.000443774
  13  4.02985e-05
  14  0.000474708
  15  9.23937
  16  8.15467e-07
  17  11.4129
  18  8.7288
  19  3.38738e-05
  20  0.000145335
  21  0.00629133
  22  0.286103
  23  0.138489
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.169e+01  9.239e+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:  7.296e-01  1.385e-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.694e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 208.718 -10.693
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.08e-08 +/- 4.80e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/57404/likelihoodResults_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.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) = 6305.57824172
delta logL = 1.0967517241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6305.49943512
delta logL = 1.17555832901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0005       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2344       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78289       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=   6305.499     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      263 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9975        21.400        .73203E-03    .13709E-03
   2  alpha         4.2358        4.6149        .32071        .41229E-04
   3  Normalizat    1.5478        .11344        .69531E-01    .76624E-05
   4  Prefactor     .78282        .56802E-01    .43494E-01    .10741E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99755
  alpha      = 4.23584
  Normalizat = 1.54785
  Prefactor  = 0.782823
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.499     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9975        27.847        .29281E-04   -1.5425    
   2  alpha         4.2358        4.5659        .14808E-01    .76750    
   3  Normalizat    1.5478        .27065        .30760E-03   -.76443    
   4  Prefactor     .78282        .13951        .20906E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3387e-10
Minuit parameter uncertainties:
  1  14.9245
  2  4.72771
  3  0.2709
  4  0.139574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57404': 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) = 6305.49943347
delta logL = 1.17555997481

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.998e+00  1.492e+01  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  4.236e+00  4.728e+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:  7.828e-01  1.396e-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.548e+00  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 208.718 -10.693
Photon Index (Free Index): 4.24 +/- 4.73
Photon Flux (Free Index): 1.75e-07 +/- 1.08e-07
Energy Flux (Free Index): 2.72e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/57404/cmap_HighResolution_525484801_525744001_4FGL_J1354.8-1041_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-05', comment='SUCCESS', photon_flux='6.08e-08', energy_flux2='2.72e-05', photon_flux_error='4.80e-08', dlogl='1.18e+00', energy_flux='2.28e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-08 17:46:05.112738', photon_index_error2='4.73', photon_index2='4.24', ts='2.37', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='2.04e-05', EG='1.69', time_epoch_completed='1631148365.11', return_code='0', job_id='57404', GAL2='0.78', EG2='1.55', return_code2='102', energy_flux_error='1.80e-05', photon_flux_error2='1.08e-07', ts2='5.00', photon_index='2.27' WHERE bin_id='1104' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 57404: <4FGL_J1354.8-1041_daily_bin1104> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1104> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 17:35:19 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:35:21 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:35:21 2021
Terminated at Wed Sep  8 17:46:05 2021
Results reported at Wed Sep  8 17:46:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1104 208.718 -10.6932 525484801 525744001 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 :                                   590.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

