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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1718
RA = 187.179, Dec = 48.9827
tmin = 684633601, tmax = 684892801
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='119175', job_status='RUN', time_executed='2022-09-16 16:49:32.233109', time_epoch_executed='1663372172.23' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/119175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/119175/ft1_4FGL_J1228.7+4858_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/119175/ft2_4FGL_J1228.7+4858_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/119175/ft1_4FGL_J1228.7+4858_daily_bin1718.fits outfile=/scratch/kocevski/119175/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1718.fits ra=187.179 dec=48.9827 rad=12.0 tmin=684633601.0 tmax=684892801.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.22
user 3.01
sys 0.18

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

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

Number of photons that the gtmktime cut: 64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/119175/ft1_filtered_4FGL_J1228.7+4858_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/119175/ft2_4FGL_J1228.7+4858_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/119175/ltcube_684633601_684892801_4FGL_J1228.7+4858_daily_bin1718.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/119175/ft2_4FGL_J1228.7+4858_daily_bin1718.fits
.....................!
real 13.66
user 13.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/119175/ft1_filtered_4FGL_J1228.7+4858_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/119175/ft2_4FGL_J1228.7+4858_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/119175/ltcube_684633601_684892801_4FGL_J1228.7+4858_daily_bin1718.fits outfile=/scratch/kocevski/119175/expmap_684633601_684892801_4FGL_J1228.7+4858_daily_bin1718.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/119175/ltcube_684633601_684892801_4FGL_J1228.7+4858_daily_bin1718.fits
.....................!
real 192.28
user 187.07
sys 4.81

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/119175/ft1_filtered_4FGL_J1228.7+4858_daily_bin1718.fits scfile=/scratch/kocevski/119175/ft2_4FGL_J1228.7+4858_daily_bin1718.fits outfile=/scratch/kocevski/119175/cmap_684633601_684892801_4FGL_J1228.7+4858_daily_bin1718.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.60
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/119175/ft1_filtered_4FGL_J1228.7+4858_daily_bin1718.fits scfile=/scratch/kocevski/119175/ft2_4FGL_J1228.7+4858_daily_bin1718.fits outfile=/scratch/kocevski/119175/cmap_HighResolution_684633601_684892801_4FGL_J1228.7+4858_daily_bin1718.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.63
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/119175/ft1_filtered_4FGL_J1228.7+4858_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/119175/ft2_4FGL_J1228.7+4858_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/119175/Model_4FGL_J1228.7+4858_daily_bin1718.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/119175/ft1_filtered_4FGL_J1228.7+4858_daily_bin1718.fits......................!
real 18.74
user 17.37
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29162E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .67799E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .22134E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.4747       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.8152       1.0000          .0000       .10000E+07
     6 'Prefactor '    .95058E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .36772E-05   1.0000          .0000       .10000E+07
     8 'norm      '    4.9699       1.0000          .0000       .10000E+07
     9 'Prefactor '    29201.       1.0000          .0000       .10000E+07
    10 'Prefactor '    .50142E-01   1.0000          .0000       .10000E+07
    11 'norm      '    14.691       1.0000          .0000       .10000E+07
    12 'Prefactor '    .76016E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .12046E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    14.790       1.0000          .0000       .10000E+07
    15 'norm      '    .26923E-05   1.0000          .0000       .10000E+07
    16 'norm      '    8.3380       1.0000          .0000       .10000E+07
    17 'Prefactor '    .87806E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    93.195       1.0000          .0000       .10000E+07
    19 'norm      '    4.3929       1.0000          .0000       .10000E+07
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .61190       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=   722.8855     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1690 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27756E-09    37.766        .13841E-05** at limit **
   2  norm           .0000        6.2574        .20384E-06** at limit **
   3  norm          .23315E-08    113.15        .22422E-05** at limit **
   4  Prefactor     3.5026        7.0964       -.75523E-06   -.71059E-03
   5  Prefactor     .21112E-04    773.73       -.80065E-05** at limit **
   6  Prefactor     .18874E-08    33.273        .24755E-05** at limit **
   7  norm           .0000        2.9553       -.14474E-06** at limit **
   8  norm          .41552E-05    288.32       -.33927E-05** at limit **
   9  Prefactor     29201.        2.1271        .33403E-08   -.48445    
  10  Prefactor      .0000        19.087       -.46878E-06** at limit **
  11  norm          14.728        12.248        .32796E-05    .26266E-01
  12  Prefactor     .55511E-10    45.588       -.22522E-05** at limit **
  13  norm          .55511E-10    8.6848        .95158E-06** at limit **
  14  Prefactor     14.648        4.2688        .11309E-05   -.36348E-01
  15  norm           .0000        14.792        .12947E-05** at limit **
  16  norm          8.3033        8.1403       -.18666E-06   -.54183E-03
  17  Prefactor     .27756E-09    43.633        .29743E-05** at limit **
  18  Prefactor     92.758        13.151       -.12894E-06    .14650    
  19  norm          4.4233        6.0217       -.76744E-06   -.15644E-02
  20  Normalizat    .10000E-01    .55317E-01   -.75006E-05** at limit **
  21  Prefactor     .61221        .19077       -.19639E-04    .66400E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77556e-10
  norm       = 0
  norm       = 2.33147e-09
  Prefactor  = 3.50262
  Prefactor  = 2.11118e-05
  Prefactor  = 1.88738e-09
  norm       = 0
  norm       = 4.15523e-06
  Prefactor  = 29200.9
  Prefactor  = 0
  norm       = 14.728
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 14.6481
  norm       = 0
  norm       = 8.30325
  Prefactor  = 2.77556e-10
  Prefactor  = 92.7581
  norm       = 4.42332
  Normalizat = 0.01
  Prefactor  = 0.612206
 **********
 **   18 **HESSE 
 **********

 FCN=   722.8855     FROM HESSE     STATUS=OK           349 CALLS     2039 TOTAL
                     EDM=   .40E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27756E-09    37.752        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        6.2607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .23315E-08    113.04        .16900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5026        7.1134        .54223E-03   -1.5671    
   5  Prefactor     .21112E-04    793.78        .60596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18874E-08    33.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.9532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .41552E-05    291.97        .45088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29201.        6947.3        .59393E-05   -1.2273    
  10  Prefactor      .0000        19.080        .15535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.728        13.682        .26106E-03   -1.5631    
  12  Prefactor     .55511E-10    45.569        .14625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    8.6605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.648        27.154        .26017E-03   -1.5631    
  15  norm           .0000        14.800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.3033        8.1846        .34694E-03   -1.5650    
  17  Prefactor     .27756E-09    43.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     92.758        66.757        .10359E-03   -1.5515    
  19  norm          4.4233        6.1070        .48028E-03   -1.5666    
  20  Normalizat    .10000E-01    .54611E-01    .88329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .61221        .20058        .41216E-01   -1.0707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000402462
Minuit parameter uncertainties:
  1  0.00021216
  2  4.5874e-06
  3  0.00102753
  4  7.11344
  5  0.258942
  6  0.000501708
  7  5.08528e-06
  8  0.0696661
  9  6949.24
  10  3.67585e-05
  11  13.6823
  12  7.39323e-05
  13  5.00921e-05
  14  27.1547
  15  1.86627e-05
  16  8.18463
  17  0.000227267
  18  66.7572
  19  6.10703
  20  1.09202e-08
  21  0.200815
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.920e+04  6.949e+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:  6.122e-01  2.008e-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.000e-02  1.092e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.89
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.87e-05 +/- 1.16e-05
Energy Flux (Fixed Index): 1.33e-02 +/- 3.17e-03

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) = 715.487496803
delta logL = 7.39801658366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 715.477004622
delta logL = 7.40850876461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2036.0       1.0000          .0000       .10000E+07
     2 'Index     '    4.3184       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69660       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   715.4770     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      303 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2033.8        2297.0        .44369E-05    .56864E-03
   2  Index         4.3190        .62081        .66229E-04    .23779E-03
   3  Normalizat    .10000E-01    .46950E-01    .17726E-02** at limit **
   4  Prefactor     .69661        .18884        .18903E-03   -.52593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2033.77
  Index      = 4.31899
  Normalizat = 0.01
  Prefactor  = 0.696606
 **********
 **   18 **HESSE 
 **********

 FCN=   715.4770     FROM HESSE     STATUS=OK            23 CALLS      326 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2033.8        2275.3        .88738E-06   -1.4806    
   2  Index         4.3190        .61497        .26491E-05   -.13663    
   3  Normalizat    .10000E-01    .46950E-01    .35452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .69661        .18878        .37805E-04   -1.0366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95973e-11
Minuit parameter uncertainties:
  1  2276.23
  2  0.61656
  3  1.47012e-07
  4  0.188949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/119175': 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) = 715.477004043
delta logL = 7.40850934374

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.034e+03  2.276e+03  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  4.319e+00  6.166e-01  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:  6.966e-01  1.889e-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.000e-02  1.470e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 66.77
Ra Dec: 187.179 48.983
Photon Index (Free Index): 4.32 +/- 0.62
Photon Flux (Free Index): 7.39e-05 +/- 1.75e-05
Energy Flux (Free Index): 1.06e-02 +/- 2.43e-03

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/119175/cmap_HighResolution_684633601_684892801_4FGL_J1228.7+4858_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.87e-05', energy_flux2='1.06e-02', photon_flux_error='1.16e-05', dlogl='7.41e+00', energy_flux='1.33e-02', photon_flux2='7.39e-05', job_status='DONE', time_completed='2022-09-16 16:55:32.707730', photon_index_error2='0.62', photon_index2='4.32', ts='51.89', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='2.43e-03', EG='0.01', time_epoch_completed='1663372532.71', return_code='0', job_id='119175', GAL2='0.70', EG2='0.01', return_code2='0', energy_flux_error='3.17e-03', photon_flux_error2='1.75e-05', ts2='66.77', photon_index='2.56' WHERE bin_id='1718' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:55:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 119175: <4FGL_J1228.7+4858_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1718> 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) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:47:45 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:45 2022
Terminated at Fri Sep 16 16:55:33 2022
Results reported at Fri Sep 16 16:55:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1718 187.179 48.9827 684633601 684892801 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 :                                   362.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   468 sec.
    Turnaround time :                            611 sec.

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

