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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1744
RA = 158.275, Dec = 41.262
tmin = 691372801, tmax = 691632001
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='574977', job_status='RUN', time_executed='2022-12-02 00:40:53.209080', time_epoch_executed='1669970453.21' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574977/ft1_4FGL_J1033.1+4115_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574977/ft1_4FGL_J1033.1+4115_daily_bin1744.fits outfile=/scratch/kocevski/574977/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1744.fits ra=158.275 dec=41.262 rad=12.0 tmin=691372801.0 tmax=691632001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.50
user 2.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.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/574977/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 723

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/574977/ltcube_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.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/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits
.....................!
real 12.84
user 12.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/574977/ltcube_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.fits outfile=/scratch/kocevski/574977/expmap_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.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/574977/ltcube_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.fits
.....................!
real 190.14
user 185.78
sys 4.00

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/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits scfile=/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits outfile=/scratch/kocevski/574977/cmap_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits scfile=/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits outfile=/scratch/kocevski/574977/cmap_HighResolution_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574977/Model_4FGL_J1033.1+4115_daily_bin1744.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/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits.....................!
real 62.67
user 61.34
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits', '/scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits', expMap='/scratch/kocevski/574977/expmap_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.fits', expCube='/scratch/kocevski/574977/ltcube_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574977/Model_4FGL_J1033.1+4115_daily_bin1744.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/574977/ft1_filtered_4FGL_J1033.1+4115_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/574977/ft2_4FGL_J1033.1+4115_daily_bin1744.fits
Exposure map: /scratch/kocevski/574977/expmap_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.fits
Exposure cube: /scratch/kocevski/574977/ltcube_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574977/Model_4FGL_J1033.1+4115_daily_bin1744.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) = 7827.40699797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8189       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12930       1.0000          .0000       .10000E+07
     3 'Prefactor '    82.622       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2034       1.0000          .0000       .10000E+07
     5 'norm      '    3.9662       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7128       1.0000          .0000       .10000E+07
     7 'Prefactor '    .53632       1.0000          .0000       .10000E+07
     8 'norm      '    5.0341       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.7920       1.0000          .0000       .10000E+07
    10 'norm      '    .15931       1.0000          .0000       .10000E+07
    11 'Prefactor '    28.497       1.0000          .0000       .10000E+07
    12 'Prefactor '    25.561       1.0000          .0000       .10000E+07
    13 'Prefactor '    .82723E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .91163E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    54.614       1.0000          .0000       .10000E+07
    16 'norm      '    3.9409       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29426E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .82334E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .23826E-01   1.0000          .0000       .10000E+07
    20 'norm      '    24.717       1.0000          .0000       .10000E+07
    21 'Prefactor '    .92424E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .20329E-01   1.0000          .0000       .10000E+07
    23 'norm      '    3.3099       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1809       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66191       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=   7827.404     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2225 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8420        2.4803        .58349E-07   -.18328E-02
   2  Prefactor     .71221E-07    47.183       -.38222E-06** at limit **
   3  Prefactor     82.783        7.5714       -.35022E-07   -.20058    
   4  Prefactor     4.0990        2.6623        .28378E-07    .13528E-01
   5  norm          3.9913        1.2294       -.61651E-08    .52467E-02
   6  Prefactor     1.7120        3.2821       -.15274E-06   -.44316E-03
   7  Prefactor     .50808        10.187       -.11368E-06    .66411E-02
   8  norm          5.0358        2.4319        .46952E-07    .14551E-02
   9  Prefactor     3.8238        4.4796        .79179E-07   -.27172E-02
  10  norm          .27254        17.084        .33635E-07    .64887E-03
  11  Prefactor     28.522        2.1600       -.12550E-07   -.37824E-01
  12  Prefactor     25.586        1.0461        .11887E-08   -.58239E-02
  13  Prefactor      .0000        1.7616       -.19823E-06** at limit **
  14  Prefactor     .23631E-06    30.187        .10066E-05** at limit **
  15  Prefactor     54.594        3.4713        .15778E-07    .78561E-01
  16  norm          3.9404        .44798       -.79426E-09   -.61738E-03
  17  Prefactor     .27256E-06    26.820        .26820E-06** at limit **
  18  Prefactor     .11102E-09    5.6353        .21641E-06** at limit **
  19  Prefactor      .0000        18.751        .78146E-07** at limit **
  20  norm          24.835        15.702       -.81188E-07    .48819E-01
  21  Prefactor     .55511E-10    2.6445       -.42084E-07** at limit **
  22  Prefactor     .66613E-09    31.980        .18273E-06** at limit **
  23  norm          3.3116        2.6337       -.91255E-07   -.12884E-02
  24  Normalizat    1.1810        .17834       -.15485E-05   -.10114E-04
  25  Prefactor     .66149        .21166        .29942E-05    .71323E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84195
  Prefactor  = 7.12208e-08
  Prefactor  = 82.7833
  Prefactor  = 4.09898
  norm       = 3.99126
  Prefactor  = 1.71197
  Prefactor  = 0.508084
  norm       = 5.03583
  Prefactor  = 3.82384
  norm       = 0.272535
  Prefactor  = 28.5215
  Prefactor  = 25.586
  Prefactor  = 0
  Prefactor  = 2.36311e-07
  Prefactor  = 54.5941
  norm       = 3.94037
  Prefactor  = 2.7256e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 24.8351
  Prefactor  = 5.55112e-11
  Prefactor  = 6.66134e-10
  norm       = 3.31156
  Normalizat = 1.18097
  Prefactor  = 0.661494
 **********
 **   18 **HESSE 
 **********

 FCN=   7827.404     FROM HESSE     STATUS=OK           485 CALLS     2710 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8420        11.406        .60553E-03   -1.5674    
   2  Prefactor     .71221E-07    48.647        .13201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     82.783        41.760        .11002E-03   -1.5526    
   4  Prefactor     4.0990        7.6003        .49129E-03   -1.5667    
   5  norm          3.9913        6.9196        .50623E-03   -1.5668    
   6  Prefactor     1.7120        3.3413        .80279E-03   -1.5682    
   7  Prefactor     .50808        12.571        .75137E-03   -1.5694    
   8  norm          5.0358        2.4359        .44793E-03   -1.5663    
   9  Prefactor     3.8238        5.0064        .51814E-03   -1.5669    
  10  norm          .27254        4.2736        .58576E-02   -1.5698    
  11  Prefactor     28.522        64.648        .18736E-03   -1.5601    
  12  Prefactor     25.586        21.917        .19783E-03   -1.5607    
  13  Prefactor      .0000        1.7524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .23631E-06    30.462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.594        64.464        .13533E-03   -1.5560    
  16  norm          3.9404        .44984        .43474E-03   -1.5668    
  17  Prefactor     .27256E-06    26.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    5.6478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        18.818        .16797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          24.835        15.856        .20118E-03   -1.5608    
  21  Prefactor     .55511E-10    2.6326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .66613E-09    31.853        .17015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.3116        2.6557        .55620E-03   -1.5672    
  24  Normalizat    1.1810        .15566        .50625E-01   -.87193    
  25  Prefactor     .66149        .18305        .80412E-01   -1.0506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73731e-06
Minuit parameter uncertainties:
  1  11.3867
  2  0.00372282
  3  41.7602
  4  7.60028
  5  6.91957
  6  3.34134
  7  5.05452
  8  2.43586
  9  5.00644
  10  2.15843
  11  64.6499
  12  21.9167
  13  5.38978e-06
  14  0.00536577
  15  64.4644
  16  0.449838
  17  0.00542167
  18  5.10552e-05
  19  1.74476e-05
  20  15.8558
  21  2.30695e-05
  22  0.000294836
  23  2.65572
  24  0.155723
  25  0.183211
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  0.000e+00  5.390e-06  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:  6.615e-01  1.832e-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:  1.181e+00  1.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574977/likelihoodResults_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.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) = 7827.40408194
delta logL = -0.000501905415149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7827.40358215
delta logL = -2.12373379327e-06

Fit tolerance = 1e-08

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

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

 FCN=   7827.404     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      245 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1639        .42118E-03** at limit **
   2  Index         2.0911        1.2569        .50623E-06     .0000    
   3  Normalizat    1.1810        1.1130       -.33754E-05    .70093E-05
   4  Prefactor     .66149        1.0108        .72917E-05   -.22218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.09108
  Normalizat = 1.18097
  Prefactor  = 0.661493
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7827.404     FROM HESSE     STATUS=FAILED         9 CALLS      254 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47598        1.7575        .50623E-06   -.62092    
   3  Normalizat    1.1810        1.1130       -.33754E-05   -.87193    
   4  Prefactor     .66149        1.0108        .72917E-05   -1.0506    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.10229e-12
Minuit parameter uncertainties:
  1  2.43878e-06
  2  1.27784
  3  1.13657
  4  1.04098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574977': 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) = 7827.40358003
delta logL = -1.81898940355e-12

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  0.000e+00  2.439e-06  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  2.091e+00  1.278e+00  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:  6.615e-01  1.041e+00  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:  1.181e+00  1.137e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 158.275 41.262

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/574977/cmap_HighResolution_691372801_691632001_4FGL_J1033.1+4115_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.18e-08', time_completed='2022-12-02 00:54:17.721420', job_id='574977', GAL2='0.66', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1669971257.72', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1744' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:54:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 574977: <4FGL_J1033.1+4115_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1744> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec  2 00:40:14 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:40:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:40:26 2022
Terminated at Fri Dec  2 00:54:18 2022
Results reported at Fri Dec  2 00:54:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1744 158.275 41.262 691372801 691632001 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 :                                   807.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            844 sec.

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

