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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1710
RA = 187.179, Dec = 48.9827
tmin = 682560001, tmax = 682819201
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='119164', job_status='RUN', time_executed='2022-09-16 16:50:43.525601', time_epoch_executed='1663372243.53' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/119164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/119164/ft1_4FGL_J1228.7+4858_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/119164/ft1_4FGL_J1228.7+4858_daily_bin1710.fits outfile=/scratch/kocevski/119164/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1710.fits ra=187.179 dec=48.9827 rad=12.0 tmin=682560001.0 tmax=682819201.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.66
user 3.42
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.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/119164/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.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.32
sys 0.17

Number of photons that the gtmktime cut: 560

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/119164/ltcube_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.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/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits
.....................!
real 12.81
user 12.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/119164/ltcube_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.fits outfile=/scratch/kocevski/119164/expmap_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.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/119164/ltcube_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.fits
.....................!
real 195.57
user 188.85
sys 6.30

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

Setting source of interest to:
4FGL J1228.7+4858 @ 187.179 48.9827

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits scfile=/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits outfile=/scratch/kocevski/119164/cmap_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.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=187.179 yref=48.9827 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits scfile=/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits outfile=/scratch/kocevski/119164/cmap_HighResolution_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.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=187.179 yref=48.9827 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/119164/Model_4FGL_J1228.7+4858_daily_bin1710.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/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits....................!
real 53.73
user 52.35
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits', '/scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits', expMap='/scratch/kocevski/119164/expmap_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.fits', expCube='/scratch/kocevski/119164/ltcube_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/119164/Model_4FGL_J1228.7+4858_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1228.7+4858'

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.350e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/119164/ft1_filtered_4FGL_J1228.7+4858_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/119164/ft2_4FGL_J1228.7+4858_daily_bin1710.fits
Exposure map: /scratch/kocevski/119164/expmap_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.fits
Exposure cube: /scratch/kocevski/119164/ltcube_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/119164/Model_4FGL_J1228.7+4858_daily_bin1710.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) = 6175.50718919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69554E-01   1.0000          .0000       .10000E+07
     2 'norm      '    2.8292       1.0000          .0000       .10000E+07
     3 'norm      '    22.544       1.0000          .0000       .10000E+07
     4 'Prefactor '    .65580       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11750E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22929E-04   1.0000          .0000       .10000E+07
     7 'norm      '    5.1882       1.0000          .0000       .10000E+07
     8 'norm      '    5.9956       1.0000          .0000       .10000E+07
     9 'Prefactor '    .23131E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .88400E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.0248       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22392E-01   1.0000          .0000       .10000E+07
    13 'norm      '    1.0876       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13036E-03   1.0000          .0000       .10000E+07
    15 'norm      '    5.0762       1.0000          .0000       .10000E+07
    16 'norm      '    .30390E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .20064E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    24.556       1.0000          .0000       .10000E+07
    19 'norm      '    .14711E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1577       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6175.461     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1282 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        23.783       -.32789E-07** at limit **
   2  norm          2.8284        1.5838        .29273E-07    .12252E-02
   3  norm          22.560        2.3782       -.74327E-08    .93881E-01
   4  Prefactor     .65140        2.8723       -.11843E-06   -.34847E-03
   5  Prefactor     .72164E-08    20.201       -.22284E-08** at limit **
   6  Prefactor     .16653E-09    9.3086       -.53922E-07** at limit **
   7  norm          5.1877        2.5716        .39616E-07    .16903E-02
   8  norm          6.0488        5.3140       -.62600E-07   -.45232E-03
   9  Prefactor     .10092E-06    22.362        .31410E-07** at limit **
  10  Prefactor     .11102E-09    3.0776       -.11617E-07** at limit **
  11  norm          3.0225        1.8499       -.25299E-07   -.10314E-02
  12  Prefactor      .0000        9.8456       -.16323E-06** at limit **
  13  norm          1.0872        1.0979        .17288E-07    .90063E-03
  14  Prefactor     .11102E-09    3.0080        .61541E-07** at limit **
  15  norm          5.0848        1.4634        .71292E-08   -.11013E-01
  16  norm           .0000        1.3804       -.11136E-06** at limit **
  17  Prefactor     .12768E-08    15.906        .64617E-07** at limit **
  18  Prefactor     23.681        10.806        .60742E-08    .43965E-01
  19  norm           .0000        2.5516        .15477E-06** at limit **
  20  Normalizat    1.1581        .19570        .37315E-06    .29168E-05
  21  Prefactor     .90671        .23452       -.75296E-06   -.62634E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 2.82839
  norm       = 22.5596
  Prefactor  = 0.651404
  Prefactor  = 7.21645e-09
  Prefactor  = 1.66533e-10
  norm       = 5.18773
  norm       = 6.04876
  Prefactor  = 1.00919e-07
  Prefactor  = 1.11022e-10
  norm       = 3.0225
  Prefactor  = 0
  norm       = 1.08716
  Prefactor  = 1.11022e-10
  norm       = 5.0848
  norm       = 0
  Prefactor  = 1.27676e-09
  Prefactor  = 23.6806
  norm       = 0
  Normalizat = 1.15809
  Prefactor  = 0.906711
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.461     FROM HESSE     STATUS=OK           357 CALLS     1639 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        23.787        .14833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8284        1.5969        .60435E-03   -1.5674    
   3  norm          22.560        12.617        .21067E-03   -1.5613    
   4  Prefactor     .65140        2.9137        .64371E-03   -1.5692    
   5  Prefactor     .72164E-08    21.652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    9.3060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1877        2.5657        .44110E-03   -1.5662    
   8  norm          6.0488        5.3207        .40984E-03   -1.5659    
   9  Prefactor     .10092E-06    25.712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    3.0716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0225        1.8480        .58324E-03   -1.5673    
  12  Prefactor      .0000        9.7930        .16884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0872        1.0705        .11489E-02   -1.5687    
  14  Prefactor     .11102E-09    3.0080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0848        15.573        .44604E-03   -1.5663    
  16  norm           .0000        1.3774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12768E-08    15.987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.681        26.092        .20184E-03   -1.5611    
  19  norm           .0000        2.5449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1581        .16822        .36023E-01   -.87908    
  21  Prefactor     .90671        .20329        .67514E-01   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69933e-06
Minuit parameter uncertainties:
  1  1.92211e-06
  2  1.59694
  3  12.617
  4  2.75538
  5  0.000789787
  6  8.3222e-05
  7  2.56574
  8  5.32067
  9  0.00322152
  10  3.29693e-05
  11  1.84796
  12  2.71674e-05
  13  1.07049
  14  3.36554e-05
  15  15.5731
  16  6.10958e-06
  17  0.000283917
  18  26.0918
  19  1.34462e-05
  20  0.1683
  21  0.203456
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.009e-07  3.222e-03  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.067e-01  2.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.158e+00  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/119164/likelihoodResults_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.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) = 6175.48025652
delta logL = -0.0194884443172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6175.4607686
delta logL = -5.24129973201e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34737E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .97116       1.0000          .0000       10.000    
     3 'Normalizat'    1.1581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90671       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6175.461     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      201 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        18.996       -.53328E-05** at limit **
   2  Index         1.9521        5.7533       -.34688E-03     .0000    
   3  Normalizat    1.1581        .19253       -.39113E-05    .57810E-03
   4  Prefactor     .90672        .23449        .33945E-05    .81974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.95211
  Normalizat = 1.15808
  Prefactor  = 0.906719
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6175.461     FROM HESSE     STATUS=FAILED        11 CALLS      212 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .40502        1.8626       -.34688E-03   -.65553    
   3  Normalizat    1.1581        1.1227       -.39113E-05   -.87908    
   4  Prefactor     .90672        1.2513        .33945E-05   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.94119e-10
Minuit parameter uncertainties:
  1  2.15062e-05
  2  1.81953
  3  1.14737
  4  1.29474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/119164': 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): 101
logL (Free Index) = 6175.46076807
delta logL = 1.16597220767e-09

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  0.000e+00  2.151e-05  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  1.952e+00  1.820e+00  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.067e-01  1.295e+00  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.158e+00  1.147e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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/119164/cmap_HighResolution_682560001_682819201_4FGL_J1228.7+4858_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2022-09-16 17:00:33.039201', job_id='119164', GAL2='0.91', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1663372833.04', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.17e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1710' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:00:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 119164: <4FGL_J1228.7+4858_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1710> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:45:21 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:47:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:47:25 2022
Terminated at Fri Sep 16 17:00:33 2022
Results reported at Fri Sep 16 17:00:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1710 187.179 48.9827 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1228.7+4858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   591.61 sec.
    Max Memory :                                 1225 MB
    Average Memory :                             303.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            912 sec.

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

