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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1750
RA = 147.262, Dec = 40.6367
tmin = 692928001, tmax = 693187201
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='3832', job_status='RUN', time_executed='2022-12-20 00:26:28.428077', time_epoch_executed='1671524788.43' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3832/ft1_4FGL_J0949.0+4038_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3832/ft1_4FGL_J0949.0+4038_daily_bin1750.fits outfile=/scratch/kocevski/3832/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1750.fits ra=147.262 dec=40.6367 rad=12.0 tmin=692928001.0 tmax=693187201.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.43
user 3.19
sys 0.22

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

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

Number of photons that the gtmktime cut: 515

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/3832/ltcube_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.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/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits
.....................!
real 12.11
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/3832/ltcube_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.fits outfile=/scratch/kocevski/3832/expmap_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.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/3832/ltcube_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.fits
.....................!
real 193.52
user 187.86
sys 5.28

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/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits scfile=/scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits outfile=/scratch/kocevski/3832/cmap_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits scfile=/scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits outfile=/scratch/kocevski/3832/cmap_HighResolution_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.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/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3832/Model_4FGL_J0949.0+4038_daily_bin1750.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/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits.....................!
real 50.61
user 49.20
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits', '/scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits', expMap='/scratch/kocevski/3832/expmap_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.fits', expCube='/scratch/kocevski/3832/ltcube_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3832/Model_4FGL_J0949.0+4038_daily_bin1750.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/3832/ft1_filtered_4FGL_J0949.0+4038_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/3832/ft2_4FGL_J0949.0+4038_daily_bin1750.fits
Exposure map: /scratch/kocevski/3832/expmap_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.fits
Exposure cube: /scratch/kocevski/3832/ltcube_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3832/Model_4FGL_J0949.0+4038_daily_bin1750.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5685.06866561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74303E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11696E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32551E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .10853E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .47757       1.0000          .0000       .10000E+07
     6 'norm      '    2.4626       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7087       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.237       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9911       1.0000          .0000       .10000E+07
    10 'norm      '    .15138E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .24977E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    30.203       1.0000          .0000       .10000E+07
    13 'Prefactor '    28.667       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13960E-02   1.0000          .0000       .10000E+07
    15 'norm      '    13.511       1.0000          .0000       .10000E+07
    16 'Prefactor '    .73386E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.7140       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.2190       1.0000          .0000       .10000E+07
    19 'norm      '    3.3726       1.0000          .0000       .10000E+07
    20 'Prefactor '    11.243       1.0000          .0000       .10000E+07
    21 'norm      '    .62518E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .16517E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .70721E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    .83269       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0463       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=   5684.954     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     1729 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16188E-05    6.5311       -.14757E-06** at limit **
   2  Prefactor      .0000        2.1807        .18935E-06** at limit **
   3  Prefactor     .58453E-07    6.9267        .30924E-06** at limit **
   4  norm           .0000        .51827        .26068E-06** at limit **
   5  Prefactor     .48245        2.3244        .44783E-06    .65956E-03
   6  norm          2.3856        5.6975        .69861E-06    .59780E-03
   7  Prefactor     2.7075        2.2616       -.95525E-07   -.23104E-03
   8  Prefactor     12.204        6.3524       -.11886E-06   -.11377E-01
   9  Prefactor     6.9752        4.6429       -.11307E-06   -.86800E-02
  10  norm          .81046E-07    5.5877        .21187E-06** at limit **
  11  Prefactor     .40536E-05    9.1719        .10006E-06** at limit **
  12  Prefactor     30.256        3.5991       -.59285E-07   -.77374E-01
  13  Prefactor     30.085        27.318        .21878E-06   -.74977E-01
  14  Prefactor     .38025E-07    5.2366        .58559E-06** at limit **
  15  norm          13.511        1.3246       -.80917E-08   -.34725E-02
  16  Prefactor      .0000        1.1375        .13498E-06** at limit **
  17  Prefactor     4.7165        3.0589       -.66389E-07   -.10068E-02
  18  Prefactor     2.2116        5.2977        .11209E-06    .17354E-02
  19  norm          3.3740        2.1566        .50582E-07    .20425E-03
  20  Prefactor     11.249        6.8783        .15872E-07   -.74244E-02
  21  norm          .25233E-05    10.184       -.17644E-06** at limit **
  22  Prefactor     .78375E-05    14.971        .20103E-06** at limit **
  23  Prefactor      .0000        3.5729       -.24731E-07** at limit **
  24  Normalizat    .83160        .19457        .72153E-05    .71373E-04
  25  Prefactor     1.0468        .23178       -.43431E-05    .49211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61882e-06
  Prefactor  = 0
  Prefactor  = 5.84532e-08
  norm       = 0
  Prefactor  = 0.482454
  norm       = 2.38559
  Prefactor  = 2.7075
  Prefactor  = 12.2042
  Prefactor  = 6.97518
  norm       = 8.10463e-08
  Prefactor  = 4.05365e-06
  Prefactor  = 30.2558
  Prefactor  = 30.0846
  Prefactor  = 3.80251e-08
  norm       = 13.511
  Prefactor  = 0
  Prefactor  = 4.71654
  Prefactor  = 2.21163
  norm       = 3.37402
  Prefactor  = 11.2488
  norm       = 2.52331e-06
  Prefactor  = 7.83751e-06
  Prefactor  = 0
  Normalizat = 0.831597
  Prefactor  = 1.04679
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.954     FROM HESSE     STATUS=OK           483 CALLS     2212 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16188E-05    16.035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.1740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .58453E-07    7.0187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34864        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .48245        3.3912        .80998E-03   -1.5694    
   6  norm          2.3856        5.7338        .65143E-03   -1.5677    
   7  Prefactor     2.7075        2.2875        .61862E-03   -1.5675    
   8  Prefactor     12.204        9.5362        .28610E-03   -1.5638    
   9  Prefactor     6.9752        10.318        .37918E-03   -1.5655    
  10  norm          .81046E-07    5.7524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40536E-05    18.966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.256        9.5211        .18199E-03   -1.5598    
  13  Prefactor     30.085        29.838        .18680E-03   -1.5598    
  14  Prefactor     .38025E-07    5.3278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.511        12.301        .27224E-03   -1.5634    
  16  Prefactor      .0000        1.1362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7165        3.0623        .46322E-03   -1.5665    
  18  Prefactor     2.2116        5.4966        .69008E-03   -1.5678    
  19  norm          3.3740        2.1578        .55076E-03   -1.5671    
  20  Prefactor     11.249        7.0819        .29854E-03   -1.5641    
  21  norm          .25233E-05    14.778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .78375E-05    23.466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        3.5614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83160        .16714        .44035E-01   -.98907    
  25  Prefactor     1.0468        .19584        .60028E-01   -.91186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04356e-06
Minuit parameter uncertainties:
  1  0.0101898
  2  7.36364e-06
  3  0.00128134
  4  1.98273e-06
  5  2.5582
  6  5.73379
  7  2.28746
  8  9.53617
  9  10.3181
  10  0.00136537
  11  0.0175365
  12  9.52108
  13  29.8383
  14  0.000900483
  15  12.3009
  16  2.37292e-06
  17  3.06228
  18  5.49665
  19  2.15783
  20  7.08187
  21  0.0122132
  22  0.0271229
  23  9.15576e-07
  24  0.167243
  25  0.195972
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.008e+01  2.984e+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.047e+00  1.960e-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.316e-01  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 8.22e-06 +/- 8.15e-06

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

Saving results to:
/scratch/kocevski/3832/likelihoodResults_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.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) = 5684.94628679
delta logL = 0.0077543307616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5684.94339404
delta logL = 0.0106470850469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.419       1.0000          .0000       .10000E+07
     2 'Index     '    2.4688       1.0000          .0000       10.000    
     3 'Normalizat'    .83667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0424       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=   5684.943     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      264 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.422        35.666        .70262E-05   -.26225E-02
   2  Index         2.4690        .94550        .10277E-01   -.11838E-03
   3  Normalizat    .83635        .18784        .23622E-03    .22928E-03
   4  Prefactor     1.0428        .23112        .26589E-03    .23193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.4216
  Index      = 2.46897
  Normalizat = 0.836349
  Prefactor  = 1.04278
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.943     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.422        34.901        .14052E-05   -1.5594    
   2  Index         2.4690        .92435        .41110E-03   -.53078    
   3  Normalizat    .83635        .18783        .94487E-05   -.98734    
   4  Prefactor     1.0428        .23118        .53178E-04   -.91317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92558e-10
Minuit parameter uncertainties:
  1  34.9014
  2  0.931576
  3  0.18798
  4  0.231405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3832': 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) = 5684.94339248
delta logL = 0.0106486418872

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  3.242e+01  3.490e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  2.469e+00  9.316e-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.043e+00  2.314e-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.363e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 147.262 40.637
Photon Index (Free Index): 2.47 +/- 0.93
Photon Flux (Free Index): 2.83e-08 +/- 3.63e-08
Energy Flux (Free Index): 8.52e-06 +/- 8.88e-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/3832/cmap_HighResolution_692928001_693187201_4FGL_J0949.0+4038_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='8.52e-06', photon_flux_error='3.13e-08', dlogl='1.06e-02', energy_flux='8.22e-06', photon_flux2='2.83e-08', job_status='DONE', time_completed='2022-12-20 00:36:52.932213', photon_index_error2='0.93', photon_index2='2.47', ts='1.60', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='8.88e-06', EG='0.83', time_epoch_completed='1671525412.93', return_code='0', job_id='3832', GAL2='1.04', EG2='0.84', return_code2='0', energy_flux_error='8.15e-06', photon_flux_error2='3.63e-08', ts2='1.61', photon_index='2.61' WHERE bin_id='1750' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:36:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 3832: <4FGL_J0949.0+4038_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:25:32 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:25:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:25:35 2022
Terminated at Tue Dec 20 00:36:53 2022
Results reported at Tue Dec 20 00:36:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1750 147.262 40.6367 692928001 693187201 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 :                                   626.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

