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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin848
RA = 147.262, Dec = 40.6367
tmin = 459129601, tmax = 459388801
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='524886', job_status='RUN', time_executed='2021-09-01 03:10:45.717322', time_epoch_executed='1630491045.72' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524886/ft1_4FGL_J0949.0+4038_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524886/ft1_4FGL_J0949.0+4038_daily_bin848.fits outfile=/scratch/kocevski/524886/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin848.fits ra=147.262 dec=40.6367 rad=12.0 tmin=459129601.0 tmax=459388801.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.93
user 3.69
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.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/524886/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/524886/ft1_filtered_4FGL_J0949.0+4038_daily_bin848.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/524886/ft1_filtered_4FGL_J0949.0+4038_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/524886/ltcube_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.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/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits
.....................!
real 13.74
user 13.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524886/ft1_filtered_4FGL_J0949.0+4038_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/524886/ltcube_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.fits outfile=/scratch/kocevski/524886/expmap_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.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/524886/ltcube_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.fits
.....................!
real 190.50
user 185.53
sys 4.60

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/524886/ft1_filtered_4FGL_J0949.0+4038_daily_bin848.fits scfile=/scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits outfile=/scratch/kocevski/524886/cmap_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524886/ft1_filtered_4FGL_J0949.0+4038_daily_bin848.fits scfile=/scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits outfile=/scratch/kocevski/524886/cmap_HighResolution_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524886/ft1_filtered_4FGL_J0949.0+4038_daily_bin848.fits', '/scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits', expMap='/scratch/kocevski/524886/expmap_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.fits', expCube='/scratch/kocevski/524886/ltcube_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524886/Model_4FGL_J0949.0+4038_daily_bin848.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/524886/ft1_filtered_4FGL_J0949.0+4038_daily_bin848.fits
Spacecraft file(s): /scratch/kocevski/524886/ft2_4FGL_J0949.0+4038_daily_bin848.fits
Exposure map: /scratch/kocevski/524886/expmap_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.fits
Exposure cube: /scratch/kocevski/524886/ltcube_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524886/Model_4FGL_J0949.0+4038_daily_bin848.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) = 6086.03266252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0928       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0749       1.0000         .10000E-03   10000.    
     7 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3765       1.0000         .10000E-03   10000.    
     9 'norm      '    .12928E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    30.475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1300       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28858E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.957       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.158       1.0000         .10000E-03   10000.    
    18 'norm      '    26.238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4253       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.0874       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1616       1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5847       1.0000         .10000E-03   10000.    
    29 'Prefactor '    35.116       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99172       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1082       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=   6086.025     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4197 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1321       -.37896E-06** at limit **
   2  Prefactor     44.418        91.295        .73527E-05    .85437E-05
   3  Prefactor     .10000E-03    2.0781        .27657E-06** at limit **
   4  Prefactor     74.111        51.677       -.68337E-05   -.10541E-04
   5  Prefactor     4.0937        3.0016        .56293E-07    .41045E-07
   6  Prefactor     7.0130        21.044        .85682E-05    .36336E-04
   7  norm          .10000E-03    .55646       -.18021E-06** at limit **
   8  Prefactor     6.3793        3.6514        .28019E-06    .10277E-02
   9  norm          .10000E-03    8.1744       -.12861E-05** at limit **
  10  Prefactor     3.2421        2.1052       -.44362E-07   -.45225E-04
  11  Prefactor     .10000E-03    22.916       -.79478E-06** at limit **
  12  Prefactor     .10000E-03    39.257       -.19494E-05** at limit **
  13  norm          30.484        24.650       -.17384E-05   -.62651E-04
  14  Prefactor     6.1056        68.683        .12160E-04    .23001E-04
  15  Prefactor     .10001E-03    6.8465       -.99921E-07** at limit **
  16  Prefactor     48.976        51.919       -.33202E-05   -.59005E-04
  17  Prefactor     11.158        9.3152        .88223E-07   -.30031E-04
  18  norm          26.236        16.228        .30505E-07   -.14894E-04
  19  Prefactor     2.4242        4.7853        .33958E-05   -.13744E-03
  20  Prefactor     .10000E-03    1.7932       -.18323E-08** at limit **
  21  Prefactor     .10000E-03    2.4385        .55259E-06** at limit **
  22  Prefactor     .10000E-03    17.230        .14667E-05** at limit **
  23  norm          7.0873        2.9266       -.44841E-07   -.16710E-04
  24  Prefactor     3.1606        6.2609        .35724E-05   -.19885E-03
  25  norm          .10000E-03    13.661       -.96517E-06** at limit **
  26  Prefactor     .10000E-03    21.877        .88920E-06** at limit **
  27  Prefactor     .10000E-03    5.8093       -.52561E-06** at limit **
  28  Prefactor     3.5867        8.0510        .26535E-05   -.77352E-04
  29  Prefactor     35.102        43.354        .14662E-05    .67486E-05
  30  Normalizat    .99176        .19518       -.29270E-05    .94934E-04
  31  Prefactor     1.1082        .21787       -.19457E-06   -.44560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 44.4179
  Prefactor  = 0.0001
  Prefactor  = 74.1107
  Prefactor  = 4.09367
  Prefactor  = 7.013
  norm       = 0.0001
  Prefactor  = 6.37929
  norm       = 0.000100001
  Prefactor  = 3.24208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.4841
  Prefactor  = 6.10561
  Prefactor  = 0.000100009
  Prefactor  = 48.9755
  Prefactor  = 11.1582
  norm       = 26.2357
  Prefactor  = 2.42423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.08733
  Prefactor  = 3.16064
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58668
  Prefactor  = 35.1022
  Normalizat = 0.991756
  Prefactor  = 1.10822
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.025     FROM HESSE     STATUS=OK           626 CALLS     4823 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1910        .22209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.418        91.208        .60130E-04   -1.4374    
   3  Prefactor     .10000E-03    4.2503        .21831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     74.111        51.497        .23328E-03   -1.3984    
   5  Prefactor     4.0937        2.9940        .10983E-03   -1.5303    
   6  Prefactor     7.0130        20.981        .15082E-03   -1.5178    
   7  norm          .10000E-03    1.0728        .92658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3793        3.0374        .88020E-04   -1.5203    
   9  norm          .10000E-03    8.4834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2421        2.0995        .87252E-04   -1.5348    
  11  Prefactor     .10000E-03    23.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          30.484        24.500        .72578E-04   -1.4603    
  14  Prefactor     6.1056        66.728        .16215E-03   -1.5214    
  15  Prefactor     .10001E-03    35.371        .38421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.976        51.793        .57311E-04   -1.4307    
  17  Prefactor     11.158        9.3126        .11993E-03   -1.5040    
  18  norm          26.236        16.223        .78207E-04   -1.4683    
  19  Prefactor     2.4242        4.7552        .11385E-02   -1.5397    
  20  Prefactor     .10000E-03    1.8545        .20395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4652        .11863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.0873        2.9267        .83164E-04   -1.5175    
  24  Prefactor     3.1606        6.1876        .11397E-02   -1.5352    
  25  norm          .10000E-03    13.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.9691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.5867        7.9186        .10672E-02   -1.5329    
  29  Prefactor     35.102        43.183        .67626E-04   -1.4522    
  30  Normalizat    .99176        .23218        .25258E-03   -.93307    
  31  Prefactor     1.1082        .26080        .29129E-03   -.89204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50743e-10
Minuit parameter uncertainties:
  1  1.71895e-05
  2  91.4969
  3  2.67866e-05
  4  51.5279
  5  2.99415
  6  21.0028
  7  4.00436e-06
  8  3.03749
  9  0.000149019
  10  2.09959
  11  3.28562e-05
  12  1.54495e-05
  13  24.5082
  14  40.4261
  15  0.00115784
  16  51.8403
  17  9.31381
  18  16.226
  19  4.75595
  20  3.21371e-06
  21  4.55815e-07
  22  1.31725e-06
  23  2.92675
  24  6.18886
  25  7.48993e-06
  26  3.2526e-05
  27  4.0108e-05
  28  7.92088
  29  43.2218
  30  0.232412
  31  0.2611
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  4.898e+01  5.184e+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.108e+00  2.611e-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:  9.918e-01  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 5.44e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.42e-05

TS (Fixed Index): 1.49
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524886/likelihoodResults_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.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) = 6085.05918992
delta logL = 0.966235886282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6085.03757643
delta logL = 0.987849375485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0804       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4506       1.0000          .0000       10.000    
     3 'Normalizat'    .90822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1856       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6085.038     FROM MIGRAD    STATUS=FAILED        91 CALLS      303 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0619        108.07        .11088E-03   -.70545E-04
   2  Index         4.4524        6.9881        .46590E-02    .54994E-03
   3  Normalizat    .90836        .19414        .26232E-03    .27715E-03
   4  Prefactor     1.1856        .23450        .28311E-03   -.35280E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6085.038     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      386 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0619        108.07        .47674E-03   -.70545E-04
   2  Index         4.4524        6.9881        .22172E-02    .54994E-03
   3  Normalizat    .90836        .19414        .29680E-03    .27715E-03
   4  Prefactor     1.1856        .23450        .37202E-03   -.35280E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6085.038     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      415 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0614        144.51        .44350E-05   -.99460E-04
   2  Index         4.4524        7.1294        .93181E-03    .11957E-04
   3  Normalizat    .90835        .22741        .10493E-04    .42256E-04
   4  Prefactor     1.1856        .27584        .56623E-04   -.37144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06144
  Index      = 4.45244
  Normalizat = 0.908349
  Prefactor  = 1.18556
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.038     FROM HESSE     STATUS=OK            23 CALLS      438 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0614        25.555        .88700E-06   -1.5216    
   2  Index         4.4524        2.3642        .37272E-04   -.10973    
   3  Normalizat    .90835        .22455        .20985E-05   -.96167    
   4  Prefactor     1.1856        .26689        .11325E-04   -.86777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61886e-10
Minuit parameter uncertainties:
  1  24.9097
  2  2.46391
  3  0.224779
  4  0.267194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524886': 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) = 6085.03757563
delta logL = 0.987850176916

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  6.061e+00  2.491e+01  1.000e-04  1.000e+04 ( 1.000e-13)
324        Index:  4.452e+00  2.464e+00  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.186e+00  2.672e-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:  9.083e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 147.262 40.637
Photon Index (Free Index): 4.45 +/- 2.46
Photon Flux (Free Index): 1.12e-07 +/- 7.06e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/524886/cmap_HighResolution_459129601_459388801_4FGL_J0949.0+4038_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='1.57e-05', photon_flux_error='5.44e-08', dlogl='9.88e-01', energy_flux='1.34e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-01 03:27:00.529352', photon_index_error2='2.46', photon_index2='4.45', ts='1.49', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.05e-05', EG='0.99', time_epoch_completed='1630492020.53', return_code='0', job_id='524886', GAL2='1.19', EG2='0.91', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='7.06e-08', ts2='3.75', photon_index='2.61' WHERE bin_id='848' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 524886: <4FGL_J0949.0+4038_daily_bin848> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin848 147.262 40.6367 459129601 459388801 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 :                                   970.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

