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 0 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_bin1711
RA = 147.262, Dec = 40.6367
tmin = 682819201, tmax = 683078401
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='86139', job_status='RUN', time_executed='2022-09-16 14:56:50.173922', time_epoch_executed='1663365410.17' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86139/ft1_4FGL_J0949.0+4038_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86139/ft2_4FGL_J0949.0+4038_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86139/ft1_4FGL_J0949.0+4038_daily_bin1711.fits outfile=/scratch/kocevski/86139/ft1_filteredMKT_4FGL_J0949.0+4038_daily_bin1711.fits ra=147.262 dec=40.6367 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.57
user 4.29
sys 0.25

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

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

Number of photons that the gtmktime cut: 499

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86139/ft1_filtered_4FGL_J0949.0+4038_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/86139/ft2_4FGL_J0949.0+4038_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/86139/ltcube_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.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/86139/ft2_4FGL_J0949.0+4038_daily_bin1711.fits
.....................!
real 14.36
user 13.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86139/ft1_filtered_4FGL_J0949.0+4038_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/86139/ft2_4FGL_J0949.0+4038_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/86139/ltcube_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.fits outfile=/scratch/kocevski/86139/expmap_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.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/86139/ltcube_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.fits
.....................!
real 191.56
user 185.85
sys 5.10

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/86139/ft1_filtered_4FGL_J0949.0+4038_daily_bin1711.fits scfile=/scratch/kocevski/86139/ft2_4FGL_J0949.0+4038_daily_bin1711.fits outfile=/scratch/kocevski/86139/cmap_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86139/ft1_filtered_4FGL_J0949.0+4038_daily_bin1711.fits scfile=/scratch/kocevski/86139/ft2_4FGL_J0949.0+4038_daily_bin1711.fits outfile=/scratch/kocevski/86139/cmap_HighResolution_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.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/86139/ft1_filtered_4FGL_J0949.0+4038_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/86139/ft2_4FGL_J0949.0+4038_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86139/Model_4FGL_J0949.0+4038_daily_bin1711.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/86139/ft1_filtered_4FGL_J0949.0+4038_daily_bin1711.fits.....................!
real 48.13
user 46.53
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17382E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.7881       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.2558       1.0000          .0000       .10000E+07
     4 'norm      '    .14644E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .75711       1.0000          .0000       .10000E+07
     6 'norm      '    .30043E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .39732       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.4995       1.0000          .0000       .10000E+07
     9 'Prefactor '    .92468E-05   1.0000          .0000       .10000E+07
    10 'norm      '    1.2187       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.073       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0105       1.0000          .0000       .10000E+07
    13 'Prefactor '    .95751E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .35549E-02   1.0000          .0000       .10000E+07
    15 'norm      '    31.510       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.5850       1.0000          .0000       .10000E+07
    17 'Prefactor '    .71031E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .96822E-03   1.0000          .0000       .10000E+07
    19 'norm      '    6.4957       1.0000          .0000       .10000E+07
    20 'Prefactor '    20.017       1.0000          .0000       .10000E+07
    21 'norm      '    7.5468       1.0000          .0000       .10000E+07
    22 'Prefactor '    .96073E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    12.643       1.0000          .0000       .10000E+07
    24 'Normalizat'    .63600       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4389       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=   5659.043     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2275 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96939E-06    7.8053       -.13637E-06** at limit **
   2  Prefactor     4.7825        3.1201        .41199E-07    .15424E-02
   3  Prefactor     3.3559        5.4998        .17180E-06    .30137E-02
   4  norm           .0000        .28054        .50501E-07** at limit **
   5  Prefactor     .75274        2.0708       -.16460E-07   -.20504E-02
   6  norm          .18208E-07    6.2608       -.26278E-06** at limit **
   7  Prefactor     .39625        1.1220       -.18411E-07   -.55526E-03
   8  Prefactor     5.4344        7.8111       -.90583E-07    .98072E-01
   9  Prefactor     .31791E-05    11.770       -.16616E-07** at limit **
  10  norm          .53121        22.436       -.35829E-06   -.50292E-02
  11  Prefactor     11.472        11.341       -.14347E-06   -.56151E-01
  12  Prefactor     2.0248        7.2880        .21858E-06    .44980E-02
  13  Prefactor     .20756E-06    2.9761       -.20087E-06** at limit **
  14  Prefactor     .51126E-06    6.6664       -.17057E-06** at limit **
  15  norm          31.576        2.5617       -.20121E-07   -.11209E-01
  16  Prefactor     1.4737        7.2890        .15765E-06   -.53945E-02
  17  Prefactor     .47329E-06    16.409       -.45812E-06** at limit **
  18  Prefactor     .14211E-07    6.2435        .21747E-06** at limit **
  19  norm          6.5047        3.0236       -.11189E-06   -.60846E-02
  20  Prefactor     20.023        7.2982       -.26590E-07    .10481E-01
  21  norm          7.6527        8.0210       -.26424E-07    .20827E-02
  22  Prefactor     .27922E-07    31.784        .15277E-06** at limit **
  23  Prefactor     12.614        6.1626        .10898E-07    .33072E-02
  24  Normalizat    .63447        .21422        .57679E-05   -.44126E-04
  25  Prefactor     1.4404        .25259       -.63521E-05   -.16047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.69391e-07
  Prefactor  = 4.78248
  Prefactor  = 3.35586
  norm       = 0
  Prefactor  = 0.752742
  norm       = 1.82077e-08
  Prefactor  = 0.396249
  Prefactor  = 5.43443
  Prefactor  = 3.17907e-06
  norm       = 0.531207
  Prefactor  = 11.4721
  Prefactor  = 2.02477
  Prefactor  = 2.07556e-07
  Prefactor  = 5.11258e-07
  norm       = 31.5764
  Prefactor  = 1.47371
  Prefactor  = 4.73288e-07
  Prefactor  = 1.42109e-08
  norm       = 6.5047
  Prefactor  = 20.0226
  norm       = 7.65274
  Prefactor  = 2.79221e-08
  Prefactor  = 12.6145
  Normalizat = 0.634469
  Prefactor  = 1.44044
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.043     FROM HESSE     STATUS=OK           499 CALLS     2774 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96939E-06    18.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7825        3.1647        .45954E-03   -1.5664    
   3  Prefactor     3.3559        21.629        .56103E-03   -1.5671    
   4  norm           .0000        .20323        .17032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .75274        2.3633        .56188E-03   -1.5691    
   6  norm          .18208E-07    6.3467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .39625        1.2408        .30683E-02   -1.5695    
   8  Prefactor     5.4344        10.771        .42821E-03   -1.5661    
   9  Prefactor     .31791E-05    22.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .53121        17.498        .10219E-01   -1.5693    
  11  Prefactor     11.472        26.558        .31547E-03   -1.5640    
  12  Prefactor     2.0248        7.6549        .72984E-03   -1.5680    
  13  Prefactor     .20756E-06    33.711        .14045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .51126E-06    20.018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.576        16.045        .17817E-03   -1.5596    
  16  Prefactor     1.4737        8.2652        .84294E-03   -1.5684    
  17  Prefactor     .47329E-06    2.9670        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14211E-07    6.4809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5047        3.0365        .39354E-03   -1.5657    
  20  Prefactor     20.023        7.3432        .22358E-03   -1.5618    
  21  norm          7.6527        8.0354        .36482E-03   -1.5653    
  22  Prefactor     .27922E-07    35.939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.614        6.1743        .28146E-03   -1.5637    
  24  Normalizat    .63447        .19015        .66244E-01   -1.0654    
  25  Prefactor     1.4404        .21582        .57097E-01   -.79222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17638e-06
Minuit parameter uncertainties:
  1  0.00852065
  2  3.16475
  3  17.0393
  4  2.1823e-06
  5  2.36329
  6  0.00067946
  7  1.2408
  8  10.7706
  9  0.0169879
  10  6.09753
  11  26.5584
  12  7.65491
  13  0.00529061
  14  0.00639823
  15  16.0452
  16  6.98013
  17  0.00237002
  18  0.00060666
  19  3.03649
  20  7.34317
  21  8.03538
  22  0.00200312
  23  6.1743
  24  0.19035
  25  0.215958
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  2.076e-07  5.291e-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.440e+00  2.160e-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.345e-01  1.904e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86139/likelihoodResults_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.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) = 5659.045699
delta logL = -0.00301502408274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5658.7743584
delta logL = 0.268325573165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82941E-04   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .59144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4774       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5659.043     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      424 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.082        .42118E-03** at limit **
   2  Index         1.4151        1.1021       -.55135E-06     .0000    
   3  Normalizat    .63447        .96003       -.31916E-04   -.38406E-03
   4  Prefactor     1.4404        1.0400        .19632E-04   -.35149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.41513
  Normalizat = 0.634466
  Prefactor  = 1.44044
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5659.043     FROM HESSE     STATUS=FAILED         9 CALLS      433 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.082        .42118E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5729        1.9738       -.55135E-06   -1290.4    
   3  Normalizat    .63447        .96003       -.31916E-04   -26.198    
   4  Prefactor     1.4404        1.0400        .19632E-04   -13.359    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.59685e-10
Minuit parameter uncertainties:
  1  2.94108e-05
  2  1.12131
  3  0.987221
  4  1.05589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86139': 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): 101
logL (Free Index) = 5659.04268397
delta logL = 5.00222085975e-10

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  2.941e-05  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  1.415e+00  1.121e+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.440e+00  1.056e+00  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.345e-01  9.872e-01  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/86139/cmap_HighResolution_682819201_683078401_4FGL_J0949.0+4038_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.21e-08', time_completed='2022-09-16 15:08:09.219021', job_id='86139', GAL2='1.44', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1663366089.22', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='5.00e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1711' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:08:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 86139: <4FGL_J0949.0+4038_daily_bin1711> in cluster <slac> Done

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

Your job looked like:

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

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

