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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin394
RA = 147.316, Dec = 17.83
tmin = 341452801, tmax = 341712001
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='530963', job_status='RUN', time_executed='2021-09-01 03:31:23.816142', time_epoch_executed='1630492283.82' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530963/ft1_4FGL_J0949.2+1749_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530963/ft2_4FGL_J0949.2+1749_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530963/ft1_4FGL_J0949.2+1749_daily_bin394.fits outfile=/scratch/kocevski/530963/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin394.fits ra=147.316 dec=17.83 rad=12.0 tmin=341452801.0 tmax=341712001.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.39
user 3.15
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530963/ft1_filtered_4FGL_J0949.2+1749_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/530963/ft2_4FGL_J0949.2+1749_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/530963/ltcube_341452801_341712001_4FGL_J0949.2+1749_daily_bin394.fits outfile=/scratch/kocevski/530963/expmap_341452801_341712001_4FGL_J0949.2+1749_daily_bin394.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/530963/ltcube_341452801_341712001_4FGL_J0949.2+1749_daily_bin394.fits
.....................!
real 190.02
user 185.33
sys 4.25

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/530963/ft1_filtered_4FGL_J0949.2+1749_daily_bin394.fits scfile=/scratch/kocevski/530963/ft2_4FGL_J0949.2+1749_daily_bin394.fits outfile=/scratch/kocevski/530963/cmap_341452801_341712001_4FGL_J0949.2+1749_daily_bin394.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/530963/ft1_filtered_4FGL_J0949.2+1749_daily_bin394.fits scfile=/scratch/kocevski/530963/ft2_4FGL_J0949.2+1749_daily_bin394.fits outfile=/scratch/kocevski/530963/cmap_HighResolution_341452801_341712001_4FGL_J0949.2+1749_daily_bin394.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.145       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.769       1.0000         .10000E-03   10000.    
     7 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57204       1.0000         .10000E-03   10000.    
    12 'norm      '    9.8238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38581E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .98431       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0405       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=   5891.554     FROM MIGRAD    STATUS=CONVERGED    296 CALLS     1446 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.143        17.531       -.13981E-05    .83475E-05
   2  norm          .10000E-03    4.0413       -.40772E-08** at limit **
   3  norm          .10000E-03    19.264       -.36974E-05** at limit **
   4  Prefactor     .10000E-03    17.797        .56073E-05** at limit **
   5  Prefactor     .10000E-03    4.3751        .27382E-06** at limit **
   6  Prefactor     26.756        24.381       -.15654E-04    .60328E-05
   7  norm          .10000E-03    .42127       -.11430E-06** at limit **
   8  Prefactor     60.034        46.971       -.31282E-05    .87798E-05
   9  Prefactor     .10000E-03    12.244       -.30307E-05** at limit **
  10  Prefactor     10.291        6.0948        .27119E-06    .17877E-04
  11  Prefactor     .57235        1.9658       -.81314E-06   -.13308E-02
  12  norm          9.8261        8.0706       -.26049E-06   -.23186E-04
  13  Prefactor     .10000E-03    10.651        .15187E-05** at limit **
  14  Prefactor     .10000E-03    6.0638       -.65807E-06** at limit **
  15  Normalizat    .98414        .17167        .26018E-05    .40688E-04
  16  Prefactor     1.0407        .15917       -.17037E-06    .19095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.143
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7561
  norm       = 0.0001
  Prefactor  = 60.0344
  Prefactor  = 0.0001
  Prefactor  = 10.2914
  Prefactor  = 0.572347
  norm       = 9.8261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.984142
  Prefactor  = 1.0407
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.554     FROM HESSE     STATUS=OK           201 CALLS     1647 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.143        17.535        .70674E-04   -1.4573    
   2  norm          .10000E-03    4.0965        .15069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4476        .15675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.756        24.157        .77429E-04   -1.4673    
   7  norm          .10000E-03    .67284        .96519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.034        46.968        .51781E-04   -1.4157    
   9  Prefactor     .10000E-03    12.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.291        6.0915        .12490E-03   -1.5066    
  11  Prefactor     .57235        1.9532        .19506E-03   -1.5557    
  12  norm          9.8261        8.0680        .12785E-03   -1.5081    
  13  Prefactor     .10000E-03    10.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.997        .36487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .98414        .19598        .24291E-03   -.93564    
  16  Prefactor     1.0407        .18350        .22564E-03   -.91385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37796e-09
Minuit parameter uncertainties:
  1  17.5374
  2  3.15204e-06
  3  8.87748e-07
  4  2.19538e-07
  5  5.8899e-05
  6  24.1657
  7  9.45136e-06
  8  46.9965
  9  8.93272e-06
  10  6.09185
  11  1.95343
  12  8.06893
  13  7.13892e-06
  14  2.01721e-05
  15  0.196124
  16  0.183615
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  8.933e-06  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.041e+00  1.836e-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:  9.841e-01  1.961e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530963/likelihoodResults_341452801_341712001_4FGL_J0949.2+1749_daily_bin394.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) = 5891.55452628
delta logL = -0.000388555419704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5891.55413766
delta logL = 5.95910023549e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5026       1.0000          .0000       10.000    
     3 'Normalizat'    .98414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0407       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=   5891.554     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10444E-03    27.166        .18142E-01** at limit **
   2  Index         2.3375        8.7629        .50000        .90955E-05
   3  Normalizat    .98414        .60225E-02    .24291E-03   -.60843E-05
   4  Prefactor     1.0407        .57658E-02    .22564E-03   -.10077E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104437
  Index      = 2.33747
  Normalizat = 0.984143
  Prefactor  = 1.0407
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.554     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10444E-03    241.98        .27887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3375        5.8517        .50000       -.56156    
   3  Normalizat    .98414        .18291E-01    .97164E-05   -.93564    
   4  Prefactor     1.0407        .17512E-01    .90257E-05   -.91385    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9458e-08
Minuit parameter uncertainties:
  1  0.0658034
  2  1008.91
  3  0.0182916
  4  0.017512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530963': 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) = 5891.5541374
delta logL = 3.22249434248e-07

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  1.044e-04  6.580e-02  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.337e+00  1.009e+03  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.041e+00  1.751e-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:  9.841e-01  1.829e-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/530963/cmap_HighResolution_341452801_341712001_4FGL_J0949.2+1749_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-01 03:39:50.492181', job_id='530963', GAL2='1.04', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630492790.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='394' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:39:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 530963: <4FGL_J0949.2+1749_daily_bin394> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin394> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 03:30:29 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 03:30:30 2021
Terminated at Wed Sep  1 03:39:51 2021
Results reported at Wed Sep  1 03:39:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin394 147.316 17.83 341452801 341712001 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 :                                   489.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            562 sec.

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

