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


Performing analysis on: 4FGL_J0354.7+8009_daily_bin684
RA = 58.6919, Dec = 80.1647
tmin = 416620801, tmax = 416880001
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='84447', job_status='RUN', time_executed='2021-08-19 19:01:58.772943', time_epoch_executed='1629424918.77' WHERE source_name='4FGL J0354.7+8009' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84447/ft1_4FGL_J0354.7+8009_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84447/ft1_4FGL_J0354.7+8009_daily_bin684.fits outfile=/scratch/kocevski/84447/ft1_filteredMKT_4FGL_J0354.7+8009_daily_bin684.fits ra=58.6919 dec=80.1647 rad=12.0 tmin=416620801.0 tmax=416880001.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.32
user 4.97
sys 4.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.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/84447/ft1_filteredMKT_4FGL_J0354.7+8009_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.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 4.69
user 0.32
sys 4.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/84447/ltcube_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.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/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits
.....................!
real 17.25
user 12.27
sys 4.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/84447/ltcube_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.fits outfile=/scratch/kocevski/84447/expmap_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.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/84447/ltcube_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.fits
.....................!
real 196.62
user 186.06
sys 10.11

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 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 205 point sources and 2 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.7+8009 @ 58.6919 80.1647

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits scfile=/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits outfile=/scratch/kocevski/84447/cmap_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.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.6919 yref=80.1647 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 4.54
user 0.37
sys 4.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits scfile=/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits outfile=/scratch/kocevski/84447/cmap_HighResolution_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.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.6919 yref=80.1647 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 4.55
user 0.38
sys 4.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/84447/Model_4FGL_J0354.7+8009_daily_bin684.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits.....................!
real 104.14
user 97.20
sys 6.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits', '/scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits', expMap='/scratch/kocevski/84447/expmap_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.fits', expCube='/scratch/kocevski/84447/ltcube_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/84447/Model_4FGL_J0354.7+8009_daily_bin684.xml', optimizer='MINUIT')

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

4FGL J0354.7+8009
   Spectrum: PowerLaw
234    Prefactor:  1.353e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
235        Index:  2.266e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
236        Scale:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/84447/ft1_filtered_4FGL_J0354.7+8009_daily_bin684.fits
Spacecraft file(s): /scratch/kocevski/84447/ft2_4FGL_J0354.7+8009_daily_bin684.fits
Exposure map: /scratch/kocevski/84447/expmap_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.fits
Exposure cube: /scratch/kocevski/84447/ltcube_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/84447/Model_4FGL_J0354.7+8009_daily_bin684.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) = 6558.82471505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.959       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.732       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.741       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10189E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2646       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .72212       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6558.719     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1343 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.682       -.71046E-05** at limit **
   2  Prefactor     .10000E-03    12.587       -.67964E-05** at limit **
   3  Prefactor     .10000E-03    39.560        .38289E-05** at limit **
   4  norm          .10000E-03    10.954       -.56590E-05** at limit **
   5  Prefactor     13.951        9.8799       -.14721E-06   -.46918E-04
   6  Prefactor     17.740        21.290       -.38028E-05    .41858E-04
   7  norm          .10000E-03    7.7397        .41340E-07** at limit **
   8  Prefactor     17.749        16.969       -.27150E-05    .88300E-05
   9  Prefactor     .10000E-03    11.500        .71305E-05** at limit **
  10  Prefactor     .10000E-03    18.867        .11619E-04** at limit **
  11  Prefactor     .10001E-03    236.13       -.47399E-04** at limit **
  12  norm          .10000E-03    14.900        .53434E-05** at limit **
  13  norm          .10000E-03    11.611        .70074E-05** at limit **
  14  Prefactor     .10000E-03    20.318       -.13649E-04** at limit **
  15  Prefactor     1.2613        15.730       -.36612E-05   -.46432E-03
  16  Normalizat    .72208        .26093        .28136E-05    .16054E-03
  17  Prefactor     1.0481        .85701E-01    .14170E-06    .39782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9515
  Prefactor  = 17.7401
  norm       = 0.0001
  Prefactor  = 17.7491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26134
  Normalizat = 0.722084
  Prefactor  = 1.04812
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.719     FROM HESSE     STATUS=OK           215 CALLS     1558 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.951        9.9100        .10721E-03   -1.4961    
   6  Prefactor     17.740        21.276        .95114E-04   -1.4865    
   7  norm          .10000E-03    7.7398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.749        16.974        .95088E-04   -1.4865    
   9  Prefactor     .10000E-03    11.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    243.86        .41500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2613        16.393        .39624E-03   -1.5483    
  16  Normalizat    .72208        .27640        .51421E-03   -1.0303    
  17  Prefactor     1.0481        .92009E-01    .14264E-03   -.91142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69544e-09
Minuit parameter uncertainties:
  1  2.40299e-06
  2  3.60252e-05
  3  6.537e-07
  4  1.57127e-08
  5  9.9112
  6  21.2853
  7  2.5067e-07
  8  16.9785
  9  2.6599e-05
  10  4.0249e-06
  11  0.00261995
  12  1.24958e-05
  13  3.21195e-06
  14  4.5813e-06
  15  9.09709
  16  0.276937
  17  0.0920227
Done.

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

Extracting fit parameters...

4FGL J0354.7+8009
   Spectrum: PowerLaw
234    Prefactor:  1.775e+01  1.698e+01  1.000e-04  1.000e+04 ( 1.000e-13)
235        Index:  2.266e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
236        Scale:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.048e+00  9.202e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  7.221e-01  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 58.692 80.165
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 7.30e-08 +/- 6.98e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 2.79e-05

TS (Fixed Index): 1.65
Ra Dec: 58.692 80.165
Photon Flux Upper Limit: 2.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/84447/likelihoodResults_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.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): 0
logL (Free Index) = 6557.97227025
delta logL = 0.746676229805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6557.93426187
delta logL = 0.784684608604

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6557.934     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      262 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6246        43.367        .52902E-02   -.15488E-03
   2  Index         3.3484        2.4120        .11150        .69460E-04
   3  Normalizat    .65180        .10008        .12135        .16803E-04
   4  Prefactor     1.0598        .30902E-01    .39367E-01   -.95522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62462
  Index      = 3.34836
  Normalizat = 0.651802
  Prefactor  = 1.05985
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.934     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6246        80.668        .98647E-04   -1.5327    
   2  Index         3.3484        3.7392        .40055E-02   -.33665    
   3  Normalizat    .65180        .30527        .53856E-03   -1.0583    
   4  Prefactor     1.0598        .97006E-01    .14183E-03   -.90760    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.79316e-10
Minuit parameter uncertainties:
  1  34.2508
  2  4.31623
  3  0.306064
  4  0.0970218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84447': 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) = 6557.93425701
delta logL = 0.78468947041

Extracting fit parameters...

4FGL J0354.7+8009
   Spectrum: PowerLaw
234    Prefactor:  3.625e+00  3.425e+01  1.000e-04  1.000e+04 ( 1.000e-13)
235        Index:  3.348e+00  4.316e+00  0.000e+00  1.000e+01 (-1.000e+00)
236        Scale:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.060e+00  9.702e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  6.518e-01  3.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 58.692 80.165
Photon Index (Free Index): 3.35 +/- 4.32
Photon Flux (Free Index): 1.60e-07 +/- 1.50e-07
Energy Flux (Free Index): 2.78e-05 +/- 2.73e-05

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/84447/cmap_HighResolution_416620801_416880001_4FGL_J0354.7+8009_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', comment='SUCCESS', photon_flux='7.30e-08', energy_flux2='2.78e-05', photon_flux_error='6.98e-08', dlogl='7.85e-01', energy_flux='2.92e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-08-19 19:13:34.967172', photon_index_error2='4.32', photon_index2='3.35', ts='1.65', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.27e-07', energy_flux_error2='2.73e-05', EG='0.72', time_epoch_completed='1629425614.97', return_code='0', job_id='84447', GAL2='1.06', EG2='0.65', return_code2='102', energy_flux_error='2.79e-05', photon_flux_error2='1.50e-07', ts2='3.35', photon_index='2.27' WHERE bin_id='684' AND source_name='4FGL J0354.7+8009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:13:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 84447: <4FGL_J0354.7+8009_daily_bin684> in cluster <slac> Done

Job <4FGL_J0354.7+8009_daily_bin684> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 19:00:35 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 19:00: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 19:00:37 2021
Terminated at Thu Aug 19 19:13:36 2021
Results reported at Thu Aug 19 19:13:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7+8009_daily_bin684 58.6919 80.1647 416620801 416880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.7+8009 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

