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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin540
RA = 147.316, Dec = 17.83
tmin = 379296001, tmax = 379555201
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='531177', job_status='RUN', time_executed='2021-09-01 03:33:55.909663', time_epoch_executed='1630492435.91' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531177/ft1_4FGL_J0949.2+1749_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531177/ft1_4FGL_J0949.2+1749_daily_bin540.fits outfile=/scratch/kocevski/531177/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin540.fits ra=147.316 dec=17.83 rad=12.0 tmin=379296001.0 tmax=379555201.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 4.81
user 4.40
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.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/531177/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin540.fits evtable="EVENTS" outfile="/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.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 0.61
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/531177/ltcube_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.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/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits
.....................!
real 12.24
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/531177/ltcube_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.fits outfile=/scratch/kocevski/531177/expmap_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.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/531177/ltcube_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.fits
.....................!
real 191.11
user 185.66
sys 4.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J0949.2+1749 @ 147.316 17.83

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits scfile=/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits outfile=/scratch/kocevski/531177/cmap_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.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=147.316 yref=17.83 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 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits scfile=/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits outfile=/scratch/kocevski/531177/cmap_HighResolution_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.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=147.316 yref=17.83 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 0.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/531177/Model_4FGL_J0949.2+1749_daily_bin540.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits....................!
real 47.31
user 45.89
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits', '/scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits', expMap='/scratch/kocevski/531177/expmap_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.fits', expCube='/scratch/kocevski/531177/ltcube_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531177/Model_4FGL_J0949.2+1749_daily_bin540.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.2+1749'

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  4.911e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  7.531e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/531177/ft1_filtered_4FGL_J0949.2+1749_daily_bin540.fits
Spacecraft file(s): /scratch/kocevski/531177/ft2_4FGL_J0949.2+1749_daily_bin540.fits
Exposure map: /scratch/kocevski/531177/expmap_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.fits
Exposure cube: /scratch/kocevski/531177/ltcube_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531177/Model_4FGL_J0949.2+1749_daily_bin540.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) = 4866.09711753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6780       1.0000         .10000E-03   10000.    
     2 'norm      '    7.5302       1.0000         .10000E-03   10000.    
     3 'norm      '    12.520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16885E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.679       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.561       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5583       1.0000         .10000E-03   10000.    
    12 'norm      '    .10756E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6346       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .59380       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.3157       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4866.095     FROM MIGRAD    STATUS=CONVERGED    308 CALLS     1483 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6781        9.9106        .76200E-06   -.13576E-03
   2  norm          7.5301        8.3221       -.21520E-06   -.68966E-04
   3  norm          12.518        33.390       -.41782E-05   -.99721E-05
   4  Prefactor     67.350        45.405        .27231E-05   -.56043E-06
   5  Prefactor     .10000E-03    2.9708       -.84371E-07** at limit **
   6  Prefactor     17.682        18.402        .28553E-07   -.32913E-05
   7  norm          .10000E-03    .42153       -.21486E-08** at limit **
   8  Prefactor     .10000E-03    59.341        .27666E-04** at limit **
   9  Prefactor     29.556        38.484       -.61735E-05   -.52536E-05
  10  Prefactor     3.3880        3.9177       -.56278E-07   -.92598E-04
  11  Prefactor     1.5582        2.3423       -.20158E-06   -.46594E-03
  12  norm          .10001E-03    4.0325       -.29877E-06** at limit **
  13  Prefactor     .10000E-03    66.253       -.27314E-04** at limit **
  14  Prefactor     4.6345        6.3363        .47301E-06   -.97414E-04
  15  Normalizat    .59375        .18467        .79708E-06    .29457E-04
  16  Prefactor     1.3158        .18048        .17280E-06    .83520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67805
  norm       = 7.53012
  norm       = 12.5176
  Prefactor  = 67.3497
  Prefactor  = 0.0001
  Prefactor  = 17.6817
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.5562
  Prefactor  = 3.38804
  Prefactor  = 1.55823
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 4.6345
  Normalizat = 0.593748
  Prefactor  = 1.31577
 **********
 **   18 **HESSE 
 **********

 FCN=   4866.095     FROM HESSE     STATUS=OK           215 CALLS     1698 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6781        9.8831        .21061E-03   -1.5324    
   2  norm          7.5301        8.3267        .14615E-03   -1.5159    
   3  norm          12.518        33.402        .11321E-03   -1.5000    
   4  Prefactor     67.350        45.385        .48908E-04   -1.4065    
   5  Prefactor     .10000E-03    8.8766        .23342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.682        18.400        .95256E-04   -1.4867    
   7  norm          .10000E-03    .43048        .44189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.556        38.601        .73690E-04   -1.4620    
  10  Prefactor     3.3880        3.9111        .14344E-03   -1.5340    
  11  Prefactor     1.5582        2.3219        .12637E-03   -1.5458    
  12  norm          .10001E-03    3.9249        .47525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    66.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6345        6.3288        .18695E-03   -1.5277    
  15  Normalizat    .59375        .21090        .28292E-03   -1.0825    
  16  Prefactor     1.3158        .20749        .19624E-03   -.82839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91829e-10
Minuit parameter uncertainties:
  1  9.88745
  2  8.32797
  3  33.4523
  4  45.4088
  5  2.99383e-05
  6  18.4058
  7  2.90326e-07
  8  2.5162e-05
  9  38.6331
  10  3.91144
  11  2.32205
  12  0.000437444
  13  8.56175e-05
  14  6.32969
  15  0.211185
  16  0.207618
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  2.956e+01  3.863e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  7.531e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.316e+00  2.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  5.937e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 147.316 17.830
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531177/likelihoodResults_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.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) = 4865.93554076
delta logL = 0.159022080396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4865.93031788
delta logL = 0.164244956563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.647       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1246       1.0000          .0000       10.000    
     3 'Normalizat'    .57533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   4865.930     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      297 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.643        45.432        .98163E-04   -.11408E-03
   2  Index         3.1250        1.5928        .76310E-02   -.40394E-04
   3  Normalizat    .57564        .21021        .28710E-03   -.32831E-03
   4  Prefactor     1.3283        .20743        .19543E-03   -.41389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6426
  Index      = 3.125
  Normalizat = 0.575636
  Prefactor  = 1.32834
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.930     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.643        34.446        .39265E-05   -1.4892    
   2  Index         3.1250        1.2155        .30524E-03   -.38440    
   3  Normalizat    .57564        .21017        .11484E-04   -1.0903    
   4  Prefactor     1.3283        .20698        .39087E-04   -.82468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28083e-10
Minuit parameter uncertainties:
  1  34.4867
  2  1.22987
  3  0.210462
  4  0.207109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531177': 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): 0
logL (Free Index) = 4865.93031623
delta logL = 0.164246608756

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.664e+01  3.449e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  3.125e+00  1.230e+00  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  7.531e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.328e+00  2.071e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  5.756e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 147.316 17.830
Photon Index (Free Index): 3.12 +/- 1.23
Photon Flux (Free Index): 4.31e-08 +/- 4.81e-08
Energy Flux (Free Index): 8.13e-06 +/- 9.45e-06

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/531177/cmap_HighResolution_379296001_379555201_4FGL_J0949.2+1749_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', comment='SUCCESS', energy_flux2='8.13e-06', dlogl='1.64e-01', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-09-01 03:41:50.446481', photon_index_error2='1.23', photon_index2='3.12', ts='0.76', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.45e-06', EG='0.59', time_epoch_completed='1630492910.45', return_code='0', job_id='531177', GAL2='1.33', EG2='0.58', return_code2='0', photon_flux_error2='4.81e-08', ts2='1.11', photon_index='2.52' WHERE bin_id='540' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 531177: <4FGL_J0949.2+1749_daily_bin540> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin540> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 03:30:44 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:30:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 03:30:45 2021
Terminated at Wed Sep  1 03:41:51 2021
Results reported at Wed Sep  1 03:41:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin540 147.316 17.83 379296001 379555201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.2+1749 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   470.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             211.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            667 sec.

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

