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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin741
RA = 36.9544, Dec = 22.7775
tmin = 687139201, tmax = 687744001
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='380091', job_status='RUN', time_executed='2022-10-18 00:42:17.970135', time_epoch_executed='1666078937.97' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380091

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380091/ft1_4FGL_J0227.8+2246_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380091/ft1_4FGL_J0227.8+2246_weekly_bin741.fits outfile=/scratch/kocevski/380091/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin741.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.60
user 6.26
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.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/380091/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/380091/ft1_filtered_4FGL_J0227.8+2246_weekly_bin741.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.54
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 449

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380091/ft1_filtered_4FGL_J0227.8+2246_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/380091/ltcube_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.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/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits
.....................!
real 26.86
user 26.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380091/ft1_filtered_4FGL_J0227.8+2246_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/380091/ltcube_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.fits outfile=/scratch/kocevski/380091/expmap_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.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/380091/ltcube_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.fits
.....................!
real 191.36
user 185.29
sys 5.69

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/380091/ft1_filtered_4FGL_J0227.8+2246_weekly_bin741.fits scfile=/scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits outfile=/scratch/kocevski/380091/cmap_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380091/ft1_filtered_4FGL_J0227.8+2246_weekly_bin741.fits scfile=/scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits outfile=/scratch/kocevski/380091/cmap_HighResolution_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.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.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380091/ft1_filtered_4FGL_J0227.8+2246_weekly_bin741.fits', '/scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits', expMap='/scratch/kocevski/380091/expmap_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.fits', expCube='/scratch/kocevski/380091/ltcube_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380091/Model_4FGL_J0227.8+2246_weekly_bin741.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/380091/ft1_filtered_4FGL_J0227.8+2246_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/380091/ft2_4FGL_J0227.8+2246_weekly_bin741.fits
Exposure map: /scratch/kocevski/380091/expmap_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.fits
Exposure cube: /scratch/kocevski/380091/ltcube_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380091/Model_4FGL_J0227.8+2246_weekly_bin741.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) = 4906.44815071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.590       1.0000          .0000       .10000E+07
     2 'norm      '    .27756E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    16.596       1.0000          .0000       .10000E+07
     4 'norm      '    .22460E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .34694E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .14616E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14518E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .96034E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .85765E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    50.694       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20052       1.0000          .0000       .10000E+07
    12 'norm      '    .27518       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.109       1.0000          .0000       .10000E+07
    14 'norm      '    .27539       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11139E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .38739E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .44794E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    20.551       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.734       1.0000          .0000       .10000E+07
    20 'Prefactor '    .58070E-02   1.0000          .0000       .10000E+07
    21 'norm      '    6.0871       1.0000          .0000       .10000E+07
    22 'Prefactor '    .99339E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1559       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85865       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=   4906.413     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2138 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.569        15.124        .65558E-07   -.29156E-01
   2  norm           .0000        .40646        .19080E-07** at limit **
   3  Prefactor     16.508        6.8178        .35541E-07   -.46477E-01
   4  norm           .0000        1.3657        .16362E-07** at limit **
   5  Prefactor      .0000        .91113       -.53427E-07** at limit **
   6  Prefactor      .0000        2.5076       -.65749E-07** at limit **
   7  Prefactor      .0000        5.4528       -.25834E-07** at limit **
   8  norm          .15321E-07    102.03       -.86314E-07** at limit **
   9  Prefactor      .0000        65.378        .31823E-07** at limit **
  10  Prefactor     56.868        94.125        .29828E-06    .66057E-02
  11  Prefactor     .44409E-09    72.255        .36799E-07** at limit **
  12  norm          .27439        2.7680        .51669E-08   -.14410E-03
  13  Prefactor     14.385        18.134       -.12925E-06   -.75643E-02
  14  norm          .27200        .64478       -.29453E-07   -.16294E-02
  15  Prefactor     .10123E-05    30.844       -.36966E-07** at limit **
  16  Prefactor     .36693E-07    58.112        .27075E-06** at limit **
  17  Prefactor     .11102E-09    18.352       -.87526E-07** at limit **
  18  Prefactor     20.338        14.805        .54116E-07   -.49646E-02
  19  Prefactor     17.881        14.840        .27758E-07   -.41008E-01
  20  Prefactor     .13848E-05    30.392       -.12030E-06** at limit **
  21  norm          6.0881        9.2221       -.29012E-07   -.50318E-04
  22  Prefactor      .0000        9.2043       -.12904E-06** at limit **
  23  Normalizat    1.1533        .29690       -.91694E-06   -.78352E-05
  24  Prefactor     .85882        .12212        .22603E-06   -.11088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5693
  norm       = 0
  Prefactor  = 16.508
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.53211e-08
  Prefactor  = 0
  Prefactor  = 56.8676
  Prefactor  = 4.44089e-10
  norm       = 0.274394
  Prefactor  = 14.3852
  norm       = 0.271997
  Prefactor  = 1.0123e-06
  Prefactor  = 3.66929e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 20.338
  Prefactor  = 17.8809
  Prefactor  = 1.38484e-06
  norm       = 6.08805
  Prefactor  = 0
  Normalizat = 1.15325
  Prefactor  = 0.858816
 **********
 **   18 **HESSE 
 **********

 FCN=   4906.413     FROM HESSE     STATUS=OK           453 CALLS     2591 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.569        89.208        .19042E-03   -1.5601    
   2  norm           .0000        .40094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.508        22.497        .24559E-03   -1.5627    
   4  norm           .0000        1.3655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .91207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.5062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        5.4155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .15321E-07    101.99        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        64.288        .14328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     56.868        94.815        .14046E-03   -1.5557    
  11  Prefactor     .44409E-09    12.892        .86012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .27439        1.5704        .29977E-02   -1.5697    
  13  Prefactor     14.385        21.148        .26639E-03   -1.5632    
  14  norm          .27200        .78946        .18727E-02   -1.5698    
  15  Prefactor     .10123E-05    36.637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36693E-07    58.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    18.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.338        14.985        .22066E-03   -1.5618    
  19  Prefactor     17.881        26.190        .23756E-03   -1.5623    
  20  Prefactor     .13848E-05    38.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.0881        9.2077        .40670E-03   -1.5659    
  22  Prefactor      .0000        9.1806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1533        .27805        .78343E-01   -.88060    
  24  Prefactor     .85882        .10778        .44476E-01   -.97595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96502e-07
Minuit parameter uncertainties:
  1  89.2121
  2  7.01697e-07
  3  22.4972
  4  1.00241e-06
  5  2.5232e-06
  6  6.87123e-06
  7  7.04235e-06
  8  0.0025012
  9  1.42751e-06
  10  94.8175
  11  0.000153624
  12  1.31287
  13  21.1484
  14  0.789457
  15  0.0121799
  16  0.00292616
  17  8.45433e-05
  18  14.9854
  19  26.1901
  20  0.0145986
  21  9.20777
  22  1.98951e-05
  23  0.278408
  24  0.107805
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.687e+01  9.482e+01  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:  8.588e-01  1.078e-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.153e+00  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/380091/likelihoodResults_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.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) = 4904.70840837
delta logL = 1.70431550648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4904.62508696
delta logL = 1.78763691483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5634       1.0000          .0000       .10000E+07
     2 'Index     '    4.1297       1.0000          .0000       10.000    
     3 'Normalizat'    .98012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90108       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=   4904.625     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      284 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5436        15.054        .85047E-03    .50451E-02
   2  Index         4.1345        1.9310        .62683E-01    .20661E-03
   3  Normalizat    .97999        .95563E-01    .83920E-01    .18729E-04
   4  Prefactor     .90102        .39392E-01    .45019E-01    .18828E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54356
  Index      = 4.13448
  Normalizat = 0.979993
  Prefactor  = 0.901024
 **********
 **   18 **HESSE 
 **********

 FCN=   4904.625     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      317 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5436        25.804        .49066E-05   -1.5683    
   2  Index         4.1345        2.7181        .25448E-02   -.17398    
   3  Normalizat    .97999        .27667        .37152E-03   -.93704    
   4  Prefactor     .90102        .11419        .16182E-03   -.96105    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.38495e-10
Minuit parameter uncertainties:
  1  12.6222
  2  2.87936
  3  0.277079
  4  0.114222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380091': 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) = 4904.62508059
delta logL = 1.78764329272

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.544e+00  1.262e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  4.134e+00  2.879e+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:  9.010e-01  1.142e-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:  9.800e-01  2.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 36.954 22.777
Photon Index (Free Index): 4.13 +/- 2.88
Photon Flux (Free Index): 2.05e-07 +/- 1.23e-07
Energy Flux (Free Index): 3.00e-05 +/- 2.33e-05

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/380091/cmap_HighResolution_687139201_687744001_4FGL_J0227.8+2246_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', energy_flux2='3.00e-05', dlogl='1.79e+00', photon_flux2='2.05e-07', job_status='DONE', time_completed='2022-10-18 00:52:22.632557', photon_index_error2='2.88', photon_index2='4.13', ts='0.43', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='2.33e-05', EG='1.15', time_epoch_completed='1666079542.63', return_code='0', job_id='380091', GAL2='0.90', EG2='0.98', return_code2='102', photon_flux_error2='1.23e-07', ts2='4.39', photon_index='2.14' WHERE bin_id='741' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:52:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 380091: <4FGL_J0227.8+2246_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0227.8+2246_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 00:40:20 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:40:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:40:22 2022
Terminated at Tue Oct 18 00:52:23 2022
Results reported at Tue Oct 18 00:52:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_weekly_bin741 36.9544 22.7775 687139201 687744001 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 :                                   605.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

