aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 178 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1710
RA = 147.262, Dec = 40.6367
tmin = 682560001, tmax = 682819201
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='86137', job_status='RUN', time_executed='2022-09-16 14:59:48.632186', time_epoch_executed='1663365588.63' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86137/ft1_4FGL_J0949.0+4038_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86137/ft2_4FGL_J0949.0+4038_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86137/ft1_4FGL_J0949.0+4038_daily_bin1710.fits outfile=/scratch/kocevski/86137/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1710.fits ra=147.262 dec=40.6367 rad=12.0 tmin=682560001.0 tmax=682819201.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.70
user 3.45
sys 0.21

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

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

Number of photons that the gtmktime cut: 530

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86137/ft1_filtered_4FGL_J0949.0+4038_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/86137/ft2_4FGL_J0949.0+4038_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/86137/ltcube_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.fits outfile=/scratch/kocevski/86137/expmap_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.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/86137/ltcube_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.fits
.....................!
real 192.83
user 187.32
sys 4.48

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/86137/ft1_filtered_4FGL_J0949.0+4038_daily_bin1710.fits scfile=/scratch/kocevski/86137/ft2_4FGL_J0949.0+4038_daily_bin1710.fits outfile=/scratch/kocevski/86137/cmap_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86137/ft1_filtered_4FGL_J0949.0+4038_daily_bin1710.fits scfile=/scratch/kocevski/86137/ft2_4FGL_J0949.0+4038_daily_bin1710.fits outfile=/scratch/kocevski/86137/cmap_HighResolution_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.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.56
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86137/ft1_filtered_4FGL_J0949.0+4038_daily_bin1710.fits', '/scratch/kocevski/86137/ft2_4FGL_J0949.0+4038_daily_bin1710.fits', expMap='/scratch/kocevski/86137/expmap_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.fits', expCube='/scratch/kocevski/86137/ltcube_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86137/Model_4FGL_J0949.0+4038_daily_bin1710.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  0.000e+00  1.000e+06 ( 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/86137/ft1_filtered_4FGL_J0949.0+4038_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/86137/ft2_4FGL_J0949.0+4038_daily_bin1710.fits
Exposure map: /scratch/kocevski/86137/expmap_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.fits
Exposure cube: /scratch/kocevski/86137/ltcube_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86137/Model_4FGL_J0949.0+4038_daily_bin1710.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) = 6003.2038022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79199E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.0389       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3197       1.0000          .0000       .10000E+07
     4 'norm      '    .91593E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .67828       1.0000          .0000       .10000E+07
     6 'norm      '    .22472E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32651       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14939E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .35400E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .11272       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.620       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.8390       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.419       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.594       1.0000          .0000       .10000E+07
    15 'norm      '    .17953E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .49619E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10884E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.4149       1.0000          .0000       .10000E+07
    19 'norm      '    7.0262       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11992E-03   1.0000          .0000       .10000E+07
    21 'norm      '    18.647       1.0000          .0000       .10000E+07
    22 'Prefactor '    .31088E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .10032E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    .82844       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6003.200     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2261 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    13.129       -.19546E-06** at limit **
   2  Prefactor     4.0366        3.5439       -.69979E-07    .95542E-04
   3  Prefactor     4.3004        2.6836        .81074E-07    .34864E-01
   4  norm           .0000        .41797        .14891E-07** at limit **
   5  Prefactor     .71863        2.3233        .36294E-06   -.21075E-02
   6  norm          .16653E-09    4.6628        .18838E-06** at limit **
   7  Prefactor     .31686        5.8270        .38120E-07   -.61575E-03
   8  Prefactor     .99920E-08    2.7408        .75890E-07** at limit **
   9  Prefactor     .11657E-08    6.8400        .24275E-06** at limit **
  10  norm          .84543E-07    44.180        .77658E-06** at limit **
  11  Prefactor     16.677        35.299       -.17118E-05    .13286E-02
  12  Prefactor     3.8507        6.9878       -.25411E-06    .23681E-03
  13  Prefactor     13.239        58.460        .53021E-05   -.76501E-03
  14  Prefactor     11.602        1.2203        .15568E-07    .48752E-02
  15  norm          .13323E-08    3.0433        .10975E-06** at limit **
  16  Prefactor      .0000        1.5221       -.88527E-07** at limit **
  17  Prefactor      .0000        .93482        .24635E-07** at limit **
  18  Prefactor     2.4263        4.0223        .30321E-07   -.53642E-03
  19  norm          7.0311        3.1220       -.34592E-07    .84335E-03
  20  Prefactor     .55511E-10    2.1732       -.38226E-06** at limit **
  21  norm          18.636        1.2877        .14732E-09   -.10289E-01
  22  Prefactor      .0000        26.345       -.43978E-06** at limit **
  23  Prefactor      .0000        2.0480        .14910E-06** at limit **
  24  Normalizat    .82667        .20847       -.33567E-05   -.53320E-04
  25  Prefactor     1.4182        .24382        .24948E-05   -.45922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Prefactor  = 4.03662
  Prefactor  = 4.30043
  norm       = 0
  Prefactor  = 0.718626
  norm       = 1.66533e-10
  Prefactor  = 0.316865
  Prefactor  = 9.99201e-09
  Prefactor  = 1.16573e-09
  norm       = 8.45435e-08
  Prefactor  = 16.6772
  Prefactor  = 3.8507
  Prefactor  = 13.2387
  Prefactor  = 11.6016
  norm       = 1.33227e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.4263
  norm       = 7.03109
  Prefactor  = 5.55112e-11
  norm       = 18.6356
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.826675
  Prefactor  = 1.41823
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.200     FROM HESSE     STATUS=OK           493 CALLS     2754 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    13.129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0366        3.6084        .50150E-03   -1.5668    
   3  Prefactor     4.3004        12.486        .48444E-03   -1.5666    
   4  norm           .0000        .33215        .14214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71863        2.7449        .62490E-03   -1.5691    
   6  norm          .16653E-09    4.6686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .31686        1.7630        .49423E-02   -1.5697    
   8  Prefactor     .99920E-08    5.7478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11657E-08    6.8886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .84543E-07    14.032        .95563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.677        40.300        .24541E-03   -1.5626    
  12  Prefactor     3.8507        7.0146        .51484E-03   -1.5669    
  13  Prefactor     13.239        60.414        .28400E-03   -1.5635    
  14  Prefactor     11.602        10.826        .29397E-03   -1.5640    
  15  norm          .13323E-08    5.6724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.5212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .93525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4263        4.0754        .65845E-03   -1.5677    
  19  norm          7.0311        3.1232        .37823E-03   -1.5655    
  20  Prefactor     .55511E-10    2.1687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.636        11.485        .23166E-03   -1.5622    
  22  Prefactor      .0000        26.084        .16394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        2.0439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82667        .18155        .43980E-01   -.99087    
  25  Prefactor     1.4182        .20820        .58509E-01   -.79856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22029e-08
Minuit parameter uncertainties:
  1  0.000143249
  2  3.60844
  3  12.4857
  4  8.22404e-07
  5  2.7449
  6  5.12635e-05
  7  1.49484
  8  0.000479292
  9  0.000180585
  10  0.00217836
  11  40.3003
  12  7.0146
  13  56.5627
  14  10.8261
  15  0.000175486
  16  3.04733e-06
  17  1.21071e-07
  18  4.07543
  19  3.12316
  20  2.21115e-05
  21  11.485
  22  5.26931e-05
  23  6.09374e-06
  24  0.181679
  25  0.208328
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.324e+01  5.656e+01  0.000e+00  1.000e+06 ( 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.418e+00  2.083e-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:  8.267e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/86137/likelihoodResults_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.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) = 6002.17558631
delta logL = 1.02403239701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6002.17274833
delta logL = 1.02687037365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9499       1.0000          .0000       .10000E+07
     2 'Index     '    4.7032       1.0000          .0000       10.000    
     3 'Normalizat'    .74199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4853       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.

 FCN=   6002.173     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      336 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9310        40.110        .59105E-03    .44649E-02
   2  Index         4.7079        3.2093        .14382        .13014E-03
   3  Normalizat    .74180        .51032E-01    .62329E-01    .13409E-04
   4  Prefactor     1.4850        .63211E-01    .57388E-01   -.20117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.931
  Index      = 4.70795
  Normalizat = 0.741799
  Prefactor  = 1.48499
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.173     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      367 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9310        79.487        .94155E-05   -1.5674    
   2  Index         4.7079        7.2397        .51872E-02   -.58444E-01
   3  Normalizat    .74180        .18318        .27572E-03   -1.0227    
   4  Prefactor     1.4850        .22471        .25374E-03   -.77961    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14515e-09
Minuit parameter uncertainties:
  1  30.5275
  2  6.03392
  3  0.183328
  4  0.224858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86137': 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) = 6002.17273419
delta logL = 1.02688451976

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.931e+00  3.053e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  4.708e+00  6.034e+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.485e+00  2.249e-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:  7.418e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 147.262 40.637
Photon Index (Free Index): 4.71 +/- 6.03
Photon Flux (Free Index): 8.33e-08 +/- 6.40e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.21e-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/86137/cmap_HighResolution_682560001_682819201_4FGL_J0949.0+4038_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='1.03e+00', photon_flux2='8.33e-08', job_status='DONE', time_completed='2022-09-16 15:11:24.657813', photon_index_error2='6.03', photon_index2='4.71', ts='0.09', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.21e-05', EG='0.83', time_epoch_completed='1663366284.66', return_code='0', job_id='86137', GAL2='1.48', EG2='0.74', return_code2='102', photon_flux_error2='6.40e-08', ts2='2.35', photon_index='2.61' WHERE bin_id='1710' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:11:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 86137: <4FGL_J0949.0+4038_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1710> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 14:55:23 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 14:56:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 14:56:41 2022
Terminated at Fri Sep 16 15:11:25 2022
Results reported at Fri Sep 16 15:11:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1710 147.262 40.6367 682560001 682819201 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 :                                   697.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            962 sec.

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

