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


Performing analysis on: 4FGL_J0354.7-1617_daily_bin160
RA = 58.6779, Dec = -16.287
tmin = 280800001, tmax = 281059201
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='94198', job_status='RUN', time_executed='2021-08-19 19:32:20.862483', time_epoch_executed='1629426740.86' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94198/ft1_4FGL_J0354.7-1617_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94198/ft1_4FGL_J0354.7-1617_daily_bin160.fits outfile=/scratch/kocevski/94198/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin160.fits ra=58.6779 dec=-16.287 rad=12.0 tmin=280800001.0 tmax=281059201.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 9.81
user 3.59
sys 6.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.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/94198/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin160.fits evtable="EVENTS" outfile="/scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.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 5.84
user 0.33
sys 5.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/94198/ltcube_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.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/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits
.....................!
real 18.32
user 11.38
sys 6.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/94198/ltcube_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.fits outfile=/scratch/kocevski/94198/expmap_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.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/94198/ltcube_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.fits
.....................!
real 196.86
user 185.08
sys 11.42

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J0354.7-1617 @ 58.6779 -16.287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits scfile=/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits outfile=/scratch/kocevski/94198/cmap_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.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=58.6779 yref=-16.287 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 6.34
user 0.36
sys 5.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits scfile=/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits outfile=/scratch/kocevski/94198/cmap_HighResolution_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.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=58.6779 yref=-16.287 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 6.36
user 0.37
sys 5.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94198/Model_4FGL_J0354.7-1617_daily_bin160.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/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits.....................!
real 89.33
user 79.55
sys 9.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits', '/scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits', expMap='/scratch/kocevski/94198/expmap_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.fits', expCube='/scratch/kocevski/94198/ltcube_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94198/Model_4FGL_J0354.7-1617_daily_bin160.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0354.7-1617'

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  2.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/94198/ft1_filtered_4FGL_J0354.7-1617_daily_bin160.fits
Spacecraft file(s): /scratch/kocevski/94198/ft2_4FGL_J0354.7-1617_daily_bin160.fits
Exposure map: /scratch/kocevski/94198/expmap_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.fits
Exposure cube: /scratch/kocevski/94198/ltcube_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94198/Model_4FGL_J0354.7-1617_daily_bin160.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) = 7105.63966649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64157E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30173E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16882       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.919       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11401E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4196       1.0000         .10000E-03   10000.    
    16 'norm      '    5.2474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.2093       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.121       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.702       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76793       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7105.600     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2425 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83358        13.478       -.20373E-05    .18051E-03
   2  Prefactor     .10007E-03    3.0632        .16993E-05** at limit **
   3  Prefactor     .10002E-03    67.643       -.27589E-05** at limit **
   4  Prefactor     .10000E-03    1.0066        .36188E-08** at limit **
   5  Prefactor     .10000E-03    8.2422       -.29658E-07** at limit **
   6  Prefactor     .10000E-03    5.4204        .63476E-08** at limit **
   7  Prefactor     11.021        22.261        .10499E-07   -.11001E-05
   8  Prefactor     .10000E-03    .73463       -.29956E-07** at limit **
   9  Prefactor     .10014E-03    1.5352       -.84128E-06** at limit **
  10  Prefactor     .17986        2.0331        .11808E-05   -.92790E-03
  11  norm          .10000E-03    .19878        .66160E-08** at limit **
  12  Prefactor     15.926        19.304        .14712E-05    .24430E-03
  13  norm          1.0335        1.1631        .38979E-07    .16177E-03
  14  Prefactor     .10001E-03    54.905        .37001E-05** at limit **
  15  Prefactor     3.4197        1.9528        .93825E-06    .26487E-02
  16  norm          5.2474        5.1933       -.67030E-08    .15630E-03
  17  Prefactor     14.402        13.259       -.67893E-07    .20981E-04
  18  Prefactor     11.764        6.6480        .16198E-06   -.56887E-04
  19  Prefactor     .10000E-03    1.3044       -.22670E-06** at limit **
  20  norm          7.2092        6.4858        .29458E-08   -.48021E-04
  21  Prefactor     25.120        14.637        .37040E-06    .14901E-03
  22  Prefactor     11.701        16.104        .11381E-06    .21029E-04
  23  Normalizat    .76795        .14747       -.62307E-06    .34357E-04
  24  Prefactor     .95128        .11341        .21740E-06    .46105E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.833584
  Prefactor  = 0.000100067
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0206
  Prefactor  = 0.0001
  Prefactor  = 0.000100136
  Prefactor  = 0.179864
  norm       = 0.0001
  Prefactor  = 15.9263
  norm       = 1.03347
  Prefactor  = 0.000100015
  Prefactor  = 3.41971
  norm       = 5.24741
  Prefactor  = 14.4021
  Prefactor  = 11.7636
  Prefactor  = 0.0001
  norm       = 7.20918
  Prefactor  = 25.1205
  Prefactor  = 11.7006
  Normalizat = 0.767948
  Prefactor  = 0.951276
 **********
 **   18 **HESSE 
 **********

 FCN=   7105.600     FROM HESSE     STATUS=OK           413 CALLS     2838 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83358        82.569        .56281E-02   -1.5525    
   2  Prefactor     .10007E-03    13.131        .23185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    68.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0103        .82582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.021        22.262        .12067E-03   -1.5044    
   8  Prefactor     .10000E-03    .74574        .70378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10014E-03    31.846        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17986        10.532        .17943E-02   -1.5623    
  11  norm          .10000E-03    .19889        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.926        19.224        .10038E-03   -1.4910    
  13  norm          1.0335        1.1172        .87837E-04   -1.5505    
  14  Prefactor     .10001E-03    56.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4197        2.0164        .43701E-03   -1.5338    
  16  norm          5.2474        5.2027        .17547E-03   -1.5250    
  17  Prefactor     14.402        13.249        .10554E-03   -1.4949    
  18  Prefactor     11.764        6.6610        .11680E-03   -1.5022    
  19  Prefactor     .10000E-03    2.2641        .18642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.2092        6.4853        .14939E-03   -1.5171    
  21  Prefactor     25.120        14.643        .39962E-03   -1.4705    
  22  Prefactor     11.701        16.121        .11711E-03   -1.5024    
  23  Normalizat    .76795        .16625        .25428E-03   -1.0127    
  24  Prefactor     .95128        .12978        .18926E-03   -.94372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56778e-08
Minuit parameter uncertainties:
  1  16.6151
  2  0.00187142
  3  0.00228908
  4  3.82466e-07
  5  5.46604e-06
  6  4.21213e-06
  7  22.2788
  8  2.67121e-06
  9  0.00417058
  10  2.75241
  11  2.7625e-07
  12  19.2319
  13  1.11727
  14  0.00184108
  15  2.01643
  16  5.20314
  17  13.2518
  18  6.66146
  19  1.97378e-05
  20  6.48595
  21  14.6453
  22  16.1274
  23  0.166362
  24  0.129826
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.841e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  9.513e-01  1.298e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  7.679e-01  1.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 58.678 -16.287
Photon Flux Upper Limit: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94198/likelihoodResults_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.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): 102
logL (Free Index) = 7105.59982699
delta logL = -8.42342988108e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7105.59974317
delta logL = -4.14567693952e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4708       1.0000          .0000       10.000    
     3 'Normalizat'    .76795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7105.600     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      256 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10303E-03    9.1374        .10272    ** at limit **
   2  Index         2.6009        3.4307        .50000       -.38250E-04
   3  Normalizat    .76795        .32800E-02    .43191E-01    .11826E-03
   4  Prefactor     .95128        .27081E-02    .45655E-01    .17245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103029
  Index      = 2.60085
  Normalizat = 0.767947
  Prefactor  = 0.951277
 **********
 **   18 **HESSE 
 **********

 FCN=   7105.600     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      291 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10303E-03    6194.8        .55560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6009        8.6964        .50000       -.50046    
   3  Normalizat    .76795        .15857E-01    .25428E-03   -1.0127    
   4  Prefactor     .95128        .13088E-01    .18926E-03   -.94372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.16303e-07
Minuit parameter uncertainties:
  1  0.177783
  2  18.6972
  3  0.015857
  4  0.0130883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94198': 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) = 7105.59974219
delta logL = 5.60035914532e-07

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.030e-04  1.778e-01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.601e+00  1.870e+01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  9.513e-01  1.309e-02  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  7.679e-01  1.586e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 58.678 -16.287

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/94198/cmap_HighResolution_280800001_281059201_4FGL_J0354.7-1617_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-08-19 19:45:07.822495', job_id='94198', GAL2='0.95', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1629427507.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='5.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='160' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:45:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 94198: <4FGL_J0354.7-1617_daily_bin160> in cluster <slac> Done

Job <4FGL_J0354.7-1617_daily_bin160> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Aug 19 19:30:22 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 19:30:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 19:30:23 2021
Terminated at Thu Aug 19 19:45:09 2021
Results reported at Thu Aug 19 19:45:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin160 58.6779 -16.287 280800001 281059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.7-1617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   861.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

