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


Performing analysis on: 4FGL_J0949.2+1749_daily_bin188
RA = 147.316, Dec = 17.83
tmin = 288057601, tmax = 288316801
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='529735', job_status='RUN', time_executed='2021-09-01 03:26:22.127123', time_epoch_executed='1630491982.13' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/529735/ft1_4FGL_J0949.2+1749_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/529735/ft2_4FGL_J0949.2+1749_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529735/ft1_4FGL_J0949.2+1749_daily_bin188.fits outfile=/scratch/kocevski/529735/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin188.fits ra=147.316 dec=17.83 rad=12.0 tmin=288057601.0 tmax=288316801.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.60
user 3.36
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529735/ft1_filtered_4FGL_J0949.2+1749_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/529735/ft2_4FGL_J0949.2+1749_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/529735/ltcube_288057601_288316801_4FGL_J0949.2+1749_daily_bin188.fits outfile=/scratch/kocevski/529735/expmap_288057601_288316801_4FGL_J0949.2+1749_daily_bin188.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/529735/ltcube_288057601_288316801_4FGL_J0949.2+1749_daily_bin188.fits
.....................!
real 193.17
user 186.22
sys 4.99

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/529735/ft1_filtered_4FGL_J0949.2+1749_daily_bin188.fits scfile=/scratch/kocevski/529735/ft2_4FGL_J0949.2+1749_daily_bin188.fits outfile=/scratch/kocevski/529735/cmap_288057601_288316801_4FGL_J0949.2+1749_daily_bin188.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529735/ft1_filtered_4FGL_J0949.2+1749_daily_bin188.fits scfile=/scratch/kocevski/529735/ft2_4FGL_J0949.2+1749_daily_bin188.fits outfile=/scratch/kocevski/529735/cmap_HighResolution_288057601_288316801_4FGL_J0949.2+1749_daily_bin188.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/529735/ft1_filtered_4FGL_J0949.2+1749_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/529735/ft2_4FGL_J0949.2+1749_daily_bin188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/529735/Model_4FGL_J0949.2+1749_daily_bin188.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/529735/ft1_filtered_4FGL_J0949.2+1749_daily_bin188.fits.....................!
real 53.58
user 51.62
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    48.517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.201       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4026       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2006       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .80211       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=   5533.540     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1492 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1054        .22095E-07** at limit **
   2  norm          .10000E-03    1.9316       -.11077E-07** at limit **
   3  norm          48.517        33.160       -.81676E-06    .96503E-05
   4  Prefactor     .10000E-03    19.326       -.22687E-06** at limit **
   5  Prefactor     .10000E-03    3.4205       -.97491E-07** at limit **
   6  Prefactor     .10000E-03    38.112       -.84242E-06** at limit **
   7  norm          .10000E-03    .72193       -.35440E-06** at limit **
   8  Prefactor     .10000E-03    91.091        .28951E-05** at limit **
   9  Prefactor     72.731        47.763       -.17808E-04    .53224E-04
  10  Prefactor     13.198        7.7383       -.17965E-05    .31954E-04
  11  Prefactor     2.4022        3.2237       -.38802E-06   -.44755E-03
  12  norm          .10000E-03    5.0696        .29992E-07** at limit **
  13  Prefactor     14.794        37.778       -.25672E-04    .78742E-05
  14  Prefactor     .10000E-03    14.855        .10821E-06** at limit **
  15  Normalizat    1.2009        .18359        .48298E-05   -.98643E-06
  16  Prefactor     .80183        .15785        .51557E-06    .32223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 48.5168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.7308
  Prefactor  = 13.198
  Prefactor  = 2.40218
  norm       = 0.0001
  Prefactor  = 14.7938
  Prefactor  = 0.0001
  Normalizat = 1.20092
  Prefactor  = 0.801826
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.540     FROM HESSE     STATUS=OK           195 CALLS     1687 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.9317        .10097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          48.517        33.154        .57569E-04   -1.4314    
   4  Prefactor     .10000E-03    19.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4811        .13432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.5962        .11976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    91.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     72.731        47.779        .47068E-04   -1.4000    
  10  Prefactor     13.198        7.7354        .11024E-03   -1.4981    
  11  Prefactor     2.4022        3.2134        .14855E-03   -1.5398    
  12  norm          .10000E-03    5.1204        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.794        37.813        .10406E-03   -1.4939    
  14  Prefactor     .10000E-03    15.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2009        .21271        .23070E-03   -.86574    
  16  Prefactor     .80183        .18500        .24684E-03   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45082e-10
Minuit parameter uncertainties:
  1  1.61305e-05
  2  8.80125e-07
  3  33.1666
  4  2.05085e-05
  5  2.04354e-05
  6  0.000107587
  7  6.70662e-05
  8  0.000166161
  9  47.8041
  10  7.73602
  11  3.21359
  12  3.42902e-06
  13  37.874
  14  3.66398e-05
  15  0.212864
  16  0.185144
Done.

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

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  7.273e+01  4.780e+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:  8.018e-01  1.851e-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.201e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 147.316 17.830
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.78e-08 +/- 5.11e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/529735/likelihoodResults_288057601_288316801_4FGL_J0949.2+1749_daily_bin188.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) = 5533.14048052
delta logL = 0.399359114002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5533.13576618
delta logL = 0.404073456853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.664       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1970       1.0000          .0000       10.000    
     3 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83578       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=   5533.136     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      290 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.675        59.376        .62104E-04    .29780E-03
   2  Index         3.1964        1.0126        .48854E-02    .19003E-03
   3  Normalizat    1.1472        .21980        .23512E-03    .27649E-03
   4  Prefactor     .83557        .19120        .24235E-03    .47748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6753
  Index      = 3.19644
  Normalizat = 1.14717
  Prefactor  = 0.835573
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.136     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.675        48.531        .12421E-04   -1.4416    
   2  Index         3.1964        .82816        .19542E-03   -.36903    
   3  Normalizat    1.1472        .21833        .47024E-04   -.88251    
   4  Prefactor     .83557        .18991        .48469E-04   -.98430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12603e-10
Minuit parameter uncertainties:
  1  48.5773
  2  0.832575
  3  0.218498
  4  0.190055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529735': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5533.135765
delta logL = 0.404074636353

Extracting fit parameters...

4FGL J0949.2+1749
   Spectrum: PowerLaw
221    Prefactor:  4.168e+01  4.858e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  3.196e+00  8.326e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  7.531e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  8.356e-01  1.901e-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.147e+00  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.87
Ra Dec: 147.316 17.830
Photon Index (Free Index): 3.20 +/- 0.83
Photon Flux (Free Index): 1.21e-07 +/- 7.57e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.25e-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/529735/cmap_HighResolution_288057601_288316801_4FGL_J0949.2+1749_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='7.78e-08', energy_flux2='2.21e-05', photon_flux_error='5.11e-08', dlogl='4.04e-01', energy_flux='2.21e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-01 03:34:37.742643', photon_index_error2='0.83', photon_index2='3.20', ts='3.95', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.25e-05', EG='1.20', time_epoch_completed='1630492477.74', return_code='0', job_id='529735', GAL2='0.84', EG2='1.15', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='7.57e-08', ts2='4.87', photon_index='2.52' WHERE bin_id='188' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:34:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 529735: <4FGL_J0949.2+1749_daily_bin188> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin188 147.316 17.83 288057601 288316801 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 :                                   484.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            534 sec.

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

