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


Performing analysis on: 4FGL_J0949.7+5819_daily_bin735
RA = 147.437, Dec = 58.3283
tmin = 429840001, tmax = 430099201
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='539348', job_status='RUN', time_executed='2021-09-01 03:56:15.204675', time_epoch_executed='1630493775.2' WHERE source_name='4FGL J0949.7+5819' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/539348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/539348/ft1_4FGL_J0949.7+5819_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/539348/ft1_4FGL_J0949.7+5819_daily_bin735.fits outfile=/scratch/kocevski/539348/ft1_filteredMKT_4FGL_J0949.7+5819_daily_bin735.fits ra=147.437 dec=58.3283 rad=12.0 tmin=429840001.0 tmax=430099201.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 5.91
user 5.64
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.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/539348/ft1_filteredMKT_4FGL_J0949.7+5819_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/539348/ltcube_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.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/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits
.....................!
real 16.18
user 15.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/539348/ltcube_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.fits outfile=/scratch/kocevski/539348/expmap_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.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/539348/ltcube_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.fits
.....................!
real 190.83
user 185.22
sys 5.05

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/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits scfile=/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits outfile=/scratch/kocevski/539348/cmap_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.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 1.04
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits scfile=/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits outfile=/scratch/kocevski/539348/cmap_HighResolution_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.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 1.00
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/539348/Model_4FGL_J0949.7+5819_daily_bin735.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/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits.....................!
real 37.07
user 33.86
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits', '/scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits', expMap='/scratch/kocevski/539348/expmap_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.fits', expCube='/scratch/kocevski/539348/ltcube_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/539348/Model_4FGL_J0949.7+5819_daily_bin735.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/539348/ft1_filtered_4FGL_J0949.7+5819_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/539348/ft2_4FGL_J0949.7+5819_daily_bin735.fits
Exposure map: /scratch/kocevski/539348/expmap_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.fits
Exposure cube: /scratch/kocevski/539348/ltcube_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/539348/Model_4FGL_J0949.7+5819_daily_bin735.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) = 2782.53193406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.232       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10193E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49682E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7145       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39627       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.963       1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.683       1.0000         .10000E-03   10000.    
    19 'norm      '    .90268       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9629       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.186       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .89760       1.0000         .10000E-03   10000.    
    27 'norm      '    .19032E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.2356       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    153.08       1.0000         .10000E-03   10000.    
    31 'Prefactor '    63.975       1.0000         .10000E-03   10000.    
    32 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    22.737       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .67372       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .91539       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2782.513     FROM MIGRAD    STATUS=CONVERGED   1025 CALLS     5340 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.236        14.284        .21808E-06   -.43527E-04
   2  Prefactor     26.964        14.603        .10920E-06   -.38946E-04
   3  Prefactor     .10001E-03    254.45       -.50108E-06** at limit **
   4  norm          1.0455        6.7592       -.84013E-06   -.28804E-03
   5  Prefactor     .10000E-03    14.294        .32788E-06** at limit **
   6  Prefactor     16.594        19.227       -.30196E-06   -.23138E-03
   7  Prefactor     .10000E-03    28.336        .37645E-07** at limit **
   8  Prefactor     .10000E-03    65.235        .38267E-07** at limit **
   9  norm          .10000E-03    .45972        .14810E-06** at limit **
  10  Prefactor     .10046E-03    31.717        .26523E-06** at limit **
  11  Prefactor     .10000E-03    18.551        .22388E-06** at limit **
  12  Prefactor     3.7182        6.3588       -.87479E-07   -.55240E-03
  13  Prefactor     .44022        215.83        .17725E-04   -.18607E-03
  14  Prefactor     .10000E-03    8.4717        .38318E-06** at limit **
  15  Prefactor     .10000E-03    6.7349        .99117E-06** at limit **
  16  Prefactor     14.969        12.736       -.33196E-06   -.52639E-03
  17  norm          .10000E-03    5.4043        .35996E-06** at limit **
  18  Prefactor     14.649        53.215       -.83596E-07   -.29318E-04
  19  norm          .90277        .58376        .58710E-07    .36658E-03
  20  norm          .10000E-03    8.0646       -.43228E-07** at limit **
  21  Prefactor     .10000E-03    4.2188        .28049E-06** at limit **
  22  norm          .10000E-03    .64962       -.25471E-06** at limit **
  23  norm          2.9638        2.8513        .11445E-06    .36979E-04
  24  Prefactor     .10000E-03    19.007        .43763E-06** at limit **
  25  norm          13.216        41.571       -.47126E-05   -.12380E-03
  26  Prefactor     .98392        49.669        .86542E-05   -.23490E-04
  27  norm          .10000E-03    5.2525       -.28075E-05** at limit **
  28  norm          3.2352        1.9851       -.25484E-07   -.18407E-03
  29  Prefactor     .10000E-03    104.66        .11330E-05** at limit **
  30  Prefactor     153.11        138.32        .11280E-05   -.17741E-04
  31  Prefactor     63.970        121.60       -.86023E-07   -.10720E-04
  32  norm          .10000E-03    1.2109        .12529E-06** at limit **
  33  Prefactor     .10000E-03    25.880        .36812E-06** at limit **
  34  Prefactor     22.744        26.947        .21581E-06   -.83640E-04
  35  Normalizat    .67335        .23190       -.43534E-05   -.49645E-03
  36  Prefactor     .91542        .22624        .17254E-05   -.36927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2356
  Prefactor  = 26.9642
  Prefactor  = 0.000100006
  norm       = 1.04547
  Prefactor  = 0.0001
  Prefactor  = 16.5945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100458
  Prefactor  = 0.0001
  Prefactor  = 3.71815
  Prefactor  = 0.440215
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.9686
  norm       = 0.0001
  Prefactor  = 14.6488
  norm       = 0.902768
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.96375
  Prefactor  = 0.0001
  norm       = 13.2165
  Prefactor  = 0.983917
  norm       = 0.000100001
  norm       = 3.23523
  Prefactor  = 0.0001
  Prefactor  = 153.106
  Prefactor  = 63.9703
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7441
  Normalizat = 0.673354
  Prefactor  = 0.915416
 **********
 **   18 **HESSE 
 **********

 FCN=   2782.513     FROM HESSE     STATUS=OK           811 CALLS     6151 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.236        14.301        .91330E-04   -1.4831    
   2  Prefactor     26.964        14.580        .77150E-04   -1.4669    
   3  Prefactor     .10001E-03    256.04        .20750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0455        6.8233        .26802E-03   -1.5503    
   5  Prefactor     .10000E-03    14.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.594        19.364        .49136E-03   -1.4893    
   7  Prefactor     .10000E-03    28.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    65.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .46527        .34987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10046E-03    66.987        .37937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7182        6.2853        .15147E-03   -1.5322    
  13  Prefactor     .44022        273.12        .47475E-02   -1.5575    
  14  Prefactor     .10000E-03    8.4907        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8428        .13448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.969        12.656        .10354E-03   -1.4934    
  17  norm          .10000E-03    5.4160        .11989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.649        53.493        .10453E-03   -1.4942    
  19  norm          .90277        .58894        .31364E-04   -1.5518    
  20  norm          .10000E-03    8.0793        .14633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2453        .10585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .88005        .80154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9638        2.8620        .84783E-04   -1.5364    
  24  Prefactor     .10000E-03    19.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.216        41.164        .11031E-03   -1.4981    
  26  Prefactor     .98392        154.46        .51090E-02   -1.5510    
  27  norm          .10000E-03    7.3196        .17597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.2352        1.9878        .56368E-04   -1.5348    
  29  Prefactor     .10000E-03    104.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     153.11        138.49        .16290E-03   -1.3227    
  31  Prefactor     63.970        121.51        .50172E-04   -1.4107    
  32  norm          .10000E-03    1.2280        .56581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    25.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     22.744        26.947        .84002E-04   -1.4754    
  35  Normalizat    .67335        .26059        .25077E-03   -1.0495    
  36  Prefactor     .91542        .25304        .23230E-03   -.95604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69991e-08
Minuit parameter uncertainties:
  1  14.3033
  2  14.5824
  3  0.00247827
  4  5.34236
  5  6.62167e-05
  6  19.3717
  7  0.000139574
  8  0.00014643
  9  6.74702e-06
  10  0.0110892
  11  8.44054e-05
  12  6.28644
  13  22.0293
  14  3.62913e-05
  15  0.000157324
  16  12.6578
  17  4.98119e-05
  18  53.6694
  19  0.588939
  20  2.89873e-05
  21  2.63553e-05
  22  2.03299e-06
  23  2.86215
  24  8.97583e-05
  25  41.2529
  26  24.7193
  27  0.00017945
  28  1.98782
  29  0.000222358
  30  138.788
  31  121.987
  32  6.5146e-06
  33  3.28984e-05
  34  26.9618
  35  0.261069
  36  0.253367
Done.

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

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  1.465e+01  5.367e+01  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:  9.154e-01  2.534e-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:  6.734e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 147.437 58.328
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/539348/likelihoodResults_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.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) = 2782.18501461
delta logL = 0.327921963112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2782.17717113
delta logL = 0.335765451898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43812       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5586       1.0000          .0000       10.000    
     3 'Normalizat'    .62928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94600       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=   2782.177     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      319 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43241        12.152        .96863E-02   -.27442E-02
   2  Index         5.5656        3.8484        .16294       -.14103E-03
   3  Normalizat    .62953        .47163E-01    .41338E-01   -.29056E-03
   4  Prefactor     .94584        .50718E-01    .45589E-01   -.33552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.432408
  Index      = 5.56562
  Normalizat = 0.629532
  Prefactor  = 0.94584
 **********
 **   18 **HESSE 
 **********

 FCN=   2782.177     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      350 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43241        36.124        .44577E-03   -1.5576    
   2  Index         5.5656        7.6366        .56648E-02    .11337    
   3  Normalizat    .62953        .17981        .25850E-03   -1.0674    
   4  Prefactor     .94584        .18907        .22896E-03   -.94557    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.22253e-10
Minuit parameter uncertainties:
  1  7.90852
  2  10.074
  3  0.17998
  4  0.189204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/539348': 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) = 2782.17716966
delta logL = 0.335766918649

Extracting fit parameters...

4FGL J0949.7+5819
   Spectrum: PowerLaw
401    Prefactor:  4.324e-01  7.909e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  5.566e+00  1.007e+01  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:  9.458e-01  1.892e-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:  6.295e-01  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/539348/cmap_HighResolution_429840001_430099201_4FGL_J0949.7+5819_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-01 04:09:21.733614', job_id='539348', GAL2='0.95', fit_tolerance='1e-08', EG2='0.63', EG='0.67', time_epoch_completed='1630494561.73', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.36e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='735' AND source_name='4FGL J0949.7+5819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 04:09:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 539348: <4FGL_J0949.7+5819_daily_bin735> in cluster <slac> Done

Job <4FGL_J0949.7+5819_daily_bin735> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 03:55:50 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:55:52 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:55:52 2021
Terminated at Wed Sep  1 04:09:22 2021
Results reported at Wed Sep  1 04:09:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.7+5819_daily_bin735 147.437 58.3283 429840001 430099201 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 :                                   774.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             281.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

