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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1759
RA = 158.275, Dec = 41.262
tmin = 695260801, tmax = 695520001
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='554438', job_status='RUN', time_executed='2023-01-16 01:02:18.157430', time_epoch_executed='1673859738.16' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554438/ft1_4FGL_J1033.1+4115_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554438/ft2_4FGL_J1033.1+4115_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554438/ft1_4FGL_J1033.1+4115_daily_bin1759.fits outfile=/scratch/kocevski/554438/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1759.fits ra=158.275 dec=41.262 rad=12.0 tmin=695260801.0 tmax=695520001.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.75
user 2.54
sys 0.20

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

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

Number of photons that the gtmktime cut: 303

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554438/ft1_filtered_4FGL_J1033.1+4115_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/554438/ft2_4FGL_J1033.1+4115_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/554438/ltcube_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.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/554438/ft2_4FGL_J1033.1+4115_daily_bin1759.fits
.....................!
real 15.58
user 15.10
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554438/ft1_filtered_4FGL_J1033.1+4115_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554438/ft2_4FGL_J1033.1+4115_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/554438/ltcube_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.fits outfile=/scratch/kocevski/554438/expmap_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.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/554438/ltcube_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.fits
.....................!
real 193.99
user 187.31
sys 5.81

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/554438/ft1_filtered_4FGL_J1033.1+4115_daily_bin1759.fits scfile=/scratch/kocevski/554438/ft2_4FGL_J1033.1+4115_daily_bin1759.fits outfile=/scratch/kocevski/554438/cmap_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554438/ft1_filtered_4FGL_J1033.1+4115_daily_bin1759.fits scfile=/scratch/kocevski/554438/ft2_4FGL_J1033.1+4115_daily_bin1759.fits outfile=/scratch/kocevski/554438/cmap_HighResolution_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.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.58
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52019E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    14.195       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15297E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    27.990       1.0000          .0000       .10000E+07
     5 'norm      '    32.737       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35159E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29265E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .42704E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14805E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .31990E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    92.987       1.0000          .0000       .10000E+07
    12 'Prefactor '    49.710       1.0000          .0000       .10000E+07
    13 'Prefactor '    .65131E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .84880E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    51.174       1.0000          .0000       .10000E+07
    16 'norm      '    3.4672       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21137       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15411E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .18077       1.0000          .0000       .10000E+07
    20 'norm      '    .38255E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23625E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .16900E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .92567       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.5257       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75396       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=   3380.451     FROM MIGRAD    STATUS=CONVERGED    265 CALLS     2239 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    33.694       -.11138E-05** at limit **
   2  Prefactor     20.346        71.394        .54295E-06    .98321E-02
   3  Prefactor     .44409E-09    108.44       -.26439E-06** at limit **
   4  Prefactor     28.126        33.745        .35732E-06    .34366E-02
   5  norm          32.224        27.216       -.71967E-06    .49519E-03
   6  Prefactor      .0000        11.908       -.77645E-07** at limit **
   7  Prefactor      .0000        5.6329       -.26904E-07** at limit **
   8  norm           .0000        21.700        .58956E-06** at limit **
   9  Prefactor      .0000        4.5784        .19853E-06** at limit **
  10  norm           .0000        49.092       -.16463E-06** at limit **
  11  Prefactor     88.693        85.541       -.21035E-06   -.74185E-02
  12  Prefactor     51.850        19.334        .13295E-06   -.63068E-01
  13  Prefactor      .0000        4.9324       -.93415E-07** at limit **
  14  Prefactor     .55511E-10    105.58       -.29177E-06** at limit **
  15  Prefactor     73.581        155.79       -.46094E-06   -.10111E-03
  16  norm          3.4668        .67003       -.57788E-08   -.91495E-03
  17  Prefactor     .62172E-08    300.62       -.29982E-05** at limit **
  18  Prefactor      .0000        48.443        .90926E-07** at limit **
  19  Prefactor      .0000        123.79       -.82059E-06** at limit **
  20  norm           .0000        118.39       -.62153E-06** at limit **
  21  Prefactor      .0000        2.7970        .45285E-08** at limit **
  22  Prefactor     .64948E-08    64.340        .97836E-07** at limit **
  23  norm          .96811        5.9273       -.33903E-06   -.43427E-04
  24  Normalizat    1.5167        .32597        .65106E-06    .12620E-05
  25  Prefactor     .75416        .37335        .31307E-05    .85744E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 20.3458
  Prefactor  = 4.44089e-10
  Prefactor  = 28.1262
  norm       = 32.2244
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 88.6929
  Prefactor  = 51.8497
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 73.5809
  norm       = 3.46682
  Prefactor  = 6.21725e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 6.4948e-09
  norm       = 0.968115
  Normalizat = 1.51673
  Prefactor  = 0.754164
 **********
 **   18 **HESSE 
 **********

 FCN=   3380.451     FROM HESSE     STATUS=OK           503 CALLS     2742 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    33.045        .15461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.346        73.739        .26558E-03   -1.5618    
   3  Prefactor     .44409E-09    109.23        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.126        33.744        .18905E-03   -1.5602    
   5  norm          32.224        27.267        .17480E-03   -1.5594    
   6  Prefactor      .0000        12.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        5.6387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.3652        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        4.6009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        13.158        .10986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     88.693        86.157        .10371E-03   -1.5520    
  12  Prefactor     51.850        64.721        .14184E-03   -1.5564    
  13  Prefactor      .0000        4.9300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    103.08        .14355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.581        155.17        .13980E-03   -1.5536    
  16  norm          3.4668        .69487        .45323E-03   -1.5671    
  17  Prefactor     .62172E-08    24.994        .11577E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        22.665        .87020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        124.17        .12128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        18.329        .12874E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        2.7917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .64948E-08    64.514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96811        5.9969        .44001E-03   -1.5688    
  24  Normalizat    1.5167        .28070        .55036E-01   -.77309    
  25  Prefactor     .75416        .32520        .88318E-01   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92374e-07
Minuit parameter uncertainties:
  1  8.86546e-05
  2  73.7421
  3  0.000428191
  4  33.7441
  5  27.2676
  6  2.00304e-07
  7  6.40089e-07
  8  4.29279e-06
  9  1.69223e-06
  10  6.47926e-06
  11  86.1582
  12  64.7222
  13  1.16541e-06
  14  0.000128815
  15  155.179
  16  0.694874
  17  0.000786969
  18  8.26084e-06
  19  0.000103578
  20  2.93447e-05
  21  1.63805e-06
  22  0.00129704
  23  4.81901
  24  0.280989
  25  0.326024
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  0.000e+00  1.165e-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:  7.542e-01  3.260e-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.517e+00  2.810e-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: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554438/likelihoodResults_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.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) = 3380.4518895
delta logL = -0.000816597651465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3380.45107324
delta logL = -3.34592186846e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11156E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.2913       1.0000          .0000       10.000    
     3 'Normalizat'    1.5167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75418       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=   3379.981     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      398 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24060E-04    .33650E-04    .78871E-05** at limit **
   2  Index        10.0000        1.6374        .50000    ** at limit **
   3  Normalizat    1.4472        .27749        .56049E-01    .39150E-03
   4  Prefactor     .81238        .32296        .85469E-01    .11853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40596e-05
  Index      = 10
  Normalizat = 1.44721
  Prefactor  = 0.812378
 **********
 **   18 **HESSE 
 **********

 FCN=   3379.981     FROM HESSE     STATUS=OK            35 CALLS      433 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24060E-04    .33320E-04    .74902E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.8614        .45016        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4472        .32687        .24783E-03   -.79273    
   4  Prefactor     .81238        .38158        .37851E-03   -.99274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95001e-07
Minuit parameter uncertainties:
  1  3.33197e-05
  2  0.00012314
  3  0.327349
  4  0.382835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554438': 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) = 3379.98121905
delta logL = 0.469853852418

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.406e-05  3.332e-05  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  1.000e+01  1.231e-04  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:  8.124e-01  3.828e-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.447e+00  3.273e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/554438/cmap_HighResolution_695260801_695520001_4FGL_J1033.1+4115_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2023-01-16 01:11:25.799426', job_id='554438', GAL2='0.81', fit_tolerance='1e-08', EG2='1.45', EG='1.52', time_epoch_completed='1673860285.8', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.70e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1759' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:11:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 554438: <4FGL_J1033.1+4115_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 00:55:44 2023
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:00:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:00:27 2023
Terminated at Mon Jan 16 01:11:26 2023
Results reported at Mon Jan 16 01:11:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1759 158.275 41.262 695260801 695520001 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            942 sec.

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

