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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin1107
RA = 147.316, Dec = 17.83
tmin = 526262401, tmax = 526521601
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='534292', job_status='RUN', time_executed='2021-09-01 03:45:16.367411', time_epoch_executed='1630493116.37' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534292/ft1_4FGL_J0949.2+1749_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534292/ft2_4FGL_J0949.2+1749_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534292/ft1_4FGL_J0949.2+1749_daily_bin1107.fits outfile=/scratch/kocevski/534292/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin1107.fits ra=147.316 dec=17.83 rad=12.0 tmin=526262401.0 tmax=526521601.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 7.60
user 3.77
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534292/ft1_filtered_4FGL_J0949.2+1749_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/534292/ft2_4FGL_J0949.2+1749_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/534292/ltcube_526262401_526521601_4FGL_J0949.2+1749_daily_bin1107.fits outfile=/scratch/kocevski/534292/expmap_526262401_526521601_4FGL_J0949.2+1749_daily_bin1107.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/534292/ltcube_526262401_526521601_4FGL_J0949.2+1749_daily_bin1107.fits
.....................!
real 202.29
user 186.43
sys 4.17

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/534292/ft1_filtered_4FGL_J0949.2+1749_daily_bin1107.fits scfile=/scratch/kocevski/534292/ft2_4FGL_J0949.2+1749_daily_bin1107.fits outfile=/scratch/kocevski/534292/cmap_526262401_526521601_4FGL_J0949.2+1749_daily_bin1107.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534292/ft1_filtered_4FGL_J0949.2+1749_daily_bin1107.fits scfile=/scratch/kocevski/534292/ft2_4FGL_J0949.2+1749_daily_bin1107.fits outfile=/scratch/kocevski/534292/cmap_HighResolution_526262401_526521601_4FGL_J0949.2+1749_daily_bin1107.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/534292/ft1_filtered_4FGL_J0949.2+1749_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/534292/ft2_4FGL_J0949.2+1749_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534292/Model_4FGL_J0949.2+1749_daily_bin1107.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/534292/ft1_filtered_4FGL_J0949.2+1749_daily_bin1107.fits.....................!
real 40.44
user 38.96
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9214       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14578E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12309       1.0000         .10000E-03   10000.    
     8 'Prefactor '    162.19       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.725       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.488       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .72089       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.2542       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=   3984.401     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1499 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9216        2.3158       -.90952E-06   -.10233E-03
   2  norm          .10000E-03    4.5459       -.26244E-09** at limit **
   3  norm          .10000E-03    20.329       -.31425E-08** at limit **
   4  Prefactor     .10000E-03    63.516       -.41859E-09** at limit **
   5  Prefactor     .10000E-03    5.1970       -.77483E-08** at limit **
   6  Prefactor     .10000E-03    20.251        .39974E-08** at limit **
   7  norm          .12689        1.2040       -.22972E-07   -.87191E-05
   8  Prefactor     162.19        100.25        .38039E-07   -.37255E-03
   9  Prefactor     36.726        59.331       -.36591E-08   -.21600E-03
  10  Prefactor     4.6918        9.1628       -.39433E-07    .20138E-03
  11  Prefactor     .10000E-03    2.3037       -.44924E-08** at limit **
  12  norm          .10000E-03    4.5312       -.48486E-09** at limit **
  13  Prefactor     60.332        70.079       -.14191E-06    .50611E-03
  14  Prefactor     20.489        12.449       -.17965E-08   -.69310E-04
  15  Normalizat    .72074        .22120        .89428E-07    .59676E-05
  16  Prefactor     1.2544        .19770        .13248E-07    .82942E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.92157
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.126894
  Prefactor  = 162.194
  Prefactor  = 36.7261
  Prefactor  = 4.69184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.3323
  Prefactor  = 20.4886
  Normalizat = 0.720743
  Prefactor  = 1.25437
 **********
 **   18 **HESSE 
 **********

 FCN=   3984.401     FROM HESSE     STATUS=OK           201 CALLS     1700 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9216        24.642        .14988E-02   -1.5431    
   2  norm          .10000E-03    4.5546        .13144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    20.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.052        .27771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .12689        2.5647        .13138E-02   -1.5637    
   8  Prefactor     162.19        100.21        .31666E-04   -1.3154    
   9  Prefactor     36.726        59.720        .66133E-04   -1.4495    
  10  Prefactor     4.6918        9.0245        .18587E-03   -1.5275    
  11  Prefactor     .10000E-03    27.669        .17884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.5546        .13120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.332        70.090        .51655E-04   -1.4153    
  14  Prefactor     20.489        12.472        .88489E-04   -1.4802    
  15  Normalizat    .72074        .24947        .27868E-03   -1.0308    
  16  Prefactor     1.2544        .22508        .21060E-03   -.84674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40974e-08
Minuit parameter uncertainties:
  1  13.7691
  2  9.63778e-07
  3  0.000127037
  4  3.40689e-06
  5  1.881e-05
  6  0.000100474
  7  1.14057
  8  100.314
  9  59.8178
  10  9.02709
  11  7.83217e-07
  12  7.48026e-07
  13  70.186
  14  12.4731
  15  0.249867
  16  0.225253
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  3.673e+01  5.982e+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.254e+00  2.253e-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.207e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/534292/likelihoodResults_526262401_526521601_4FGL_J0949.2+1749_daily_bin1107.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) = 3982.55741644
delta logL = 1.8440781265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3982.3282385
delta logL = 2.07325606077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44315       1.0000         .10000E-03   10000.    
     2 'Index     '    6.0644       1.0000          .0000       10.000    
     3 'Normalizat'    .52491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3818       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=   3982.328     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      307 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44118        3.4990        .45594E-02   -.19500E-02
   2  Index         6.0670        2.7009        .75639E-01   -.50294E-04
   3  Normalizat    .52503        .74125E-01    .72848E-01   -.28301E-04
   4  Prefactor     1.3816        .71583E-01    .45690E-01   -.52272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.441178
  Index      = 6.06699
  Normalizat = 0.52503
  Prefactor  = 1.38161
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.328     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      340 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44118        5.3448        .20365E-04   -1.5575    
   2  Index         6.0670        3.3946        .31862E-02    .21505    
   3  Normalizat    .52503        .22392        .32252E-03   -1.1127    
   4  Prefactor     1.3816        .21029        .20195E-03   -.80912    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95478e-10
Minuit parameter uncertainties:
  1  3.07115
  2  3.75316
  3  0.224309
  4  0.210416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534292': 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) = 3982.32823748
delta logL = 2.07325708414

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  4.412e-01  3.071e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  6.067e+00  3.753e+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.382e+00  2.104e-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.250e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 147.316 17.830
Photon Index (Free Index): 6.07 +/- 3.75
Photon Flux (Free Index): 1.84e-07 +/- 9.77e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.36e-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/534292/cmap_HighResolution_526262401_526521601_4FGL_J0949.2+1749_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='2.07e+00', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-01 03:54:46.800532', photon_index_error2='3.75', photon_index2='6.07', ts='0.46', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.36e-05', EG='0.72', time_epoch_completed='1630493686.8', return_code='0', job_id='534292', GAL2='1.38', EG2='0.53', return_code2='102', photon_flux_error2='9.77e-08', ts2='5.48', photon_index='2.52' WHERE bin_id='1107' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:54:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 534292: <4FGL_J0949.2+1749_daily_bin1107> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin1107> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 03:40:49 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:40:51 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:40:51 2021
Terminated at Wed Sep  1 03:54:47 2021
Results reported at Wed Sep  1 03:54:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin1107 147.316 17.83 526262401 526521601 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 :                                   438.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

