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 52 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_J0113.4+4948_weekly_bin741
RA = 18.3682, Dec = 49.8054
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='378977', job_status='RUN', time_executed='2022-10-18 00:36:51.728490', time_epoch_executed='1666078611.73' WHERE source_name='4FGL J0113.4+4948' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378977

Creating custom pfile directory:
/scratch/kocevski/378977/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/378977/ft1_4FGL_J0113.4+4948_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/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378977/ft1_4FGL_J0113.4+4948_weekly_bin741.fits outfile=/scratch/kocevski/378977/ft1_filteredMKT_4FGL_J0113.4+4948_weekly_bin741.fits ra=18.3682 dec=49.8054 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.62
user 6.33
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_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/378977/ft1_filteredMKT_4FGL_J0113.4+4948_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_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.55
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 888

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/378977/ltcube_687139201_687744001_4FGL_J0113.4+4948_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/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits
.....................!
real 27.17
user 26.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/378977/ltcube_687139201_687744001_4FGL_J0113.4+4948_weekly_bin741.fits outfile=/scratch/kocevski/378977/expmap_687139201_687744001_4FGL_J0113.4+4948_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/378977/ltcube_687139201_687744001_4FGL_J0113.4+4948_weekly_bin741.fits
.....................!
real 191.47
user 185.05
sys 6.00

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 184 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0113.4+4948 @ 18.3682 49.8054

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits scfile=/scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits outfile=/scratch/kocevski/378977/cmap_687139201_687744001_4FGL_J0113.4+4948_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=18.3682 yref=49.8054 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits scfile=/scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits outfile=/scratch/kocevski/378977/cmap_HighResolution_687139201_687744001_4FGL_J0113.4+4948_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=18.3682 yref=49.8054 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.61
user 0.41
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378977/Model_4FGL_J0113.4+4948_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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits.....................!
real 114.05
user 112.60
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits', '/scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits', expMap='/scratch/kocevski/378977/expmap_687139201_687744001_4FGL_J0113.4+4948_weekly_bin741.fits', expCube='/scratch/kocevski/378977/ltcube_687139201_687744001_4FGL_J0113.4+4948_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378977/Model_4FGL_J0113.4+4948_weekly_bin741.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0113.4+4948'

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  2.121e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/378977/ft1_filtered_4FGL_J0113.4+4948_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/378977/ft2_4FGL_J0113.4+4948_weekly_bin741.fits
Exposure map: /scratch/kocevski/378977/expmap_687139201_687744001_4FGL_J0113.4+4948_weekly_bin741.fits
Exposure cube: /scratch/kocevski/378977/ltcube_687139201_687744001_4FGL_J0113.4+4948_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378977/Model_4FGL_J0113.4+4948_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) = 9313.14928457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0658       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2821       1.0000          .0000       .10000E+07
     3 'Prefactor '    16.927       1.0000          .0000       .10000E+07
     4 'norm      '    .22622       1.0000          .0000       .10000E+07
     5 'Prefactor '    38.935       1.0000          .0000       .10000E+07
     6 'norm      '    .75733E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .27173E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    21.157       1.0000          .0000       .10000E+07
     9 'norm      '    4.2456       1.0000          .0000       .10000E+07
    10 'norm      '    165.63       1.0000          .0000       .10000E+07
    11 'Prefactor '    33.296       1.0000          .0000       .10000E+07
    12 'norm      '    3.1228       1.0000          .0000       .10000E+07
    13 'norm      '    .17067E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14286       1.0000          .0000       .10000E+07
    15 'norm      '    .92210E-06   1.0000          .0000       .10000E+07
    16 'norm      '    1.8312       1.0000          .0000       .10000E+07
    17 'norm      '    4.3089       1.0000          .0000       .10000E+07
    18 'Prefactor '    .38159E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    23.212       1.0000          .0000       .10000E+07
    20 'Normalizat'    .87411       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9313.148     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1646 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0655        2.3796       -.28490E-07   -.13984E-02
   2  Prefactor     4.2294        6.3285        .66051E-07   -.96198E-03
   3  Prefactor     17.448        37.496       -.18829E-06    .37116E-01
   4  norm          .24034        40.823       -.28732E-06** at limit **
   5  Prefactor     39.059        12.831       -.40716E-07   -.54563E-01
   6  norm          .52736E-08    12.841        .10568E-06** at limit **
   7  Prefactor      .0000        2.6179        .39980E-07** at limit **
   8  Prefactor     21.215        14.215       -.26391E-09   -.20522E-01
   9  norm          4.1273        6.0114       -.73814E-08   -.46106E-03
  10  norm          165.59        6.0005        .80224E-08    .12214    
  11  Prefactor     33.334        1.9578        .34802E-08   -.18324E-01
  12  norm          3.0898        7.9273        .54462E-07    .13031E-03
  13  norm          .40035E-06    41.591       -.54427E-07** at limit **
  14  Prefactor     .72164E-09    31.343       -.25870E-06** at limit **
  15  norm           .0000        1.2046        .30433E-07** at limit **
  16  norm          1.8308        2.0207        .40914E-07    .22690E-02
  17  norm          4.3123        1.4798       -.91389E-08   -.23562E-02
  18  Prefactor     .33307E-09    4.2248       -.32915E-07** at limit **
  19  Prefactor     23.128        11.546        .43053E-07    .78306E-01
  20  Normalizat    .87269        .27323        .17911E-05   -.33374E-04
  21  Prefactor     .87641        .62207E-01   -.79896E-06   -.34002E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0655
  Prefactor  = 4.22943
  Prefactor  = 17.4477
  norm       = 0.240335
  Prefactor  = 39.0591
  norm       = 5.27356e-09
  Prefactor  = 0
  Prefactor  = 21.2155
  norm       = 4.1273
  norm       = 165.587
  Prefactor  = 33.334
  norm       = 3.08982
  norm       = 4.00346e-07
  Prefactor  = 7.21645e-10
  norm       = 0
  norm       = 1.83083
  norm       = 4.31226
  Prefactor  = 3.33067e-10
  Prefactor  = 23.1275
  Normalizat = 0.872692
  Prefactor  = 0.876411
 **********
 **   18 **HESSE 
 **********

 FCN=   9313.148     FROM HESSE     STATUS=OK           375 CALLS     2021 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0655        2.3875        .71856E-03   -1.5679    
   2  Prefactor     4.2294        6.4405        .48663E-03   -1.5667    
   3  Prefactor     17.448        39.571        .24317E-03   -1.5624    
   4  norm          .24034        5.0723        .82547E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.059        49.356        .16028E-03   -1.5583    
   6  norm          .52736E-08    12.838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.6163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.215        14.222        .21747E-03   -1.5616    
   9  norm          4.1273        6.0085        .48878E-03   -1.5667    
  10  norm          165.59        99.381        .77709E-04   -1.5451    
  11  Prefactor     33.334        24.585        .17332E-03   -1.5592    
  12  norm          3.0898        7.9204        .57349E-03   -1.5673    
  13  norm          .40035E-06    1.7401        .70302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .72164E-09    31.354        .12897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.2057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8308        2.0298        .77092E-03   -1.5681    
  17  norm          4.3123        1.4814        .48507E-03   -1.5666    
  18  Prefactor     .33307E-09    4.1978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.128        90.311        .20761E-03   -1.5612    
  20  Normalizat    .87269        .27128        .12491       -.97426    
  21  Prefactor     .87641        .59739E-01    .29270E-01   -.96970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50664e-06
Minuit parameter uncertainties:
  1  2.38754
  2  6.44055
  3  39.5711
  4  2.20821
  5  49.3561
  6  0.000520993
  7  1.37224e-05
  8  14.2218
  9  6.00854
  10  99.3816
  11  24.5852
  12  7.92039
  13  0.00166929
  14  0.000298778
  15  1.34777e-06
  16  2.02981
  17  1.48138
  18  7.43735e-05
  19  90.3158
  20  0.271709
  21  0.0597438
Done.

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

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  4.003e-07  1.669e-03  0.000e+00  1.000e+06 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.764e-01  5.974e-02  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.727e-01  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.368 49.805
Photon Flux Upper Limit: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378977/likelihoodResults_687139201_687744001_4FGL_J0113.4+4948_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): 102
logL (Free Index) = 9313.14841473
delta logL = -0.000750674267692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9313.14757764
delta logL = 8.64160374476e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13516E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    1.8703       1.0000          .0000       5.0000    
     3 'Normalizat'    .87245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87636       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9313.147     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      351 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58587E-01    57.530        .59333E-02** at limit **
   2  alpha         1.8843        2.5728        .42937        .30512E-04
   3  Normalizat    .87261        .37338E-01    .12492        .32011E-04
   4  Prefactor     .87637        .87757E-02    .29271E-01   -.17389E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0585874
  alpha      = 1.88434
  Normalizat = 0.872615
  Prefactor  = 0.876365
 **********
 **   18 **HESSE 
 **********

 FCN=   9313.147     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      394 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58587E-01    52.241        .55336E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8843        3.4092        .50000       -.24882    
   3  Normalizat    .87261        .34187E-01    .55438E-03   -.97429    
   4  Prefactor     .87637        .80770E-02    .12935E-03   -.96972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.92349e-09
Minuit parameter uncertainties:
  1  3.49898
  2  18.9851
  3  0.0341877
  4  0.00807702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378977': 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) = 9313.14744422
delta logL = 0.000219836276301

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  5.859e-02  3.499e+00  0.000e+00  1.000e+06 ( 1.000e-12)
223        alpha:  1.884e+00  1.899e+01  0.000e+00  5.000e+00 ( 1.000e+00)
224         beta:  6.875e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.764e-01  8.077e-03  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.726e-01  3.419e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.368 49.805

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/378977/cmap_HighResolution_687139201_687744001_4FGL_J0113.4+4948_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2022-10-18 00:50:56.373793', job_id='378977', GAL2='0.88', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1666079456.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.20e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='741' AND source_name='4FGL J0113.4+4948' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:50:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 378977: <4FGL_J0113.4+4948_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0113.4+4948_weekly_bin741> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:50 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:51 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:35:51 2022
Terminated at Tue Oct 18 00:50:56 2022
Results reported at Tue Oct 18 00:50:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.4+4948_weekly_bin741 18.3682 49.8054 687139201 687744001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0113.4+4948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   845.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

