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


Performing analysis on: 4FGL_J0354.4+4643_daily_bin637
RA = 58.609, Dec = 46.7231
tmin = 404438401, tmax = 404697601
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='68394', job_status='RUN', time_executed='2021-08-19 18:09:49.748473', time_epoch_executed='1629421789.75' WHERE source_name='4FGL J0354.4+4643' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68394/ft1_4FGL_J0354.4+4643_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68394/ft1_4FGL_J0354.4+4643_daily_bin637.fits outfile=/scratch/kocevski/68394/ft1_filteredMKT_4FGL_J0354.4+4643_daily_bin637.fits ra=58.609 dec=46.7231 rad=12.0 tmin=404438401.0 tmax=404697601.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 19.17
user 12.10
sys 6.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.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/68394/ft1_filteredMKT_4FGL_J0354.4+4643_daily_bin637.fits evtable="EVENTS" outfile="/scratch/kocevski/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.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 7.10
user 0.34
sys 6.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/68394/ltcube_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.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/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits
.....................!
real 18.16
user 11.13
sys 6.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/68394/ltcube_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.fits outfile=/scratch/kocevski/68394/expmap_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.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/68394/ltcube_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.fits
.....................!
real 199.82
user 185.52
sys 13.91

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/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits scfile=/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits outfile=/scratch/kocevski/68394/cmap_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.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 6.95
user 0.35
sys 6.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits scfile=/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits outfile=/scratch/kocevski/68394/cmap_HighResolution_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.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 6.95
user 0.39
sys 6.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68394/Model_4FGL_J0354.4+4643_daily_bin637.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/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits.!
real 21.77
user 12.32
sys 9.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits', '/scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits', expMap='/scratch/kocevski/68394/expmap_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.fits', expCube='/scratch/kocevski/68394/ltcube_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/68394/Model_4FGL_J0354.4+4643_daily_bin637.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/68394/ft1_filtered_4FGL_J0354.4+4643_daily_bin637.fits
Spacecraft file(s): /scratch/kocevski/68394/ft2_4FGL_J0354.4+4643_daily_bin637.fits
Exposure map: /scratch/kocevski/68394/expmap_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.fits
Exposure cube: /scratch/kocevski/68394/ltcube_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/68394/Model_4FGL_J0354.4+4643_daily_bin637.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) = 13.6555370405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0689       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4130       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4300       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0884       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6923       1.0000         .10000E-03   10000.    
     8 'norm      '    8.9367       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1789       1.0000         .10000E-03   10000.    
    11 'norm      '    8.5470       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4300       1.0000         .10000E-03   10000.    
    13 'norm      '    90.020       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    .74934E-09   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12.00826     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      183 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0689        1.2157         .0000         .0000    
   2  norm          3.4130        1.0111         .0000         .0000    
   3  Prefactor     .20792E-03    .16016        .49800E-05** at limit **
   4  Prefactor     .25230E-01    .86555E-01   -.25858E-05   -.11037E-02
   5  norm          .10000E-03    .13578       -.19515E-06** at limit **
   6  Prefactor     .23330E-02    .27617E-01   -.34651E-05** at limit **
   7  Prefactor     4.6923        1.0058         .0000         .0000    
   8  norm          5.4534        .78253        .10835E-06    .68572E-02
   9  Prefactor     3.0061        1.0145         .0000         .0000    
  10  Prefactor     .10000E-03    .27734        .48976E-06** at limit **
  11  norm          8.5470        1.0017         .0000         .0000    
  12  Prefactor     .10000E-03    .20394        .90509E-07** at limit **
  13  norm          89.196        .99547        .69237E-05   -.10693E-02
  14  Normalizat    .10000E-01    .25695        .14552E-05** at limit **
  15  Prefactor     .28311E-13    .25504        .13434E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06895
  norm       = 3.41296
  Prefactor  = 0.000207924
  Prefactor  = 0.0252299
  norm       = 0.0001
  Prefactor  = 0.00233301
  Prefactor  = 4.69232
  norm       = 5.45345
  Prefactor  = 3.00609
  Prefactor  = 0.000100002
  norm       = 8.54704
  Prefactor  = 0.0001
  norm       = 89.1956
  Normalizat = 0.01
  Prefactor  = 2.83107e-14
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12.00826     FROM HESSE     STATUS=FAILED         9 CALLS      192 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     586.74        585.33         .0000       -1.5501    
   2  norm          3.4130        1.0111         .0000       -1.5338    
   3  Prefactor     .20792E-03    .16016        .49800E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25230E-01    .86555E-01   -.25858E-05   -1.5740    
   5  norm          .10000E-03    .13578       -.19515E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .23330E-02    .27617E-01   -.34651E-05   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6923        1.0058         .0000       -1.5275    
   8  norm          5.4534        .78253        .10835E-06   -1.5241    
   9  Prefactor     3.0061        1.0145         .0000       -1.5361    
  10  Prefactor     .10000E-03    .27734        .48976E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.5470        1.0017         .0000       -1.5123    
  12  Prefactor     .10000E-03    .20394        .90509E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          89.196        .99547        .69237E-05   -1.3816    
  14  Normalizat    .10000E-01    .25695        .14552E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .28311E-13    .25504        .13434E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.90262e-10
Minuit parameter uncertainties:
  1  1.21575
  2  1.01115
  3  0.00831504
  4  0.0865553
  5  7.38214e-07
  6  0.0157058
  7  1.00579
  8  0.782535
  9  1.01455
  10  4.7417e-05
  11  1.00172
  12  9.02482e-07
  13  0.995466
  14  2.35845e-07
  15  1.69848e-07
Done.

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

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.742e-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:  2.831e-14  1.698e-07  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.358e-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: 1.13e-04 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68394/likelihoodResults_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.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) = 12.0082679552
delta logL = -7.14663391932e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12.0082671942
delta logL = -6.38561396826e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96308E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5775       1.0000          .0000       10.000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .19620E-08   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.

 FCN=   12.00826     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      195 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6340.3        .90718E-02** at limit **
   2  Index         2.5540        6.2738        .50000        .19429E-06
   3  Normalizat    .10000E-01    .71666E-02    .56314E-01** at limit **
   4  Prefactor      .0000        .11083E-02    .22133E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.55397
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   12.00826     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      224 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9981.3        .11330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5540        5.3492        .50000       -.51118    
   3  Normalizat    .10000E-01    .57156E-01    .12445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .88544E-02    .48909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25271e-07
Minuit parameter uncertainties:
  1  0.0194132
  2  8146.3
  3  1.20249e-07
  4  8.22166e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68394': 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) = 12.0082608075
delta logL = 1.0624283675e-09

Extracting fit parameters...

4FGL J0354.4+4643
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.941e-02  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.554e+00  8.146e+03  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:  0.000e+00  8.222e-10  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  1.202e-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/68394/cmap_HighResolution_404438401_404697601_4FGL_J0354.4+4643_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e+00', job_status='DONE', photon_flux_upper_limit='1.13e-04', time_completed='2021-08-19 18:17:28.993025', job_id='68394', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629422248.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='1.06e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='637' AND source_name='4FGL J0354.4+4643' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 18:17:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 68394: <4FGL_J0354.4+4643_daily_bin637> in cluster <slac> Done

Job <4FGL_J0354.4+4643_daily_bin637> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 18:05:36 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 18:05:37 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:37 2021
Terminated at Thu Aug 19 18:17:30 2021
Results reported at Thu Aug 19 18:17:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.4+4643_daily_bin637 58.609 46.7231 404438401 404697601 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 :                                   557.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

