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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1715
RA = 187.179, Dec = 48.9827
tmin = 683856001, tmax = 684115201
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='119171', job_status='RUN', time_executed='2022-09-16 16:49:32.652693', time_epoch_executed='1663372172.65' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/119171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/119171/ft1_4FGL_J1228.7+4858_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/119171/ft1_4FGL_J1228.7+4858_daily_bin1715.fits outfile=/scratch/kocevski/119171/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1715.fits ra=187.179 dec=48.9827 rad=12.0 tmin=683856001.0 tmax=684115201.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 2.87
user 2.64
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.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/119171/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/119171/ft1_filtered_4FGL_J1228.7+4858_daily_bin1715.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.45
user 0.29
sys 0.15

Number of photons that the gtmktime cut: 549

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/119171/ft1_filtered_4FGL_J1228.7+4858_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/119171/ltcube_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.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/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.fits
.....................!
real 11.29
user 10.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/119171/ft1_filtered_4FGL_J1228.7+4858_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/119171/ltcube_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.fits outfile=/scratch/kocevski/119171/expmap_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.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/119171/ltcube_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.fits
.....................!
real 156.96
user 152.44
sys 4.16

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/119171/ft1_filtered_4FGL_J1228.7+4858_daily_bin1715.fits scfile=/scratch/kocevski/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.fits outfile=/scratch/kocevski/119171/cmap_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.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.49
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/119171/ft1_filtered_4FGL_J1228.7+4858_daily_bin1715.fits scfile=/scratch/kocevski/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.fits outfile=/scratch/kocevski/119171/cmap_HighResolution_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.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.52
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/119171/ft1_filtered_4FGL_J1228.7+4858_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/119171/ft2_4FGL_J1228.7+4858_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/119171/Model_4FGL_J1228.7+4858_daily_bin1715.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/119171/ft1_filtered_4FGL_J1228.7+4858_daily_bin1715.fits.....................!
real 42.95
user 41.75
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39657E-01   1.0000          .0000       .10000E+07
     2 'norm      '    1.8697       1.0000          .0000       .10000E+07
     3 'norm      '    .30280E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .70146E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .40857E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .58900E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .29539E-02   1.0000          .0000       .10000E+07
     8 'norm      '    13.889       1.0000          .0000       .10000E+07
     9 'Prefactor '    .90858E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83357E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.1494       1.0000          .0000       .10000E+07
    12 'Prefactor '    .41269E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .25650E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .23194E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .22832E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.9647       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.1744       1.0000          .0000       .10000E+07
    18 'Prefactor '    31.957       1.0000          .0000       .10000E+07
    19 'norm      '    .63762E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0957       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85802       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=   5949.062     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1629 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        25.650       -.91691E-07** at limit **
   2  norm          1.8702        1.1409       -.16163E-07   -.13618E-02
   3  norm          .44409E-08    3.4472        .17743E-06** at limit **
   4  Prefactor      .0000        1.3428        .61901E-07** at limit **
   5  Prefactor      .0000        19.093       -.80388E-07** at limit **
   6  Prefactor      .0000        4.7855       -.32798E-07** at limit **
   7  norm           .0000        3.4254        .53285E-07** at limit **
   8  norm          13.904        7.0162        .78424E-07    .15884E-02
   9  Prefactor      .0000        11.167       -.13516E-07** at limit **
  10  Prefactor      .0000        1.6522       -.15186E-08** at limit **
  11  norm          3.1484        2.0024        .13212E-07    .65203E-03
  12  Prefactor      .0000        7.0290       -.38970E-07** at limit **
  13  norm           .0000        1.2647       -.30955E-07** at limit **
  14  Prefactor     .36360E-07    1.3036        .38965E-07** at limit **
  15  norm          .13101E-07    2.7786       -.30539E-07** at limit **
  16  norm          2.0006        3.0565       -.30333E-07   -.11362E-02
  17  Prefactor     .51070E-08    434.12        .32208E-05** at limit **
  18  Prefactor     34.493        32.214       -.34105E-07   -.60833E-03
  19  norm           .0000        6.8313        .13559E-06** at limit **
  20  Normalizat    1.0971        .17675       -.20845E-05   -.30613E-04
  21  Prefactor     .85675        .21883        .32370E-05    .23165E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.87022
  norm       = 4.44089e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 13.9044
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.14845
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.63598e-08
  norm       = 1.31006e-08
  norm       = 2.00059
  Prefactor  = 5.10703e-09
  Prefactor  = 34.4926
  norm       = 0
  Normalizat = 1.09711
  Prefactor  = 0.856752
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.062     FROM HESSE     STATUS=OK           353 CALLS     1982 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        25.643        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8702        1.1470        .76144E-03   -1.5681    
   3  norm          .44409E-08    3.7858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.3443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        19.085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.7882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        3.3112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.904        7.0369        .26850E-03   -1.5633    
   9  Prefactor      .0000        11.179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.6521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1484        2.0081        .57093E-03   -1.5672    
  12  Prefactor      .0000        7.0283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.2458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .36360E-07    3.7579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .13101E-07    3.7268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0006        3.0917        .73965E-03   -1.5680    
  17  Prefactor     .51070E-08    442.11        .56855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.493        32.586        .17692E-03   -1.5591    
  19  norm           .0000        6.7662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0971        .15132        .38180E-01   -.89845    
  21  Prefactor     .85675        .18746        .64047E-01   -.97669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44492e-08
Minuit parameter uncertainties:
  1  3.38101e-05
  2  1.14701
  3  0.000260001
  4  4.89561e-06
  5  3.30597e-05
  6  9.42666e-06
  7  2.35148e-07
  8  7.03693
  9  5.29072e-06
  10  1.62488e-06
  11  2.00809
  12  2.00027e-05
  13  1.33536e-06
  14  0.000739073
  15  0.000441477
  16  3.09174
  17  0.00300569
  18  32.5865
  19  3.50007e-06
  20  0.151377
  21  0.187601
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  0.000e+00  5.291e-06  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:  8.568e-01  1.876e-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.097e+00  1.514e-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: 6.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/119171/likelihoodResults_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.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) = 5949.10525081
delta logL = -0.0433938599663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5949.06185703
delta logL = -8.38090272737e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11569E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0051       1.0000          .0000       10.000    
     3 'Normalizat'    1.0972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85668       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=   5949.062     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      201 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-08    9.6924       -.50063E-05** at limit **
   2  Index         2.7512        3.7541        .33645E-03    .23804E-09
   3  Normalizat    1.0971        .17463       -.45106E-04   -.29696E-03
   4  Prefactor     .85675        .21834        .96914E-04   -.39486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-09
  Index      = 2.75115
  Normalizat = 1.09711
  Prefactor  = 0.856753
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.062     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      236 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-08    .23951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7512        6.0368        .44179       -.46651    
   3  Normalizat    1.0971        .58911E-03    .38116E-01   -.89845    
   4  Prefactor     .85675        .73564E-03    .64047E-01   -.97669    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83013e-12
Minuit parameter uncertainties:
  1  3.4778e-05
  2  8144.39
  3  0.000589106
  4  0.000735643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/119171': 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) = 5949.06185695
delta logL = -1.5916157281e-10

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.277e-09  3.478e-05  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.751e+00  8.144e+03  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:  8.568e-01  7.356e-04  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.097e+00  5.891e-04  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/119171/cmap_HighResolution_683856001_684115201_4FGL_J1228.7+4858_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2022-09-16 16:57:54.325055', job_id='119171', GAL2='0.86', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1663372674.33', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-1.59e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1715' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:57:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 119171: <4FGL_J1228.7+4858_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1715> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:45:22 2022
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:47:38 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:38 2022
Terminated at Fri Sep 16 16:57:55 2022
Results reported at Fri Sep 16 16:57:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1715 187.179 48.9827 683856001 684115201 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 :                                   503.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            753 sec.

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

