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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1745
RA = 147.262, Dec = 40.6367
tmin = 691632001, tmax = 691891201
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='642917', job_status='RUN', time_executed='2022-12-05 00:26:33.930662', time_epoch_executed='1670228793.93' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642917/ft1_4FGL_J0949.0+4038_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642917/ft2_4FGL_J0949.0+4038_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642917/ft1_4FGL_J0949.0+4038_daily_bin1745.fits outfile=/scratch/kocevski/642917/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1745.fits ra=147.262 dec=40.6367 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.37
user 2.16
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642917/ft2_4FGL_J0949.0+4038_daily_bin1745.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/642917/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/642917/ft1_filtered_4FGL_J0949.0+4038_daily_bin1745.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.50
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 463

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642917/ft1_filtered_4FGL_J0949.0+4038_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/642917/ft2_4FGL_J0949.0+4038_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/642917/ltcube_691632001_691891201_4FGL_J0949.0+4038_daily_bin1745.fits outfile=/scratch/kocevski/642917/expmap_691632001_691891201_4FGL_J0949.0+4038_daily_bin1745.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/642917/ltcube_691632001_691891201_4FGL_J0949.0+4038_daily_bin1745.fits
.....................!
real 190.60
user 185.14
sys 4.70

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/642917/ft1_filtered_4FGL_J0949.0+4038_daily_bin1745.fits scfile=/scratch/kocevski/642917/ft2_4FGL_J0949.0+4038_daily_bin1745.fits outfile=/scratch/kocevski/642917/cmap_691632001_691891201_4FGL_J0949.0+4038_daily_bin1745.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=147.262 yref=40.6367 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642917/ft1_filtered_4FGL_J0949.0+4038_daily_bin1745.fits scfile=/scratch/kocevski/642917/ft2_4FGL_J0949.0+4038_daily_bin1745.fits outfile=/scratch/kocevski/642917/cmap_HighResolution_691632001_691891201_4FGL_J0949.0+4038_daily_bin1745.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21870E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.7412       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.8699       1.0000          .0000       .10000E+07
     4 'norm      '    .72836E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    9.0088       1.0000          .0000       .10000E+07
     6 'norm      '    .67448E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11707E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.5803       1.0000          .0000       .10000E+07
     9 'Prefactor '    .61132       1.0000          .0000       .10000E+07
    10 'norm      '    .36498E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .38530       1.0000          .0000       .10000E+07
    12 'Prefactor '    16.655       1.0000          .0000       .10000E+07
    13 'Prefactor '    45.639       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13947E-04   1.0000          .0000       .10000E+07
    15 'norm      '    29.492       1.0000          .0000       .10000E+07
    16 'Prefactor '    .67969E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .40035E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.4496       1.0000          .0000       .10000E+07
    19 'norm      '    2.9474       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.3757       1.0000          .0000       .10000E+07
    21 'norm      '    3.9704       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.2171       1.0000          .0000       .10000E+07
    23 'Prefactor '    .25943E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    .68413       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2212       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=   5225.066     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2177 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11657E-08    19.931       -.66102E-06** at limit **
   2  Prefactor     9.7783        5.4959       -.58861E-07   -.98636E-03
   3  Prefactor     8.8882        11.365        .25883E-05    .13962E-01
   4  norm           .0000        .60537       -.16140E-06** at limit **
   5  Prefactor     9.0018        4.1929        .18800E-06    .13272E-02
   6  norm          .55511E-10    6.9828        .10344E-05** at limit **
   7  Prefactor      .0000        .94517       -.53111E-07** at limit **
   8  Prefactor     1.6937        14.459       -.32735E-05   -.84307E-03
   9  Prefactor     .36354E-05    347.79       -.22267E-04** at limit **
  10  norm          .61062E-09    13.288        .34235E-06** at limit **
  11  Prefactor     .15210E-07    71.103       -.97220E-05** at limit **
  12  Prefactor     16.767        9.7095       -.55765E-06   -.19569E-02
  13  Prefactor     46.364        40.580       -.38855E-05    .34903E-01
  14  Prefactor     .55511E-10    4.7686       -.39695E-06** at limit **
  15  norm          29.526        2.8886        .37276E-06    .42544E-01
  16  Prefactor     .22204E-09    11.114        .93979E-06** at limit **
  17  Prefactor      .0000        2.2517        .11304E-06** at limit **
  18  Prefactor     1.4495        1.9514       -.94673E-07    .26084E-02
  19  norm          2.9470        2.3294       -.72944E-07   -.29316E-02
  20  Prefactor     7.3736        3.9635        .17037E-06    .19249E-02
  21  norm          3.9222        7.4483        .57315E-06    .12667E-02
  22  Prefactor     8.4350        15.000       -.33520E-05   -.42446E-01
  23  Prefactor      .0000        2.0397        .12823E-06** at limit **
  24  Normalizat    .68417        .21767        .28403E-04    .16290E-03
  25  Prefactor     1.2211        .25618       -.30915E-04    .17595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16573e-09
  Prefactor  = 9.77828
  Prefactor  = 8.8882
  norm       = 0
  Prefactor  = 9.00184
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.69366
  Prefactor  = 3.63543e-06
  norm       = 6.10623e-10
  Prefactor  = 1.52101e-08
  Prefactor  = 16.7671
  Prefactor  = 46.3641
  Prefactor  = 5.55112e-11
  norm       = 29.5261
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 1.4495
  norm       = 2.947
  Prefactor  = 7.37363
  norm       = 3.92222
  Prefactor  = 8.43501
  Prefactor  = 0
  Normalizat = 0.684172
  Prefactor  = 1.22114
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.066     FROM HESSE     STATUS=OK           489 CALLS     2666 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11657E-08    19.938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7783        5.6255        .32083E-03   -1.5645    
   3  Prefactor     8.8882        21.473        .33631E-03   -1.5648    
   4  norm           .0000        .60461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0018        4.2741        .33369E-03   -1.5648    
   6  norm          .55511E-10    6.9707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .94313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6937        18.883        .84457E-03   -1.5682    
   9  Prefactor     .36354E-05    43.000        .94662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .61062E-09    13.304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15210E-07    101.18        .91210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.767        10.334        .24515E-03   -1.5626    
  13  Prefactor     46.364        44.733        .14804E-03   -1.5572    
  14  Prefactor     .55511E-10    4.7586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          29.526        17.146        .18417E-03   -1.5599    
  16  Prefactor     .22204E-09    10.866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.2342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4495        1.9807        .89458E-03   -1.5684    
  19  norm          2.9470        2.3403        .59132E-03   -1.5674    
  20  Prefactor     7.3736        3.9858        .36907E-03   -1.5654    
  21  norm          3.9222        7.4808        .50596E-03   -1.5668    
  22  Prefactor     8.4350        29.684        .34950E-03   -1.5650    
  23  Prefactor      .0000        2.0373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68417        .18380        .60442E-01   -1.0452    
  25  Prefactor     1.2211        .21289        .57603E-01   -.85683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60026e-07
Minuit parameter uncertainties:
  1  0.000305258
  2  5.62555
  3  21.4736
  4  1.9336e-06
  5  4.27411
  6  4.43317e-05
  7  2.41198e-06
  8  11.3103
  9  0.0250059
  10  0.000181186
  11  0.00248035
  12  10.3341
  13  44.7338
  14  3.34445e-05
  15  17.1462
  16  0.000103471
  17  2.79492e-06
  18  1.9807
  19  2.34034
  20  3.98581
  21  7.4808
  22  29.6842
  23  6.1474e-06
  24  0.183961
  25  0.213036
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  4.636e+01  4.473e+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.221e+00  2.130e-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:  6.842e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 147.262 40.637
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/642917/likelihoodResults_691632001_691891201_4FGL_J0949.0+4038_daily_bin1745.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) = 5224.31928535
delta logL = 0.746269226351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5224.31153041
delta logL = 0.754024167356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.697       1.0000          .0000       .10000E+07
     2 'Index     '    3.7197       1.0000          .0000       10.000    
     3 'Normalizat'    .63148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2686       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5224.312     FROM MIGRAD    STATUS=FAILED       102 CALLS      303 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.625        87.488        .50506E-04   -.61473E-03
   2  Index         3.7227        2.7142        .49365E-02    .43780E-03
   3  Normalizat    .63147        .21362        .27725E-03   -.56054E-04
   4  Prefactor     1.2687        .26236        .25054E-03   -.68901E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5224.312     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      384 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.625        87.488        .43425E-04   -1.5629    
   2  Index         3.7227        2.7142        .11631E-02   -.25831    
   3  Normalizat    .63147        .21362        .44837E-03   -1.0666    
   4  Prefactor     1.2687        .26236        .42717E-03   -.84243    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5224.312     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      414 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.626        31.051        .20203E-05   -.38941E-03
   2  Index         3.7227        1.1967        .98730E-03   -.12747E-04
   3  Normalizat    .63147        .21367        .11090E-04   -.45311E-04
   4  Prefactor     1.2687        .26019        .50107E-04   -.55905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6255
  Index      = 3.72274
  Normalizat = 0.631467
  Prefactor  = 1.26868
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.312     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.626        28.948        .40405E-06   -1.5629    
   2  Index         3.7227        1.1169        .39492E-04   -.25831    
   3  Normalizat    .63147        .21374        .22180E-05   -1.0666    
   4  Prefactor     1.2687        .26018        .10021E-04   -.84243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71101e-12
Minuit parameter uncertainties:
  1  28.9486
  2  1.12711
  3  0.214016
  4  0.260445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642917': 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) = 5224.3115266
delta logL = 0.754027981217

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.563e+01  2.895e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  3.723e+00  1.127e+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.269e+00  2.604e-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:  6.315e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 147.262 40.637
Photon Index (Free Index): 3.72 +/- 1.13
Photon Flux (Free Index): 8.69e-08 +/- 5.96e-08
Energy Flux (Free Index): 1.37e-05 +/- 9.62e-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/642917/cmap_HighResolution_691632001_691891201_4FGL_J0949.0+4038_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='1.37e-05', photon_flux_error='4.69e-08', dlogl='7.54e-01', energy_flux='1.27e-05', photon_flux2='8.69e-08', job_status='DONE', time_completed='2022-12-05 00:37:01.213889', photon_index_error2='1.13', photon_index2='3.72', ts='1.36', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='9.62e-06', EG='0.68', time_epoch_completed='1670229421.21', return_code='0', job_id='642917', GAL2='1.27', EG2='0.63', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.96e-08', ts2='3.03', photon_index='2.61' WHERE bin_id='1745' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:37:01 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 642917: <4FGL_J0949.0+4038_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec  5 00:25:18 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:25:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:25:19 2022
Terminated at Mon Dec  5 00:37:02 2022
Results reported at Mon Dec  5 00:37:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1745 147.262 40.6367 691632001 691891201 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 :                                   629.00 sec.
    Max Memory :                                 1181 MB
    Average Memory :                             305.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

