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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin531
RA = 147.316, Dec = 17.83
tmin = 376963201, tmax = 377222401
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='531164', job_status='RUN', time_executed='2021-09-01 03:30:58.778337', time_epoch_executed='1630492258.78' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531164/ft1_4FGL_J0949.2+1749_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531164/ft1_4FGL_J0949.2+1749_daily_bin531.fits outfile=/scratch/kocevski/531164/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin531.fits ra=147.316 dec=17.83 rad=12.0 tmin=376963201.0 tmax=377222401.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.54
user 4.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/531164/ltcube_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.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/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits
.....................!
real 12.31
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/531164/ltcube_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.fits outfile=/scratch/kocevski/531164/expmap_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.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/531164/ltcube_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.fits
.....................!
real 190.52
user 185.09
sys 4.81

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/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits scfile=/scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits outfile=/scratch/kocevski/531164/cmap_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.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.63
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits scfile=/scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits outfile=/scratch/kocevski/531164/cmap_HighResolution_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.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.58
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/531164/Model_4FGL_J0949.2+1749_daily_bin531.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/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits.....................!
real 63.84
user 58.95
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits', '/scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits', expMap='/scratch/kocevski/531164/expmap_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.fits', expCube='/scratch/kocevski/531164/ltcube_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531164/Model_4FGL_J0949.2+1749_daily_bin531.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/531164/ft1_filtered_4FGL_J0949.2+1749_daily_bin531.fits
Spacecraft file(s): /scratch/kocevski/531164/ft2_4FGL_J0949.2+1749_daily_bin531.fits
Exposure map: /scratch/kocevski/531164/expmap_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.fits
Exposure cube: /scratch/kocevski/531164/ltcube_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531164/Model_4FGL_J0949.2+1749_daily_bin531.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) = 6609.86802109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0082       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1907       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.383       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4414       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0954       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1175       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0286       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6609.866     FROM MIGRAD    STATUS=CONVERGED    297 CALLS     1442 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0067        13.532         .0000        .10247E-03
   2  norm          2.1900        6.1933         .0000        .12143E-01
   3  norm          .10000E-03    30.986         .0000    ** at limit **
   4  Prefactor     .10000E-03    23.086         .0000    ** at limit **
   5  Prefactor     .10000E-03    2.4229         .0000    ** at limit **
   6  Prefactor     48.384        29.105         .0000       -.71979E-03
   7  norm          1.4414        1.3779         .0000        .70285E-03
   8  Prefactor     34.928        42.029         .0000       -.48452E-03
   9  Prefactor     51.605        38.726         .0000       -.17427E-02
  10  Prefactor     8.0971        8.1008         .0000       -.22058E-03
  11  Prefactor     .10000E-03    2.4881         .0000    ** at limit **
  12  norm          6.0822        7.2460         .0000        .76337E-03
  13  Prefactor     .10000E-03    10.976         .0000    ** at limit **
  14  Prefactor     .10000E-03    4.5396         .0000    ** at limit **
  15  Normalizat    1.1173        .17827         .0000        .38653E-04
  16  Prefactor     1.0288        .15883         .0000        .43657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00666
  norm       = 2.18997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3835
  norm       = 1.44145
  Prefactor  = 34.9282
  Prefactor  = 51.605
  Prefactor  = 8.09708
  Prefactor  = 0.0001
  norm       = 6.08216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11731
  Prefactor  = 1.02881
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.866     FROM HESSE     STATUS=OK           199 CALLS     1641 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0067        13.523        .20144E-03   -1.5308    
   2  norm          2.1900        6.1834        .13903E-02   -1.5412    
   3  norm          .10000E-03    31.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4534        .12356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.384        29.160        .57649E-04   -1.4316    
   7  norm          1.4414        1.3619        .87514E-04   -1.5468    
   8  Prefactor     34.928        42.027        .67808E-04   -1.4525    
   9  Prefactor     51.605        38.773        .55829E-04   -1.4270    
  10  Prefactor     8.0971        8.1143        .14091E-03   -1.5139    
  11  Prefactor     .10000E-03    2.5615        .25017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0822        7.2391        .16281E-03   -1.5215    
  13  Prefactor     .10000E-03    10.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5707        .16915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1173        .20981        .25064E-03   -.89198    
  16  Prefactor     1.0288        .18649        .23825E-03   -.91775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31507e-08
Minuit parameter uncertainties:
  1  13.533
  2  6.18523
  3  9.92247e-05
  4  9.06643e-06
  5  2.8057e-06
  6  29.1686
  7  1.36196
  8  42.0627
  9  38.792
  10  8.11535
  11  1.28629e-06
  12  7.24009
  13  2.22715e-05
  14  5.06739e-06
  15  0.209963
  16  0.186607
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  5.161e+01  3.879e+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.029e+00  1.866e-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:  1.117e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 147.316 17.830
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.18e-05

TS (Fixed Index): 2.77
Ra Dec: 147.316 17.830
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531164/likelihoodResults_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.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) = 6609.09338254
delta logL = 0.772631598691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6608.96763158
delta logL = 0.898382555832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.413       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8935       1.0000          .0000       10.000    
     3 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0058       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.

 FCN=   6608.968     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      221 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.413        63.180        .11559E-02    .18504E-02
   2  Index         1.8936        .45032        .18430       -.26985E-04
   3  Normalizat    1.1470        .17165        .56013E-01    .81352E-05
   4  Prefactor     1.0058        .15801        .44035E-01    .91427E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.4131
  Index      = 1.89356
  Normalizat = 1.14697
  Prefactor  = 1.0058
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.968     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.413        50.759        .46237E-04   -1.3969    
   2  Index         1.8936        .40770        .72039E-02   -.67039    
   3  Normalizat    1.1470        .20064        .24769E-03   -.88258    
   4  Prefactor     1.0058        .18455        .24039E-03   -.92537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16026e-08
Minuit parameter uncertainties:
  1  50.7879
  2  0.408436
  3  0.200775
  4  0.184665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531164': 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) = 6608.96763156
delta logL = 0.898382576147

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  7.541e+01  5.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  1.894e+00  4.084e-01  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.006e+00  1.847e-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:  1.147e+00  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 147.316 17.830
Photon Index (Free Index): 1.89 +/- 0.41
Photon Flux (Free Index): 3.85e-08 +/- 3.13e-08
Energy Flux (Free Index): 3.52e-05 +/- 3.33e-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/531164/cmap_HighResolution_376963201_377222401_4FGL_J0949.2+1749_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='3.52e-05', photon_flux_error='4.15e-08', dlogl='8.98e-01', energy_flux='1.57e-05', photon_flux2='3.85e-08', job_status='DONE', time_completed='2021-09-01 03:39:47.675123', photon_index_error2='0.41', photon_index2='1.89', ts='2.77', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='3.33e-05', EG='1.12', time_epoch_completed='1630492787.68', return_code='0', job_id='531164', GAL2='1.01', EG2='1.15', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.13e-08', ts2='4.58', photon_index='2.52' WHERE bin_id='531' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:39:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 531164: <4FGL_J0949.2+1749_daily_bin531> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin531> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 03:30:43 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:30:44 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:44 2021
Terminated at Wed Sep  1 03:39:48 2021
Results reported at Wed Sep  1 03:39:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin531 147.316 17.83 376963201 377222401 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 :                                   514.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            545 sec.

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

