/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 192 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0347.0+4844_daily_bin1223
RA = 56.7527, Dec = 48.7376
tmin = 556329601, tmax = 556588801
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='962756', job_status='RUN', time_executed='2021-08-19 12:10:57.035056', time_epoch_executed='1629400257.04' WHERE source_name='4FGL J0347.0+4844' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962756/ft1_4FGL_J0347.0+4844_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962756/ft1_4FGL_J0347.0+4844_daily_bin1223.fits outfile=/scratch/kocevski/962756/ft1_filteredMKT_4FGL_J0347.0+4844_daily_bin1223.fits ra=56.7527 dec=48.7376 rad=12.0 tmin=556329601.0 tmax=556588801.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 11.94
user 3.47
sys 8.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.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/962756/ft1_filteredMKT_4FGL_J0347.0+4844_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.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 8.75
user 0.34
sys 8.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/962756/ltcube_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.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/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits
.....................!
real 20.50
user 11.17
sys 9.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/962756/ltcube_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.fits outfile=/scratch/kocevski/962756/expmap_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.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/962756/ltcube_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.fits
.....................!
real 202.05
user 185.94
sys 15.77

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 172 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 J0347.0+4844 @ 56.7527 48.7376

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits scfile=/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits outfile=/scratch/kocevski/962756/cmap_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.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=56.7527 yref=48.7376 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 8.61
user 0.37
sys 8.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits scfile=/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits outfile=/scratch/kocevski/962756/cmap_HighResolution_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.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=56.7527 yref=48.7376 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 8.45
user 0.38
sys 8.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962756/Model_4FGL_J0347.0+4844_daily_bin1223.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/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits.....................!
real 76.16
user 63.99
sys 12.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits', '/scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits', expMap='/scratch/kocevski/962756/expmap_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.fits', expCube='/scratch/kocevski/962756/ltcube_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/962756/Model_4FGL_J0347.0+4844_daily_bin1223.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0347.0+4844'

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  4.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/962756/ft1_filtered_4FGL_J0347.0+4844_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/962756/ft2_4FGL_J0347.0+4844_daily_bin1223.fits
Exposure map: /scratch/kocevski/962756/expmap_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.fits
Exposure cube: /scratch/kocevski/962756/ltcube_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/962756/Model_4FGL_J0347.0+4844_daily_bin1223.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) = 2568.84591548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32917       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .74361E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10439E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    10.077       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1131       1.0000         .10000E-03   10000.    
     9 'norm      '    .89664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.526       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3422       1.0000         .10000E-03   10000.    
    13 'norm      '    78.358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28081E-01   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .72975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2567.171     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      414 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    308.79        .19769E-05** at limit **
   2  Prefactor     .10000E-03    34.506        .53624E-06** at limit **
   3  norm          .10000E-03    29.562       -.77281E-07** at limit **
   4  Prefactor     57.578        58.920        .83263E-06   -.39522E-04
   5  Prefactor     .10000E-03    56.444       -.49590E-06** at limit **
   6  norm          10.071        2.8418       -.63242E-07   -.30661E-03
   7  Prefactor     .10001E-03    6193.6        .10649E-03** at limit **
   8  Prefactor     .10000E-03    107.21        .14942E-05** at limit **
   9  norm          .10000E-03    226.04       -.46199E-05** at limit **
  10  Prefactor     3.0061        1.0145         .0000         .0000    
  11  Prefactor     29.434        27.945        .10921E-05   -.32634E-04
  12  Prefactor     8.3422        1.0018         .0000         .0000    
  13  norm          81.717        136.90       -.30164E-05    .13312E-05
  14  Prefactor     .10000E-03    52.926       -.11782E-05** at limit **
  15  Normalizat    1.1556        .95830       -.92646E-05   -.54360E-04
  16  Prefactor     .72941        .12554        .99465E-06   -.26732E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.578
  Prefactor  = 0.0001
  norm       = 10.0713
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.00609
  Prefactor  = 29.4343
  Prefactor  = 8.34218
  norm       = 81.7172
  Prefactor  = 0.0001
  Normalizat = 1.15559
  Prefactor  = 0.72941
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2567.171     FROM HESSE     STATUS=FAILED        45 CALLS      459 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    310.71        .10552E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    29.269        .93883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.578        45.831        .13232E-02   -1.4189    
   5  Prefactor     .10000E-03    56.630        .10367E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.071        2.3533        .31557E-02   -1.5073    
   7  Prefactor     .10001E-03    6190.0        .41480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    107.12        .11175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    226.02        .12795E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     554.27        551.18         .0000       -1.5361    
  11  Prefactor     29.434        .99859        .10921E-05   -1.4622    
  12  Prefactor     8.3422        1.0018         .0000       -1.5130    
  13  norm          81.717        1.0211       -.30164E-05   -1.3898    
  14  Prefactor     .10000E-03    .20988       -.11782E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1556        1.1315       -.92646E-05   -.87986    
  16  Prefactor     .72941        1.0792        .99465E-06   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.98762e-11
Minuit parameter uncertainties:
  1  0.000117093
  2  6.21615e-06
  3  6.12532e-07
  4  45.8595
  5  5.53041e-06
  6  2.3533
  7  0.00989535
  8  4.40247e-05
  9  0.000160588
  10  1.01455
  11  0.998586
  12  1.00181
  13  1.02106
  14  8.03489e-07
  15  1.15676
  16  1.11286
Done.

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

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  4.402e-05  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.577e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.294e-01  1.113e+00  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.156e+00  1.157e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 56.753 48.738
Photon Flux Upper Limit: 1.17e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962756/likelihoodResults_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.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) = 2567.17080721
delta logL = -3.80480200874e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2567.17076972
delta logL = -5.59528416488e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4644       1.0000          .0000       10.000    
     3 'Normalizat'    1.1559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72937       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   2567.171     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      280 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11662E-03    42.223        .18142E-01** at limit **
   2  Index         3.2466        5.6722        .50000        .34760E-05
   3  Normalizat    1.1556        .19014E-01    .84409E-03    .51821E-04
   4  Prefactor     .72941        .25951E-02    .13987E-03   -.35519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000116624
  Index      = 3.24656
  Normalizat = 1.15561
  Prefactor  = 0.729408
 **********
 **   18 **HESSE 
 **********

 FCN=   2567.171     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11662E-03    601.87        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2466        5.0853        .50000       -.35831    
   3  Normalizat    1.1556        .72997E-01    .33763E-04   -.87986    
   4  Prefactor     .72941        .99636E-02    .55949E-05   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.37157e-09
Minuit parameter uncertainties:
  1  0.202117
  2  1941.6
  3  0.0730038
  4  0.00996364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962756': 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) = 2567.17076955
delta logL = -3.92605215893e-07

Extracting fit parameters...

4FGL J0347.0+4844
   Spectrum: PowerLaw
317    Prefactor:  1.166e-04  2.021e-01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  3.247e+00  1.942e+03  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.294e-01  9.964e-03  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.156e+00  7.300e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 56.753 48.738

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/962756/cmap_HighResolution_556329601_556588801_4FGL_J0347.0+4844_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-02', job_status='DONE', photon_flux_upper_limit='1.17e-06', time_completed='2021-08-19 12:19:35.682948', job_id='962756', GAL2='0.73', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1629400775.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.73', dlogl='-3.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1223' AND source_name='4FGL J0347.0+4844' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 12:19:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 962756: <4FGL_J0347.0+4844_daily_bin1223> in cluster <slac> Done

Job <4FGL_J0347.0+4844_daily_bin1223> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 12:05:23 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 12:05:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 12:05:25 2021
Terminated at Thu Aug 19 12:19:37 2021
Results reported at Thu Aug 19 12:19:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.0+4844_daily_bin1223 56.7527 48.7376 556329601 556588801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0347.0+4844 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   645.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             216.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

