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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1750
RA = 165.673, Dec = 52.8569
tmin = 692928001, tmax = 693187201
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='6745', job_status='RUN', time_executed='2022-12-20 00:36:22.779652', time_epoch_executed='1671525382.78' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6745

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6745/ft1_4FGL_J1102.6+5251_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6745/ft2_4FGL_J1102.6+5251_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6745/ft1_4FGL_J1102.6+5251_daily_bin1750.fits outfile=/scratch/kocevski/6745/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1750.fits ra=165.673 dec=52.8569 rad=12.0 tmin=692928001.0 tmax=693187201.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.51
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/6745/ft2_4FGL_J1102.6+5251_daily_bin1750.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/6745/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/6745/ft1_filtered_4FGL_J1102.6+5251_daily_bin1750.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 620

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6745/ft1_filtered_4FGL_J1102.6+5251_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/6745/ft2_4FGL_J1102.6+5251_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/6745/ltcube_692928001_693187201_4FGL_J1102.6+5251_daily_bin1750.fits outfile=/scratch/kocevski/6745/expmap_692928001_693187201_4FGL_J1102.6+5251_daily_bin1750.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/6745/ltcube_692928001_693187201_4FGL_J1102.6+5251_daily_bin1750.fits
.....................!
real 190.90
user 186.05
sys 4.48

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/6745/ft1_filtered_4FGL_J1102.6+5251_daily_bin1750.fits scfile=/scratch/kocevski/6745/ft2_4FGL_J1102.6+5251_daily_bin1750.fits outfile=/scratch/kocevski/6745/cmap_692928001_693187201_4FGL_J1102.6+5251_daily_bin1750.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6745/ft1_filtered_4FGL_J1102.6+5251_daily_bin1750.fits scfile=/scratch/kocevski/6745/ft2_4FGL_J1102.6+5251_daily_bin1750.fits outfile=/scratch/kocevski/6745/cmap_HighResolution_692928001_693187201_4FGL_J1102.6+5251_daily_bin1750.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.906       1.0000          .0000       .10000E+07
     2 'Prefactor '    .26217E-03   1.0000          .0000       .10000E+07
     3 'norm      '    2.3585       1.0000          .0000       .10000E+07
     4 'norm      '    1.5249       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41944E-06   1.0000          .0000       .10000E+07
     6 'norm      '    3.2469       1.0000          .0000       .10000E+07
     7 'Prefactor '    .78232E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .25752E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.6816       1.0000          .0000       .10000E+07
    10 'norm      '    4.5600       1.0000          .0000       .10000E+07
    11 'norm      '    1.9455       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22416E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .52764E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .90938       1.0000          .0000       .10000E+07
    15 'Prefactor '    .51075E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    18.317       1.0000          .0000       .10000E+07
    17 'Prefactor '    15.502       1.0000          .0000       .10000E+07
    18 'norm      '    .48031E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.0459       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.6713       1.0000          .0000       .10000E+07
    21 'norm      '    .37775E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.7205       1.0000          .0000       .10000E+07
    23 'norm      '    .47446E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    38.878       1.0000          .0000       .10000E+07
    25 'Prefactor '    .18305E-04   1.0000          .0000       .10000E+07
    26 'norm      '    .23927E-01   1.0000          .0000       .10000E+07
    27 'Normalizat'    .99535       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0515       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=   6633.756     FROM MIGRAD    STATUS=CONVERGED    239 CALLS     2567 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.863        10.159        .10092E-07   -.91809E-02
   2  Prefactor     .17264E-07    52.060        .96729E-06** at limit **
   3  norm          2.3623        .66031        .55261E-08    .51144E-03
   4  norm          1.6098        23.019       -.85212E-06    .42212E-03
   5  Prefactor      .0000        1.0733       -.19654E-07** at limit **
   6  norm          3.2510        2.1036        .29542E-08    .15142E-03
   7  Prefactor      .0000        10.200        .79262E-07** at limit **
   8  norm           .0000        28.992        .12112E-06** at limit **
   9  Prefactor     4.1659        20.113        .53818E-06    .21946E-03
  10  norm          4.5294        2.8453       -.46413E-07   -.26823E-03
  11  norm          1.9464        1.1827       -.77369E-08    .16686E-03
  12  Prefactor      .0000        45.620       -.89758E-07** at limit **
  13  Prefactor     .11657E-08    20.773        .25299E-06** at limit **
  14  norm          .90821        1.0669        .11870E-07   -.50567E-03
  15  Prefactor     .12768E-08    96.495       -.87499E-06** at limit **
  16  Prefactor     18.592        2.5188        .32091E-07    .68609E-01
  17  Prefactor     26.584        90.991       -.96336E-07   -.76372E-03
  18  norm          .12434E-07    39.950       -.10855E-05** at limit **
  19  Prefactor     5.2662        7.7520       -.42402E-07   -.31835E-02
  20  Prefactor     3.7428        3.1511        .86496E-07    .13731E-02
  21  norm           .0000        6.1060       -.77476E-08** at limit **
  22  Prefactor     1.7338        3.2279       -.36026E-07    .38941E-03
  23  norm           .0000        1.5361       -.78644E-08** at limit **
  24  Prefactor     38.940        1.1731       -.44500E-08   -.19591E-01
  25  Prefactor      .0000        1.9135        .56097E-08** at limit **
  26  norm          .36388E-01    21.683       -.18015E-05** at limit **
  27  Normalizat    .99144        .19492       -.19707E-06    .42403E-04
  28  Prefactor     1.0517        .24649       -.31047E-06    .26479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8626
  Prefactor  = 1.7264e-08
  norm       = 2.36232
  norm       = 1.60982
  Prefactor  = 0
  norm       = 3.25098
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.16587
  norm       = 4.52937
  norm       = 1.94637
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  norm       = 0.908205
  Prefactor  = 1.27676e-09
  Prefactor  = 18.592
  Prefactor  = 26.5841
  norm       = 1.24345e-08
  Prefactor  = 5.26623
  Prefactor  = 3.74276
  norm       = 0
  Prefactor  = 1.73383
  norm       = 0
  Prefactor  = 38.9396
  Prefactor  = 0
  norm       = 0.0363882
  Normalizat = 0.991436
  Prefactor  = 1.05174
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.756     FROM HESSE     STATUS=OK           587 CALLS     3154 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.863        10.159        .19651E-03   -1.5606    
   2  Prefactor     .17264E-07    52.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3623        .65975        .66708E-03   -1.5677    
   4  norm          1.6098        22.956        .86448E-03   -1.5683    
   5  Prefactor      .0000        1.0761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2510        2.1111        .56184E-03   -1.5672    
   7  Prefactor      .0000        10.234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        28.439        .16684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1659        20.783        .52615E-03   -1.5667    
  10  norm          4.5294        2.8735        .47117E-03   -1.5665    
  11  norm          1.9464        1.1815        .74387E-03   -1.5680    
  12  Prefactor      .0000        45.141        .16883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11657E-08    20.703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .90821        1.0774        .45114E-03   -1.5689    
  15  Prefactor     .12768E-08    92.699        .15498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.592        24.369        .23375E-03   -1.5622    
  17  Prefactor     26.584        90.347        .25412E-03   -1.5605    
  18  norm          .12434E-07    39.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2662        8.1979        .44740E-03   -1.5662    
  20  Prefactor     3.7428        20.173        .52691E-03   -1.5669    
  21  norm           .0000        6.1101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7338        3.7071        .80057E-03   -1.5682    
  23  norm           .0000        1.5351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.940        23.455        .16040E-03   -1.5583    
  25  Prefactor      .0000        1.9108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .36388E-01    .90925        .50451E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .99144        .16320        .46109E-01   -.93318    
  28  Prefactor     1.0517        .20501        .66575E-01   -.91024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72158e-07
Minuit parameter uncertainties:
  1  10.1586
  2  0.00189582
  3  0.659752
  4  12.1582
  5  4.53637e-07
  6  2.11108
  7  9.83367e-06
  8  1.05026e-05
  9  18.6097
  10  2.87346
  11  1.18151
  12  5.79733e-05
  13  0.000311218
  14  1.07735
  15  0.000681448
  16  24.3694
  17  90.3518
  18  0.00140438
  19  8.19793
  20  17.3786
  21  2.42711e-06
  22  3.70715
  23  3.99146e-07
  24  23.4551
  25  5.76618e-07
  26  0.363791
  27  0.163286
  28  0.20516
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.277e-09  6.814e-04  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:  1.052e+00  2.052e-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.914e-01  1.633e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6745/likelihoodResults_692928001_693187201_4FGL_J1102.6+5251_daily_bin1750.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) = 6633.76121335
delta logL = -0.00527609632991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6633.75593728
delta logL = -2.329943527e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31600E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.1036       1.0000          .0000       10.000    
     3 'Normalizat'    .99144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0518       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=   6633.756     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      243 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84377E-08    39.047        .42118E-03** at limit **
   2  Index         1.9167        6.6244        .50000       -.84128E-09
   3  Normalizat    .99143        .40830E-02    .46060E-01   -.47565E-03
   4  Prefactor     1.0517        .54247E-02    .66575E-01   -.17868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.43769e-09
  Index      = 1.91672
  Normalizat = 0.991433
  Prefactor  = 1.05175
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.756     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84377E-08    194.13        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9167        5.4886        .50000       -.66449    
   3  Normalizat    .99143        .91366E-02    .22869E-03   -.93318    
   4  Prefactor     1.0517        .12130E-01    .29450E-03   -.91024    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48224e-09
Minuit parameter uncertainties:
  1  0.00256343
  2  58102.7
  3  0.0091366
  4  0.0121305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6745': 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) = 6633.75593725
delta logL = -2.78305378743e-10

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  8.438e-09  2.563e-03  0.000e+00  1.000e+06 ( 1.000e-13)
395        Index:  1.917e+00  5.810e+04  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:  1.052e+00  1.213e-02  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.914e-01  9.137e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/6745/cmap_HighResolution_692928001_693187201_4FGL_J1102.6+5251_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2022-12-20 00:50:17.351878', job_id='6745', GAL2='1.05', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1671526217.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-2.78e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1750' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:50:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 6745: <4FGL_J1102.6+5251_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1750> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec 20 00:35:14 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:35:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:35:15 2022
Terminated at Tue Dec 20 00:50:18 2022
Results reported at Tue Dec 20 00:50:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1750 165.673 52.8569 692928001 693187201 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

