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 76 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0943.7+6137_weekly_bin715
RA = 145.926, Dec = 61.6192
tmin = 671414401, tmax = 672019201
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='934425', job_status='RUN', time_executed='2022-04-19 02:27:44.408315', time_epoch_executed='1650360464.41' WHERE source_name='4FGL J0943.7+6137' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934425

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934425/ft1_4FGL_J0943.7+6137_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934425/ft1_4FGL_J0943.7+6137_weekly_bin715.fits outfile=/scratch/kocevski/934425/ft1_filteredMKT_4FGL_J0943.7+6137_weekly_bin715.fits ra=145.926 dec=61.6192 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.65
user 7.28
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.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/934425/ft1_filteredMKT_4FGL_J0943.7+6137_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.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.38
sys 0.16

Number of photons that the gtmktime cut: 1636

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934425/ltcube_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.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/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits
.....................!
real 27.52
user 27.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934425/ltcube_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.fits outfile=/scratch/kocevski/934425/expmap_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.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/934425/ltcube_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.fits
.....................!
real 192.17
user 187.61
sys 4.22

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

Setting source of interest to:
4FGL J0943.7+6137 @ 145.926 61.6192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits scfile=/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits outfile=/scratch/kocevski/934425/cmap_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.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=145.926 yref=61.6192 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits scfile=/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits outfile=/scratch/kocevski/934425/cmap_HighResolution_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.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=145.926 yref=61.6192 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.60
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934425/Model_4FGL_J0943.7+6137_weekly_bin715.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/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits.....................!
real 166.21
user 164.66
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits', '/scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits', expMap='/scratch/kocevski/934425/expmap_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.fits', expCube='/scratch/kocevski/934425/ltcube_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934425/Model_4FGL_J0943.7+6137_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0943.7+6137'

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  2.807e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  2.706e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934425/ft1_filtered_4FGL_J0943.7+6137_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934425/ft2_4FGL_J0943.7+6137_weekly_bin715.fits
Exposure map: /scratch/kocevski/934425/expmap_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934425/ltcube_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934425/Model_4FGL_J0943.7+6137_weekly_bin715.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) = 17258.4627922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.244       1.0000         .10000E-03   10000.    
     2 'norm      '    .10467E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .91672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1513       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7879       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4839       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .69643E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27839E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6011       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5131       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3471       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2834       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4705       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    24.304       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4608       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .65172       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.2955       1.0000         .10000E-03   10000.    
    33 'norm      '    1.5630       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    1.9801       1.0000         .10000E-03   10000.    
    36 'Prefactor '    13.482       1.0000         .10000E-03   10000.    
    37 'Prefactor '    7.9015       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0433       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .99186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17258.45     FROM MIGRAD    STATUS=CONVERGED   1165 CALLS     6139 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.233        23.390       -.12373E-05   -.13116E-03
   2  norm          .10000E-03    .71095        .26072E-07** at limit **
   3  Prefactor     .91701        .89610        .12419E-06   -.22186E-03
   4  Prefactor     4.1511        4.1786        .54903E-07    .13995E-04
   5  Prefactor     6.7878        4.2664       -.19219E-06   -.30908E-03
   6  norm          1.3689        1.2984        .58465E-07   -.88189E-03
   7  Prefactor     3.8332        2.5450       -.26265E-06    .21326E-02
   8  Prefactor     .10000E-03    7.7564       -.12390E-05** at limit **
   9  Prefactor     5.6222        4.8594        .54929E-07    .44220E-05
  10  Prefactor     .10000E-03    8.4748        .10224E-05** at limit **
  11  Prefactor     7.4833        4.5742       -.42796E-06   -.38137E-03
  12  Prefactor     .10000E-03    7.1365        .76857E-06** at limit **
  13  norm          .69023E-01    .28276        .25127E-07   -.13842E-02
  14  Prefactor     .10003E-03    2.1602        .48238E-06** at limit **
  15  Prefactor     12.321        7.6919       -.67573E-08   -.39470E-04
  16  Prefactor     .10000E-03    .94845        .20424E-07** at limit **
  17  Prefactor     .10000E-03    3.4722        .19253E-07** at limit **
  18  Prefactor     .10000E-03    2.9907       -.29296E-08** at limit **
  19  Prefactor     1.5983        5.9908        .90131E-07   -.39205E-03
  20  Prefactor     4.5133        3.4899        .77309E-06    .30043E-03
  21  norm          2.3473        3.3887        .12171E-05    .35856E-03
  22  Prefactor     .10000E-03    12.661       -.20524E-06** at limit **
  23  norm          1.2834        .36202       -.12593E-07   -.37521E-03
  24  Prefactor     .10000E-03    1.2885       -.20714E-07** at limit **
  25  norm          7.4706        .85044       -.16124E-08   -.17865E-04
  26  Prefactor     .10000E-03    8.3448       -.11097E-06** at limit **
  27  norm          24.305        14.126        .78547E-07    .14250E-04
  28  Prefactor     5.4620        6.9965       -.25685E-07   -.73434E-04
  29  norm          .10000E-03    .27819       -.10623E-07** at limit **
  30  norm          .65175        .51557       -.38167E-08    .22839E-03
  31  Prefactor     .10000E-03    76.751       -.17634E-05** at limit **
  32  norm          1.2955        .56294       -.47773E-08   -.11896E-03
  33  norm          1.5616        2.5716       -.16260E-06   -.77259E-03
  34  Prefactor     .10000E-03    59.223        .17084E-05** at limit **
  35  norm          1.9800        1.2517        .17510E-07   -.28265E-04
  36  Prefactor     13.486        7.5669        .31634E-06   -.15111E-02
  37  Prefactor     7.9008        12.877       -.25141E-06   -.59785E-04
  38  Normalizat    1.0433        .11199       -.26845E-06   -.11186E-03
  39  Prefactor     .99188        .10103        .65384E-07   -.13191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.233
  norm       = 0.0001
  Prefactor  = 0.917005
  Prefactor  = 4.15112
  Prefactor  = 6.7878
  norm       = 1.36887
  Prefactor  = 3.83325
  Prefactor  = 0.0001
  Prefactor  = 5.62222
  Prefactor  = 0.0001
  Prefactor  = 7.48334
  Prefactor  = 0.0001
  norm       = 0.0690231
  Prefactor  = 0.000100029
  Prefactor  = 12.3212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59829
  Prefactor  = 4.5133
  norm       = 2.34729
  Prefactor  = 0.0001
  norm       = 1.28344
  Prefactor  = 0.0001
  norm       = 7.47059
  Prefactor  = 0.0001
  norm       = 24.305
  Prefactor  = 5.46198
  norm       = 0.0001
  norm       = 0.651755
  Prefactor  = 0.0001
  norm       = 1.29553
  norm       = 1.56164
  Prefactor  = 0.0001
  norm       = 1.97999
  Prefactor  = 13.4855
  Prefactor  = 7.90082
  Normalizat = 1.04326
  Prefactor  = 0.991877
 **********
 **   18 **HESSE 
 **********

 FCN=   17258.45     FROM HESSE     STATUS=OK           954 CALLS     7093 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.233        23.103        .84928E-04   -1.4765    
   2  norm          .10000E-03    1.4902        .21303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .91701        .86453        .11009E-03   -1.5516    
   4  Prefactor     4.1511        4.1771        .19783E-03   -1.5300    
   5  Prefactor     6.7878        4.2885        .15400E-03   -1.5187    
   6  norm          1.3689        1.3016        .14140E-03   -1.5474    
   7  Prefactor     3.8332        3.0026        .98110E-03   -1.5316    
   8  Prefactor     .10000E-03    7.7947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6222        4.8613        .16942E-03   -1.5234    
  10  Prefactor     .10000E-03    8.5366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4833        4.5553        .14660E-03   -1.5161    
  12  Prefactor     .10000E-03    7.2050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .69023E-01    .66116        .12548E-02   -1.5655    
  14  Prefactor     .10003E-03    13.805        .36749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.321        7.6921        .11412E-03   -1.5006    
  16  Prefactor     .10000E-03    .97109        .24942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5983        5.9600        .33503E-03   -1.5455    
  20  Prefactor     4.5133        3.4881        .18951E-03   -1.5283    
  21  norm          2.3473        3.3962        .26758E-03   -1.5402    
  22  Prefactor     .10000E-03    12.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2834        .36138        .40398E-04   -1.5481    
  24  Prefactor     .10000E-03    1.3018        .14559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4706        .85022        .38478E-04   -1.5161    
  26  Prefactor     .10000E-03    8.3666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          24.305        14.124        .81253E-04   -1.4722    
  28  Prefactor     5.4620        6.9913        .17195E-03   -1.5241    
  29  norm          .10000E-03    .27872        .67441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .65175        .51958        .81715E-04   -1.5547    
  31  Prefactor     .10000E-03    76.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.2955        .55706        .60243E-04   -1.5480    
  33  norm          1.5616        2.4585        .16180E-03   -1.5458    
  34  Prefactor     .10000E-03    59.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          1.9800        1.2519        .11185E-03   -1.5427    
  36  Prefactor     13.486        7.7832        .54544E-03   -1.4973    
  37  Prefactor     7.9008        12.899        .14264E-03   -1.5146    
  38  Normalizat    1.0433        .12704        .26881E-03   -.91595    
  39  Prefactor     .99188        .11404        .26017E-03   -.93001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.168e-07
Minuit parameter uncertainties:
  1  23.1122
  2  7.27697e-06
  3  0.864544
  4  4.17739
  5  4.28869
  6  1.30164
  7  3.00273
  8  7.5801e-05
  9  4.86167
  10  6.78428e-05
  11  4.55555
  12  4.15989e-05
  13  0.426946
  14  0.00125707
  15  7.69274
  16  4.95578e-06
  17  5.43415e-06
  18  2.9406e-06
  19  5.9622
  20  3.48822
  21  3.39649
  22  2.74299e-05
  23  0.36138
  24  4.20451e-06
  25  0.850226
  26  7.98508e-06
  27  14.1262
  28  6.99233
  29  5.50402e-08
  30  0.519587
  31  0.000345025
  32  0.557065
  33  2.45866
  34  0.000295966
  35  1.25194
  36  7.7838
  37  12.9037
  38  0.12708
  39  0.114065
Done.

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

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  1.598e+00  5.962e+00  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  2.706e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  9.919e-01  1.141e-01  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.043e+00  1.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 145.926 61.619
Photon Flux Upper Limit: 6.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934425/likelihoodResults_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.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) = 17257.8990885
delta logL = 0.551029411432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17257.7669102
delta logL = 0.683207686576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49939       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9565       1.0000          .0000       10.000    
     3 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17257.77     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      226 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49950        4.9578        .11268E-01    .28905E-02
   2  Index         4.9566        2.9492        .20137        .31994E-03
   3  Normalizat    1.0089        .21902E-01    .46278E-01   -.24526E-03
   4  Prefactor     1.0107        .20859E-01    .43221E-01   -.26118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.499502
  Index      = 4.95662
  Normalizat = 1.00889
  Prefactor  = 1.01074
 **********
 **   18 **HESSE 
 **********

 FCN=   17257.77     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49950        19.123        .78988E-04   -1.5567    
   2  Index         4.9566        7.4419        .11190E-01   -.86770E-02
   3  Normalizat    1.0089        .97555E-01    .27252E-03   -.92733    
   4  Prefactor     1.0107        .91492E-01    .25798E-03   -.92372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.32831e-08
Minuit parameter uncertainties:
  1  6.18271
  2  8.66443
  3  0.0975723
  4  0.0915065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934425': 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) = 17257.7669101
delta logL = 0.683207768416

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  4.995e-01  6.183e+00  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  4.957e+00  8.664e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  1.011e+00  9.151e-02  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.009e+00  9.757e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 145.926 61.619
Photon Index (Free Index): 4.96 +/- 8.66
Photon Flux (Free Index): 4.04e-08 +/- 3.85e-08
Energy Flux (Free Index): 5.40e-06 +/- 7.82e-06

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/934425/cmap_HighResolution_671414401_672019201_4FGL_J0943.7+6137_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', comment='SUCCESS', energy_flux2='5.40e-06', dlogl='6.83e-01', photon_flux2='4.04e-08', job_status='DONE', time_completed='2022-04-19 03:28:31.726419', photon_index_error2='8.66', photon_index2='4.96', ts='0.08', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.72e-08', energy_flux_error2='7.82e-06', EG='1.04', time_epoch_completed='1650364111.73', return_code='0', job_id='934425', GAL2='1.01', EG2='1.01', return_code2='102', photon_flux_error2='3.85e-08', ts2='1.53', photon_index='2.71' WHERE bin_id='715' AND source_name='4FGL J0943.7+6137' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:28:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 930686: <4FGL_J0943.7+6137_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0943.7+6137_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:26 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:13:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:13:20 2022
Terminated at Tue Apr 19 03:15:23 2022
Results reported at Tue Apr 19 03:15:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.7+6137_weekly_bin715 145.926 61.6192 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0943.7+6137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3632.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             334.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3723 sec.
    Turnaround time :                            11337 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 934425: <4FGL_J0943.7+6137_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0943.7+6137_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:32 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:26:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:26:19 2022
Terminated at Tue Apr 19 03:28:32 2022
Results reported at Tue Apr 19 03:28:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.7+6137_weekly_bin715 145.926 61.6192 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0943.7+6137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3644.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             337.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3733 sec.
    Turnaround time :                            11460 sec.

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

