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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin681
RA = 147.316, Dec = 17.83
tmin = 415843201, tmax = 416102401
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='532680', job_status='RUN', time_executed='2021-09-01 03:38:28.752061', time_epoch_executed='1630492708.75' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532680

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532680/ft1_4FGL_J0949.2+1749_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532680/ft2_4FGL_J0949.2+1749_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532680/ft1_4FGL_J0949.2+1749_daily_bin681.fits outfile=/scratch/kocevski/532680/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin681.fits ra=147.316 dec=17.83 rad=12.0 tmin=415843201.0 tmax=416102401.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 5.94
user 5.59
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532680/ft1_filtered_4FGL_J0949.2+1749_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/532680/ft2_4FGL_J0949.2+1749_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/532680/ltcube_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.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/532680/ft2_4FGL_J0949.2+1749_daily_bin681.fits
.....................!
real 12.07
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532680/ft1_filtered_4FGL_J0949.2+1749_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/532680/ft2_4FGL_J0949.2+1749_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/532680/ltcube_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.fits outfile=/scratch/kocevski/532680/expmap_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.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/532680/ltcube_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.fits
.....................!
real 191.96
user 187.68
sys 3.88

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/532680/ft1_filtered_4FGL_J0949.2+1749_daily_bin681.fits scfile=/scratch/kocevski/532680/ft2_4FGL_J0949.2+1749_daily_bin681.fits outfile=/scratch/kocevski/532680/cmap_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.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.60
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532680/ft1_filtered_4FGL_J0949.2+1749_daily_bin681.fits scfile=/scratch/kocevski/532680/ft2_4FGL_J0949.2+1749_daily_bin681.fits outfile=/scratch/kocevski/532680/cmap_HighResolution_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1739       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2165       1.0000         .10000E-03   10000.    
     7 'norm      '    .39930E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.228       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.886       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0922       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1420       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .81575       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .95535       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=   3108.468     FROM MIGRAD    STATUS=CONVERGED    306 CALLS     1432 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1734        12.150       -.14501E-05   -.65562E-03
   2  norm          .10000E-03    3.6228       -.28795E-07** at limit **
   3  norm          .10000E-03    12.785        .60534E-07** at limit **
   4  Prefactor     .10000E-03    25.088        .72203E-07** at limit **
   5  Prefactor     8.2758        6.4624       -.10502E-05    .24054E-04
   6  Prefactor     7.2147        36.982       -.30517E-05    .11612E-05
   7  norm          .10000E-03    .88196       -.42910E-06** at limit **
   8  Prefactor     77.172        136.23       -.61912E-04    .13584E-04
   9  Prefactor     .10000E-03    15.832        .52064E-07** at limit **
  10  Prefactor     17.885        10.803        .20088E-05    .48610E-04
  11  Prefactor     1.0925        2.9668       -.86239E-06   -.50002E-03
  12  norm          .10000E-03    3.6184       -.20778E-07** at limit **
  13  Prefactor     .10000E-03    81.039       -.29481E-06** at limit **
  14  Prefactor     7.1408        9.0406       -.12228E-05   -.66126E-03
  15  Normalizat    .81587        .21639        .69458E-05   -.46722E-05
  16  Prefactor     .95524        .19676       -.31102E-06    .24665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.17342
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.27575
  Prefactor  = 7.21472
  norm       = 0.0001
  Prefactor  = 77.1715
  Prefactor  = 0.0001
  Prefactor  = 17.8845
  Prefactor  = 1.09247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.14082
  Normalizat = 0.815871
  Prefactor  = 0.955236
 **********
 **   18 **HESSE 
 **********

 FCN=   3108.468     FROM HESSE     STATUS=OK           201 CALLS     1633 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1734        12.244        .66161E-03   -1.5102    
   2  norm          .10000E-03    3.6262        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2758        6.4660        .12047E-03   -1.5133    
   6  Prefactor     7.2147        36.885        .14932E-03   -1.5171    
   7  norm          .10000E-03    8.7195        .10048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     77.172        135.44        .45695E-04   -1.3949    
   9  Prefactor     .10000E-03    15.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.885        10.802        .94704E-04   -1.4862    
  11  Prefactor     1.0925        2.9217        .15230E-03   -1.5499    
  12  norm          .10000E-03    3.6254        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    81.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1408        9.0998        .75050E-03   -1.5173    
  15  Normalizat    .81587        .25269        .23489E-03   -.99483    
  16  Prefactor     .95524        .23128        .20923E-03   -.94237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86333e-09
Minuit parameter uncertainties:
  1  12.2469
  2  4.28088e-06
  3  4.48886e-06
  4  1.16298e-05
  5  6.46654
  6  32.6576
  7  0.000128289
  8  135.982
  9  5.01765e-05
  10  10.803
  11  2.92211
  12  6.36058e-06
  13  0.000255506
  14  9.10152
  15  0.253058
  16  0.231524
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  5.018e-05  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:  9.552e-01  2.315e-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:  8.159e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.316 17.830
Photon Flux Upper Limit: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532680/likelihoodResults_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3108.46804544
delta logL = -0.00030055503521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3108.46774702
delta logL = -2.13792736758e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2427       1.0000          .0000       10.000    
     3 'Normalizat'    .81587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95524       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=   3108.468     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      263 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10608E-03    9.4210        .16909E-01** at limit **
   2  Index         3.0887        8.1330        .50000        .19201E-04
   3  Normalizat    .81587        .49031E-02    .23488E-03    .11626E-03
   4  Prefactor     .95524        .47199E-02    .20923E-03    .33992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106079
  Index      = 3.08873
  Normalizat = 0.815872
  Prefactor  = 0.955236
 **********
 **   18 **HESSE 
 **********

 FCN=   3108.468     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10608E-03    139.36        .17880E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0887        6.4540        .50000       -.39223    
   3  Normalizat    .81587        .19055E-01    .93954E-05   -.99483    
   4  Prefactor     .95524        .18343E-01    .41847E-04   -.94237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4836e-08
Minuit parameter uncertainties:
  1  0.0583479
  2  642.862
  3  0.0190547
  4  0.0183427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532680': 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) = 3108.46774661
delta logL = -1.72314821612e-06

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.061e-04  5.835e-02  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  3.089e+00  6.429e+02  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:  9.552e-01  1.834e-02  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:  8.159e-01  1.905e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.316 17.830

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/532680/cmap_HighResolution_415843201_416102401_4FGL_J0949.2+1749_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-01 03:45:29.806455', job_id='532680', GAL2='0.96', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630493129.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='681' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 532680: <4FGL_J0949.2+1749_daily_bin681> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin681 147.316 17.83 415843201 416102401 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 :                                   418.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            573 sec.

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

