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


Performing analysis on: 4FGL_J0949.0+4038_daily_bin1748
RA = 147.262, Dec = 40.6367
tmin = 692409601, tmax = 692668801
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='881850', job_status='RUN', time_executed='2022-12-14 00:26:20.762592', time_epoch_executed='1671006380.76' WHERE source_name='4FGL J0949.0+4038' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881850/ft1_4FGL_J0949.0+4038_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881850/ft2_4FGL_J0949.0+4038_daily_bin1748.fits


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

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

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

Number of photons that the gtmktime cut: 593

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881850/ft1_filtered_4FGL_J0949.0+4038_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/881850/ft2_4FGL_J0949.0+4038_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/881850/ltcube_692409601_692668801_4FGL_J0949.0+4038_daily_bin1748.fits outfile=/scratch/kocevski/881850/expmap_692409601_692668801_4FGL_J0949.0+4038_daily_bin1748.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/881850/ltcube_692409601_692668801_4FGL_J0949.0+4038_daily_bin1748.fits
.....................!
real 192.89
user 186.86
sys 5.48

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/881850/ft1_filtered_4FGL_J0949.0+4038_daily_bin1748.fits scfile=/scratch/kocevski/881850/ft2_4FGL_J0949.0+4038_daily_bin1748.fits outfile=/scratch/kocevski/881850/cmap_692409601_692668801_4FGL_J0949.0+4038_daily_bin1748.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/881850/ft1_filtered_4FGL_J0949.0+4038_daily_bin1748.fits scfile=/scratch/kocevski/881850/ft2_4FGL_J0949.0+4038_daily_bin1748.fits outfile=/scratch/kocevski/881850/cmap_HighResolution_692409601_692668801_4FGL_J0949.0+4038_daily_bin1748.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.689       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.1311       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16740E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .22505       1.0000          .0000       .10000E+07
     5 'Prefactor '    .29505E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .31403E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.4526       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.8308       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19963E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .94184E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .62374E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    36.276       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16084       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11746E-03   1.0000          .0000       .10000E+07
    15 'norm      '    18.678       1.0000          .0000       .10000E+07
    16 'Prefactor '    .83525       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4815       1.0000          .0000       .10000E+07
    18 'Prefactor '    .12101E-03   1.0000          .0000       .10000E+07
    19 'norm      '    2.0626       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.9118       1.0000          .0000       .10000E+07
    21 'norm      '    10.673       1.0000          .0000       .10000E+07
    22 'Prefactor '    54.027       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.7963       1.0000          .0000       .10000E+07
    24 'Normalizat'    .86361       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1925       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=   6700.428     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2136 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.619        1.0119        .17949E-07   -.69063E-02
   2  Prefactor     3.1189        4.0704       -.98539E-08   -.41348E-02
   3  Prefactor     .27756E-09    5.3617       -.14318E-05** at limit **
   4  norm          .22473        .41479        .83288E-07** at limit **
   5  Prefactor     .16098E-08    44.028        .25629E-05** at limit **
   6  norm          .94369E-09    3.7844       -.21170E-05** at limit **
   7  Prefactor     1.4547        2.7748       -.56088E-06   -.36442E-02
   8  Prefactor     5.7860        1.1122       -.96877E-07   -.18138E-02
   9  Prefactor     .14952E-05    1.2856        .78329E-06** at limit **
  10  norm          .18874E-08    6.4926       -.19054E-05** at limit **
  11  Prefactor     .15044E-07    8.8605        .17507E-05** at limit **
  12  Prefactor     36.251        1.1293       -.34878E-07   -.23846E-01
  13  Prefactor     .60993E-05    3.2492        .13482E-05** at limit **
  14  Prefactor     .55511E-10    3.1851        .16117E-05** at limit **
  15  norm          18.683        1.0874       -.16046E-08    .39985E-03
  16  Prefactor     .74131        .65658       -.26328E-06   -.25422E-01
  17  Prefactor     5.4799        3.3467        .51259E-07   -.41383E-02
  18  Prefactor     .55511E-10    2.6272        .76035E-06** at limit **
  19  norm          2.0642        1.6747        .44704E-06   -.41381E-02
  20  Prefactor     5.8634        5.6606       -.64376E-06   -.14130E-02
  21  norm          10.654        1.3899        .22406E-07   -.10791E-01
  22  Prefactor     54.017        1.7623       -.13739E-07    .14897    
  23  Prefactor     1.7844        5.0136        .37859E-06   -.24680E-02
  24  Normalizat    .86466        .19746        .72416E-05   -.27498E-03
  25  Prefactor     1.1923        .23543       -.35774E-05   -.27740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6193
  Prefactor  = 3.11888
  Prefactor  = 2.77556e-10
  norm       = 0.224732
  Prefactor  = 1.60982e-09
  norm       = 9.4369e-10
  Prefactor  = 1.45468
  Prefactor  = 5.78603
  Prefactor  = 1.49519e-06
  norm       = 1.88738e-09
  Prefactor  = 1.50435e-08
  Prefactor  = 36.2513
  Prefactor  = 6.09929e-06
  Prefactor  = 5.55112e-11
  norm       = 18.6827
  Prefactor  = 0.741313
  Prefactor  = 5.47992
  Prefactor  = 5.55112e-11
  norm       = 2.06421
  Prefactor  = 5.86344
  norm       = 10.6539
  Prefactor  = 54.0165
  Prefactor  = 1.78441
  Normalizat = 0.864663
  Prefactor  = 1.19226
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.428     FROM HESSE     STATUS=OK           493 CALLS     2629 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.619        19.220        .29276E-03   -1.5640    
   2  Prefactor     3.1189        4.2377        .57268E-03   -1.5673    
   3  Prefactor     .27756E-09    5.4006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22473        .42564        .11346E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16098E-08    1.8317        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .94369E-09    3.8381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4547        2.8949        .89333E-03   -1.5684    
   8  Prefactor     5.7860        12.466        .41567E-03   -1.5660    
   9  Prefactor     .14952E-05    20.554        .10360E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .18874E-08    6.5968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15044E-07    9.1071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.251        11.130        .16605E-03   -1.5588    
  13  Prefactor     .60993E-05    19.855        .12519E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    3.1850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.683        12.692        .23147E-03   -1.5622    
  16  Prefactor     .74131        5.4252        .50343E-03   -1.5691    
  17  Prefactor     5.4799        3.3625        .42892E-03   -1.5661    
  18  Prefactor     .55511E-10    2.6545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0642        1.6742        .71921E-03   -1.5679    
  20  Prefactor     5.8634        5.8471        .41277E-03   -1.5660    
  21  norm          10.654        10.187        .30644E-03   -1.5643    
  22  Prefactor     54.017        40.500        .13606E-03   -1.5561    
  23  Prefactor     1.7844        5.4041        .77985E-03   -1.5681    
  24  Normalizat    .86466        .17492        .44435E-01   -.97713    
  25  Prefactor     1.1923        .19797        .61594E-01   -.86570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8731e-06
Minuit parameter uncertainties:
  1  19.22
  2  4.23769
  3  7.77985e-05
  4  0.425641
  5  0.00010782
  6  0.000121484
  7  2.89488
  8  12.466
  9  0.0110874
  10  0.000223722
  11  0.000740425
  12  11.1299
  13  0.0220095
  14  2.34022e-05
  15  12.6917
  16  4.01086
  17  3.36247
  18  2.89889e-05
  19  1.67417
  20  5.84709
  21  10.1873
  22  40.5002
  23  5.40416
  24  0.175039
  25  0.198097
Done.

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

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  6.099e-06  2.201e-02  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.192e+00  1.981e-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.647e-01  1.750e-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: 6.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881850/likelihoodResults_692409601_692668801_4FGL_J0949.0+4038_daily_bin1748.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) = 6700.43431811
delta logL = -0.00589626291548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6700.32795041
delta logL = 0.10047143765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1274       1.0000          .0000       .10000E+07
     2 'Index     '    4.3373       1.0000          .0000       10.000    
     3 'Normalizat'    .84073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2104       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=   6700.328     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      262 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1334        71.415        .11017E-02    .11626E-01
   2  Index         4.3346        7.0356        .21096        .86682E-04
   3  Normalizat    .84097        .29668E-01    .44140E-01    .12621E-04
   4  Prefactor     1.2101        .36743E-01    .61213E-01    .67492E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13343
  Index      = 4.3346
  Normalizat = 0.840965
  Prefactor  = 1.2101
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.328     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1334        301.19        .19231E-04   -1.5687    
   2  Index         4.3346        7.0427        .12645E-01   -.13348    
   3  Normalizat    .84097        .14447        .25842E-03   -.98567    
   4  Prefactor     1.2101        .17699        .27072E-03   -.86021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72345e-06
Minuit parameter uncertainties:
  1  36.9548
  2  18.6395
  3  0.144533
  4  0.177077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881850': 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) = 6700.32794892
delta logL = 0.100472927057

Extracting fit parameters...

4FGL J0949.0+4038
   Spectrum: PowerLaw
323    Prefactor:  1.133e+00  3.695e+01  0.000e+00  1.000e+06 ( 1.000e-13)
324        Index:  4.335e+00  1.864e+01  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.143e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.210e+00  1.771e-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.410e-01  1.445e-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/881850/cmap_HighResolution_692409601_692668801_4FGL_J0949.0+4038_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-03', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2022-12-14 00:38:11.632264', job_id='881850', GAL2='1.21', fit_tolerance='1e-08', EG2='0.84', EG='0.86', time_epoch_completed='1671007091.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.00e-01', ts2='0.21', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1748' AND source_name='4FGL J0949.0+4038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:38:11 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 881850: <4FGL_J0949.0+4038_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0949.0+4038_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:25:30 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:25:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:25:32 2022
Terminated at Wed Dec 14 00:38:12 2022
Results reported at Wed Dec 14 00:38:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0949.0+4038_daily_bin1748 147.262 40.6367 692409601 692668801 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 :                                   711.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

