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


Performing analysis on: 4FGL_J0949.0+4038_weekly_bin754
RA = 147.262, Dec = 40.6367
tmin = 695001601, tmax = 695606401
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='949778', job_status='RUN', time_executed='2023-01-17 00:52:52.121721', time_epoch_executed='1673945572.12' WHERE source_name='4FGL J0949.0+4038' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949778

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949778/ft1_4FGL_J0949.0+4038_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949778/ft2_4FGL_J0949.0+4038_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949778/ft1_4FGL_J0949.0+4038_weekly_bin754.fits outfile=/scratch/kocevski/949778/ft1_filteredMKT_4FGL_J0949.0+4038_weekly_bin754.fits ra=147.262 dec=40.6367 rad=12.0 tmin=695001601.0 tmax=695606401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.63
user 5.34
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949778/ft2_4FGL_J0949.0+4038_weekly_bin754.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/949778/ft1_filteredMKT_4FGL_J0949.0+4038_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/949778/ft1_filtered_4FGL_J0949.0+4038_weekly_bin754.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.56
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 400

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949778/ft1_filtered_4FGL_J0949.0+4038_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/949778/ft2_4FGL_J0949.0+4038_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/949778/ltcube_695001601_695606401_4FGL_J0949.0+4038_weekly_bin754.fits outfile=/scratch/kocevski/949778/expmap_695001601_695606401_4FGL_J0949.0+4038_weekly_bin754.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/949778/ltcube_695001601_695606401_4FGL_J0949.0+4038_weekly_bin754.fits
.....................!
real 193.00
user 186.89
sys 5.38

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/949778/ft1_filtered_4FGL_J0949.0+4038_weekly_bin754.fits scfile=/scratch/kocevski/949778/ft2_4FGL_J0949.0+4038_weekly_bin754.fits outfile=/scratch/kocevski/949778/cmap_695001601_695606401_4FGL_J0949.0+4038_weekly_bin754.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949778/ft1_filtered_4FGL_J0949.0+4038_weekly_bin754.fits scfile=/scratch/kocevski/949778/ft2_4FGL_J0949.0+4038_weekly_bin754.fits outfile=/scratch/kocevski/949778/cmap_HighResolution_695001601_695606401_4FGL_J0949.0+4038_weekly_bin754.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.59
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29478E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    27.688       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.6238       1.0000          .0000       .10000E+07
     4 'norm      '    .17797       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3610       1.0000          .0000       .10000E+07
     6 'norm      '    .10014E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14275E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.5789       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.0694       1.0000          .0000       .10000E+07
    10 'norm      '    .32080E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .16125E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.1640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .58736E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.2301       1.0000          .0000       .10000E+07
    15 'norm      '    30.367       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13878E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.8461       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.9126       1.0000          .0000       .10000E+07
    19 'norm      '    2.5725       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.7987       1.0000          .0000       .10000E+07
    21 'norm      '    .66745E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    18.057       1.0000          .0000       .10000E+07
    23 'Prefactor '    .71104E-06   1.0000          .0000       .10000E+07
    24 'Normalizat'    .78272       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2095       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=   4737.949     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1741 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13156E-07    36.251        .14997E-06** at limit **
   2  Prefactor     27.796        10.567       -.54989E-07   -.21559E-01
   3  Prefactor     8.3896        3.8830       -.25657E-07   -.10428E-01
   4  norm          .17907        1.7957       -.53384E-07** at limit **
   5  Prefactor     1.3463        11.121       -.59950E-07   -.78886E-03
   6  norm          .15044E-07    9.4203       -.65699E-07** at limit **
   7  Prefactor     .47271E-05    5.8437        .13157E-06** at limit **
   8  Prefactor     7.6355        8.0190       -.32826E-07   -.31347E-03
   9  Prefactor     7.0150        2.4753       -.88554E-08   -.13337E-01
  10  norm          .49960E-09    7.9185        .29805E-06** at limit **
  11  Prefactor      .0000        17.904       -.16317E-06** at limit **
  12  Prefactor     5.1836        8.3620        .54776E-07   -.11298E-02
  13  Prefactor     .13695E-06    23.814        .11195E-06** at limit **
  14  Prefactor     4.2783        3.5767       -.30544E-07   -.15999E-01
  15  norm          30.380        2.0290       -.44491E-08   -.20570E-01
  16  Prefactor     .16098E-08    3.9833        .71504E-07** at limit **
  17  Prefactor     2.8559        3.3806        .21294E-07   -.14536E-03
  18  Prefactor     5.8539        6.4361       -.12412E-07   -.16199E-03
  19  norm          2.5738        1.9075       -.14051E-07   -.12158E-03
  20  Prefactor     2.7996        5.7578       -.17206E-07    .99093E-04
  21  norm          .11935E-07    20.229       -.19643E-06** at limit **
  22  Prefactor     19.378        34.309       -.17045E-06   -.87538E-02
  23  Prefactor     .13878E-08    5.8656       -.18319E-06** at limit **
  24  Normalizat    .78265        .23244        .56041E-05    .21939E-04
  25  Prefactor     1.2084        .28247       -.37893E-05    .25689E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31561e-08
  Prefactor  = 27.7957
  Prefactor  = 8.38963
  norm       = 0.17907
  Prefactor  = 1.34632
  norm       = 1.50435e-08
  Prefactor  = 4.72711e-06
  Prefactor  = 7.63546
  Prefactor  = 7.01499
  norm       = 4.996e-10
  Prefactor  = 0
  Prefactor  = 5.18363
  Prefactor  = 1.36946e-07
  Prefactor  = 4.27826
  norm       = 30.3797
  Prefactor  = 1.60982e-09
  Prefactor  = 2.85586
  Prefactor  = 5.85386
  norm       = 2.57378
  Prefactor  = 2.79956
  norm       = 1.19349e-08
  Prefactor  = 19.3781
  Prefactor  = 1.38778e-09
  Normalizat = 0.78265
  Prefactor  = 1.2084
 **********
 **   18 **HESSE 
 **********

 FCN=   4737.949     FROM HESSE     STATUS=OK           489 CALLS     2230 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13156E-07    36.392        .16478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.796        11.548        .19008E-03   -1.5603    
   3  Prefactor     8.3896        33.244        .34110E-03   -1.5650    
   4  norm          .17907        .52622        .21640E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3463        4.8535        .93574E-03   -1.5685    
   6  norm          .15044E-07    9.5313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .47271E-05    2.8915        .62234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6355        8.5742        .36404E-03   -1.5653    
   9  Prefactor     7.0150        16.273        .37706E-03   -1.5655    
  10  norm          .49960E-09    8.0270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        17.808        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1836        8.5862        .44215E-03   -1.5662    
  13  Prefactor     .13695E-06    25.150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2783        15.968        .48969E-03   -1.5667    
  15  norm          30.380        16.131        .18150E-03   -1.5598    
  16  Prefactor     .16098E-08    3.9918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8559        3.3920        .60243E-03   -1.5674    
  18  Prefactor     5.8539        6.7536        .41274E-03   -1.5660    
  19  norm          2.5738        1.9029        .63611E-03   -1.5676    
  20  Prefactor     2.7996        5.9134        .60786E-03   -1.5674    
  21  norm          .11935E-07    20.216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.378        35.679        .23542E-03   -1.5620    
  23  Prefactor     .13878E-08    5.8061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78265        .19852        .43384E-01   -1.0072    
  25  Prefactor     1.2084        .23706        .62089E-01   -.86073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00787e-08
Minuit parameter uncertainties:
  1  0.00138353
  2  11.548
  3  33.2444
  4  0.526222
  5  4.85351
  6  0.000757961
  7  0.00739414
  8  8.5742
  9  16.2727
  10  0.000128305
  11  1.68905e-05
  12  8.5862
  13  0.00371199
  14  15.9682
  15  16.1305
  16  0.000159398
  17  3.39199
  18  6.75363
  19  1.9029
  20  5.91341
  21  0.000983305
  22  35.679
  23  0.000180723
  24  0.198707
  25  0.237271
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.369e-07  3.712e-03  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.208e+00  2.373e-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.826e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.262 40.637
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949778/likelihoodResults_695001601_695606401_4FGL_J0949.0+4038_weekly_bin754.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): 102
logL (Free Index) = 4737.96788767
delta logL = -0.019040268814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4737.94884773
delta logL = -3.27888301399e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10946E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.9688       1.0000          .0000       10.000    
     3 'Normalizat'    .78256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2086       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=   4737.949     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      229 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56066E-08    7.0593        .42118E-03** at limit **
   2  Index         .83457        5.4164        .50000       -.56161E-08
   3  Normalizat    .78265        .57235E-02    .43382E-01   -.12690E-03
   4  Prefactor     1.2084        .72169E-02    .62089E-01   -.17410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60663e-09
  Index      = 0.834568
  Normalizat = 0.78265
  Prefactor  = 1.2084
 **********
 **   18 **HESSE 
 **********

 FCN=   4737.949     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      258 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56066E-08    14.625        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .83457        9.5751        .20000       -.98466    
   3  Normalizat    .78265        .82434E-02    .26599E-03   -1.0072    
   4  Prefactor     1.2084        .10392E-01    .27460E-03   -.86073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00422e-08
Minuit parameter uncertainties:
  1  0.000572893
  2  20220.1
  3  0.00824339
  4  0.0103919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949778': 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) = 4737.9488474
delta logL = 2.11275619222e-09

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  5.607e-09  5.729e-04  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  8.346e-01  2.022e+04  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.208e+00  1.039e-02  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.826e-01  8.243e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.262 40.637

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/949778/cmap_HighResolution_695001601_695606401_4FGL_J0949.0+4038_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2023-01-17 01:03:34.781333', job_id='949778', GAL2='1.21', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1673946214.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='754' AND source_name='4FGL J0949.0+4038' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:03:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 949778: <4FGL_J0949.0+4038_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0949.0+4038_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:50:22 2023
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:52:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:52:35 2023
Terminated at Tue Jan 17 01:03:35 2023
Results reported at Tue Jan 17 01:03:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_weekly_bin754 147.262 40.6367 695001601 695606401 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 :                                   643.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            793 sec.

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

