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


Performing analysis on: 4FGL_J1106.0+2813_weekly_bin759
RA = 166.502, Dec = 28.2254
tmin = 698025601, tmax = 698630401
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='588494', job_status='RUN', time_executed='2023-02-21 03:25:46.587460', time_epoch_executed='1676978746.59' WHERE source_name='4FGL J1106.0+2813' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588494

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588494/ft1_4FGL_J1106.0+2813_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588494/ft1_4FGL_J1106.0+2813_weekly_bin759.fits outfile=/scratch/kocevski/588494/ft1_filteredMKT_4FGL_J1106.0+2813_weekly_bin759.fits ra=166.502 dec=28.2254 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.54
user 8.23
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.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/588494/ft1_filteredMKT_4FGL_J1106.0+2813_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.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.60
user 0.36
sys 0.18

Number of photons that the gtmktime cut: 688

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/588494/ltcube_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.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/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits
.....................!
real 27.42
user 26.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/588494/ltcube_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.fits outfile=/scratch/kocevski/588494/expmap_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.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/588494/ltcube_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.fits
.....................!
real 190.56
user 185.17
sys 4.60

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

Setting source of interest to:
4FGL J1106.0+2813 @ 166.502 28.2254

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits scfile=/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits outfile=/scratch/kocevski/588494/cmap_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.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=166.502 yref=28.2254 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.61
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits scfile=/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits outfile=/scratch/kocevski/588494/cmap_HighResolution_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.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=166.502 yref=28.2254 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.60
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/588494/Model_4FGL_J1106.0+2813_weekly_bin759.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/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits.....................!
real 61.77
user 59.93
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits', '/scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits', expMap='/scratch/kocevski/588494/expmap_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.fits', expCube='/scratch/kocevski/588494/ltcube_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588494/Model_4FGL_J1106.0+2813_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.0+2813'

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.558e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/588494/ft1_filtered_4FGL_J1106.0+2813_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/588494/ft2_4FGL_J1106.0+2813_weekly_bin759.fits
Exposure map: /scratch/kocevski/588494/expmap_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.fits
Exposure cube: /scratch/kocevski/588494/ltcube_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588494/Model_4FGL_J1106.0+2813_weekly_bin759.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) = 6975.12558625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17998E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    33.985       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.1247       1.0000          .0000       .10000E+07
     4 'Prefactor '    .25345E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.320       1.0000          .0000       .10000E+07
     6 'Prefactor '    .39988E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.001       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18001E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18547E-03   1.0000          .0000       .10000E+07
    10 'norm      '    2.0666       1.0000          .0000       .10000E+07
    11 'Prefactor '    .65775E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19094E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .19871E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .65970E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.298       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.8792       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.2906       1.0000          .0000       .10000E+07
    18 'Prefactor '    .90985E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    11.149       1.0000          .0000       .10000E+07
    20 'norm      '    8.6060       1.0000          .0000       .10000E+07
    21 'Prefactor '    8.2350       1.0000          .0000       .10000E+07
    22 'Prefactor '    10.367       1.0000          .0000       .10000E+07
    23 'Prefactor '    .51676E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .24061       1.0000          .0000       .10000E+07
    25 'norm      '    54.067       1.0000          .0000       .10000E+07
    26 'Normalizat'    .92474       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6975.031     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1927 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19750E-05    13.872        .16915E-06** at limit **
   2  Prefactor     32.416        32.070        .25423E-07    .12812E-01
   3  Prefactor     3.0719        6.9423       -.86657E-07   -.83207E-02
   4  Prefactor     .11102E-09    1.1106       -.18662E-06** at limit **
   5  Prefactor     13.324        5.2867        .91643E-08    .44903E-01
   6  Prefactor     .14394E-06    5.8641        .60773E-08** at limit **
   7  Prefactor     14.105        3.8166        .15099E-07    .35236E-01
   8  Prefactor     .38464E-06    6.9178       -.15522E-06** at limit **
   9  Prefactor     .89256E-06    9.6636       -.65231E-07** at limit **
  10  norm          2.0666        .39116       -.84373E-08   -.12151E-01
  11  Prefactor      .0000        1.3375        .73413E-07** at limit **
  12  Prefactor     .31097E-06    4.5465        .12215E-07** at limit **
  13  Prefactor     .55511E-09    4.5160        .73935E-08** at limit **
  14  norm          .38120E-06    4.5049       -.11484E-07** at limit **
  15  Prefactor     11.295        7.2030       -.19677E-08   -.13296E-01
  16  Prefactor     5.8795        6.6900        .20779E-07    .35694E-01
  17  Prefactor     1.2928        2.4376       -.58817E-07   -.69696E-03
  18  Prefactor     .11879E-07    5.6281        .36687E-07** at limit **
  19  Prefactor     11.135        3.3421       -.91828E-08   -.97698E-02
  20  norm          8.6037        3.4107        .45850E-07    .32939E-02
  21  Prefactor     8.2268        7.7836       -.25164E-07   -.36168E-01
  22  Prefactor     10.340        5.6108        .26450E-07    .41126E-02
  23  Prefactor     .23015E-06    7.6667       -.93882E-07** at limit **
  24  Prefactor     .23720        3.6181       -.12107E-06** at limit **
  25  norm          54.060        4.7696       -.24992E-07   -.43190E-02
  26  Normalizat    .92536        .21161       -.30855E-05   -.27865E-04
  27  Prefactor     1.0262        .24044        .41472E-05    .51139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97503e-06
  Prefactor  = 32.4162
  Prefactor  = 3.07187
  Prefactor  = 1.11022e-10
  Prefactor  = 13.3243
  Prefactor  = 1.4394e-07
  Prefactor  = 14.1052
  Prefactor  = 3.84637e-07
  Prefactor  = 8.92564e-07
  norm       = 2.06657
  Prefactor  = 0
  Prefactor  = 3.10973e-07
  Prefactor  = 5.55112e-10
  norm       = 3.81195e-07
  Prefactor  = 11.2948
  Prefactor  = 5.87948
  Prefactor  = 1.2928
  Prefactor  = 1.18794e-08
  Prefactor  = 11.1355
  norm       = 8.60369
  Prefactor  = 8.22682
  Prefactor  = 10.3396
  Prefactor  = 2.30149e-07
  Prefactor  = 0.237201
  norm       = 54.0596
  Normalizat = 0.925363
  Prefactor  = 1.02625
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.031     FROM HESSE     STATUS=OK           548 CALLS     2475 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19750E-05    22.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.416        32.332        .17156E-03   -1.5594    
   3  Prefactor     3.0719        7.3233        .57330E-03   -1.5673    
   4  Prefactor     .11102E-09    1.1084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.324        12.592        .27419E-03   -1.5635    
   6  Prefactor     .14394E-06    21.607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.105        15.635        .26743E-03   -1.5633    
   8  Prefactor     .38464E-06    11.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .89256E-06    21.159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0666        .39092        .49752E-03   -1.5679    
  11  Prefactor      .0000        1.3338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31097E-06    6.4589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-09    4.5471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38120E-06    6.6790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.295        7.3632        .29781E-03   -1.5641    
  16  Prefactor     5.8795        9.1977        .41393E-03   -1.5659    
  17  Prefactor     1.2928        2.4833        .97442E-03   -1.5685    
  18  Prefactor     .11879E-07    21.665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.135        11.713        .29979E-03   -1.5641    
  20  norm          8.6037        3.4315        .34146E-03   -1.5649    
  21  Prefactor     8.2268        9.4933        .34912E-03   -1.5651    
  22  Prefactor     10.340        5.6353        .31094E-03   -1.5644    
  23  Prefactor     .23015E-06    11.227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .23720        1.6355        .32307E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          54.060        4.7835        .13601E-03   -1.5561    
  26  Normalizat    .92536        .18151        .45217E-01   -.95575    
  27  Prefactor     1.0262        .20469        .70937E-01   -.91860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56678e-07
Minuit parameter uncertainties:
  1  0.0134147
  2  32.3319
  3  7.32336
  4  2.10096e-05
  5  12.5919
  6  0.003527
  7  15.6346
  8  0.00427203
  9  0.00869165
  10  0.390918
  11  1.00121e-05
  12  0.0028345
  13  9.82449e-05
  14  0.00319131
  15  7.36317
  16  9.19775
  17  2.48333
  18  0.00101427
  19  11.7134
  20  3.43145
  21  9.49333
  22  5.6353
  23  0.0032149
  24  1.24571
  25  4.7835
  26  0.181629
  27  0.204844
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  1.001e-05  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.026e+00  2.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.254e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 166.502 28.225
Photon Flux Upper Limit: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588494/likelihoodResults_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.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) = 6975.03566703
delta logL = -0.00509720867103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6975.03057389
delta logL = -4.06912840845e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6975.031     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      250 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0150        .42118E-03** at limit **
   2  Index         1.7573        .82497        .75500E-05     .0000    
   3  Normalizat    .92536        1.2595       -.33314E-04    .11254E-03
   4  Prefactor     1.0262        1.2252        .36720E-04    .11169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.75728
  Normalizat = 0.925364
  Prefactor  = 1.02624
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6975.031     FROM HESSE     STATUS=FAILED         9 CALLS      259 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .31199        1.5224        .75500E-05   -.70567    
   3  Normalizat    .92536        1.2595       -.33314E-04   -.95575    
   4  Prefactor     1.0262        1.2252        .36720E-04   -.91860    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.04111e-11
Minuit parameter uncertainties:
  1  6.64956e-06
  2  0.83157
  3  1.30348
  4  1.26123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588494': 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) = 6975.03056982
delta logL = 8.18545231596e-12

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  0.000e+00  6.650e-06  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  1.757e+00  8.316e-01  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.026e+00  1.261e+00  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.254e-01  1.303e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 166.502 28.225

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/588494/cmap_HighResolution_698025601_698630401_4FGL_J1106.0+2813_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2023-02-21 03:38:04.819854', job_id='588494', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1676979484.82', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.19e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='759' AND source_name='4FGL J1106.0+2813' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:38:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 588494: <4FGL_J1106.0+2813_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1106.0+2813_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:25:20 2023
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:25:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:25:22 2023
Terminated at Tue Feb 21 03:38:05 2023
Results reported at Tue Feb 21 03:38:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_weekly_bin759 166.502 28.2254 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.0+2813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   737.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

