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


Performing analysis on: 4FGL_J1228.7+4858_weekly_bin759
RA = 187.179, Dec = 48.9827
tmin = 698025601, tmax = 698630401
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='589736', job_status='RUN', time_executed='2023-02-21 03:34:29.989306', time_epoch_executed='1676979269.99' WHERE source_name='4FGL J1228.7+4858' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589736

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589736/ft1_4FGL_J1228.7+4858_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589736/ft1_4FGL_J1228.7+4858_weekly_bin759.fits outfile=/scratch/kocevski/589736/ft1_filteredMKT_4FGL_J1228.7+4858_weekly_bin759.fits ra=187.179 dec=48.9827 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.57
user 8.22
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.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/589736/ft1_filteredMKT_4FGL_J1228.7+4858_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.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.56
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 583

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/589736/ltcube_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.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/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits
.....................!
real 27.09
user 26.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/589736/ltcube_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.fits outfile=/scratch/kocevski/589736/expmap_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.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/589736/ltcube_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.fits
.....................!
real 191.95
user 185.94
sys 5.15

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/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits scfile=/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits outfile=/scratch/kocevski/589736/cmap_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.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.59
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits scfile=/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits outfile=/scratch/kocevski/589736/cmap_HighResolution_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589736/Model_4FGL_J1228.7+4858_weekly_bin759.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/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits.....................!
real 53.05
user 51.65
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits', '/scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits', expMap='/scratch/kocevski/589736/expmap_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.fits', expCube='/scratch/kocevski/589736/ltcube_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/589736/Model_4FGL_J1228.7+4858_weekly_bin759.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/589736/ft1_filtered_4FGL_J1228.7+4858_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/589736/ft2_4FGL_J1228.7+4858_weekly_bin759.fits
Exposure map: /scratch/kocevski/589736/expmap_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.fits
Exposure cube: /scratch/kocevski/589736/ltcube_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/589736/Model_4FGL_J1228.7+4858_weekly_bin759.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) = 6426.84507296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77902E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .76387       1.0000          .0000       .10000E+07
     3 'norm      '    .39379E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52625E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .65979E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3287       1.0000          .0000       .10000E+07
     7 'norm      '    .13750E-06   1.0000          .0000       .10000E+07
     8 'norm      '    5.3876       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3582       1.0000          .0000       .10000E+07
    10 'Prefactor '    .21312E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.9521       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.107       1.0000          .0000       .10000E+07
    13 'norm      '    5.1952       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.4724       1.0000          .0000       .10000E+07
    15 'norm      '    8.4449       1.0000          .0000       .10000E+07
    16 'norm      '    .66910E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    59.276       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15196E-01   1.0000          .0000       .10000E+07
    19 'norm      '    1.6340       1.0000          .0000       .10000E+07
    20 'Normalizat'    .75298       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1700       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=   6426.809     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1297 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    12.793       -.12830E-05** at limit **
   2  norm          .76308        .92459        .47965E-07    .56262E-02
   3  norm           .0000        2.6594       -.13967E-06** at limit **
   4  Prefactor     .17764E-08    7.1354       -.33854E-06** at limit **
   5  Prefactor     .25396E-06    21.915        .86446E-06** at limit **
   6  Prefactor     4.3332        13.281       -.69317E-05   -.32431E-01
   7  norm           .0000        1.0410       -.28119E-06** at limit **
   8  norm          5.4620        6.8264        .98812E-06   -.10645E-02
   9  Prefactor     4.0221        8.2945       -.41552E-05    .89110E-02
  10  Prefactor     .38858E-09    5.6104       -.66236E-06** at limit **
  11  norm          6.9469        2.6903        .17671E-06    .77116E-02
  12  Prefactor     13.993        3.9113       -.10728E-05   -.46142E-01
  13  norm          5.1946        2.4463        .90655E-07   -.52511E-03
  14  Prefactor     6.4558        3.6027       -.72010E-06   -.54406E-01
  15  norm          8.4451        8.8345        .13274E-05    .21933E-01
  16  norm           .0000        2.2149       -.20254E-06** at limit **
  17  Prefactor     58.859        15.915       -.22220E-05    .13220    
  18  Prefactor     .16653E-09    20.699       -.38482E-06** at limit **
  19  norm          1.6359        1.9335        .20569E-06    .12302E-02
  20  Normalizat    .75356        .18047        .45241E-05   -.11693E-03
  21  Prefactor     1.1698        .22583        .49629E-05   -.18450E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 0.76308
  norm       = 0
  Prefactor  = 1.77636e-09
  Prefactor  = 2.53964e-07
  Prefactor  = 4.33321
  norm       = 0
  norm       = 5.46204
  Prefactor  = 4.0221
  Prefactor  = 3.88578e-10
  norm       = 6.94694
  Prefactor  = 13.9929
  norm       = 5.1946
  Prefactor  = 6.45583
  norm       = 8.44512
  norm       = 0
  Prefactor  = 58.8592
  Prefactor  = 1.66533e-10
  norm       = 1.63589
  Normalizat = 0.753556
  Prefactor  = 1.16981
 **********
 **   18 **HESSE 
 **********

 FCN=   6426.809     FROM HESSE     STATUS=OK           361 CALLS     1658 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    12.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76308        .93479        .55668E-03   -1.5690    
   3  norm           .0000        2.6610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17764E-08    7.1152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .25396E-06    22.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3332        19.509        .48392E-03   -1.5666    
   7  norm           .0000        1.0232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.4620        8.3740        .43271E-03   -1.5661    
   9  Prefactor     4.0221        37.291        .48224E-03   -1.5668    
  10  Prefactor     .38858E-09    5.5894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9469        2.7455        .38025E-03   -1.5655    
  12  Prefactor     13.993        15.171        .26642E-03   -1.5633    
  13  norm          5.1946        2.4485        .44080E-03   -1.5662    
  14  Prefactor     6.4558        9.9330        .39425E-03   -1.5657    
  15  norm          8.4451        9.0587        .34472E-03   -1.5650    
  16  norm           .0000        2.2005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.859        27.650        .12989E-03   -1.5555    
  18  Prefactor     .16653E-09    20.457        .17376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6359        1.9442        .82673E-03   -1.5682    
  20  Normalizat    .75356        .15149        .42993E-01   -1.0182    
  21  Prefactor     1.1698        .18899        .57098E-01   -.87266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30724e-07
Minuit parameter uncertainties:
  1  5.57387e-05
  2  0.934788
  3  1.50274e-05
  4  0.000224241
  5  0.00480938
  6  18.389
  7  4.03168e-06
  8  8.374
  9  24.4942
  10  9.12868e-05
  11  2.74547
  12  15.1712
  13  2.44846
  14  9.933
  15  9.05867
  16  4.39726e-06
  17  27.6501
  18  0.000111769
  19  1.94424
  20  0.151574
  21  0.189102
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  4.022e+00  2.449e+01  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:  1.170e+00  1.891e-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:  7.536e-01  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/589736/likelihoodResults_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.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) = 6426.72289619
delta logL = 0.0856887506852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6426.71212354
delta logL = 0.0964613971855

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6426.712     FROM MIGRAD    STATUS=FAILED       100 CALLS      260 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6017        598.53        .12580E-03    .68117E-02
   2  Index         3.4407        6.8568        .10166E-01    .29881E-03
   3  Normalizat    .74011        .15090        .24246E-03   -.38918E-05
   4  Prefactor     1.1798        .19442        .25152E-03   -.92207E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6426.712     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      352 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6017        598.53        .40916E-04    .68117E-02
   2  Index         3.4407        6.8568        .18655E-02    .29881E-03
   3  Normalizat    .74011        .15090        .19056E-03   -.38918E-05
   4  Prefactor     1.1798        .19442        .13312E-03   -.92207E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6426.712     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      387 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6017        13.518        .25159E-04   -.89018E-04
   2  Index         3.4407        2.2422        .20331E-02   -.21472E-05
   3  Normalizat    .74011        .17942        .96983E-05   -.39856E-05
   4  Prefactor     1.1798        .22690        .10061E-04   -.92659E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60169
  Index      = 3.44075
  Normalizat = 0.740111
  Prefactor  = 1.17982
 **********
 **   18 **HESSE 
 **********

 FCN=   6426.712     FROM HESSE     STATUS=OK            23 CALLS      410 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6017        10.495        .10064E-05   -1.5676    
   2  Index         3.4407        1.9933        .81326E-04   -.31714    
   3  Normalizat    .74011        .17965        .19397E-05   -1.0233    
   4  Prefactor     1.1798        .22716        .20122E-05   -.86955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77357e-13
Minuit parameter uncertainties:
  1  10.4507
  2  2.05703
  3  0.179797
  4  0.227344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589736': 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) = 6426.71211971
delta logL = 0.0964652293269

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.602e+00  1.045e+01  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  3.441e+00  2.057e+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:  1.180e+00  2.273e-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:  7.401e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/589736/cmap_HighResolution_698025601_698630401_4FGL_J1228.7+4858_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2023-02-21 03:45:22.628277', job_id='589736', GAL2='1.18', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1676979922.63', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='9.65e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='759' AND source_name='4FGL J1228.7+4858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:45:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 589736: <4FGL_J1228.7+4858_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1228.7+4858_weekly_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 03:30:24 2023
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:30:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:30:25 2023
Terminated at Tue Feb 21 03:45:23 2023
Results reported at Tue Feb 21 03:45:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_weekly_bin759 187.179 48.9827 698025601 698630401 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 :                                   653.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             261.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

