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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1763
RA = 165.673, Dec = 52.8569
tmin = 696297601, tmax = 696556801
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='277832', job_status='RUN', time_executed='2023-01-28 00:47:56.113615', time_epoch_executed='1674895676.11' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277832/ft1_4FGL_J1102.6+5251_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277832/ft1_4FGL_J1102.6+5251_daily_bin1763.fits outfile=/scratch/kocevski/277832/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1763.fits ra=165.673 dec=52.8569 rad=12.0 tmin=696297601.0 tmax=696556801.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.68
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.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/277832/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/277832/ft1_filtered_4FGL_J1102.6+5251_daily_bin1763.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 535

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277832/ft1_filtered_4FGL_J1102.6+5251_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/277832/ltcube_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.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/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits
.....................!
real 14.61
user 14.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277832/ft1_filtered_4FGL_J1102.6+5251_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/277832/ltcube_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.fits outfile=/scratch/kocevski/277832/expmap_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.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/277832/ltcube_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.fits
.....................!
real 194.79
user 188.73
sys 4.98

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/277832/ft1_filtered_4FGL_J1102.6+5251_daily_bin1763.fits scfile=/scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits outfile=/scratch/kocevski/277832/cmap_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277832/ft1_filtered_4FGL_J1102.6+5251_daily_bin1763.fits scfile=/scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits outfile=/scratch/kocevski/277832/cmap_HighResolution_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277832/ft1_filtered_4FGL_J1102.6+5251_daily_bin1763.fits', '/scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits', expMap='/scratch/kocevski/277832/expmap_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.fits', expCube='/scratch/kocevski/277832/ltcube_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277832/Model_4FGL_J1102.6+5251_daily_bin1763.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/277832/ft1_filtered_4FGL_J1102.6+5251_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/277832/ft2_4FGL_J1102.6+5251_daily_bin1763.fits
Exposure map: /scratch/kocevski/277832/expmap_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.fits
Exposure cube: /scratch/kocevski/277832/ltcube_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277832/Model_4FGL_J1102.6+5251_daily_bin1763.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) = 5895.81232715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2923       1.0000          .0000       .10000E+07
     2 'Prefactor '    19.085       1.0000          .0000       .10000E+07
     3 'norm      '    1.3097       1.0000          .0000       .10000E+07
     4 'norm      '    .82473E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .96874E-05   1.0000          .0000       .10000E+07
     6 'norm      '    4.8203       1.0000          .0000       .10000E+07
     7 'Prefactor '    35.856       1.0000          .0000       .10000E+07
     8 'norm      '    9.4248       1.0000          .0000       .10000E+07
     9 'Prefactor '    .62274E-02   1.0000          .0000       .10000E+07
    10 'norm      '    3.1976       1.0000          .0000       .10000E+07
    11 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .28548E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    30.477       1.0000          .0000       .10000E+07
    14 'norm      '    1.1638       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33496E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .28845E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .33798       1.0000          .0000       .10000E+07
    18 'norm      '    .31471E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.7668       1.0000          .0000       .10000E+07
    20 'Prefactor '    26.368       1.0000          .0000       .10000E+07
    21 'norm      '    .95748E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .32761       1.0000          .0000       .10000E+07
    23 'norm      '    .34306E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    29.162       1.0000          .0000       .10000E+07
    25 'Prefactor '    2.6356       1.0000          .0000       .10000E+07
    26 'norm      '    .75053       1.0000          .0000       .10000E+07
    27 'Normalizat'    .91793       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93221       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=   5895.806     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2486 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2562        6.3898       -.66897E-06   -.49379E-02
   2  Prefactor     19.145        16.023       -.46990E-05   -.18199E-01
   3  norm          1.3100        .51768       -.75420E-07    .34500E-02
   4  norm          .11102E-09    8.3886       -.63960E-06** at limit **
   5  Prefactor      .0000        1.9373       -.53484E-06** at limit **
   6  norm          4.8194        2.7632        .29228E-06    .14802E-02
   7  Prefactor     35.734        21.670        .40357E-05   -.48633E-01
   8  norm          9.4369        1.2578        .19651E-06    .82712E-02
   9  Prefactor      .0000        5.9418        .18114E-05** at limit **
  10  norm          3.1976        1.6758       -.53400E-06    .99771E-03
  11  norm           .0000        1.2701        .13509E-05** at limit **
  12  Prefactor     .57065E-07    26.840        .63895E-05** at limit **
  13  Prefactor     29.787        81.316       -.15041E-04    .39045E-02
  14  norm          1.1632        1.2474        .99801E-06    .67290E-04
  15  Prefactor     .90317E-07    28.597       -.80338E-05** at limit **
  16  Prefactor      .0000        15.450       -.33555E-05** at limit **
  17  Prefactor     .18319E-08    87.763       -.14050E-05** at limit **
  18  norm          .34062E-06    13.196       -.17052E-05** at limit **
  19  Prefactor     6.7672        2.8360       -.29123E-07   -.14087E-01
  20  Prefactor     26.369        6.9635       -.19383E-05   -.31318E-01
  21  norm           .0000        2.8529       -.45591E-06** at limit **
  22  Prefactor     .31998        8.3111       -.20784E-05    .17189E-02
  23  norm           .0000        1.2075        .80337E-06** at limit **
  24  Prefactor     29.191        6.2578       -.17204E-05   -.58475E-01
  25  Prefactor     2.6349        3.4923        .22069E-07   -.99527E-03
  26  norm          .74190        2.0921        .28601E-06   -.37273E-03
  27  Normalizat    .91832        .17800        .80512E-05    .17589E-03
  28  Prefactor     .93229        .22766        .24754E-04    .11707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.2562
  Prefactor  = 19.1455
  norm       = 1.30997
  norm       = 1.11022e-10
  Prefactor  = 0
  norm       = 4.81941
  Prefactor  = 35.7337
  norm       = 9.43685
  Prefactor  = 0
  norm       = 3.1976
  norm       = 0
  Prefactor  = 5.70655e-08
  Prefactor  = 29.7868
  norm       = 1.16321
  Prefactor  = 9.03166e-08
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  norm       = 3.40616e-07
  Prefactor  = 6.76724
  Prefactor  = 26.3694
  norm       = 0
  Prefactor  = 0.319977
  norm       = 0
  Prefactor  = 29.1911
  Prefactor  = 2.63491
  norm       = 0.741898
  Normalizat = 0.918316
  Prefactor  = 0.932294
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.806     FROM HESSE     STATUS=OK           585 CALLS     3071 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2562        6.6856        .39993E-03   -1.5658    
   2  Prefactor     19.145        26.881        .22898E-03   -1.5620    
   3  norm          1.3100        .52373        .75825E-03   -1.5685    
   4  norm          .11102E-09    8.3698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.9348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8194        2.7677        .45797E-03   -1.5664    
   7  Prefactor     35.734        28.753        .16702E-03   -1.5588    
   8  norm          9.4369        22.226        .32620E-03   -1.5647    
   9  Prefactor      .0000        5.9430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1976        1.6777        .56638E-03   -1.5672    
  11  norm           .0000        1.2252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .57065E-07    34.365        .16528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.787        81.826        .18117E-03   -1.5599    
  14  norm          1.1632        1.2442        .10663E-02   -1.5686    
  15  Prefactor     .90317E-07    35.365        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        15.179        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18319E-08    87.643        .97055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .34062E-06    34.933        .16374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7672        7.2727        .38548E-03   -1.5656    
  20  Prefactor     26.369        27.136        .19478E-03   -1.5605    
  21  norm           .0000        2.8533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .31998        2.4577        .60639E-02   -1.5697    
  23  norm           .0000        1.2060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.191        23.694        .18521E-03   -1.5600    
  25  Prefactor     2.6349        3.5018        .62781E-03   -1.5675    
  26  norm          .74190        2.1032        .56697E-03   -1.5691    
  27  Normalizat    .91832        .15805        .45130E-01   -.95820    
  28  Prefactor     .93229        .19668        .45414E-01   -.95022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8643e-07
Minuit parameter uncertainties:
  1  6.68564
  2  26.8813
  3  0.523732
  4  6.48345e-05
  5  2.47911e-06
  6  2.76767
  7  28.7528
  8  22.2258
  9  2.41257e-05
  10  1.67765
  11  4.60427e-06
  12  0.00280102
  13  81.8289
  14  1.24424
  15  0.00357494
  16  3.99064e-05
  17  0.000800003
  18  0.006899
  19  7.27268
  20  27.1357
  21  2.59418e-07
  22  1.77358
  23  8.69049e-06
  24  23.6939
  25  3.50183
  26  2.10322
  27  0.158131
  28  0.196831
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  9.032e-08  3.575e-03  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:  9.323e-01  1.968e-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:  9.183e-01  1.581e-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: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277832/likelihoodResults_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.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) = 5895.81977705
delta logL = -0.0135158656067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5895.08362174
delta logL = 0.72263944925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11119E-02   1.0000          .0000       .10000E+07
     2 'Index     '    9.9709       1.0000          .0000       10.000    
     3 'Normalizat'    .86175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98305       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=   5895.806     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      394 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23315E-08    7995.3        .42118E-03** at limit **
   2  Index         2.9105        6.1282        .50000       -.15916E-09
   3  Normalizat    .91832        .70343E-01    .44411E-01   -.43869E-03
   4  Prefactor     .93229        .91358E-01    .46055E-01   -.28798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33147e-09
  Index      = 2.9105
  Normalizat = 0.918316
  Prefactor  = 0.932294
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.806     FROM HESSE     STATUS=OK            29 CALLS      423 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23315E-08    54.154        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9105        6.4513        .50000       -12.998    
   3  Normalizat    .91832        .17386        .21820E-03   -2.1834    
   4  Prefactor     .93229        .22639        .28085E-03   -2.1914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17679e-10
Minuit parameter uncertainties:
  1  0.000713212
  2  4.92178
  3  0.173967
  4  0.226616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277832': 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) = 5895.80626119
delta logL = 1.1796146282e-09

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  2.331e-09  7.132e-04  0.000e+00  1.000e+06 ( 1.000e-13)
395        Index:  2.911e+00  4.922e+00  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:  9.323e-01  2.266e-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:  9.183e-01  1.740e-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/277832/cmap_HighResolution_696297601_696556801_4FGL_J1102.6+5251_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2023-01-28 01:01:14.084216', job_id='277832', GAL2='0.93', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1674896474.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1763' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:01:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 277832: <4FGL_J1102.6+5251_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1763> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Jan 28 00:45:19 2023
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:45:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:45:35 2023
Terminated at Sat Jan 28 01:01:14 2023
Results reported at Sat Jan 28 01:01:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1763 165.673 52.8569 696297601 696556801 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 :                                   798.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             301.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            955 sec.

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

