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


Performing analysis on: 4FGL_J1106.0+2813_weekly_bin752
RA = 166.502, Dec = 28.2254
tmin = 693792001, tmax = 694396801
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='437994', job_status='RUN', time_executed='2023-01-03 01:41:01.643209', time_epoch_executed='1672738861.64' WHERE source_name='4FGL J1106.0+2813' and cadence='weekly' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437994

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437994/ft1_4FGL_J1106.0+2813_weekly_bin752.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437994/ft1_4FGL_J1106.0+2813_weekly_bin752.fits outfile=/scratch/kocevski/437994/ft1_filteredMKT_4FGL_J1106.0+2813_weekly_bin752.fits ra=166.502 dec=28.2254 rad=12.0 tmin=693792001.0 tmax=694396801.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.63
user 8.29
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.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/437994/ft1_filteredMKT_4FGL_J1106.0+2813_weekly_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/437994/ft1_filtered_4FGL_J1106.0+2813_weekly_bin752.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.58
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 1128

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437994/ft1_filtered_4FGL_J1106.0+2813_weekly_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/437994/ltcube_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.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/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits
.....................!
real 34.39
user 33.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437994/ft1_filtered_4FGL_J1106.0+2813_weekly_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/437994/ltcube_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.fits outfile=/scratch/kocevski/437994/expmap_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.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/437994/ltcube_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.fits
.....................!
real 192.19
user 185.94
sys 5.78

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/437994/ft1_filtered_4FGL_J1106.0+2813_weekly_bin752.fits scfile=/scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits outfile=/scratch/kocevski/437994/cmap_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437994/ft1_filtered_4FGL_J1106.0+2813_weekly_bin752.fits scfile=/scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits outfile=/scratch/kocevski/437994/cmap_HighResolution_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.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.58
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437994/ft1_filtered_4FGL_J1106.0+2813_weekly_bin752.fits', '/scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits', expMap='/scratch/kocevski/437994/expmap_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.fits', expCube='/scratch/kocevski/437994/ltcube_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437994/Model_4FGL_J1106.0+2813_weekly_bin752.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/437994/ft1_filtered_4FGL_J1106.0+2813_weekly_bin752.fits
Spacecraft file(s): /scratch/kocevski/437994/ft2_4FGL_J1106.0+2813_weekly_bin752.fits
Exposure map: /scratch/kocevski/437994/expmap_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.fits
Exposure cube: /scratch/kocevski/437994/ltcube_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437994/Model_4FGL_J1106.0+2813_weekly_bin752.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11786.178268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.291       1.0000          .0000       .10000E+07
     2 'Prefactor '    40.361       1.0000          .0000       .10000E+07
     3 'Prefactor '    .66937E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7644       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.3085       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.0086       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.283       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.692       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.842       1.0000          .0000       .10000E+07
    10 'norm      '    2.9566       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.1170       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13423E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34001E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .24929E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13688E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .25508E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .28200E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .55222E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    9.2150       1.0000          .0000       .10000E+07
    20 'norm      '    .32130E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .13384E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    2.1598       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.4907       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.8123       1.0000          .0000       .10000E+07
    25 'norm      '    31.128       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77759       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=   11784.12     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1423 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.745        31.138        .20907E-06   -.65672E-01
   2  Prefactor     40.103        20.221       -.89912E-07   -.12584    
   3  Prefactor     .58842E-08    2.1814       -.98194E-07** at limit **
   4  Prefactor     1.7697        1.8273        .54425E-07   -.16253E-02
   5  Prefactor     5.9966        5.8145        .77927E-07   -.21325E-01
   6  Prefactor     1.0123        1.1129       -.20522E-07   -.21416E-01
   7  Prefactor     16.373        5.6518       -.46390E-07    .53940E-01
   8  Prefactor     14.660        4.1843        .64787E-07    .93850E-02
   9  Prefactor     10.860        2.9007        .13568E-07   -.27050E-01
  10  norm          2.9560        .36141        .47506E-08    .60948E-03
  11  Prefactor     3.1154        2.1261        .21422E-07   -.27025E-02
  12  Prefactor     .55511E-09    3.4068        .59539E-07** at limit **
  13  Prefactor     .29032E-07    4.3980       -.33215E-07** at limit **
  14  norm          .55511E-10    35.393       -.60145E-06** at limit **
  15  Prefactor     .93259E-08    2.3879       -.75061E-07** at limit **
  16  Prefactor     .38136E-07    4.3907        .26030E-06** at limit **
  17  Prefactor      .0000        .49682       -.18720E-06** at limit **
  18  Prefactor     .77716E-09    18.071        .90890E-07** at limit **
  19  Prefactor     9.2431        2.0260        .20499E-07   -.54087E-02
  20  norm          .15543E-08    15.653       -.53104E-06** at limit **
  21  Prefactor     .16653E-09    3.1114        .45279E-06** at limit **
  22  Prefactor     2.1519        3.1024       -.37480E-07   -.69250E-03
  23  Prefactor     2.3141        1.6326       -.88920E-08   -.93648E-02
  24  Prefactor     1.8137        1.1477       -.28727E-07    .28267E-03
  25  norm          31.131        2.6041        .30581E-07   -.58920E-02
  26  Normalizat    1.2324        .16694        .70038E-05   -.15381E-03
  27  Prefactor     .77678        .17897       -.75842E-05   -.13283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7453
  Prefactor  = 40.103
  Prefactor  = 5.88418e-09
  Prefactor  = 1.76971
  Prefactor  = 5.99658
  Prefactor  = 1.01231
  Prefactor  = 16.3728
  Prefactor  = 14.6599
  Prefactor  = 10.8602
  norm       = 2.95601
  Prefactor  = 3.11545
  Prefactor  = 5.55112e-10
  Prefactor  = 2.90323e-08
  norm       = 5.55112e-11
  Prefactor  = 9.32587e-09
  Prefactor  = 3.81362e-08
  Prefactor  = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 9.24312
  norm       = 1.55431e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 2.1519
  Prefactor  = 2.3141
  Prefactor  = 1.8137
  norm       = 31.1311
  Normalizat = 1.23239
  Prefactor  = 0.776783
 **********
 **   18 **HESSE 
 **********

 FCN=   11784.12     FROM HESSE     STATUS=OK           560 CALLS     1983 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.745        40.095        .21679E-03   -1.5615    
   2  Prefactor     40.103        32.434        .15742E-03   -1.5581    
   3  Prefactor     .58842E-08    4.4862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7697        1.8535        .78836E-03   -1.5681    
   5  Prefactor     5.9966        10.728        .39941E-03   -1.5659    
   6  Prefactor     1.0123        29.811        .44071E-03   -1.5688    
   7  Prefactor     16.373        11.035        .24794E-03   -1.5627    
   8  Prefactor     14.660        10.908        .26105E-03   -1.5631    
   9  Prefactor     10.860        15.810        .30403E-03   -1.5642    
  10  norm          2.9560        .36140        .50030E-03   -1.5674    
  11  Prefactor     3.1154        2.1902        .57405E-03   -1.5673    
  12  Prefactor     .55511E-09    3.4212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29032E-07    5.0670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    3.8216        .11410E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93259E-08    4.4297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .38136E-07    5.3454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .49615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .77716E-09    18.115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2431        10.790        .32991E-03   -1.5647    
  20  norm          .15543E-08    .71097        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .16653E-09    3.1133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1519        3.1266        .70064E-03   -1.5679    
  23  Prefactor     2.3141        11.022        .64740E-03   -1.5678    
  24  Prefactor     1.8137        1.1672        .77572E-03   -1.5681    
  25  norm          31.131        2.6243        .17926E-03   -1.5596    
  26  Normalizat    1.2324        .14409        .57544E-01   -.85608    
  27  Prefactor     .77678        .15272        .78407E-01   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68154e-07
Minuit parameter uncertainties:
  1  40.0958
  2  32.434
  3  0.000324802
  4  1.85351
  5  10.7285
  6  10.987
  7  11.0347
  8  10.9084
  9  15.8099
  10  0.361403
  11  2.19024
  12  8.63078e-05
  13  0.000766952
  14  2.28595e-05
  15  0.00040675
  16  0.000903219
  17  3.14552e-06
  18  0.000240501
  19  10.7901
  20  6.65203e-05
  21  4.19417e-05
  22  3.12658
  23  10.1009
  24  1.16717
  25  2.62429
  26  0.144136
  27  0.152806
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  3.115e+00  2.190e+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

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  7.768e-01  1.528e-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:  1.232e+00  1.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.12
Ra Dec: 166.502 28.225
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 8.77e-06

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) = 11784.0583848
delta logL = 0.064677770004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11784.0521813
delta logL = 0.0708813185356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3434       1.0000          .0000       .10000E+07
     2 'Index     '    2.1542       1.0000          .0000       10.000    
     3 'Normalizat'    1.2422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77008       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.

 FCN=   11784.05     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3434        56.906        .55327E-03    .92170E-02
   2  Index         2.1541        6.0317        .24971        .21405E-04
   3  Normalizat    1.2422        .75752E-01    .57349E-01    .35070E-04
   4  Prefactor     .77008        .59961E-01    .78709E-01    .18680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.34339
  Index      = 2.15408
  Normalizat = 1.24222
  Prefactor  = 0.770076
 **********
 **   18 **HESSE 
 **********

 FCN=   11784.05     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3434        2.3583        .13416E-04   -1.5671    
   2  Index         2.1541        .57343        .10226E-01   -.60551    
   3  Normalizat    1.2422        .16274        .25361E-03   -.85308    
   4  Prefactor     .77008        .17921        .34846E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39651e-11
Minuit parameter uncertainties:
  1  2.35828
  2  0.575302
  3  0.162803
  4  0.179341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437994': 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) = 11784.0521812
delta logL = 0.0708813503934

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  3.343e+00  2.358e+00  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.154e+00  5.753e-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:  7.701e-01  1.793e-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:  1.242e+00  1.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.23
Ra Dec: 166.502 28.225
Photon Index (Free Index): 2.15 +/- 0.58
Photon Flux (Free Index): 2.93e-08 +/- 2.80e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.23e-05

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/437994/cmap_HighResolution_693792001_694396801_4FGL_J1106.0+2813_weekly_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='1.44e-05', photon_flux_error='2.58e-08', dlogl='7.09e-02', energy_flux='1.25e-05', photon_flux2='2.93e-08', job_status='DONE', time_completed='2023-01-03 01:54:39.884417', photon_index_error2='0.58', photon_index2='2.15', ts='5.12', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.23', time_epoch_completed='1672739679.88', return_code='0', job_id='437994', GAL2='0.77', EG2='1.24', return_code2='0', energy_flux_error='8.77e-06', photon_flux_error2='2.80e-08', ts2='5.23', photon_index='2.37' WHERE bin_id='752' AND source_name='4FGL J1106.0+2813' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan  3 01:54:39 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 437994: <4FGL_J1106.0+2813_weekly_bin752> in cluster <slac> Done

Job <4FGL_J1106.0+2813_weekly_bin752> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan  3 01:40:22 2023
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan  3 01:40:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan  3 01:40:28 2023
Terminated at Tue Jan  3 01:54:40 2023
Results reported at Tue Jan  3 01:54:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_weekly_bin752 166.502 28.2254 693792001 694396801 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            858 sec.

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

