/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 136 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 = 7258
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0949.2+1749_daily_bin170
RA = 147.316, Dec = 17.83
tmin = 283392001, tmax = 283651201
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='529708', job_status='RUN', time_executed='2021-09-01 03:28:28.902455', time_epoch_executed='1630492108.9' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529708

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/529708/ft1_4FGL_J0949.2+1749_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/529708/ft2_4FGL_J0949.2+1749_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529708/ft1_4FGL_J0949.2+1749_daily_bin170.fits outfile=/scratch/kocevski/529708/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin170.fits ra=147.316 dec=17.83 rad=12.0 tmin=283392001.0 tmax=283651201.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.69
user 3.36
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529708/ft1_filtered_4FGL_J0949.2+1749_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/529708/ft2_4FGL_J0949.2+1749_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/529708/ltcube_283392001_283651201_4FGL_J0949.2+1749_daily_bin170.fits outfile=/scratch/kocevski/529708/expmap_283392001_283651201_4FGL_J0949.2+1749_daily_bin170.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/529708/ltcube_283392001_283651201_4FGL_J0949.2+1749_daily_bin170.fits
.....................!
real 190.89
user 185.18
sys 4.61

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/529708/ft1_filtered_4FGL_J0949.2+1749_daily_bin170.fits scfile=/scratch/kocevski/529708/ft2_4FGL_J0949.2+1749_daily_bin170.fits outfile=/scratch/kocevski/529708/cmap_283392001_283651201_4FGL_J0949.2+1749_daily_bin170.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529708/ft1_filtered_4FGL_J0949.2+1749_daily_bin170.fits scfile=/scratch/kocevski/529708/ft2_4FGL_J0949.2+1749_daily_bin170.fits outfile=/scratch/kocevski/529708/cmap_HighResolution_283392001_283651201_4FGL_J0949.2+1749_daily_bin170.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6937       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.953       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0385       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.722       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95344       1.0000         .10000E-03   10000.    
    12 'norm      '    13.908       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19400E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1049       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .77191       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=   5389.488     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     1891 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6940        8.1645        .15510E-03    .39729E-04
   2  norm          .10000E-03    3.7554        .13822E-02** at limit **
   3  norm          4.3619        38.456        .19275E-03    .36273E-04
   4  Prefactor     .10000E-03    37.790        .18142E-02** at limit **
   5  Prefactor     5.9606        5.4985        .15812E-03    .11950E-03
   6  Prefactor     39.957        34.851        .63415E-04   -.30835E-04
   7  norm          1.0382        1.2772        .49272E-04    .15690E-03
   8  Prefactor     .10000E-03    38.646        .18142E-02** at limit **
   9  Prefactor     30.728        44.672        .72287E-04   -.20917E-04
  10  Prefactor     .45993        19.375        .27189E-02   -.19320E-03
  11  Prefactor     .95328        2.6691        .19333E-03    .14642E-03
  12  norm          13.908        10.003        .10740E-03   -.46469E-04
  13  Prefactor     .10000E-03    51.517        .14409    ** at limit **
  14  Prefactor     3.1075        11.443        .23013E-03    .11634E-03
  15  Normalizat    1.2608        .24364        .22749E-03    .22288E-04
  16  Prefactor     .77207        .20129        .25263E-03    .26502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69403
  norm       = 0.0001
  norm       = 4.36187
  Prefactor  = 0.000100001
  Prefactor  = 5.96065
  Prefactor  = 39.9568
  norm       = 1.03819
  Prefactor  = 0.0001
  Prefactor  = 30.7276
  Prefactor  = 0.459929
  Prefactor  = 0.953281
  norm       = 13.9079
  Prefactor  = 0.000100003
  Prefactor  = 3.10753
  Normalizat = 1.26079
  Prefactor  = 0.772072
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.488     FROM HESSE     STATUS=OK           197 CALLS     2088 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6940        8.1644        .62038E-05   -1.5190    
   2  norm          .10000E-03    3.7563        .27644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3619        38.439        .77101E-05   -1.5290    
   4  Prefactor     .10000E-03    37.794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9606        5.4983        .63246E-05   -1.5220    
   6  Prefactor     39.957        34.822        .25366E-05   -1.4443    
   7  norm          1.0382        1.2770        .19709E-05   -1.5504    
   8  Prefactor     .10000E-03    38.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.728        44.639        .28915E-05   -1.4599    
  10  Prefactor     .45993        19.268        .10876E-03   -1.5572    
  11  Prefactor     .95328        2.6675        .77332E-05   -1.5513    
  12  norm          13.908        9.9993        .42961E-05   -1.4962    
  13  Prefactor     .10000E-03    51.304        .14450       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1075        11.440        .92053E-05   -1.5355    
  15  Normalizat    1.2608        .24365        .90997E-05   -.84744    
  16  Prefactor     .77207        .20151        .10105E-04   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7067e-10
Minuit parameter uncertainties:
  1  8.16572
  2  6.6518e-06
  3  25.919
  4  0.000352646
  5  5.49874
  6  34.8402
  7  1.27703
  8  0.000185198
  9  44.6873
  10  5.95513
  11  2.66785
  12  10.0005
  13  0.000839133
  14  11.4481
  15  0.243875
  16  0.201701
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  3.073e+01  4.469e+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:  7.721e-01  2.017e-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.261e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/529708/likelihoodResults_283392001_283651201_4FGL_J0949.2+1749_daily_bin170.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) = 5388.01790438
delta logL = 1.47024200065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5387.94025668
delta logL = 1.54788969616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4728       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9283       1.0000          .0000       10.000    
     3 'Normalizat'    1.1273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85723       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=   5387.940     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      276 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4641        23.947        .65004E-02    .35578E-03
   2  Index         4.9310        2.9519        .10223        .13649E-03
   3  Normalizat    1.1273        .64576E-01    .53932E-01    .16116E-04
   4  Prefactor     .85717        .57380E-01    .44457E-01    .82861E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46409
  Index      = 4.93096
  Normalizat = 1.12727
  Prefactor  = 0.857165
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.940     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4641        39.367        .63108E-04   -1.5394    
   2  Index         4.9310        3.9341        .40673E-02   -.13809E-01
   3  Normalizat    1.1273        .20696        .23847E-03   -.88881    
   4  Prefactor     .85717        .18208        .24109E-03   -.97654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55751e-07
Minuit parameter uncertainties:
  1  19.7131
  2  4.52834
  3  0.207112
  4  0.182208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529708': 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) = 5387.9402536
delta logL = 1.54789277468

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  2.464e+00  1.971e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  4.931e+00  4.528e+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:  8.572e-01  1.822e-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.127e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 147.316 17.830
Photon Index (Free Index): 4.93 +/- 4.53
Photon Flux (Free Index): 1.33e-07 +/- 7.74e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.24e-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/529708/cmap_HighResolution_283392001_283651201_4FGL_J0949.2+1749_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.78e-05', dlogl='1.55e+00', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-01 03:37:00.757437', photon_index_error2='4.53', photon_index2='4.93', ts='0.60', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.24e-05', EG='1.26', time_epoch_completed='1630492620.76', return_code='0', job_id='529708', GAL2='0.86', EG2='1.13', return_code2='102', photon_flux_error2='7.74e-08', ts2='4.09', photon_index='2.52' WHERE bin_id='170' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 529708: <4FGL_J0949.2+1749_daily_bin170> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 03:25:41 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:25:43 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:25:43 2021
Terminated at Wed Sep  1 03:37:01 2021
Results reported at Wed Sep  1 03:37:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin170 147.316 17.83 283392001 283651201 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 :                                   503.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            680 sec.

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

