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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1718
RA = 165.673, Dec = 52.8569
tmin = 684633601, tmax = 684892801
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='98955', job_status='RUN', time_executed='2022-09-16 15:42:58.841836', time_epoch_executed='1663368178.84' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98955/ft1_4FGL_J1102.6+5251_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98955/ft1_4FGL_J1102.6+5251_daily_bin1718.fits outfile=/scratch/kocevski/98955/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1718.fits ra=165.673 dec=52.8569 rad=12.0 tmin=684633601.0 tmax=684892801.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 3.25
user 3.05
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.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/98955/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/98955/ft1_filtered_4FGL_J1102.6+5251_daily_bin1718.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.51
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 274

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98955/ft1_filtered_4FGL_J1102.6+5251_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/98955/ltcube_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.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/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits
.....................!
real 15.68
user 15.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98955/ft1_filtered_4FGL_J1102.6+5251_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/98955/ltcube_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.fits outfile=/scratch/kocevski/98955/expmap_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.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/98955/ltcube_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.fits
.....................!
real 191.33
user 186.00
sys 4.95

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/98955/ft1_filtered_4FGL_J1102.6+5251_daily_bin1718.fits scfile=/scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits outfile=/scratch/kocevski/98955/cmap_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98955/ft1_filtered_4FGL_J1102.6+5251_daily_bin1718.fits scfile=/scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits outfile=/scratch/kocevski/98955/cmap_HighResolution_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98955/ft1_filtered_4FGL_J1102.6+5251_daily_bin1718.fits', '/scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits', expMap='/scratch/kocevski/98955/expmap_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.fits', expCube='/scratch/kocevski/98955/ltcube_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98955/Model_4FGL_J1102.6+5251_daily_bin1718.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  0.000e+00  1.000e+06 ( 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/98955/ft1_filtered_4FGL_J1102.6+5251_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/98955/ft2_4FGL_J1102.6+5251_daily_bin1718.fits
Exposure map: /scratch/kocevski/98955/expmap_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.fits
Exposure cube: /scratch/kocevski/98955/ltcube_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98955/Model_4FGL_J1102.6+5251_daily_bin1718.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) = 2978.56289825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.725       1.0000          .0000       .10000E+07
     2 'Prefactor '    .84121E-02   1.0000          .0000       .10000E+07
     3 'norm      '    2.1419       1.0000          .0000       .10000E+07
     4 'norm      '    .66438E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .41250E-05   1.0000          .0000       .10000E+07
     6 'norm      '    3.1055       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11649E-01   1.0000          .0000       .10000E+07
     8 'norm      '    14.038       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16069E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.3277       1.0000          .0000       .10000E+07
    11 'norm      '    2.5662       1.0000          .0000       .10000E+07
    12 'Prefactor '    127.66       1.0000          .0000       .10000E+07
    13 'Prefactor '    279.16       1.0000          .0000       .10000E+07
    14 'norm      '    3.8651       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11090       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12929E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15621       1.0000          .0000       .10000E+07
    18 'norm      '    .16898E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .46499E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    50.411       1.0000          .0000       .10000E+07
    21 'norm      '    7.1596       1.0000          .0000       .10000E+07
    22 'Prefactor '    9.9559       1.0000          .0000       .10000E+07
    23 'norm      '    2.3292       1.0000          .0000       .10000E+07
    24 'Prefactor '    .15020       1.0000          .0000       .10000E+07
    25 'Prefactor '    .74414E-03   1.0000          .0000       .10000E+07
    26 'norm      '    2.2923       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .30012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2978.556     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2643 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.742        9.7003       -.12848E-05    .11390E-01
   2  Prefactor     .94369E-09    13.511        .23874E-05** at limit **
   3  norm          2.1422        .64417        .18409E-07   -.29702E-01
   4  norm          .15543E-08    8.4497        .53881E-06** at limit **
   5  Prefactor      .0000        3.1473        .83992E-07** at limit **
   6  norm          3.1061        2.3958       -.27662E-07    .99327E-02
   7  Prefactor     .26090E-08    14.738       -.33995E-05** at limit **
   8  norm          14.038        1.0346        .34965E-07    .20150E-02
   9  Prefactor     .55511E-10    9.3853       -.93184E-06** at limit **
  10  norm          1.3253        2.0395       -.69641E-07    .47236E-03
  11  norm          2.5659        1.7755       -.57705E-07    .18177E-01
  12  Prefactor     125.11        194.69       -.39735E-05    .57538E-02
  13  Prefactor     278.39        59.894       -.80369E-06   -.25343E-01
  14  norm          3.8767        2.8835       -.67069E-09   -.20348E-02
  15  Prefactor     .64054E-06    45.100       -.10127E-04** at limit **
  16  Prefactor     .56066E-08    17.313        .12624E-05** at limit **
  17  Prefactor     .10788E-05    41.940       -.12203E-04** at limit **
  18  norm          .49960E-09    37.102        .69420E-07** at limit **
  19  Prefactor     .32752E-08    5.3650        .82814E-06** at limit **
  20  Prefactor     50.116        36.647        .11429E-05   -.79385E-03
  21  norm          7.1632        9.7251       -.38580E-05   -.26257E-01
  22  Prefactor     9.9529        3.1022       -.24875E-06    .33090E-02
  23  norm          2.3308        5.6174        .23888E-06    .45611E-03
  24  Prefactor     .53108E-06    40.371        .48648E-05** at limit **
  25  Prefactor     .10547E-08    26.254       -.46446E-06** at limit **
  26  norm          2.2623        8.2047       -.27994E-05    .10314E-01
  27  Normalizat    1.2187        .24029       -.12380E-05    .40516E-03
  28  Prefactor     .30021        .28826        .29310E-04    .36650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7416
  Prefactor  = 9.4369e-10
  norm       = 2.14221
  norm       = 1.55431e-09
  Prefactor  = 0
  norm       = 3.10614
  Prefactor  = 2.60902e-09
  norm       = 14.0382
  Prefactor  = 5.55112e-11
  norm       = 1.32527
  norm       = 2.56587
  Prefactor  = 125.106
  Prefactor  = 278.391
  norm       = 3.87665
  Prefactor  = 6.40543e-07
  Prefactor  = 5.60663e-09
  Prefactor  = 1.0788e-06
  norm       = 4.996e-10
  Prefactor  = 3.27516e-09
  Prefactor  = 50.1158
  norm       = 7.16324
  Prefactor  = 9.95287
  norm       = 2.33083
  Prefactor  = 5.31075e-07
  Prefactor  = 1.05471e-09
  norm       = 2.26232
  Normalizat = 1.21869
  Prefactor  = 0.300211
 **********
 **   18 **HESSE 
 **********

 FCN=   2978.556     FROM HESSE     STATUS=OK           575 CALLS     3218 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.742        12.015        .24464E-03   -1.5626    
   2  Prefactor     .94369E-09    13.541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1422        .64361        .52168E-03   -1.5679    
   4  norm          .15543E-08    8.4755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.1470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1061        2.3936        .57517E-03   -1.5673    
   7  Prefactor     .26090E-08    14.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.038        15.370        .26707E-03   -1.5633    
   9  Prefactor     .55511E-10    9.4016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3253        2.0867        .95320E-03   -1.5685    
  11  norm          2.5659        1.7778        .63696E-03   -1.5676    
  12  Prefactor     125.11        204.70        .88513E-04   -1.5484    
  13  Prefactor     278.39        190.17        .59860E-04   -1.5374    
  14  norm          3.8767        2.8977        .51303E-03   -1.5669    
  15  Prefactor     .64054E-06    56.897        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56066E-08    17.328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10788E-05    65.008        .12614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .49960E-09    37.124        .17250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .32752E-08    5.3763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     50.116        36.578        .14085E-03   -1.5566    
  21  norm          7.1632        11.044        .37465E-03   -1.5654    
  22  Prefactor     9.9529        13.760        .31733E-03   -1.5645    
  23  norm          2.3308        5.6662        .67170E-03   -1.5677    
  24  Prefactor     .53108E-06    63.897        .12739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10547E-08    26.183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2623        17.248        .67768E-03   -1.5678    
  27  Normalizat    1.2187        .24022        .34458E-01   -.86027    
  28  Prefactor     .30021        .29506        .10184       -1.2225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54481e-07
Minuit parameter uncertainties:
  1  12.015
  2  0.000227739
  3  0.64361
  4  0.000229352
  5  1.64899e-05
  6  2.39356
  7  0.000391555
  8  15.3697
  9  5.28016e-05
  10  2.0867
  11  1.77782
  12  204.713
  13  190.173
  14  2.89767
  15  0.0120742
  16  0.00062429
  17  0.0167491
  18  0.000269907
  19  0.000265871
  20  36.578
  21  11.0439
  22  13.7601
  23  5.66617
  24  0.0116505
  25  0.000333803
  26  12.4932
  27  0.240436
  28  0.296549
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  6.405e-07  1.207e-02  0.000e+00  1.000e+06 ( 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:  3.002e-01  2.965e-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:  1.219e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 165.673 52.857
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98955/likelihoodResults_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.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): 102
logL (Free Index) = 2978.55625775
delta logL = -2.00194858735e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2978.28078138
delta logL = 0.275456347345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22423E-01   1.0000          .0000       .10000E+07
     2 'Index     '    8.2189       1.0000          .0000       10.000    
     3 'Normalizat'    1.1634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34558       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=   2978.281     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      333 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21408E-01    .63418        .25661E-03** at limit **
   2  Index         8.2509        8.2918        .27224        .38744E-04
   3  Normalizat    1.1629        .40718E-01    .35858E-01    .34829E-04
   4  Prefactor     .34601        .50635E-01    .95319E-01    .40368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0214076
  Index      = 8.25091
  Normalizat = 1.16293
  Prefactor  = 0.346012
 **********
 **   18 **HESSE 
 **********

 FCN=   2978.281     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      366 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21408E-01    2.2771        .11571E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.2509        7.8040        .10443E-01    .70782    
   3  Normalizat    1.1629        .16965        .19450E-03   -.87756    
   4  Prefactor     .34601        .20591        .42262E-03   -1.1966    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58728e-08
Minuit parameter uncertainties:
  1  0.441577
  2  12.7587
  3  0.169727
  4  0.206349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98955': 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): 102
logL (Free Index) = 2978.28076273
delta logL = 0.275475001562

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  2.141e-02  4.416e-01  0.000e+00  1.000e+06 ( 1.000e-13)
395        Index:  8.251e+00  1.276e+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:  3.460e-01  2.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:  1.163e+00  1.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 165.673 52.857

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/98955/cmap_HighResolution_684633601_684892801_4FGL_J1102.6+5251_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2022-09-16 15:52:29.900697', job_id='98955', GAL2='0.35', fit_tolerance='1e-08', EG2='1.16', EG='1.22', time_epoch_completed='1663368749.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.30', dlogl='2.75e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1718' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:52:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 98955: <4FGL_J1102.6+5251_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1718> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:40:18 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:42:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:42:00 2022
Terminated at Fri Sep 16 15:52:30 2022
Results reported at Fri Sep 16 15:52:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1718 165.673 52.8569 684633601 684892801 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 :                                   573.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            732 sec.

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

