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


Performing analysis on: 4FGL_J0949.7+5819_daily_bin1403
RA = 147.437, Dec = 58.3283
tmin = 602985601, tmax = 603244801
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='544972', job_status='RUN', time_executed='2021-09-01 04:18:05.705810', time_epoch_executed='1630495085.71' WHERE source_name='4FGL J0949.7+5819' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544972/ft1_4FGL_J0949.7+5819_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544972/ft1_4FGL_J0949.7+5819_daily_bin1403.fits outfile=/scratch/kocevski/544972/ft1_filteredMKT_4FGL_J0949.7+5819_daily_bin1403.fits ra=147.437 dec=58.3283 rad=12.0 tmin=602985601.0 tmax=603244801.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 2.34
user 2.17
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.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/544972/ft1_filteredMKT_4FGL_J0949.7+5819_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.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.41
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/544972/ltcube_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.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/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits
.....................!
real 9.71
user 9.40
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/544972/ltcube_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.fits outfile=/scratch/kocevski/544972/expmap_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.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/544972/ltcube_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.fits
.....................!
real 145.16
user 141.62
sys 3.14

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 239 point sources and 0 extended sources

Setting source of interest to:
4FGL J0949.7+5819 @ 147.437 58.3283

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits scfile=/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits outfile=/scratch/kocevski/544972/cmap_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.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.437 yref=58.3283 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.45
user 0.30
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits scfile=/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits outfile=/scratch/kocevski/544972/cmap_HighResolution_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.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.437 yref=58.3283 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.46
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544972/Model_4FGL_J0949.7+5819_daily_bin1403.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/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits......................!
real 27.43
user 26.38
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits', '/scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits', expMap='/scratch/kocevski/544972/expmap_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.fits', expCube='/scratch/kocevski/544972/ltcube_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/544972/Model_4FGL_J0949.7+5819_daily_bin1403.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.7+5819'

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  8.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/544972/ft1_filtered_4FGL_J0949.7+5819_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/544972/ft2_4FGL_J0949.7+5819_daily_bin1403.fits
Exposure map: /scratch/kocevski/544972/expmap_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.fits
Exposure cube: /scratch/kocevski/544972/ltcube_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/544972/Model_4FGL_J0949.7+5819_daily_bin1403.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) = 2276.7178689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.327       1.0000         .10000E-03   10000.    
     4 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15634E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .43303       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46138E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6588       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18728E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .50528E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10781       1.0000         .10000E-03   10000.    
    17 'norm      '    .79435E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53886       1.0000         .10000E-03   10000.    
    19 'norm      '    6975.7       1.0000         .10000E-03   10000.    
    20 'norm      '    15.269       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    .43222       1.0000         .10000E-03   10000.    
    23 'norm      '    .43716E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19596       1.0000         .10000E-03   10000.    
    25 'norm      '    122.68       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.960       1.0000         .10000E-03   10000.    
    27 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.353       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .98883       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .43579       1.0000         .10000E-03   10000.    
    32 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .29644E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .45780       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2269.625     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     5178 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.867        14.039        .68561E-06    .56695E-04
   2  Prefactor     .10000E-03    9.9113        .88310E-07** at limit **
   3  Prefactor     17.572        19.807       -.48242E-07    .12095E-04
   4  norm          .10000E-03    10.536       -.29384E-07** at limit **
   5  Prefactor     .10000E-03    10.525        .49577E-07** at limit **
   6  Prefactor     .10000E-03    2.6015       -.72718E-08** at limit **
   7  Prefactor     .10000E-03    52.319        .39913E-07** at limit **
   8  Prefactor     .10000E-03    234.46        .89272E-08** at limit **
   9  norm          .47479        .93864        .14088E-06    .27586E-03
  10  Prefactor     .10001E-03    168.03        .33984E-05** at limit **
  11  Prefactor     3.7036        3.7319        .11422E-07    .57475E-04
  12  Prefactor     .10000E-03    50.668        .28783E-06** at limit **
  13  Prefactor     .10005E-03    6679.6       -.38437E-04** at limit **
  14  Prefactor     .10000E-03    15.747       -.26295E-07** at limit **
  15  Prefactor     .10000E-03    7.4391        .13301E-07** at limit **
  16  Prefactor     .10162E-03    1826.9        .48455E-04** at limit **
  17  norm          .10000E-03    92.212       -.40561E-06** at limit **
  18  Prefactor     .10000E-03    520.82        .26178E-05** at limit **
  19  norm          6557.3        707.06        .50852E-05    .22720E-03
  20  norm         10000.0        7434.0        .28087E-03** at limit **
  21  Prefactor    10000.0        819.96        .82776E-05** at limit **
  22  norm          .47182        .64550        .93539E-08    .29796E-03
  23  norm          .10000E-03    98.749       -.15667E-06** at limit **
  24  Prefactor     .10000E-03    640.22       -.97777E-06** at limit **
  25  norm          125.23        98.062       -.20401E-05    .18096E-04
  26  Prefactor     17.775        27.986        .78870E-05   -.37546E-03
  27  norm          .10000E-03    10.567        .17484E-04** at limit **
  28  norm          .10000E-03    3.9549       -.69995E-07** at limit **
  29  Prefactor     17.116        83.462        .31900E-04    .78143E-04
  30  Prefactor     .10000E-03    310.83       -.23029E-06** at limit **
  31  Prefactor     .10000E-03    408.46       -.57291E-06** at limit **
  32  norm          .10000E-03    1.5795       -.28456E-08** at limit **
  33  Prefactor     .10000E-03    61.550       -.37711E-06** at limit **
  34  Prefactor     .10000E-03    9.7887        .27241E-07** at limit **
  35  Normalizat    .10000E-01    .22701E-01    .23674E-06** at limit **
  36  Prefactor     .47396        .11354       -.11694E-05    .12312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8668
  Prefactor  = 0.0001
  Prefactor  = 17.572
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.474787
  Prefactor  = 0.00010001
  Prefactor  = 3.7036
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101617
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 6557.25
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.471822
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 125.232
  Prefactor  = 17.7748
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 17.1158
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.473957
 **********
 **   18 **HESSE 
 **********

 FCN=   2269.625     FROM HESSE     STATUS=OK           869 CALLS     6047 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.867        14.005        .27113E-02   -1.4963    
   2  Prefactor     .10000E-03    9.9475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.572        19.877        .24055E-02   -1.4869    
   4  norm          .10000E-03    10.571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6446        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.520        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    234.81        .91010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .47479        1.0134        .10994E-01   -1.5570    
  10  Prefactor     .10001E-03    169.21        .96556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7036        3.7379        .52795E-02   -1.5323    
  12  Prefactor     .10000E-03    51.209        .10143E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    6576.1        .92727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.009        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10162E-03    1772.8        .95484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    92.747        .10453E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    527.02        .11428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6557.3        710.51        .21772E-03    .31672    
  20  norm         10000.0        7426.3        .25625E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        799.97        .90768E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .47182        .67190        .95115E-02   -1.5571    
  23  norm          .10000E-03    98.892        .10611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    642.03        .99592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          125.23        97.567        .90844E-03   -1.3465    
  26  Prefactor     17.775        31.536        .24313E-02   -1.4865    
  27  norm          .10000E-03    6.9426        .41736E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.0326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     17.116        80.024        .27404E-02   -1.4880    
  30  Prefactor     .10000E-03    311.44        .13126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    405.50        .11006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    1.5930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    61.459        .10697E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    9.8759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .22704E-01    .10049       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .47396        .11343        .39078E-01   -1.1319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00447e-09
Minuit parameter uncertainties:
  1  14.0079
  2  2.72212e-05
  3  19.8845
  4  1.00108e-05
  5  2.61832e-06
  6  6.70247e-07
  7  7.7917e-06
  8  0.000571603
  9  1.01347
  10  0.00263916
  11  3.73811
  12  6.96208e-05
  13  0.0260168
  14  4.89827e-06
  15  5.47179e-06
  16  0.110515
  17  8.71022e-05
  18  0.00231472
  19  713.186
  20  0.127026
  21  0.000969582
  22  0.671909
  23  7.88527e-05
  24  0.000819086
  25  97.6931
  26  31.5657
  27  0.000214284
  28  1.15646e-05
  29  74.1811
  30  0.000153872
  31  0.00111072
  32  8.91803e-08
  33  3.72202e-05
  34  3.76342e-06
  35  8.54079e-09
  36  0.113484
Done.

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

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  1.000e-04  2.315e-03  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  4.740e-01  1.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  8.541e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.437 58.328
Photon Flux Upper Limit: 3.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544972/likelihoodResults_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.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) = 2269.62475929
delta logL = -8.92821208254e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2269.62475925
delta logL = -8.88837394086e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6281       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47396       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2269.625     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      196 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    501.38        .90713E-02** at limit **
   2  Index         2.6283        6.3141        .50000       -.40018E-08
   3  Normalizat    .10000E-01    .22473E-01    .10049    ** at limit **
   4  Prefactor     .47396        .10246        .39306E-01    .22721E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6283
  Normalizat = 0.01
  Prefactor  = 0.473957
 **********
 **   18 **HESSE 
 **********

 FCN=   2269.625     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    437.58        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6283        6.3073        .50000       -.49421    
   3  Normalizat    .10000E-01    .22565E-01    .22062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47396        .10187        .22356E-03   -1.1319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20839e-12
Minuit parameter uncertainties:
  1  0.000186334
  2  4.41355
  3  1.03685e-07
  4  0.101913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544972': 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) = 2269.62475036
delta logL = 2.0008883439e-11

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  1.000e-04  1.863e-04  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  2.628e+00  4.414e+00  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  7.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  4.740e-01  1.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  1.037e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.437 58.328

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/544972/cmap_HighResolution_602985601_603244801_4FGL_J0949.7+5819_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-01', job_status='DONE', photon_flux_upper_limit='3.34e-06', time_completed='2021-09-01 04:27:16.861115', job_id='544972', GAL2='0.47', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630495636.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='2.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1403' AND source_name='4FGL J0949.7+5819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 04:27:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 544972: <4FGL_J0949.7+5819_daily_bin1403> in cluster <slac> Done

Job <4FGL_J0949.7+5819_daily_bin1403> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 04:15:29 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 04:15:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 04:15:32 2021
Terminated at Wed Sep  1 04:27:17 2021
Results reported at Wed Sep  1 04:27:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.7+5819_daily_bin1403 147.437 58.3283 602985601 603244801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.7+5819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   535.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             218.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            708 sec.

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

