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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin793
RA = 147.262, Dec = 40.6367
tmin = 444873601, tmax = 445132801
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='524798', job_status='RUN', time_executed='2021-09-01 03:10:46.898734', time_epoch_executed='1630491046.9' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='793'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524798/ft1_4FGL_J0949.0+4038_daily_bin793.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524798/ft1_4FGL_J0949.0+4038_daily_bin793.fits outfile=/scratch/kocevski/524798/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin793.fits ra=147.262 dec=40.6367 rad=12.0 tmin=444873601.0 tmax=445132801.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.47
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.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/524798/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin793.fits evtable="EVENTS" outfile="/scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits" evtable="EVENTS" scfile=/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits sctable="SC_DATA" outfile=/scratch/kocevski/524798/ltcube_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.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/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits
.....................!
real 11.93
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits evtable="EVENTS" scfile=/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits sctable="SC_DATA" expcube=/scratch/kocevski/524798/ltcube_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.fits outfile=/scratch/kocevski/524798/expmap_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.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/524798/ltcube_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.fits
.....................!
real 190.71
user 184.91
sys 5.43

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

Setting source of interest to:
4FGL J0949.0+4038 @ 147.262 40.6367

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits scfile=/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits outfile=/scratch/kocevski/524798/cmap_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.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.262 yref=40.6367 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits scfile=/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits outfile=/scratch/kocevski/524798/cmap_HighResolution_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.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.262 yref=40.6367 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits evtable="EVENTS" scfile=/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524798/Model_4FGL_J0949.0+4038_daily_bin793.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/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits.....................!
real 47.26
user 45.88
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits', '/scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits', expMap='/scratch/kocevski/524798/expmap_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.fits', expCube='/scratch/kocevski/524798/ltcube_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524798/Model_4FGL_J0949.0+4038_daily_bin793.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0949.0+4038'

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.192e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524798/ft1_filtered_4FGL_J0949.0+4038_daily_bin793.fits
Spacecraft file(s): /scratch/kocevski/524798/ft2_4FGL_J0949.0+4038_daily_bin793.fits
Exposure map: /scratch/kocevski/524798/expmap_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.fits
Exposure cube: /scratch/kocevski/524798/ltcube_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524798/Model_4FGL_J0949.0+4038_daily_bin793.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) = 5419.27615594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12290E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.868       1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.003       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4855       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.045       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.031       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.9249       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7373       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0958       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.544       1.0000         .10000E-03   10000.    
    23 'norm      '    7.2235       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13205E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.207       1.0000         .10000E-03   10000.    
    26 'Prefactor '    98.376       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8500       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22626E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .59277       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5419.066     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4277 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4142       -.51113E-07** at limit **
   2  Prefactor     .10002E-03    469.21       -.69818E-05** at limit **
   3  Prefactor     .10000E-03    1.0691       -.31675E-08** at limit **
   4  Prefactor     51.269        42.086       -.78916E-06   -.12315E-05
   5  Prefactor     5.1594        3.8551        .18632E-05   -.16697E-02
   6  Prefactor     15.868        18.174       -.18423E-06    .83265E-04
   7  norm          .10000E-03    .25638       -.76729E-07** at limit **
   8  Prefactor     10.001        4.0228       -.27473E-07    .47977E-03
   9  norm          3.4845        4.9462        .45603E-07    .30995E-04
  10  Prefactor     .10000E-03    1.5255       -.81147E-06** at limit **
  11  Prefactor     13.044        9.9941        .14344E-05    .70551E-03
  12  Prefactor     .10000E-03    34.545        .80392E-06** at limit **
  13  norm          .10000E-03    5.6922        .38059E-07** at limit **
  14  Prefactor     .10000E-03    7.2774        .35557E-07** at limit **
  15  Prefactor     .10000E-03    3.4071        .46663E-07** at limit **
  16  Prefactor     34.023        31.833        .30365E-05    .43310E-03
  17  Prefactor     .10000E-03    3.7497       -.28277E-07** at limit **
  18  norm          7.9235        10.591        .18565E-05   -.52724E-03
  19  Prefactor     .10000E-03    2.7993       -.12445E-07** at limit **
  20  Prefactor     1.7372        1.7900        .37229E-07    .84379E-04
  21  Prefactor     3.0942        4.6841        .35396E-06    .98543E-04
  22  Prefactor     18.539        25.556        .45141E-05    .52433E-03
  23  norm          7.2235        2.9788        .24198E-07   -.24201E-04
  24  Prefactor     .10000E-03    3.0484       -.32086E-06** at limit **
  25  norm          10.206        7.9914       -.23133E-06   -.13417E-04
  26  Prefactor     98.348        42.753        .15826E-05    .34686E-03
  27  Prefactor     3.8498        3.4645       -.53967E-07   -.11998E-03
  28  Prefactor     .10000E-03    9.0311        .85569E-06** at limit **
  29  Prefactor     .10000E-03    24.521       -.50573E-07** at limit **
  30  Normalizat    .59297        .18295       -.31596E-05    .21288E-03
  31  Prefactor     1.1777        .20181        .46179E-06    .50727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 51.2695
  Prefactor  = 5.15939
  Prefactor  = 15.8678
  norm       = 0.0001
  Prefactor  = 10.0008
  norm       = 3.48449
  Prefactor  = 0.0001
  Prefactor  = 13.0445
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0227
  Prefactor  = 0.0001
  norm       = 7.92347
  Prefactor  = 0.0001
  Prefactor  = 1.73721
  Prefactor  = 3.09417
  Prefactor  = 18.5389
  norm       = 7.22347
  Prefactor  = 0.0001
  norm       = 10.2063
  Prefactor  = 98.3482
  Prefactor  = 3.84977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.592975
  Prefactor  = 1.17768
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.066     FROM HESSE     STATUS=OK           624 CALLS     4901 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1881        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    476.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0720        .74329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     51.269        42.096        .56011E-04   -1.4275    
   5  Prefactor     5.1594        4.1456        .60536E-03   -1.5254    
   6  Prefactor     15.868        18.166        .10054E-03   -1.4911    
   7  norm          .10000E-03    .36001        .65429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.001        3.6495        .76028E-04   -1.5075    
   9  norm          3.4845        4.9243        .18520E-03   -1.5335    
  10  Prefactor     .10000E-03    2.8250        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.044        10.098        .11090E-03   -1.4985    
  12  Prefactor     .10000E-03    35.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.6971        .17153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4444        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.023        32.461        .68693E-04   -1.4541    
  17  Prefactor     .10000E-03    3.7569        .13919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.9235        10.745        .71216E-03   -1.5145    
  19  Prefactor     .10000E-03    2.8994        .24045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7372        1.7989        .97292E-04   -1.5444    
  21  Prefactor     3.0942        4.1560        .16168E-03   -1.5356    
  22  Prefactor     18.539        26.482        .93007E-04   -1.4847    
  23  norm          7.2235        2.9789        .79156E-04   -1.5170    
  24  Prefactor     .10000E-03    9.0666        .21671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.206        7.9974        .12542E-03   -1.5069    
  26  Prefactor     98.348        42.362        .40529E-04   -1.3721    
  27  Prefactor     3.8498        3.4726        .12451E-03   -1.5316    
  28  Prefactor     .10000E-03    9.1236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    24.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .59297        .21583        .27418E-03   -1.0828    
  31  Prefactor     1.1777        .24239        .24639E-03   -.87021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8144e-09
Minuit parameter uncertainties:
  1  2.47107e-05
  2  0.00671001
  3  1.80172e-06
  4  42.1205
  5  4.14585
  6  18.1718
  7  8.88753e-07
  8  3.64959
  9  4.92488
  10  2.58515e-05
  11  10.0995
  12  0.000256454
  13  8.22918e-06
  14  1.19633e-05
  15  3.2759e-06
  16  32.4773
  17  1.69879e-06
  18  10.7474
  19  3.72533e-06
  20  1.79892
  21  4.15637
  22  26.4984
  23  2.97893
  24  0.000115854
  25  7.99825
  26  42.3751
  27  3.47283
  28  0.000114616
  29  4.92669e-05
  30  0.216141
  31  0.242619
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.402e+01  3.248e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  2.608e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.178e+00  2.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  5.930e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 9.30e-06 +/- 8.87e-06

TS (Fixed Index): 1.75
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524798/likelihoodResults_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.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) = 5418.898459
delta logL = 0.1677121197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5418.8930916
delta logL = 0.173079517651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.168       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1562       1.0000          .0000       10.000    
     3 'Normalizat'    .57060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1966       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   5418.893     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      297 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.156        36.679        .85073E-04    .19150E-03
   2  Index         3.1557        1.1601        .72879E-02    .67367E-04
   3  Normalizat    .57118        .19928        .27904E-03   -.11182E-02
   4  Prefactor     1.1963        .24171        .24474E-03   -.12877E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1558
  Index      = 3.15569
  Normalizat = 0.571177
  Prefactor  = 1.19633
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.893     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.156        31.310        .34029E-05   -1.4766    
   2  Index         3.1557        .99140        .29152E-03   -.37779    
   3  Normalizat    .57118        .19911        .55809E-04   -1.0922    
   4  Prefactor     1.1963        .24146        .48949E-04   -.86444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34614e-09
Minuit parameter uncertainties:
  1  31.3327
  2  0.999077
  3  0.199357
  4  0.241687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524798': 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) = 5418.89308359
delta logL = 0.173087522513

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.216e+01  3.133e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  3.156e+00  9.991e-01  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.196e+00  2.417e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  5.712e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 147.262 40.637
Photon Index (Free Index): 3.16 +/- 1.00
Photon Flux (Free Index): 5.10e-08 +/- 4.64e-08
Energy Flux (Free Index): 9.49e-06 +/- 7.95e-06

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/524798/cmap_HighResolution_444873601_445132801_4FGL_J0949.0+4038_daily_bin793.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.78e-03', comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='9.49e-06', photon_flux_error='3.41e-08', dlogl='1.73e-01', energy_flux='9.30e-06', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-09-01 03:26:24.690833', photon_index_error2='1.00', photon_index2='3.16', ts='1.75', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='7.95e-06', EG='0.59', time_epoch_completed='1630491984.69', return_code='0', job_id='524798', GAL2='1.20', EG2='0.57', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='4.64e-08', ts2='2.13', photon_index='2.61' WHERE bin_id='793' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:26:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 524798: <4FGL_J0949.0+4038_daily_bin793> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin793> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 03:10:26 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 03:10:28 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:10:28 2021
Terminated at Wed Sep  1 03:26:27 2021
Results reported at Wed Sep  1 03:26:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin793 147.262 40.6367 444873601 445132801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0949.0+4038 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   932.49 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             330.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            961 sec.

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

