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 154 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0227.8+2246_daily_bin1673
RA = 36.9544, Dec = 22.7775
tmin = 672969601, tmax = 673228801
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='351223', job_status='RUN', time_executed='2022-05-03 00:11:45.788177', time_epoch_executed='1651561905.79' WHERE source_name='4FGL J0227.8+2246' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351223/ft1_4FGL_J0227.8+2246_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351223/ft1_4FGL_J0227.8+2246_daily_bin1673.fits outfile=/scratch/kocevski/351223/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1673.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=672969601.0 tmax=673228801.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.99
user 2.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.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/351223/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351223/ltcube_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.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/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits
.....................!
real 16.78
user 16.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351223/ltcube_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.fits outfile=/scratch/kocevski/351223/expmap_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.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/351223/ltcube_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.fits
.....................!
real 192.73
user 186.98
sys 5.01

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits scfile=/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits outfile=/scratch/kocevski/351223/cmap_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.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=36.9544 yref=22.7775 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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits scfile=/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits outfile=/scratch/kocevski/351223/cmap_HighResolution_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.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=36.9544 yref=22.7775 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351223/Model_4FGL_J0227.8+2246_daily_bin1673.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/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits........................!
real 18.15
user 15.78
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits', '/scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits', expMap='/scratch/kocevski/351223/expmap_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.fits', expCube='/scratch/kocevski/351223/ltcube_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351223/Model_4FGL_J0227.8+2246_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351223/ft1_filtered_4FGL_J0227.8+2246_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351223/ft2_4FGL_J0227.8+2246_daily_bin1673.fits
Exposure map: /scratch/kocevski/351223/expmap_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351223/ltcube_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351223/Model_4FGL_J0227.8+2246_daily_bin1673.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) = 256.496706057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4625       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    895.32       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18349E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'norm      '    10000.       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'norm      '    10000.       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.575       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .22929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   255.3960     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     5853 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.32        .11030E-03** at limit **
   2  Prefactor     .10000E-03    281.88        .27860E-04** at limit **
   3  norm          1.4624        1.9767       -.16702E-07   -.13841E-03
   4  Prefactor     .10000E-03    15.886       -.38825E-06** at limit **
   5  norm          .10000E-03    10.168       -.24167E-06** at limit **
   6  Prefactor     895.30        1087.9       -.61412E-05    .72894E-05
   7  Prefactor     30.106        28.948       -.44395E-06    .12564E-04
   8  Prefactor     .10000E-03    16.383       -.64588E-06** at limit **
   9  Prefactor     .10000E-03    100.05       -.94157E-04** at limit **
  10  Prefactor     .10000E-03    145.39       -.32697E-04** at limit **
  11  norm          .10000E-03    6939.4       -.12898E-02** at limit **
  12  Prefactor     10000.        6609.0        .11487E-02** at limit **
  13  Prefactor     .10000E-03    923.60        .17885E-03** at limit **
  14  Prefactor     .10000E-03    6779.5       -.19006E-02** at limit **
  15  Prefactor    10000.0        9353.6        .17323E-02** at limit **
  16  norm          10000.        853.17       -.26148E-03** at limit **
  17  Prefactor    10000.0        9605.8        .17588E-02** at limit **
  18  norm          10000.        1044.6       -.41506E-04** at limit **
  19  Prefactor    10000.0        8239.5        .19352E-02** at limit **
  20  Prefactor    10000.0        9787.3        .18501E-02** at limit **
  21  Prefactor    10000.0        8270.4        .19353E-02** at limit **
  22  Prefactor     10000.        6925.5        .12847E-02** at limit **
  23  Prefactor    10000.0        5134.1        .19174E-02** at limit **
  24  Prefactor     .10000E-03    7537.9       -.14627E-02** at limit **
  25  norm          .10000E-03    7367.4       -.14211E-02** at limit **
  26  Prefactor     .10000E-03    1879.2       -.63868E-03** at limit **
  27  Prefactor     46.576        56.584        .23958E-06    .28569E-04
  28  Normalizat    .10000E-01    .38201       -.11598E-05** at limit **
  29  Prefactor     .22929        .22496        .61717E-06   -.33408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46245
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 895.302
  Prefactor  = 30.1059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.5756
  Normalizat = 0.01
  Prefactor  = 0.229287
 **********
 **   18 **HESSE 
 **********

 FCN=   255.3960     FROM HESSE     STATUS=OK           527 CALLS     6380 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.37        .15828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    281.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4624        2.0110        .23336E-04   -1.5466    
   4  Prefactor     .10000E-03    15.886        .62280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.169        .49822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     895.30        1087.4        .70050E-04   -.96305    
   7  Prefactor     30.106        28.947        .73020E-04   -1.4610    
   8  Prefactor     .10000E-03    16.383        .63249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    100.05        .15652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    145.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6939.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10000.        6608.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    923.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6779.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9353.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10000.        853.17        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9605.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10000.        1044.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        8239.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        9787.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8270.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10000.        6925.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        5134.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7537.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7367.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1879.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     46.576        56.580        .58752E-04   -1.4342    
  28  Normalizat    .10000E-01    .39051        .59924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .22929        .22531        .20814E-03   -1.2668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33491e-11
Minuit parameter uncertainties:
  1  6.61912e-05
  2  5.69883e-05
  3  2.01105
  4  1.88855e-06
  5  4.46853e-08
  6  1115.61
  7  28.9605
  8  4.13169e-08
  9  2.02838e-05
  10  6.97353e-07
  11  3.33352e-05
  12  2.6863e-05
  13  1.31888e-05
  14  0.00011924
  15  0.0115231
  16  7.51302e-06
  17  0.00570984
  18  8.76119e-06
  19  0.0802265
  20  0.0033942
  21  0.0804566
  22  4.16419e-05
  23  0.0415663
  24  7.48812e-05
  25  0.000488702
  26  6.4509e-06
  27  56.6455
  28  1.32622e-06
  29  0.226172
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.192e-04  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  2.293e-01  2.262e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.000e-02  1.326e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.085043746901

TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.59e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351223/likelihoodResults_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.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) = 255.396050425
delta logL = -1.62379632229e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 255.396050425
delta logL = -1.62379632229e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.1437       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   255.3961     FROM MIGRAD    STATUS=CONVERGED     14 CALLS       67 TOTAL
                     EDM=   .11E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.1437        3.4532         .0000       -.47933E-08
                               ERR DEF=  .500    
Final values: 
  Index      = 2.14365
 **********
 **   18 **HESSE 
 **********

 FCN=   255.3961     FROM HESSE     STATUS=OK            11 CALLS       78 TOTAL
                     EDM=   .23E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.1437        3.4532        .50000       -.60805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29759e-17
Minuit parameter uncertainties:
  1  4.10381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351223': 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) = 255.396050425
delta logL = -1.62379632229e-06

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
243        Index:  2.144e+00  4.104e+00  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  2.289e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): -0.00
Ra Dec: 36.954 22.777

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/351223/cmap_HighResolution_672969601_673228801_4FGL_J0227.8+2246_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.59e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2022-05-03 00:17:43.908838', job_id='351223', GAL2='0.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651562263.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.23', dlogl='-1.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1673' AND source_name='4FGL J0227.8+2246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:17:43 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 351120: <4FGL_J0227.8+2246_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0227.8+2246_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:35 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:56 2022
Terminated at Tue May  3 00:15:29 2022
Results reported at Tue May  3 00:15:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_daily_bin1673 36.9544 22.7775 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0227.8+2246 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   353.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   453 sec.
    Turnaround time :                            594 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 351223: <4FGL_J0227.8+2246_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0227.8+2246_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:41 2022
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:08:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:08:56 2022
Terminated at Tue May  3 00:17:44 2022
Results reported at Tue May  3 00:17:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_daily_bin1673 36.9544 22.7775 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0227.8+2246 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   355.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            723 sec.

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

