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


Performing analysis on: 4FGL_J0354.4+4643_daily_bin678
RA = 58.609, Dec = 46.7231
tmin = 415065601, tmax = 415324801
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='68461', job_status='RUN', time_executed='2021-08-19 18:10:13.333929', time_epoch_executed='1629421813.33' WHERE source_name='4FGL J0354.4+4643' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68461/ft1_4FGL_J0354.4+4643_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68461/ft1_4FGL_J0354.4+4643_daily_bin678.fits outfile=/scratch/kocevski/68461/ft1_filteredMKT_4FGL_J0354.4+4643_daily_bin678.fits ra=58.609 dec=46.7231 rad=12.0 tmin=415065601.0 tmax=415324801.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.16
user 3.45
sys 5.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.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/68461/ft1_filteredMKT_4FGL_J0354.4+4643_daily_bin678.fits evtable="EVENTS" outfile="/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.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.97
user 0.32
sys 5.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/68461/ltcube_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.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/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits
.....................!
real 17.72
user 11.20
sys 6.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/68461/ltcube_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.fits outfile=/scratch/kocevski/68461/expmap_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.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/68461/ltcube_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.fits
.....................!
real 198.33
user 186.08
sys 11.69

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 168 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0354.4+4643 @ 58.609 46.7231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits scfile=/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits outfile=/scratch/kocevski/68461/cmap_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.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.609 yref=46.7231 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 5.88
user 0.37
sys 5.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits scfile=/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits outfile=/scratch/kocevski/68461/cmap_HighResolution_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.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.609 yref=46.7231 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 5.89
user 0.38
sys 5.49

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68461/Model_4FGL_J0354.4+4643_daily_bin678.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits.....................!
real 39.96
user 31.37
sys 8.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits', '/scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits', expMap='/scratch/kocevski/68461/expmap_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.fits', expCube='/scratch/kocevski/68461/ltcube_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/68461/Model_4FGL_J0354.4+4643_daily_bin678.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0354.4+4643'

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.443e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/68461/ft1_filtered_4FGL_J0354.4+4643_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/68461/ft2_4FGL_J0354.4+4643_daily_bin678.fits
Exposure map: /scratch/kocevski/68461/expmap_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.fits
Exposure cube: /scratch/kocevski/68461/ltcube_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/68461/Model_4FGL_J0354.4+4643_daily_bin678.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1006.38137492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1004.51459882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.340       1.0000         .10000E-03   10000.    
     2 'norm      '    67.052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    90.384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7044       1.0000         .10000E-03   10000.    
     5 'norm      '    8.0064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3371       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6396       1.0000         .10000E-03   10000.    
     8 'norm      '    6.7636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16225E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.5470       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20656E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0640       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1004.493     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      409 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.020        167.84        .61857E-03   -.44470E-05
   2  norm          68.376        70.979       -.18328E-03   -.76049E-04
   3  Prefactor     91.297        7.1438       -.65207E-05    .66705E-03
   4  Prefactor     .10000E-03    343.06       -.40433E-03** at limit **
   5  norm          7.9941        3.8514        .85743E-05   -.91314E-04
   6  Prefactor     48.120        661.33        .71230E-04   -.67307E-05
   7  Prefactor     .10001E-03    698.10       -.14413E-02** at limit **
   8  norm          .10000E-03    343.27        .92535E-03** at limit **
   9  Prefactor     3.0061        1.0145         .0000         .0000    
  10  Prefactor     .10000E-03    30.234       -.24198E-03** at limit **
  11  norm          8.5470        1.0017         .0000         .0000    
  12  Prefactor     .10000E-03    29.778        .23145E-04** at limit **
  13  norm          .10000E-03    10.470        .32165E-05** at limit **
  14  Normalizat    .10000E-01    .42772        .13430E-03** at limit **
  15  Prefactor     1.0557        .17433        .10782E-03    .94174E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.0205
  norm       = 68.3755
  Prefactor  = 91.2968
  Prefactor  = 0.000100004
  norm       = 7.99408
  Prefactor  = 48.12
  Prefactor  = 0.000100008
  norm       = 0.000100003
  Prefactor  = 3.00609
  Prefactor  = 0.0001
  norm       = 8.54704
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.05572
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1004.493     FROM HESSE     STATUS=FAILED        41 CALLS      450 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.020        164.42        .11720E-02   -1.4044    
   2  norm          68.376        68.891        .12254E-02   -1.4052    
   3  Prefactor     91.297        86.820        .10567E-02   -1.3794    
   4  Prefactor     .10000E-03    343.20        .80530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.9941        3.6852        .35425E-02   -1.5142    
   6  Prefactor     48.120        534.88        .32789E-02   -1.4319    
   7  Prefactor     .10001E-03    696.41        .52939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    342.99        .38571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     554.27        551.18         .0000       -1.5361    
  10  Prefactor     .10000E-03    .20571       -.24198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.5470        1.0017         .0000       -1.5123    
  12  Prefactor     .10000E-03    .25502        .23145E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571        .32165E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .10000E-01    .25505        .13430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0557        1.1725        .10782E-03   -.90894    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.17394e-11
Minuit parameter uncertainties:
  1  165.519
  2  68.9716
  3  86.9406
  4  0.00221652
  5  3.68535
  6  324.611
  7  0.0046615
  8  0.00205158
  9  1.01455
  10  1.34869e-05
  11  1.00172
  12  2.59145e-07
  13  1.7058e-06
  14  2.94992e-07
  15  1.20302
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1004.49346916

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.349e-05  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.056e+00  1.203e+00  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  2.950e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 58.609 46.723
Photon Flux Upper Limit: 3.28e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68461/likelihoodResults_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.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) = 1004.49362421
delta logL = -0.000155046586201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1004.49347076
delta logL = -1.59952685408e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0831       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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=   1004.493     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      281 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10896E-03    31.346        .12941E-01** at limit **
   2  Index         2.9293        6.0770        .50000        .15118E-04
   3  Normalizat    .10000E-01    .13284E-02    .12299E-01** at limit **
   4  Prefactor     1.0557        .83071E-02    .15085E-03   -.70654E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108958
  Index      = 2.92934
  Normalizat = 0.01
  Prefactor  = 1.05572
 **********
 **   18 **HESSE 
 **********

 FCN=   1004.493     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10896E-03    261.50        .13992E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9293        5.2453        .50000       -.42699    
   3  Normalizat    .10000E-01    .11425E-01    .24599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0557        .24364E-01    .60340E-05   -.90895    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.14529e-08
Minuit parameter uncertainties:
  1  0.0972238
  2  685.807
  3  9.59907e-07
  4  0.0243646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68461': 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) = 1004.49347018
delta logL = -1.01643036032e-06

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.090e-04  9.722e-02  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.929e+00  6.858e+02  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  9.100e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.056e+00  2.436e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  9.599e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 58.609 46.723

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/68461/cmap_HighResolution_415065601_415324801_4FGL_J0354.4+4643_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-01', job_status='DONE', photon_flux_upper_limit='3.28e-06', time_completed='2021-08-19 18:17:21.947424', job_id='68461', GAL2='1.06', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629422241.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.06', dlogl='-1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='678' AND source_name='4FGL J0354.4+4643' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 18:17:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 68461: <4FGL_J0354.4+4643_daily_bin678> in cluster <slac> Done

Job <4FGL_J0354.4+4643_daily_bin678> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 18:05:41 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 18:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 18:05:43 2021
Terminated at Thu Aug 19 18:17:23 2021
Results reported at Thu Aug 19 18:17:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.4+4643_daily_bin678 58.609 46.7231 415065601 415324801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.4+4643 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   513.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             214.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

