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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin813
RA = 147.316, Dec = 17.83
tmin = 450057601, tmax = 450316801
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='532875', job_status='RUN', time_executed='2021-09-01 03:36:45.984283', time_epoch_executed='1630492605.98' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532875/ft1_4FGL_J0949.2+1749_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532875/ft2_4FGL_J0949.2+1749_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532875/ft1_4FGL_J0949.2+1749_daily_bin813.fits outfile=/scratch/kocevski/532875/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin813.fits ra=147.316 dec=17.83 rad=12.0 tmin=450057601.0 tmax=450316801.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 3.50
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532875/ft2_4FGL_J0949.2+1749_daily_bin813.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/532875/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin813.fits evtable="EVENTS" outfile="/scratch/kocevski/532875/ft1_filtered_4FGL_J0949.2+1749_daily_bin813.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.52
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532875/ft1_filtered_4FGL_J0949.2+1749_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/532875/ft2_4FGL_J0949.2+1749_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/532875/ltcube_450057601_450316801_4FGL_J0949.2+1749_daily_bin813.fits outfile=/scratch/kocevski/532875/expmap_450057601_450316801_4FGL_J0949.2+1749_daily_bin813.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/532875/ltcube_450057601_450316801_4FGL_J0949.2+1749_daily_bin813.fits
.....................!
real 190.30
user 185.17
sys 4.71

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/532875/ft1_filtered_4FGL_J0949.2+1749_daily_bin813.fits scfile=/scratch/kocevski/532875/ft2_4FGL_J0949.2+1749_daily_bin813.fits outfile=/scratch/kocevski/532875/cmap_450057601_450316801_4FGL_J0949.2+1749_daily_bin813.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532875/ft1_filtered_4FGL_J0949.2+1749_daily_bin813.fits scfile=/scratch/kocevski/532875/ft2_4FGL_J0949.2+1749_daily_bin813.fits outfile=/scratch/kocevski/532875/cmap_HighResolution_450057601_450316801_4FGL_J0949.2+1749_daily_bin813.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.562       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .84943E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.408       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68265E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8025       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11370E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3754       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1081       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .77345       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.3305       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=   6490.789     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1696 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.560        12.795        .91716E-05    .49941E-04
   2  norm          .10000E-03    2.4699       -.13759E-07** at limit **
   3  norm          .22519        20.639       -.21757E-05   -.14333E-03
   4  Prefactor     59.367        50.144       -.23736E-05    .32307E-04
   5  Prefactor     7.3849        6.8531       -.41104E-06   -.44119E-04
   6  Prefactor     .10000E-03    138.68       -.40570E-05** at limit **
   7  norm          2.8034        1.4527       -.13553E-06   -.24988E-03
   8  Prefactor     .10000E-03    24.937        .20760E-06** at limit **
   9  Prefactor     43.986        38.468       -.16623E-04    .16718E-04
  10  Prefactor     5.3599        7.8911       -.68029E-06   -.16478E-03
  11  Prefactor     .10000E-03    1.2216       -.24188E-07** at limit **
  12  norm          11.801        9.7393        .83260E-06   -.80876E-05
  13  Prefactor     16.040        33.200       -.31844E-04    .18578E-06
  14  Prefactor     7.1106        11.872        .57249E-06   -.49260E-04
  15  Normalizat    .77349        .18574        .33927E-05    .24515E-04
  16  Prefactor     1.3302        .16428        .65127E-06    .14915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5596
  norm       = 0.0001
  norm       = 0.225189
  Prefactor  = 59.3671
  Prefactor  = 7.38486
  Prefactor  = 0.0001
  norm       = 2.80344
  Prefactor  = 0.0001
  Prefactor  = 43.9857
  Prefactor  = 5.35986
  Prefactor  = 0.0001
  norm       = 11.8012
  Prefactor  = 16.0397
  Prefactor  = 7.11059
  Normalizat = 0.773489
  Prefactor  = 1.33021
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.789     FROM HESSE     STATUS=OK           213 CALLS     1909 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.560        12.812        .10153E-03   -1.4919    
   2  norm          .10000E-03    2.4725        .12366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .22519        22.198        .12730       -1.5613    
   4  Prefactor     59.367        50.136        .52053E-04   -1.4165    
   5  Prefactor     7.3849        6.8615        .14750E-03   -1.5164    
   6  Prefactor     .10000E-03    143.26        .37480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8034        1.4492        .66153E-04   -1.5373    
   8  Prefactor     .10000E-03    24.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.986        38.531        .60464E-04   -1.4381    
  10  Prefactor     5.3599        7.9028        .17333E-03   -1.5245    
  11  Prefactor     .10000E-03    1.2338        .86931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.801        9.7379        .11664E-03   -1.5021    
  13  Prefactor     16.040        33.218        .10008E-03   -1.4907    
  14  Prefactor     7.1106        11.919        .15046E-03   -1.5175    
  15  Normalizat    .77349        .21708        .30106E-03   -1.0106    
  16  Prefactor     1.3302        .19258        .22195E-03   -.82413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08358e-07
Minuit parameter uncertainties:
  1  12.8139
  2  2.33156e-06
  3  4.47229
  4  50.1717
  5  6.86225
  6  0.000395084
  7  1.44919
  8  2.29909e-05
  9  38.5533
  10  7.90429
  11  3.28897e-06
  12  9.73924
  13  33.2563
  14  11.9232
  15  0.217322
  16  0.192682
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  4.399e+01  3.855e+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.330e+00  1.927e-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:  7.735e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 147.316 17.830
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/532875/likelihoodResults_450057601_450316801_4FGL_J0949.2+1749_daily_bin813.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) = 6490.75867877
delta logL = 0.0298424324319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6490.74728213
delta logL = 0.0412390668243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.740       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7473       1.0000          .0000       10.000    
     3 'Normalizat'    .76282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3367       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=   6490.747     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      256 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.740        860.49        .16310E-02    .18634E-03
   2  Index         2.7472        6.3238        .16279        .89291E-04
   3  Normalizat    .76291        .87495E-01    .68475E-01    .24099E-04
   4  Prefactor     1.3366        .67268E-01    .50107E-01   -.10901E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.7404
  Index      = 2.74724
  Normalizat = 0.762908
  Prefactor  = 1.33665
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.747     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.740        44.840        .65240E-04   -1.4479    
   2  Index         2.7472        .87815        .85585E-02   -.46738    
   3  Normalizat    .76291        .20750        .30299E-03   -1.0146    
   4  Prefactor     1.3366        .19224        .22151E-03   -.82224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84744e-09
Minuit parameter uncertainties:
  1  44.8796
  2  0.883916
  3  0.207716
  4  0.192341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532875': 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) = 6490.74728204
delta logL = 0.041239162083

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  3.774e+01  4.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.747e+00  8.839e-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.337e+00  1.923e-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:  7.629e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 147.316 17.830
Photon Index (Free Index): 2.75 +/- 0.88
Photon Flux (Free Index): 5.55e-08 +/- 5.27e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.12e-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/532875/cmap_HighResolution_450057601_450316801_4FGL_J0949.2+1749_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='1.29e-05', photon_flux_error='4.12e-08', dlogl='4.12e-02', energy_flux='1.33e-05', photon_flux2='5.55e-08', job_status='DONE', time_completed='2021-09-01 03:45:35.796758', photon_index_error2='0.88', photon_index2='2.75', ts='1.84', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.12e-05', EG='0.77', time_epoch_completed='1630493135.8', return_code='0', job_id='532875', GAL2='1.34', EG2='0.76', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.27e-08', ts2='1.93', photon_index='2.52' WHERE bin_id='813' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 532875: <4FGL_J0949.2+1749_daily_bin813> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin813> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 03:36:16 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:36:17 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:36:17 2021
Terminated at Wed Sep  1 03:45:36 2021
Results reported at Wed Sep  1 03:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin813 147.316 17.83 450057601 450316801 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 :                                   522.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            560 sec.

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

