aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 8 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1102.6+5251_weekly_bin502
RA = 165.673, Dec = 52.8569
tmin = 542592001, tmax = 543196801
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='669526', job_status='RUN', time_executed='2021-07-17 15:52:14.729649', time_epoch_executed='1626562334.73' WHERE source_name='4FGL J1102.6+5251' and cadence='weekly' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669526

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669526/ft1_4FGL_J1102.6+5251_weekly_bin502.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669526/ft1_4FGL_J1102.6+5251_weekly_bin502.fits outfile=/scratch/kocevski/669526/ft1_filteredMKT_4FGL_J1102.6+5251_weekly_bin502.fits ra=165.673 dec=52.8569 rad=12.0 tmin=542592001.0 tmax=543196801.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 6.98
user 6.66
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.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/669526/ft1_filteredMKT_4FGL_J1102.6+5251_weekly_bin502.fits evtable="EVENTS" outfile="/scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.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.53
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/669526/ltcube_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.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/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits
.....................!
real 16.07
user 15.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/669526/ltcube_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.fits outfile=/scratch/kocevski/669526/expmap_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.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/669526/ltcube_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.fits
.....................!
real 191.97
user 186.85
sys 4.40

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

Setting source of interest to:
4FGL J1102.6+5251 @ 165.673 52.8569

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits scfile=/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits outfile=/scratch/kocevski/669526/cmap_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.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=165.673 yref=52.8569 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits scfile=/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits outfile=/scratch/kocevski/669526/cmap_HighResolution_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.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=165.673 yref=52.8569 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669526/Model_4FGL_J1102.6+5251_weekly_bin502.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/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits.....................!
real 36.77
user 35.42
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits', '/scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits', expMap='/scratch/kocevski/669526/expmap_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.fits', expCube='/scratch/kocevski/669526/ltcube_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669526/Model_4FGL_J1102.6+5251_weekly_bin502.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1102.6+5251'

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  9.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669526/ft1_filtered_4FGL_J1102.6+5251_weekly_bin502.fits
Spacecraft file(s): /scratch/kocevski/669526/ft2_4FGL_J1102.6+5251_weekly_bin502.fits
Exposure map: /scratch/kocevski/669526/expmap_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.fits
Exposure cube: /scratch/kocevski/669526/ltcube_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669526/Model_4FGL_J1102.6+5251_weekly_bin502.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) = 3015.32270717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    141.13       1.0000         .10000E-03   10000.    
     3 'norm      '    .82226       1.0000         .10000E-03   10000.    
     4 'norm      '    .12427E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9105       1.0000         .10000E-03   10000.    
     6 'norm      '    7.7688       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28525E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .62478E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5795       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    184.20       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.861       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    155.39       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74728       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3015.317     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3706 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8596        .40757E-08** at limit **
   2  Prefactor     141.14        64.497        .53978E-05   -.14334E-04
   3  norm          .82226        .43939       -.33387E-07   -.18504E-03
   4  norm          .10055E-03    14.614        .45712E-05** at limit **
   5  Prefactor     8.9080        7.2781        .12729E-05   -.82432E-03
   6  norm          7.7686        4.2315       -.67812E-07   -.58814E-03
   7  Prefactor     .10000E-03    13.568       -.12969E-04** at limit **
   8  norm          .10000E-03    114.88       -.69312E-05** at limit **
   9  Prefactor     .10000E-03    72.482        .57333E-05** at limit **
  10  norm          3.5806        2.6329        .11318E-06   -.35923E-03
  11  norm          2.1525        1.6824        .65427E-07    .80090E-05
  12  Prefactor     .10000E-03    55.229        .24240E-04** at limit **
  13  Prefactor     .10000E-03    82.243       -.41429E-04** at limit **
  14  Prefactor     184.23        174.52        .21171E-04   -.99587E-05
  15  norm          .10000E-03    1.6781        .99866E-07** at limit **
  16  Prefactor     66.868        71.182        .64778E-05   -.19590E-04
  17  Prefactor     .10000E-03    17.053        .72780E-05** at limit **
  18  Prefactor     155.41        124.22        .11288E-04   -.45963E-05
  19  norm          .10000E-03    38.735       -.57967E-05** at limit **
  20  Prefactor     .10000E-03    3.8056       -.66011E-07** at limit **
  21  Prefactor     .10000E-03    13.049       -.12641E-05** at limit **
  22  norm          .10000E-03    26.350        .24062E-05** at limit **
  23  Prefactor     .10000E-03    1.9898       -.30020E-08** at limit **
  24  norm          .10000E-03    5.5634        .72714E-07** at limit **
  25  Prefactor     .10000E-03    12.947        .17742E-05** at limit **
  26  Prefactor     .10000E-03    31.541       -.12087E-04** at limit **
  27  norm          .10006E-03    3.9293        .29711E-05** at limit **
  28  Normalizat    .74718        .22977       -.60406E-05   -.48435E-03
  29  Prefactor     .84262        .26586        .54735E-06   -.43736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 141.141
  norm       = 0.822264
  norm       = 0.000100546
  Prefactor  = 8.90798
  norm       = 7.76856
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.5806
  norm       = 2.15251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 184.233
  norm       = 0.0001
  Prefactor  = 66.8676
  Prefactor  = 0.0001
  Prefactor  = 155.406
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100057
  Normalizat = 0.747179
  Prefactor  = 0.842619
 **********
 **   18 **HESSE 
 **********

 FCN=   3015.317     FROM HESSE     STATUS=OK           539 CALLS     4245 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9299        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     141.14        64.667        .33911E-04   -1.3326    
   3  norm          .82226        .44021        .25469E-04   -1.5527    
   4  norm          .10055E-03    62.813        .38597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9080        7.1383        .12067E-03   -1.5111    
   6  norm          7.7686        4.2230        .78724E-04   -1.5150    
   7  Prefactor     .10000E-03    13.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    118.30        .42822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    73.623        .42085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5806        2.6018        .72325E-04   -1.5329    
  11  norm          2.1525        1.6865        .61096E-04   -1.5415    
  12  Prefactor     .10000E-03    55.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    82.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     184.23        174.68        .14874E-03   -1.2985    
  15  norm          .10000E-03    1.7001        .69439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.868        71.239        .49084E-04   -1.4071    
  17  Prefactor     .10000E-03    17.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     155.41        124.29        .16170E-03   -1.3208    
  19  norm          .10000E-03    38.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8112        .10462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    26.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9918        .75648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.5883        .12649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    31.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10006E-03    12.753        .20595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .74718        .26552        .24579E-03   -1.0206    
  29  Prefactor     .84262        .31182        .28602E-03   -.98176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35611e-08
Minuit parameter uncertainties:
  1  7.39173e-06
  2  64.6996
  3  0.440209
  4  0.0117201
  5  7.13898
  6  4.22313
  7  1.08051e-06
  8  0.000603848
  9  8.22463e-05
  10  2.60186
  11  1.68649
  12  2.11046e-06
  13  7.33472e-06
  14  175.172
  15  4.3689e-06
  16  71.3297
  17  1.70581e-05
  18  124.497
  19  5.49359e-06
  20  3.9032e-06
  21  6.95822e-06
  22  3.33906e-05
  23  5.40571e-07
  24  1.88045e-05
  25  4.5756e-06
  26  0.000135851
  27  0.00170443
  28  0.265976
  29  0.312474
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  6.687e+01  7.133e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  8.426e-01  3.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  7.472e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 165.673 52.857
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 9.99e-06 +/- 1.07e-05

TS (Fixed Index): 1.58
Ra Dec: 165.673 52.857
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/669526/likelihoodResults_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.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) = 3013.68874082
delta logL = 1.62801342549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3013.68796179
delta logL = 1.62879245462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.53       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3566       1.0000          .0000       10.000    
     3 'Normalizat'    .76265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3013.688     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.04        74.100        .97865E-03   -.48180E-04
   2  Index         1.3581        .29411        .10414        .14038E-04
   3  Normalizat    .76262        .21189        .43121E-01    .10216E-04
   4  Prefactor     .80662        .26203        .65695E-01    .39628E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.042
  Index      = 1.3581
  Normalizat = 0.762619
  Prefactor  = 0.806618
 **********
 **   18 **HESSE 
 **********

 FCN=   3013.688     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.04        96.918        .39146E-04   -1.3645    
   2  Index         1.3581        .40152        .44250E-02   -.81595    
   3  Normalizat    .76262        .24756        .24273E-03   -1.0147    
   4  Prefactor     .80662        .30568        .29061E-03   -.99485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83947e-11
Minuit parameter uncertainties:
  1  97.0633
  2  0.402445
  3  0.247924
  4  0.30633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669526': 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) = 3013.68794851
delta logL = 1.62880572714

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.060e+02  9.706e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  1.358e+00  4.024e-01  0.000e+00  1.000e+01 (-1.000e+00)
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  8.066e-01  3.063e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  7.626e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 165.673 52.857
Photon Index (Free Index): 1.36 +/- 0.40
Photon Flux (Free Index): 2.84e-08 +/- 2.29e-08
Energy Flux (Free Index): 1.44e-04 +/- 1.58e-04

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/669526/cmap_HighResolution_542592001_543196801_4FGL_J1102.6+5251_weekly_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='1.44e-04', photon_flux_error='4.31e-08', dlogl='1.63e+00', energy_flux='9.99e-06', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-07-17 16:03:02.894847', photon_index_error2='0.40', photon_index2='1.36', ts='1.58', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.58e-04', EG='0.75', time_epoch_completed='1626562982.89', return_code='0', job_id='669526', GAL2='0.81', EG2='0.76', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.29e-08', ts2='4.82', photon_index='2.67' WHERE bin_id='502' AND source_name='4FGL J1102.6+5251' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 16:03:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 669526: <4FGL_J1102.6+5251_weekly_bin502> in cluster <slac> Done

Job <4FGL_J1102.6+5251_weekly_bin502> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Jul 17 15:50:51 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 15:51:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 15:51:57 2021
Terminated at Sat Jul 17 16:03:03 2021
Results reported at Sat Jul 17 16:03:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_weekly_bin502 165.673 52.8569 542592001 543196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1102.6+5251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            732 sec.

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

