/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 223 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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0354.7-1617_daily_bin8
RA = 58.6779, Dec = -16.287
tmin = 241401601, tmax = 241660801
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='92429', job_status='RUN', time_executed='2021-08-19 19:29:43.578739', time_epoch_executed='1629426583.58' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92429/ft1_4FGL_J0354.7-1617_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92429/ft1_4FGL_J0354.7-1617_daily_bin8.fits outfile=/scratch/kocevski/92429/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin8.fits ra=58.6779 dec=-16.287 rad=12.0 tmin=241401601.0 tmax=241660801.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 2.14
user 1.25
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/92429/ltcube_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.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/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits
.....................!
real 13.19
user 12.05
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/92429/ltcube_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.fits outfile=/scratch/kocevski/92429/expmap_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.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/92429/ltcube_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.fits
.....................!
real 192.92
user 187.37
sys 5.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 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/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits scfile=/scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits outfile=/scratch/kocevski/92429/cmap_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.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 1.25
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits scfile=/scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits outfile=/scratch/kocevski/92429/cmap_HighResolution_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.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 1.23
user 0.39
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92429/Model_4FGL_J0354.7-1617_daily_bin8.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/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits.....................!
real 75.77
user 73.47
sys 2.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits', '/scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits', expMap='/scratch/kocevski/92429/expmap_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.fits', expCube='/scratch/kocevski/92429/ltcube_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92429/Model_4FGL_J0354.7-1617_daily_bin8.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/92429/ft1_filtered_4FGL_J0354.7-1617_daily_bin8.fits
Spacecraft file(s): /scratch/kocevski/92429/ft2_4FGL_J0354.7-1617_daily_bin8.fits
Exposure map: /scratch/kocevski/92429/expmap_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.fits
Exposure cube: /scratch/kocevski/92429/ltcube_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92429/Model_4FGL_J0354.7-1617_daily_bin8.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) = 6142.83246733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5952       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0468       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.917       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65192       1.0000         .10000E-03   10000.    
    16 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.828       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0383       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1193       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88430       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=   6142.824     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2758 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.615        .90712E-02** at limit **
   2  Prefactor     3.8966        4.8970        .51100E-02    .34057E-03
   3  Prefactor     .10000E-03    102.13        .90712E-02** at limit **
   4  Prefactor     1.8933        2.7054        .75585E-02    .34849E-03
   5  Prefactor     .10000E-03    5.1228        .90712E-02** at limit **
   6  Prefactor     .10000E-03    2.4927        .90712E-02** at limit **
   7  Prefactor     .10000E-03    32.747        .90712E-02** at limit **
   8  Prefactor     1.2299        2.3464        .10139E-01    .85405E-03
   9  Prefactor     1.5964        3.7738        .83957E-02    .74933E-03
  10  Prefactor     7.0471        5.1792        .37780E-02    .25942E-03
  11  norm          1.6038        .89557        .83670E-02   -.96332E-04
  12  Prefactor     37.929        27.196        .16272E-02   -.13545E-02
  13  norm          5.8462        2.1059        .41525E-02    .12220E-03
  14  Prefactor     .10000E-03    10.453        .90712E-02** at limit **
  15  Prefactor     .65287        2.2236        .11876E-01    .13762E-02
  16  norm          .10000E-03    6.8408        .90712E-02** at limit **
  17  Prefactor     15.816        25.160        .25168E-02    .49227E-03
  18  Prefactor     .10000E-03    3.0006        .90712E-02** at limit **
  19  Prefactor     .10000E-03    2.4912        .63383E-01** at limit **
  20  norm          5.3274        9.8072        .43528E-02   -.22052E-03
  21  Prefactor     42.646        26.241        .15347E-02   -.23468E-04
  22  Prefactor     4.0368        14.298        .50165E-02    .85860E-04
  23  Normalizat    1.1189        .19508        .59972E-01    .17913E-04
  24  Prefactor     .88455        .13962        .44805E-01    .15236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.8966
  Prefactor  = 0.000100003
  Prefactor  = 1.89328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22986
  Prefactor  = 1.59637
  Prefactor  = 7.04711
  norm       = 1.60383
  Prefactor  = 37.9286
  norm       = 5.84621
  Prefactor  = 0.0001
  Prefactor  = 0.652871
  norm       = 0.0001
  Prefactor  = 15.8162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.32742
  Prefactor  = 42.646
  Prefactor  = 4.03681
  Normalizat = 1.11892
  Prefactor  = 0.884553
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.824     FROM HESSE     STATUS=OK           401 CALLS     3159 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8966        4.8882        .18693E-03   -1.5313    
   3  Prefactor     .10000E-03    102.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8933        2.6832        .14981E-03   -1.5433    
   5  Prefactor     .10000E-03    5.1282        .17323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4949        .12085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2299        2.2857        .15174E-03   -1.5486    
   9  Prefactor     1.5964        3.6940        .20751E-03   -1.5455    
  10  Prefactor     7.0471        5.1036        .13223E-03   -1.5177    
  11  norm          1.6038        .89459        .53513E-04   -1.5455    
  12  Prefactor     37.929        27.235        .65089E-04   -1.4475    
  13  norm          5.8462        2.0839        .61739E-04   -1.5224    
  14  Prefactor     .10000E-03    10.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .65287        2.1671        .20279E-03   -1.5546    
  16  norm          .10000E-03    6.8854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.816        25.210        .10067E-03   -1.4912    
  18  Prefactor     .10000E-03    3.0230        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4160        .23229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3274        9.7978        .17411E-03   -1.5246    
  21  Prefactor     42.646        26.222        .61387E-04   -1.4401    
  22  Prefactor     4.0368        14.302        .20066E-03   -1.5306    
  23  Normalizat    1.1189        .22362        .26524E-03   -.89147    
  24  Prefactor     .88455        .16202        .22394E-03   -.96683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68439e-09
Minuit parameter uncertainties:
  1  5.19877e-05
  2  4.88873
  3  0.00115221
  4  2.6834
  5  9.77414e-08
  6  9.72172e-07
  7  3.1334e-05
  8  2.28589
  9  3.69453
  10  5.10391
  11  0.894599
  12  27.244
  13  2.08391
  14  2.19711e-06
  15  2.16738
  16  5.57352e-06
  17  25.2268
  18  1.19052e-06
  19  1.30509e-07
  20  9.80077
  21  26.2292
  22  14.3142
  23  0.223815
  24  0.16211
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.197e-06  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:  8.846e-01  1.621e-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:  1.119e+00  2.238e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92429/likelihoodResults_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.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) = 6142.82436625
delta logL = -0.00045503300862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6142.82391138
delta logL = -1.67712641996e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5197       1.0000          .0000       10.000    
     3 'Normalizat'    1.1189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88459       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6142.824     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    188.05        .18142E-02** at limit **
   2  Index         2.4617        7.5096        .50000        .59246E-05
   3  Normalizat    1.1189        .20789E-01    .26524E-03    .15002E-05
   4  Prefactor     .88455        .15890E-01    .22394E-03    .16753E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100737
  Index      = 2.46167
  Normalizat = 1.11892
  Prefactor  = 0.884553
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.824     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10074E-03    767.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4617        6.6987        .50000       -.53247    
   3  Normalizat    1.1189        .45600E-01    .10609E-04   -.89147    
   4  Prefactor     .88455        .34851E-01    .89577E-05   -.96683    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21671e-08
Minuit parameter uncertainties:
  1  0.0482142
  2  1648.02
  3  0.0456011
  4  0.0348522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92429': 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) = 6142.82391115
delta logL = 6.91197783453e-08

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.007e-04  4.821e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.462e+00  1.648e+03  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:  8.846e-01  3.485e-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:  1.119e+00  4.560e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/92429/cmap_HighResolution_241401601_241660801_4FGL_J0354.7-1617_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-08-19 19:40:37.387372', job_id='92429', GAL2='0.88', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1629427237.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='8' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 92429: <4FGL_J0354.7-1617_daily_bin8> in cluster <slac> Done

Job <4FGL_J0354.7-1617_daily_bin8> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 19:25:33 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 19:25:35 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:25:35 2021
Terminated at Thu Aug 19 19:40:37 2021
Results reported at Thu Aug 19 19:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin8 58.6779 -16.287 241401601 241660801 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 :                                   664.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

