/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0949.2+1749_daily_bin1310
RA = 147.316, Dec = 17.83
tmin = 578880001, tmax = 579139201
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='535542', job_status='RUN', time_executed='2021-09-01 03:47:15.082428', time_epoch_executed='1630493235.08' WHERE source_name='4FGL J0949.2+1749' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535542

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535542/ft1_4FGL_J0949.2+1749_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535542/ft2_4FGL_J0949.2+1749_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535542/ft1_4FGL_J0949.2+1749_daily_bin1310.fits outfile=/scratch/kocevski/535542/ft1_filteredMKT_4FGL_J0949.2+1749_daily_bin1310.fits ra=147.316 dec=17.83 rad=12.0 tmin=578880001.0 tmax=579139201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.81
user 3.28
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535542/ft1_filtered_4FGL_J0949.2+1749_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/535542/ft2_4FGL_J0949.2+1749_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/535542/ltcube_578880001_579139201_4FGL_J0949.2+1749_daily_bin1310.fits outfile=/scratch/kocevski/535542/expmap_578880001_579139201_4FGL_J0949.2+1749_daily_bin1310.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/535542/ltcube_578880001_579139201_4FGL_J0949.2+1749_daily_bin1310.fits
.....................!
real 195.70
user 186.37
sys 5.46

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/535542/ft1_filtered_4FGL_J0949.2+1749_daily_bin1310.fits scfile=/scratch/kocevski/535542/ft2_4FGL_J0949.2+1749_daily_bin1310.fits outfile=/scratch/kocevski/535542/cmap_578880001_579139201_4FGL_J0949.2+1749_daily_bin1310.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535542/ft1_filtered_4FGL_J0949.2+1749_daily_bin1310.fits scfile=/scratch/kocevski/535542/ft2_4FGL_J0949.2+1749_daily_bin1310.fits outfile=/scratch/kocevski/535542/cmap_HighResolution_578880001_579139201_4FGL_J0949.2+1749_daily_bin1310.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    9.6549       1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.030       1.0000         .10000E-03   10000.    
     7 'norm      '    .94497       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.544       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.551       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0865       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=   5852.412     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     1465 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8798        .34583E-07** at limit **
   2  norm          9.6534        7.1584        .31623E-05    .33499E-04
   3  norm          .10000E-03    14.676        .44314E-06** at limit **
   4  Prefactor     .10000E-03    36.769        .19791E-04** at limit **
   5  Prefactor     .10000E-03    3.5179        .17358E-06** at limit **
   6  Prefactor     34.035        28.030        .55630E-05   -.54216E-04
   7  norm          .94502        1.3486        .33791E-06   -.87822E-03
   8  Prefactor     .10000E-03    41.345       -.15046E-04** at limit **
   9  Prefactor     40.496        52.432        .81316E-04   -.48812E-04
  10  Prefactor     5.2891        7.7512       -.15446E-05   -.32223E-03
  11  Prefactor     .10000E-03    1.1666        .40311E-07** at limit **
  12  norm          13.545        8.7970        .43337E-06   -.97883E-04
  13  Prefactor     .10000E-03    25.803       -.23148E-05** at limit **
  14  Prefactor     18.551        11.833        .13801E-05   -.89436E-04
  15  Normalizat    1.0595        .19919       -.12302E-04    .30907E-03
  16  Prefactor     1.0867        .17219       -.48203E-06   -.45821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.65343
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0347
  norm       = 0.945018
  Prefactor  = 0.0001
  Prefactor  = 40.4958
  Prefactor  = 5.28912
  Prefactor  = 0.0001
  norm       = 13.545
  Prefactor  = 0.0001
  Prefactor  = 18.5506
  Normalizat = 1.05945
  Prefactor  = 1.08674
 **********
 **   18 **HESSE 
 **********

 FCN=   5852.412     FROM HESSE     STATUS=OK           197 CALLS     1662 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8817        .14717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.6534        7.1621        .12897E-03   -1.5086    
   3  norm          .10000E-03    14.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6367        .28018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.035        28.070        .68694E-04   -1.4541    
   7  norm          .94502        1.2491        .99612E-03   -1.5514    
   8  Prefactor     .10000E-03    41.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.496        52.398        .63037E-04   -1.4434    
  10  Prefactor     5.2891        7.7582        .17479E-03   -1.5248    
  11  Prefactor     .10000E-03    1.1791        .80660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.545        8.7950        .10884E-03   -1.4972    
  13  Prefactor     .10000E-03    25.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.551        11.859        .92990E-04   -1.4846    
  15  Normalizat    1.0595        .23332        .25960E-03   -.91064    
  16  Prefactor     1.0867        .20311        .23507E-03   -.89891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23818e-09
Minuit parameter uncertainties:
  1  1.12302e-05
  2  7.16271
  3  4.47558e-05
  4  7.16931e-05
  5  2.96474e-05
  6  28.0805
  7  1.24909
  8  0.000187066
  9  52.4579
  10  7.75968
  11  1.27183e-05
  12  8.79587
  13  6.72635e-05
  14  11.86
  15  0.233546
  16  0.203255
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.087e+00  2.033e-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.059e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/535542/likelihoodResults_578880001_579139201_4FGL_J0949.2+1749_daily_bin1310.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) = 5852.19076869
delta logL = 0.221236440671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5852.18132878
delta logL = 0.230676358869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.679       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2166       1.0000          .0000       10.000    
     3 'Normalizat'    1.0254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1089       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=   5852.181     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      302 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.643        68.253        .84110E-04   -.37795E-03
   2  Index         3.2181        1.7953        .74803E-02   -.11103E-03
   3  Normalizat    1.0253        .23062        .26323E-03    .12749E-03
   4  Prefactor     1.1090        .20756        .23301E-03    .12512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6427
  Index      = 3.21813
  Normalizat = 1.02526
  Prefactor  = 1.10896
 **********
 **   18 **HESSE 
 **********

 FCN=   5852.181     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.643        45.576        .16822E-04   -1.4756    
   2  Index         3.2181        1.2114        .29921E-03   -.36438    
   3  Normalizat    1.0253        .23010        .10529E-04   -.92189    
   4  Prefactor     1.1090        .20577        .46602E-04   -.89181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24005e-10
Minuit parameter uncertainties:
  1  45.6465
  2  1.22538
  3  0.230323
  4  0.205914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535542': 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) = 5852.18132769
delta logL = 0.230677446998

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.109e+00  2.059e-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.025e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 147.316 17.830
Photon Index (Free Index): 3.22 +/- 1.23
Photon Flux (Free Index): 6.79e-08 +/- 6.95e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.29e-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/535542/cmap_HighResolution_578880001_579139201_4FGL_J0949.2+1749_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='2.31e-01', photon_flux2='6.79e-08', job_status='DONE', time_completed='2021-09-01 03:56:14.306176', photon_index_error2='1.23', photon_index2='3.22', ts='0.71', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.29e-05', EG='1.06', time_epoch_completed='1630493774.31', return_code='0', job_id='535542', GAL2='1.11', EG2='1.03', return_code2='0', photon_flux_error2='6.95e-08', ts2='1.21', photon_index='2.52' WHERE bin_id='1310' AND source_name='4FGL J0949.2+1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:56:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 535542: <4FGL_J0949.2+1749_daily_bin1310> in cluster <slac> Done

Job <4FGL_J0949.2+1749_daily_bin1310> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 03:45:24 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:45:26 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:45:26 2021
Terminated at Wed Sep  1 03:56:15 2021
Results reported at Wed Sep  1 03:56:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.2+1749_daily_bin1310 147.316 17.83 578880001 579139201 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 :                                   505.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            651 sec.

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

