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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1762
RA = 147.262, Dec = 40.6367
tmin = 696038401, tmax = 696297601
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='106493', job_status='RUN', time_executed='2023-01-25 00:49:31.693109', time_epoch_executed='1674636571.69' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106493/ft1_4FGL_J0949.0+4038_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106493/ft2_4FGL_J0949.0+4038_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106493/ft1_4FGL_J0949.0+4038_daily_bin1762.fits outfile=/scratch/kocevski/106493/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1762.fits ra=147.262 dec=40.6367 rad=12.0 tmin=696038401.0 tmax=696297601.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.66
user 3.43
sys 0.22

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

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

Number of photons that the gtmktime cut: 537

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106493/ft1_filtered_4FGL_J0949.0+4038_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/106493/ft2_4FGL_J0949.0+4038_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/106493/ltcube_696038401_696297601_4FGL_J0949.0+4038_daily_bin1762.fits outfile=/scratch/kocevski/106493/expmap_696038401_696297601_4FGL_J0949.0+4038_daily_bin1762.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/106493/ltcube_696038401_696297601_4FGL_J0949.0+4038_daily_bin1762.fits
.....................!
real 193.01
user 186.79
sys 5.71

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/106493/ft1_filtered_4FGL_J0949.0+4038_daily_bin1762.fits scfile=/scratch/kocevski/106493/ft2_4FGL_J0949.0+4038_daily_bin1762.fits outfile=/scratch/kocevski/106493/cmap_696038401_696297601_4FGL_J0949.0+4038_daily_bin1762.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106493/ft1_filtered_4FGL_J0949.0+4038_daily_bin1762.fits scfile=/scratch/kocevski/106493/ft2_4FGL_J0949.0+4038_daily_bin1762.fits outfile=/scratch/kocevski/106493/cmap_HighResolution_696038401_696297601_4FGL_J0949.0+4038_daily_bin1762.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0190       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.469       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45168E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28977E-07   1.0000          .0000       .10000E+07
     6 'norm      '    3.0503       1.0000          .0000       .10000E+07
     7 'Prefactor '    .65684       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.359       1.0000          .0000       .10000E+07
     9 'Prefactor '    .72585E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .30522E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    22.125       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.3068       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7050       1.0000          .0000       .10000E+07
    14 'Prefactor '    .76401E-01   1.0000          .0000       .10000E+07
    15 'norm      '    2.2650       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.6371       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.6894       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.1940       1.0000          .0000       .10000E+07
    19 'norm      '    5.7151       1.0000          .0000       .10000E+07
    20 'Prefactor '    .33062E-06   1.0000          .0000       .10000E+07
    21 'norm      '    15.199       1.0000          .0000       .10000E+07
    22 'Prefactor '    .28633E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .11489       1.0000          .0000       .10000E+07
    24 'Normalizat'    .88174       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2204       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=   5953.631     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     2142 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0278        2.8079        .68162E-08    .34372E-02
   2  Prefactor     10.483        4.5883       -.84362E-08    .35668E-01
   3  Prefactor     .18274E-06    18.024        .40947E-07** at limit **
   4  norm           .0000        .20148       -.74043E-08** at limit **
   5  Prefactor      .0000        .87600        .61093E-07** at limit **
   6  norm          3.0626        1.6327       -.15705E-07   -.16123E-02
   7  Prefactor     .65620        1.4515       -.34997E-07   -.48641E-02
   8  Prefactor     14.357        6.7019        .43007E-07    .44138E-01
   9  Prefactor     .55511E-10    9.1888       -.49952E-07** at limit **
  10  norm           .0000        4.6431       -.12052E-07** at limit **
  11  Prefactor     22.179        15.337       -.35671E-07    .23035E-01
  12  Prefactor     8.3071        6.9810        .14630E-06   -.97596E-02
  13  Prefactor     7.7170        1.9694       -.70401E-08    .10409E-01
  14  Prefactor     .46780E-01    164.06        .16973E-06** at limit **
  15  norm          2.2507        5.2423       -.40989E-07    .11238E-01
  16  Prefactor     3.6193        3.9528        .16365E-07    .55546E-01
  17  Prefactor     2.6958        3.3983       -.11573E-08    .15869E-02
  18  Prefactor     5.1908        4.8635       -.21959E-07    .24061E-01
  19  norm          5.7171        3.1799       -.19645E-07   -.64911E-02
  20  Prefactor     .11102E-09    1.7489       -.32283E-07** at limit **
  21  norm          15.168        1.5356        .11702E-07   -.20476E-01
  22  Prefactor     .55511E-09    11.810        .22559E-06** at limit **
  23  Prefactor     .11282        8.9388        .19653E-06** at limit **
  24  Normalizat    .88189        .20585       -.15036E-05    .83851E-05
  25  Prefactor     1.2203        .24943        .17054E-05    .85097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02778
  Prefactor  = 10.4835
  Prefactor  = 1.82743e-07
  norm       = 0
  Prefactor  = 0
  norm       = 3.06258
  Prefactor  = 0.656204
  Prefactor  = 14.3573
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 22.1789
  Prefactor  = 8.30706
  Prefactor  = 7.71705
  Prefactor  = 0.0467804
  norm       = 2.25069
  Prefactor  = 3.61926
  Prefactor  = 2.69578
  Prefactor  = 5.19079
  norm       = 5.71712
  Prefactor  = 1.11022e-10
  norm       = 15.1676
  Prefactor  = 5.55112e-10
  Prefactor  = 0.112819
  Normalizat = 0.881888
  Prefactor  = 1.22035
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.631     FROM HESSE     STATUS=OK           499 CALLS     2641 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0278        147.15        .72807E-03   -1.5679    
   2  Prefactor     10.483        5.0914        .30942E-03   -1.5643    
   3  Prefactor     .18274E-06    20.327        .15738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .19602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .87510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0626        5.9021        .58065E-03   -1.5673    
   7  Prefactor     .65620        1.4861        .64283E-03   -1.5692    
   8  Prefactor     14.357        8.4181        .26406E-03   -1.5632    
   9  Prefactor     .55511E-10    9.1868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        4.6415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.179        21.755        .21265E-03   -1.5614    
  12  Prefactor     8.3071        7.4922        .34760E-03   -1.5650    
  13  Prefactor     7.7170        19.197        .36102E-03   -1.5652    
  14  Prefactor     .46780E-01    5.8680        .10710E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2507        5.3219        .68221E-03   -1.5678    
  16  Prefactor     3.6193        6.0659        .52948E-03   -1.5670    
  17  Prefactor     2.6958        3.4189        .62101E-03   -1.5675    
  18  Prefactor     5.1908        5.0299        .44085E-03   -1.5662    
  19  norm          5.7171        3.1935        .41993E-03   -1.5660    
  20  Prefactor     .11102E-09    1.7523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.168        11.233        .25664E-03   -1.5630    
  22  Prefactor     .55511E-09    11.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .11282        2.1511        .74327E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88189        .18281        .44668E-01   -.97099    
  25  Prefactor     1.2203        .21202        .61783E-01   -.85707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75437e-07
Minuit parameter uncertainties:
  1  34.5487
  2  5.09143
  3  0.00385501
  4  9.53774e-07
  5  8.518e-06
  6  5.90208
  7  1.48607
  8  8.41815
  9  3.69548e-05
  10  4.79044e-06
  11  21.755
  12  7.49219
  13  19.1976
  14  1.04787
  15  5.32189
  16  6.0659
  17  3.41886
  18  5.02988
  19  3.19347
  20  2.53299e-05
  21  11.2334
  22  0.00016193
  23  0.985259
  24  0.18294
  25  0.212167
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  7.717e+00  1.920e+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.220e+00  2.122e-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.819e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/106493/likelihoodResults_696038401_696297601_4FGL_J0949.0+4038_daily_bin1762.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) = 5953.62676034
delta logL = 0.00458383112164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5953.62582884
delta logL = 0.00551533565886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5897       1.0000          .0000       .10000E+07
     2 'Index     '    2.4358       1.0000          .0000       10.000    
     3 'Normalizat'    .88338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2195       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=   5953.626     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      288 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6193        22.106        .68357E-04    .14958E-03
   2  Index         2.4382        1.5597        .11549E-01    .35329E-05
   3  Normalizat    .88303        .19872        .25349E-03    .12737E-04
   4  Prefactor     1.2193        .24782        .27334E-03    .66963E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.61927
  Index      = 2.43824
  Normalizat = 0.883032
  Prefactor  = 1.21935
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.626     FROM HESSE     STATUS=OK            27 CALLS      315 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6193        21.717        .13671E-04   -1.5649    
   2  Index         2.4382        1.5337        .46196E-03   -.53792    
   3  Normalizat    .88303        .19890        .10140E-04   -.97059    
   4  Prefactor     1.2193        .24805        .10934E-04   -.85738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02421e-13
Minuit parameter uncertainties:
  1  21.7168
  2  1.56831
  3  0.19907
  4  0.24829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106493': 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) = 5953.62581682
delta logL = 0.00552735952169

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  8.619e+00  2.172e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  2.438e+00  1.568e+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.219e+00  2.483e-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.830e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/106493/cmap_HighResolution_696038401_696297601_4FGL_J0949.0+4038_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2023-01-25 01:00:51.342771', job_id='106493', GAL2='1.22', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1674637251.34', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.53e-03', ts2='0.24', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1762' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:00:51 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 106493: <4FGL_J0949.0+4038_daily_bin1762> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jan 25 00:45:19 2023
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:47:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:47:19 2023
Terminated at Wed Jan 25 01:00:52 2023
Results reported at Wed Jan 25 01:00:52 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1762 147.262 40.6367 696038401 696297601 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 :                                   682.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             298.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            933 sec.

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

