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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1767
RA = 158.275, Dec = 41.262
tmin = 697334401, tmax = 697593601
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='77110', job_status='RUN', time_executed='2023-02-09 01:12:15.281484', time_epoch_executed='1675933935.28' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77110/ft1_4FGL_J1033.1+4115_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77110/ft1_4FGL_J1033.1+4115_daily_bin1767.fits outfile=/scratch/kocevski/77110/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1767.fits ra=158.275 dec=41.262 rad=12.0 tmin=697334401.0 tmax=697593601.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.60
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.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/77110/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.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.34
sys 0.16

Number of photons that the gtmktime cut: 572

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/77110/ltcube_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.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/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits
.....................!
real 15.31
user 14.84
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/77110/ltcube_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.fits outfile=/scratch/kocevski/77110/expmap_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.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/77110/ltcube_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.fits
.....................!
real 192.26
user 185.99
sys 5.67

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1033.1+4115 @ 158.275 41.262

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits scfile=/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits outfile=/scratch/kocevski/77110/cmap_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.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=158.275 yref=41.262 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits scfile=/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits outfile=/scratch/kocevski/77110/cmap_HighResolution_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.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=158.275 yref=41.262 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/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77110/Model_4FGL_J1033.1+4115_daily_bin1767.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/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits.....................!
real 53.74
user 52.27
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits', '/scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits', expMap='/scratch/kocevski/77110/expmap_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.fits', expCube='/scratch/kocevski/77110/ltcube_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77110/Model_4FGL_J1033.1+4115_daily_bin1767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.1+4115'

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.495e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77110/ft1_filtered_4FGL_J1033.1+4115_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/77110/ft2_4FGL_J1033.1+4115_daily_bin1767.fits
Exposure map: /scratch/kocevski/77110/expmap_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.fits
Exposure cube: /scratch/kocevski/77110/ltcube_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77110/Model_4FGL_J1033.1+4115_daily_bin1767.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) = 6242.79170409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24860E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0950       1.0000          .0000       .10000E+07
     3 'Prefactor '    .39616E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .56453E-04   1.0000          .0000       .10000E+07
     5 'norm      '    11.937       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5790       1.0000          .0000       .10000E+07
     7 'Prefactor '    .98305E-06   1.0000          .0000       .10000E+07
     8 'norm      '    7.3935       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20221E-03   1.0000          .0000       .10000E+07
    10 'norm      '    7.1349       1.0000          .0000       .10000E+07
    11 'Prefactor '    104.49       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.4336       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.7311       1.0000          .0000       .10000E+07
    14 'Prefactor '    27.704       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20024E-03   1.0000          .0000       .10000E+07
    16 'norm      '    2.3223       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.034       1.0000          .0000       .10000E+07
    18 'Prefactor '    .29301E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    21.855       1.0000          .0000       .10000E+07
    20 'norm      '    .25133E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    32.454       1.0000          .0000       .10000E+07
    23 'norm      '    5.3588       1.0000          .0000       .10000E+07
    24 'Normalizat'    .79635       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6242.760     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     2126 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27756E-09    6.9316       -.54995E-06** at limit **
   2  Prefactor     1.5236        31.904        .80780E-06    .32880E-03
   3  Prefactor     .61862E-06    9.9449        .51590E-05** at limit **
   4  Prefactor     .23703E-07    8.5106       -.52442E-06** at limit **
   5  norm          11.945        12.199       -.74036E-06   -.11014E-01
   6  Prefactor     2.5987        5.4079        .23412E-06   -.23564E-02
   7  Prefactor     .55511E-10    1.7490        .10105E-07** at limit **
   8  norm          7.3960        3.2616        .16567E-07   -.16632E-02
   9  Prefactor      .0000        4.4993        .75088E-07** at limit **
  10  norm          7.1927        7.9067        .12422E-06   -.14305E-02
  11  Prefactor     104.85        48.531        .26266E-05   -.16080    
  12  Prefactor     7.5010        6.3453       -.25498E-05    .13860E-01
  13  Prefactor     1.7310        1.9417        .93977E-07    .43358E-02
  14  Prefactor     27.778        4.7449        .60006E-06   -.38932E-01
  15  Prefactor     .36637E-05    66.853        .19631E-05** at limit **
  16  norm          2.3223        .40581       -.37727E-07   -.13022E-01
  17  Prefactor     11.065        8.4724        .23152E-05    .52977E-01
  18  Prefactor     .35377E-06    7.6534       -.38311E-05** at limit **
  19  Prefactor     21.496        38.996       -.35260E-05   -.26815E-01
  20  norm          .11102E-08    21.291        .11285E-05** at limit **
  21  Prefactor      .0000        1.0085       -.13973E-07** at limit **
  22  Prefactor     33.308        20.720        .92850E-07   -.14819    
  23  norm          5.3417        3.0543       -.98851E-07    .97903E-03
  24  Normalizat    .79600        .19039       -.10184E-04   -.21420E-03
  25  Prefactor     1.2321        .24478        .21845E-05   -.15423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77556e-10
  Prefactor  = 1.52358
  Prefactor  = 6.18616e-07
  Prefactor  = 2.37033e-08
  norm       = 11.9448
  Prefactor  = 2.59866
  Prefactor  = 5.55112e-11
  norm       = 7.39599
  Prefactor  = 0
  norm       = 7.19269
  Prefactor  = 104.852
  Prefactor  = 7.50105
  Prefactor  = 1.73104
  Prefactor  = 27.7784
  Prefactor  = 3.66368e-06
  norm       = 2.32226
  Prefactor  = 11.0654
  Prefactor  = 3.53773e-07
  Prefactor  = 21.496
  norm       = 1.11022e-09
  Prefactor  = 0
  Prefactor  = 33.3075
  norm       = 5.34168
  Normalizat = 0.795999
  Prefactor  = 1.23205
 **********
 **   18 **HESSE 
 **********

 FCN=   6242.760     FROM HESSE     STATUS=OK           477 CALLS     2603 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27756E-09    6.9277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5236        31.664        .11392E-02   -1.5683    
   3  Prefactor     .61862E-06    11.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23703E-07    9.2402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.945        12.248        .28969E-03   -1.5639    
   6  Prefactor     2.5987        5.4275        .63525E-03   -1.5676    
   7  Prefactor     .55511E-10    1.7501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.3960        3.2673        .36862E-03   -1.5654    
   9  Prefactor      .0000        4.4803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.1927        7.9190        .37530E-03   -1.5654    
  11  Prefactor     104.85        85.244        .97833E-04   -1.5503    
  12  Prefactor     7.5010        20.609        .36761E-03   -1.5653    
  13  Prefactor     1.7310        1.9390        .79756E-03   -1.5682    
  14  Prefactor     27.778        26.128        .19002E-03   -1.5603    
  15  Prefactor     .36637E-05    69.711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3223        .41148        .45729E-03   -1.5677    
  17  Prefactor     11.065        14.646        .30136E-03   -1.5641    
  18  Prefactor     .35377E-06    10.955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.496        59.717        .21397E-03   -1.5615    
  20  norm          .11102E-08    21.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        1.0086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.308        38.172        .17556E-03   -1.5593    
  23  norm          5.3417        3.1388        .43389E-03   -1.5662    
  24  Normalizat    .79600        .16291        .43563E-01   -1.0022    
  25  Prefactor     1.2321        .20925        .61935E-01   -.85351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38467e-06
Minuit parameter uncertainties:
  1  8.40452e-05
  2  13.8914
  3  0.00522369
  4  0.000936195
  5  12.2485
  6  5.42747
  7  1.66487e-05
  8  3.26731
  9  1.7026e-05
  10  7.919
  11  85.2449
  12  20.6095
  13  1.93899
  14  26.1279
  15  0.0319628
  16  0.411481
  17  14.6463
  18  0.00393741
  19  59.7183
  20  0.000303142
  21  1.91584e-06
  22  38.1721
  23  3.13879
  24  0.163014
  25  0.209391
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.731e+00  1.939e+00  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.232e+00  2.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  7.960e-01  1.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 4.10e-06 +/- 4.59e-06

TS (Fixed Index): 2.48
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 6.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77110/likelihoodResults_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.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) = 6241.58683404
delta logL = 1.17317094506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6241.58225931
delta logL = 1.17774567894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7063       1.0000          .0000       .10000E+07
     2 'Index     '    1.3164       1.0000          .0000       10.000    
     3 'Normalizat'    .80752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6241.582     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7063        1.7272        .80466E-03   -.30863E-02
   2  Index         1.3164        .38919        .23668       -.63696E-04
   3  Normalizat    .80752        .15805        .43708E-01    .80711E-05
   4  Prefactor     1.2202        .20667        .62166E-01    .23078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70633
  Index      = 1.31638
  Normalizat = 0.80752
  Prefactor  = 1.22017
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.582     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7063        2.0614        .10159E-04   -1.5682    
   2  Index         1.3164        .54385        .88679E-02   -.82821    
   3  Normalizat    .80752        .18657        .25416E-03   -.99790    
   4  Prefactor     1.2202        .24390        .27494E-03   -.85713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72295e-09
Minuit parameter uncertainties:
  1  2.06137
  2  0.546228
  3  0.186715
  4  0.244124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77110': 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) = 6241.5822593
delta logL = 1.17774568438

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.706e+00  2.061e+00  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  1.316e+00  5.462e-01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.220e+00  2.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  8.075e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.32 +/- 0.55
Photon Flux (Free Index): 6.02e-09 +/- 6.71e-09
Energy Flux (Free Index): 3.50e-05 +/- 5.79e-05

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/77110/cmap_HighResolution_697334401_697593601_4FGL_J1033.1+4115_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='3.50e-05', photon_flux_error='1.42e-08', dlogl='1.18e+00', energy_flux='4.10e-06', photon_flux2='6.02e-09', job_status='DONE', time_completed='2023-02-09 01:24:03.108357', photon_index_error2='0.55', photon_index2='1.32', ts='2.48', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='6.10e-08', energy_flux_error2='5.79e-05', EG='0.80', time_epoch_completed='1675934643.11', return_code='0', job_id='77110', GAL2='1.22', EG2='0.81', return_code2='0', energy_flux_error='4.59e-06', photon_flux_error2='6.71e-09', ts2='4.84', photon_index='2.41' WHERE bin_id='1767' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:24:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 77110: <4FGL_J1033.1+4115_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1767> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Feb  9 01:10:18 2023
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:10:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:10:23 2023
Terminated at Thu Feb  9 01:24:04 2023
Results reported at Thu Feb  9 01:24:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1767 158.275 41.262 697334401 697593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.1+4115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            826 sec.

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

