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


Performing analysis on: 4FGL_J0103.8+1321_weekly_bin749
RA = 15.969, Dec = 13.3536
tmin = 691977601, tmax = 692582401
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='512520', job_status='RUN', time_executed='2022-12-13 00:05:06.149014', time_epoch_executed='1670918706.15' WHERE source_name='4FGL J0103.8+1321' and cadence='weekly' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512520

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512520/ft1_4FGL_J0103.8+1321_weekly_bin749.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512520/ft1_4FGL_J0103.8+1321_weekly_bin749.fits outfile=/scratch/kocevski/512520/ft1_filteredMKT_4FGL_J0103.8+1321_weekly_bin749.fits ra=15.969 dec=13.3536 rad=12.0 tmin=691977601.0 tmax=692582401.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 9.46
user 8.86
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.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/512520/ft1_filteredMKT_4FGL_J0103.8+1321_weekly_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.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.62
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 1519

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/512520/ltcube_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.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/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits
.....................!
real 26.97
user 26.20
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/512520/ltcube_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.fits outfile=/scratch/kocevski/512520/expmap_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.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/512520/ltcube_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.fits
.....................!
real 191.85
user 186.48
sys 4.76

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

Setting source of interest to:
4FGL J0103.8+1321 @ 15.969 13.3536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits scfile=/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits outfile=/scratch/kocevski/512520/cmap_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.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=15.969 yref=13.3536 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.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits scfile=/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits outfile=/scratch/kocevski/512520/cmap_HighResolution_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.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=15.969 yref=13.3536 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.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/512520/Model_4FGL_J0103.8+1321_weekly_bin749.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/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits.....................!
real 158.67
user 155.70
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits', '/scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits', expMap='/scratch/kocevski/512520/expmap_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.fits', expCube='/scratch/kocevski/512520/ltcube_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/512520/Model_4FGL_J0103.8+1321_weekly_bin749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0103.8+1321'

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  4.686e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
233        Index:  2.082e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/512520/ft1_filtered_4FGL_J0103.8+1321_weekly_bin749.fits
Spacecraft file(s): /scratch/kocevski/512520/ft2_4FGL_J0103.8+1321_weekly_bin749.fits
Exposure map: /scratch/kocevski/512520/expmap_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.fits
Exposure cube: /scratch/kocevski/512520/ltcube_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/512520/Model_4FGL_J0103.8+1321_weekly_bin749.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) = 16141.9402773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8098       1.0000          .0000       .10000E+07
     2 'norm      '    13.184       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.6528       1.0000          .0000       .10000E+07
     4 'Prefactor '    .41936E-04   1.0000          .0000       .10000E+07
     5 'norm      '    5.8526       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3503       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.7293       1.0000          .0000       .10000E+07
     8 'Prefactor '    .46629E-08   1.0000          .0000       .10000E+07
     9 'norm      '    3.4223       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14824E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    93.672       1.0000          .0000       .10000E+07
    12 'norm      '    42.519       1.0000          .0000       .10000E+07
    13 'norm      '    4.2213       1.0000          .0000       .10000E+07
    14 'Prefactor '    .41957E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .35809E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    .98123       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16141.94     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     1161 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8099        2.2719        .16203E-07    .25236E-02
   2  norm          13.159        6.3439        .12077E-06    .23533E-01
   3  Prefactor     7.6416        9.0917        .22817E-06   -.61428E-01
   4  Prefactor     .83267E-08    1.9858       -.10774E-06** at limit **
   5  norm          5.8477        3.8899        .10170E-06    .85815E-02
   6  Prefactor     4.3505        2.7702       -.24203E-07   -.92269E-03
   7  Prefactor     9.7603        5.2412       -.14645E-06   -.78645E-01
   8  Prefactor      .0000        .54782        .59140E-07** at limit **
   9  norm          3.4309        3.6644        .33576E-07    .52897E-01
  10  Prefactor      .0000        7.3168       -.66146E-07** at limit **
  11  Prefactor     93.684        1.3366        .83995E-08   -.56339E-01
  12  norm          42.518        3.6508        .50285E-07    .31292E-02
  13  norm          4.2211        .61412        .72174E-08    .26677E-02
  14  Prefactor     .64948E-08    2.0409       -.30507E-06** at limit **
  15  Prefactor     .38858E-09    48.205       -.16015E-05** at limit **
  16  Normalizat    .98119        .14583        .56065E-06   -.23906E-04
  17  Prefactor     .95343        .10463       -.12627E-05   -.74612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8099
  norm       = 13.159
  Prefactor  = 7.64158
  Prefactor  = 8.32667e-09
  norm       = 5.84766
  Prefactor  = 4.35051
  Prefactor  = 9.76026
  Prefactor  = 0
  norm       = 3.43091
  Prefactor  = 0
  Prefactor  = 93.684
  norm       = 42.5176
  norm       = 4.22113
  Prefactor  = 6.4948e-09
  Prefactor  = 3.88578e-10
  Normalizat = 0.981187
  Prefactor  = 0.953432
 **********
 **   18 **HESSE 
 **********

 FCN=   16141.94     FROM HESSE     STATUS=OK           259 CALLS     1420 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8099        2.3022        .51688E-03   -1.5669    
   2  norm          13.159        6.4259        .27560E-03   -1.5635    
   3  Prefactor     7.6416        12.917        .36226E-03   -1.5653    
   4  Prefactor     .83267E-08    2.2486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8477        3.9383        .41489E-03   -1.5660    
   6  Prefactor     4.3505        2.7694        .48269E-03   -1.5666    
   7  Prefactor     9.7603        7.2436        .32102E-03   -1.5645    
   8  Prefactor      .0000        .54760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4309        6.9139        .54655E-03   -1.5671    
  10  Prefactor      .0000        7.3216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     93.684        75.872        .10333E-03   -1.5514    
  12  norm          42.518        3.9557        .15337E-03   -1.5578    
  13  norm          4.2211        .61395        .49022E-03   -1.5667    
  14  Prefactor     .64948E-08    2.2951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .38858E-09    48.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .98119        .12609        .68894E-01   -.93663    
  17  Prefactor     .95343        .89584E-01    .45682E-01   -.94298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64819e-07
Minuit parameter uncertainties:
  1  2.30221
  2  6.42587
  3  12.917
  4  0.000273629
  5  3.93835
  6  2.76945
  7  7.24362
  8  1.55257e-06
  9  6.91389
  10  1.86785e-05
  11  75.8732
  12  3.95573
  13  0.613947
  14  0.00024397
  15  0.000267973
  16  0.126128
  17  0.0895981
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  0.000e+00  1.868e-05  0.000e+00  1.000e+06 ( 1.000e-14)
233        Index:  2.082e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.534e-01  8.960e-02  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  9.812e-01  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 15.969 13.354
Photon Flux Upper Limit: 2.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512520/likelihoodResults_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.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) = 16142.0031039
delta logL = -0.0653189300301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16141.937785
delta logL = -3.84570739698e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15649E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .78580       1.0000          .0000       10.000    
     3 'Normalizat'    .98116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95344       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16141.94     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      201 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.9162        .42118E-03** at limit **
   2  Index         2.1554        1.7340        .59191E-03     .0000    
   3  Normalizat    .98118        1.3120       -.35009E-04    .34419E-03
   4  Prefactor     .95343        1.2955        .11762E-04    .11964E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.1554
  Normalizat = 0.981184
  Prefactor  = 0.953435
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16141.94     FROM HESSE     STATUS=FAILED         9 CALLS      210 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.9162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .51002        1.9107        .59191E-03   -.60519    
   3  Normalizat    .98118        1.3120       -.35009E-04   -.93663    
   4  Prefactor     .95343        1.2955        .11762E-04   -.94298    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.04546e-10
Minuit parameter uncertainties:
  1  9.32976e-06
  2  1.79003
  3  1.35933
  4  1.34165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512520': 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): 101
logL (Free Index) = 16141.937785
delta logL = -4.27462509833e-10

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  0.000e+00  9.330e-06  0.000e+00  1.000e+06 ( 1.000e-14)
233        Index:  2.155e+00  1.790e+00  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.534e-01  1.342e+00  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  9.812e-01  1.359e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 15.969 13.354

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/512520/cmap_HighResolution_691977601_692582401_4FGL_J0103.8+1321_weekly_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-03', job_status='DONE', photon_flux_upper_limit='2.38e-08', time_completed='2022-12-13 00:20:33.428980', job_id='512520', GAL2='0.95', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1670919633.43', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-4.27e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='749' AND source_name='4FGL J0103.8+1321' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 13 00:20:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 512520: <4FGL_J0103.8+1321_weekly_bin749> in cluster <slac> Done

Job <4FGL_J0103.8+1321_weekly_bin749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 13 00:04:45 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 13 00:04:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 13 00:04:46 2022
Terminated at Tue Dec 13 00:20:34 2022
Results reported at Tue Dec 13 00:20:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_weekly_bin749 15.969 13.3536 691977601 692582401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0103.8+1321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   903.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

