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


Performing analysis on: 4FGL_J0227.8+2246_daily_bin1740
RA = 36.9544, Dec = 22.7775
tmin = 690336001, tmax = 690595201
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='822926', job_status='RUN', time_executed='2022-11-20 00:10:53.052301', time_epoch_executed='1668931853.05' WHERE source_name='4FGL J0227.8+2246' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822926

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822926/ft1_4FGL_J0227.8+2246_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822926/ft1_4FGL_J0227.8+2246_daily_bin1740.fits outfile=/scratch/kocevski/822926/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1740.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=690336001.0 tmax=690595201.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.01
user 2.79
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.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/822926/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/822926/ft1_filtered_4FGL_J0227.8+2246_daily_bin1740.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.37
sys 0.14

Number of photons that the gtmktime cut: 107

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822926/ft1_filtered_4FGL_J0227.8+2246_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822926/ltcube_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.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/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits
.....................!
real 19.04
user 18.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822926/ft1_filtered_4FGL_J0227.8+2246_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822926/ltcube_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.fits outfile=/scratch/kocevski/822926/expmap_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.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/822926/ltcube_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.fits
.....................!
real 192.36
user 186.29
sys 5.72

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/822926/ft1_filtered_4FGL_J0227.8+2246_daily_bin1740.fits scfile=/scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits outfile=/scratch/kocevski/822926/cmap_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822926/ft1_filtered_4FGL_J0227.8+2246_daily_bin1740.fits scfile=/scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits outfile=/scratch/kocevski/822926/cmap_HighResolution_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822926/ft1_filtered_4FGL_J0227.8+2246_daily_bin1740.fits', '/scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits', expMap='/scratch/kocevski/822926/expmap_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.fits', expCube='/scratch/kocevski/822926/ltcube_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822926/Model_4FGL_J0227.8+2246_daily_bin1740.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  0.000e+00  1.000e+06 ( 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/822926/ft1_filtered_4FGL_J0227.8+2246_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822926/ft2_4FGL_J0227.8+2246_daily_bin1740.fits
Exposure map: /scratch/kocevski/822926/expmap_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822926/ltcube_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822926/Model_4FGL_J0227.8+2246_daily_bin1740.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) = 1354.73039787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.112       1.0000          .0000       .10000E+07
     2 'norm      '    .13040E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    63.496       1.0000          .0000       .10000E+07
     4 'norm      '    .16383E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10395E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    13.068       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16293E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1238.2       1.0000          .0000       .10000E+07
     9 'Prefactor '    112.93       1.0000          .0000       .10000E+07
    10 'Prefactor '    122.53       1.0000          .0000       .10000E+07
    11 'Prefactor '    .26126E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .57487E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .40353       1.0000          .0000       .10000E+07
    14 'norm      '    .77375E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .63305       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10876       1.0000          .0000       .10000E+07
    17 'Prefactor '    .25948       1.0000          .0000       .10000E+07
    18 'Prefactor '    .32786       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29829       1.0000          .0000       .10000E+07
    20 'Prefactor '    .78443E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .95833E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .83507E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3672       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=   1354.678     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     2872 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.006        75.257        .62192E-06   -.12812E-04
   2  norm           .0000        2.0305       -.64304E-09** at limit **
   3  Prefactor     60.585        37.594       -.15045E-07    .16215E-04
   4  norm           .0000        6.2900       -.19306E-07** at limit **
   5  Prefactor      .0000        4.5905       -.40505E-08** at limit **
   6  Prefactor     13.386        19.252       -.68447E-08    .17493E-04
   7  Prefactor      .0000        29.506       -.87465E-07** at limit **
   8  norm          1192.3        659.46        .11262E-05   -.17746E-04
   9  Prefactor     111.08        165.04       -.89872E-06    .16320E-03
  10  Prefactor     113.98        264.63        .23849E-05    .77311E-04
  11  Prefactor      .0000        22.611       -.15058E-06** at limit **
  12  norm           .0000        21.348        .12144E-06** at limit **
  13  Prefactor     .33307E-09    123.83        .37817E-06** at limit **
  14  norm           .0000        6.6718       -.64147E-07** at limit **
  15  Prefactor     .55511E-10    220.53       -.10328E-05** at limit **
  16  Prefactor      .0000        53.092       -.96039E-07** at limit **
  17  Prefactor     2.9813        4509.5        .26978E-05    .26440E-04
  18  Prefactor      .0000        96.400       -.30139E-07** at limit **
  19  Prefactor      .0000        85.718        .12602E-06** at limit **
  20  Prefactor     .14433E-08    278.10       -.21666E-05** at limit **
  21  norm           .0000        50.672       -.31821E-07** at limit **
  22  Prefactor     .13323E-08    324.74        .63860E-06** at limit **
  23  Normalizat    .10000E-01    .23759       -.43747E-06** at limit **
  24  Prefactor     1.3704        .18646       -.50196E-06    .75172E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0056
  norm       = 0
  Prefactor  = 60.5848
  norm       = 0
  Prefactor  = 0
  Prefactor  = 13.3858
  Prefactor  = 0
  norm       = 1192.29
  Prefactor  = 111.08
  Prefactor  = 113.978
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.33067e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 2.98129
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.44329e-09
  norm       = 0
  Prefactor  = 1.33227e-09
  Normalizat = 0.01
  Prefactor  = 1.37039
 **********
 **   18 **HESSE 
 **********

 FCN=   1354.678     FROM HESSE     STATUS=OK           447 CALLS     3319 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.006        75.130        .27637E-03   -1.5616    
   2  norm           .0000        1.9339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.585        37.551        .12550E-03   -1.5552    
   4  norm           .0000        6.2858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        4.5684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.386        19.264        .27683E-03   -1.5635    
   7  Prefactor      .0000        29.898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1192.3        659.90        .28436E-04   -1.5017    
   9  Prefactor     111.08        165.03        .94109E-04   -1.5497    
  10  Prefactor     113.98        263.12        .90345E-04   -1.5494    
  11  Prefactor      .0000        22.473        .16663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        12.520        .46284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33307E-09    124.72        .89079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        6.2648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    220.13        .66319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        53.009        .13700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9813        3792.6        .10800E-02   -1.5742    
  18  Prefactor      .0000        97.368        .98371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        85.603        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .14433E-08    279.68        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        50.660        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13323E-08    326.38        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .21760        .25131       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3704        .19670        .31530E-01   -.81237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81815e-09
Minuit parameter uncertainties:
  1  75.1333
  2  6.6731e-08
  3  37.5507
  4  1.03801e-06
  5  3.76764e-08
  6  19.2642
  7  1.07405e-05
  8  659.941
  9  165.04
  10  263.147
  11  2.26205e-05
  12  1.28036e-05
  13  0.000408636
  14  5.53619e-06
  15  0.000229621
  16  1.98801e-05
  17  212.803
  18  5.08112e-05
  19  3.35888e-05
  20  0.00126244
  21  5.16824e-07
  22  0.00133175
  23  4.77551e-08
  24  0.19681
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.140e+02  2.631e+02  0.000e+00  1.000e+06 ( 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:  1.370e+00  1.968e-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  4.776e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: 5.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822926/likelihoodResults_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.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) = 1354.67758949
delta logL = 0.000591763340253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1354.67724894
delta logL = 0.000932312065061

Fit tolerance = 1e-08

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

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

 FCN=   1354.677     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      212 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     122.19        431.68        .90470E-04   -.33568E-03
   2  Index         2.0900        1.5609        .25295E-01    .43634E-04
   3  Normalizat    .10000E-01    .21633        .25164    ** at limit **
   4  Prefactor     1.3707        .17827        .31479E-01   -.39409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 122.195
  Index      = 2.08996
  Normalizat = 0.01
  Prefactor  = 1.3707
 **********
 **   18 **HESSE 
 **********

 FCN=   1354.677     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     122.19        332.06        .36188E-05   -1.5487    
   2  Index         2.0900        1.2188        .89679E-03   -.62120    
   3  Normalizat    .10000E-01    .23834        .97341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3707        .16460        .16814E-03   -.81228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52553e-10
Minuit parameter uncertainties:
  1  332.106
  2  1.23787
  3  1.25425e-06
  4  0.164667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822926': 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) = 1354.67724893
delta logL = 0.000932325981921

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.222e+02  3.321e+02  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.090e+00  1.238e+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:  1.371e+00  1.647e-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.254e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/822926/cmap_HighResolution_690336001_690595201_4FGL_J0227.8+2246_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-02', job_status='DONE', photon_flux_upper_limit='5.77e-07', time_completed='2022-11-20 00:17:22.665546', job_id='822926', GAL2='1.37', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1668932242.67', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='9.32e-04', ts2='0.25', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1740' AND source_name='4FGL J0227.8+2246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:17:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 822902: <4FGL_J0227.8+2246_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0227.8+2246_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:19 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:09:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:09:48 2022
Terminated at Sun Nov 20 00:16:39 2022
Results reported at Sun Nov 20 00:16:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_daily_bin1740 36.9544 22.7775 690336001 690595201 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 :                                   388.59 sec.
    Max Memory :                                 781 MB
    Average Memory :                             296.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   410 sec.
    Turnaround time :                            680 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 822926: <4FGL_J0227.8+2246_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0227.8+2246_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:20 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:10:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:10:33 2022
Terminated at Sun Nov 20 00:17:23 2022
Results reported at Sun Nov 20 00:17:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_daily_bin1740 36.9544 22.7775 690336001 690595201 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 :                                   391.55 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   410 sec.
    Turnaround time :                            723 sec.

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

