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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin730
RA = 208.718, Dec = -10.6932
tmin = 428544001, tmax = 428803201
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='54943', job_status='RUN', time_executed='2021-09-08 17:34:24.305641', time_epoch_executed='1631147664.31' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54943

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54943/ft1_4FGL_J1354.8-1041_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54943/ft2_4FGL_J1354.8-1041_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54943/ft1_4FGL_J1354.8-1041_daily_bin730.fits outfile=/scratch/kocevski/54943/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin730.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=428544001.0 tmax=428803201.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 6.25
user 5.98
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54943/ft1_filtered_4FGL_J1354.8-1041_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/54943/ft2_4FGL_J1354.8-1041_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/54943/ltcube_428544001_428803201_4FGL_J1354.8-1041_daily_bin730.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/54943/ft2_4FGL_J1354.8-1041_daily_bin730.fits
.....................!
real 12.23
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54943/ft1_filtered_4FGL_J1354.8-1041_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/54943/ft2_4FGL_J1354.8-1041_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/54943/ltcube_428544001_428803201_4FGL_J1354.8-1041_daily_bin730.fits outfile=/scratch/kocevski/54943/expmap_428544001_428803201_4FGL_J1354.8-1041_daily_bin730.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/54943/ltcube_428544001_428803201_4FGL_J1354.8-1041_daily_bin730.fits
.....................!
real 190.11
user 185.47
sys 4.21

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/54943/ft1_filtered_4FGL_J1354.8-1041_daily_bin730.fits scfile=/scratch/kocevski/54943/ft2_4FGL_J1354.8-1041_daily_bin730.fits outfile=/scratch/kocevski/54943/cmap_428544001_428803201_4FGL_J1354.8-1041_daily_bin730.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54943/ft1_filtered_4FGL_J1354.8-1041_daily_bin730.fits scfile=/scratch/kocevski/54943/ft2_4FGL_J1354.8-1041_daily_bin730.fits outfile=/scratch/kocevski/54943/cmap_HighResolution_428544001_428803201_4FGL_J1354.8-1041_daily_bin730.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0042       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32884       1.0000         .10000E-03   10000.    
    11 'norm      '    .41395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.258       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5567       1.0000         .10000E-03   10000.    
    17 'norm      '    8.1555       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3736       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.236       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10310       1.0000         .10000E-03   10000.    
    21 'norm      '    33.147       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7323       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74549       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=   10649.64     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2279 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0028        15.732       -.14940E-05   -.34336E-04
   2  Prefactor     .10000E-03    13.656        .55248E-07** at limit **
   3  Prefactor     41.032        13.932       -.12504E-05    .30892E-04
   4  Prefactor     .10000E-03    8.6638        .48105E-07** at limit **
   5  norm          .10000E-03    .53922        .93147E-09** at limit **
   6  norm          .10000E-03    1.4812       -.18472E-07** at limit **
   7  norm          13.640        6.5955       -.23704E-07    .68917E-04
   8  Prefactor     .10000E-03    3.3614       -.13659E-08** at limit **
   9  norm          .10000E-03    16.692       -.93381E-07** at limit **
  10  Prefactor     .39407        5.8230       -.80894E-06   -.17470E-05
  11  norm          .41374        2.0776       -.86413E-06   -.12575E-03
  12  Prefactor     8.4862        7.2739        .11054E-05   -.13803E-03
  13  Prefactor     .10000E-03    3.7839       -.10617E-07** at limit **
  14  Prefactor     .10000E-03    35.669        .49896E-06** at limit **
  15  norm          15.259        9.4708        .21942E-06   -.16760E-04
  16  norm          7.5567        2.4561       -.84689E-08    .10712E-04
  17  norm          8.1555        8.3382       -.49979E-06   -.33883E-04
  18  norm          1.3744        3.1333       -.73153E-06   -.11919E-02
  19  Prefactor     13.235        16.379       -.58758E-05   -.47926E-05
  20  Prefactor     .10000E-03    9.8559       -.25488E-06** at limit **
  21  norm          33.155        13.862        .40013E-07    .34852E-04
  22  Normalizat    1.7321        .20371        .10247E-05    .23636E-03
  23  Prefactor     .74557        .97831E-01    .33376E-06    .38782E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.00282
  Prefactor  = 0.0001
  Prefactor  = 41.0316
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.6399
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.394066
  norm       = 0.413735
  Prefactor  = 8.48624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2588
  norm       = 7.55672
  norm       = 8.15552
  norm       = 1.37441
  Prefactor  = 13.2354
  Prefactor  = 0.000100005
  norm       = 33.1548
  Normalizat = 1.73213
  Prefactor  = 0.745569
 **********
 **   18 **HESSE 
 **********

 FCN=   10649.64     FROM HESSE     STATUS=OK           388 CALLS     2667 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0028        15.757        .13357E-03   -1.5108    
   2  Prefactor     .10000E-03    14.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.032        13.993        .62583E-04   -1.4426    
   4  Prefactor     .10000E-03    8.7236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .80761        .14616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.5228        .24480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.640        6.5772        .10845E-03   -1.4969    
   8  Prefactor     .10000E-03    3.3636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39407        72.985        .46391E-02   -1.5582    
  11  norm          .41374        8.6544        .27895E-02   -1.5579    
  12  Prefactor     8.4862        7.2029        .13761E-03   -1.5125    
  13  Prefactor     .10000E-03    3.7846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.259        9.4350        .10254E-03   -1.4927    
  16  norm          7.5567        2.4594        .87951E-04   -1.5158    
  17  norm          8.1555        8.3444        .14039E-03   -1.5137    
  18  norm          1.3744        3.2376        .27900E-03   -1.5473    
  19  Prefactor     13.235        16.023        .11010E-03   -1.4980    
  20  Prefactor     .10000E-03    11.861        .10208       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          33.155        13.863        .69600E-04   -1.4556    
  22  Normalizat    1.7321        .23926        .30525E-03   -.71449    
  23  Prefactor     .74557        .11423        .22195E-03   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11204e-08
Minuit parameter uncertainties:
  1  15.7638
  2  1.18511e-05
  3  13.994
  4  2.49962e-06
  5  2.10655e-06
  6  1.02841e-06
  7  6.57757
  8  2.61113e-06
  9  7.15297e-06
  10  10.7378
  11  3.78468
  12  7.20361
  13  9.68488e-07
  14  2.78957e-05
  15  9.4359
  16  2.45945
  17  8.34554
  18  3.23796
  19  16.0286
  20  0.000480569
  21  13.864
  22  0.23942
  23  0.114264
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.526e+01  9.436e+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.456e-01  1.143e-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.732e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.95
Ra Dec: 208.718 -10.693
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 7.93e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.84e-05

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) = 10646.9867592
delta logL = 2.65043384656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10646.9733052
delta logL = 2.66388776554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1779       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5670       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79782       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=   10646.97     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      253 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1768        30.367        .37430E-02    .71998E-03
   2  alpha         3.5671        3.9013        .23354        .11108E-03
   3  Normalizat    1.5684        .92993E-01    .71520E-01    .74128E-04
   4  Prefactor     .79781        .43519E-01    .43689E-01    .12757E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.17684
  alpha      = 3.56708
  Normalizat = 1.56836
  Prefactor  = 0.797809
 **********
 **   18 **HESSE 
 **********

 FCN=   10646.97     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1768        8.1796        .90460E-04   -1.5172    
   2  alpha         3.5671        .78390        .98736E-02    .44098    
   3  Normalizat    1.5684        .23471        .31642E-03   -.75875    
   4  Prefactor     .79781        .11550        .21516E-03   -.99809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.029e-11
Minuit parameter uncertainties:
  1  8.18087
  2  0.800519
  3  0.234877
  4  0.115533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54943': 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) = 10646.9733052
delta logL = 2.66388779111

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  7.177e+00  8.181e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.567e+00  8.005e-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:  7.978e-01  1.155e-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.568e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.88
Ra Dec: 208.718 -10.693
Photon Index (Free Index): 3.57 +/- 0.80
Photon Flux (Free Index): 2.17e-07 +/- 8.34e-08
Energy Flux (Free Index): 3.91e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/54943/cmap_HighResolution_428544001_428803201_4FGL_J1354.8-1041_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.93e-08', energy_flux2='3.91e-05', photon_flux_error='4.90e-08', dlogl='2.66e+00', energy_flux='2.97e-05', photon_flux2='2.17e-07', job_status='DONE', time_completed='2021-09-08 17:46:32.680881', photon_index_error2='0.80', photon_index2='3.57', ts='5.95', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.73', time_epoch_completed='1631148392.68', return_code='0', job_id='54943', GAL2='0.80', EG2='1.57', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='8.34e-08', ts2='11.88', photon_index='2.27' WHERE bin_id='730' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:46:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 54943: <4FGL_J1354.8-1041_daily_bin730> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin730 208.718 -10.6932 428544001 428803201 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 :                                   726.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

