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


Performing analysis on: 4FGL_J0943.7+6137_monthly_bin168
RA = 145.926, Dec = 61.6192
tmin = 672451201, tmax = 675043201
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='629374', job_status='RUN', time_executed='2022-05-24 02:50:48.200531', time_epoch_executed='1653385848.2' WHERE source_name='4FGL J0943.7+6137' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629374

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629374/ft1_4FGL_J0943.7+6137_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629374/ft1_4FGL_J0943.7+6137_monthly_bin168.fits outfile=/scratch/kocevski/629374/ft1_filteredMKT_4FGL_J0943.7+6137_monthly_bin168.fits ra=145.926 dec=61.6192 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.73
user 27.98
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.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/629374/ft1_filteredMKT_4FGL_J0943.7+6137_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/629374/ft1_filtered_4FGL_J0943.7+6137_monthly_bin168.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.87
user 0.68
sys 0.17

Number of photons that the gtmktime cut: 11346

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629374/ft1_filtered_4FGL_J0943.7+6137_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/629374/ltcube_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.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/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits
.....................!
real 142.82
user 142.08
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629374/ft1_filtered_4FGL_J0943.7+6137_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/629374/ltcube_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.fits outfile=/scratch/kocevski/629374/expmap_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.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/629374/ltcube_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.fits
.....................!
real 192.13
user 186.83
sys 4.86

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/629374/ft1_filtered_4FGL_J0943.7+6137_monthly_bin168.fits scfile=/scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits outfile=/scratch/kocevski/629374/cmap_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.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.82
user 0.64
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629374/ft1_filtered_4FGL_J0943.7+6137_monthly_bin168.fits scfile=/scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits outfile=/scratch/kocevski/629374/cmap_HighResolution_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.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.80
user 0.64
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629374/ft1_filtered_4FGL_J0943.7+6137_monthly_bin168.fits', '/scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits', expMap='/scratch/kocevski/629374/expmap_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.fits', expCube='/scratch/kocevski/629374/ltcube_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629374/Model_4FGL_J0943.7+6137_monthly_bin168.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/629374/ft1_filtered_4FGL_J0943.7+6137_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/629374/ft2_4FGL_J0943.7+6137_monthly_bin168.fits
Exposure map: /scratch/kocevski/629374/expmap_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.fits
Exposure cube: /scratch/kocevski/629374/ltcube_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629374/Model_4FGL_J0943.7+6137_monthly_bin168.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) = 119549.696989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8374       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25148       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7792       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7749       1.0000         .10000E-03   10000.    
     6 'norm      '    .56203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1930       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1910       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8529       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22122E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82998       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9333       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33233       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7231       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0418       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5163       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5211       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11693       1.0000         .10000E-03   10000.    
    25 'norm      '    9.0971       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    21.443       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.505       1.0000         .10000E-03   10000.    
    29 'norm      '    1.6856       1.0000         .10000E-03   10000.    
    30 'norm      '    3.6272       1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.6142       1.0000         .10000E-03   10000.    
    32 'norm      '    1.3531       1.0000         .10000E-03   10000.    
    33 'norm      '    .47141       1.0000         .10000E-03   10000.    
    34 'Prefactor '    34.632       1.0000         .10000E-03   10000.    
    35 'norm      '    2.3055       1.0000         .10000E-03   10000.    
    36 'Prefactor '    2.0276       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0294       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0291       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   119548.8     FROM MIGRAD    STATUS=CONVERGED   1166 CALLS     5348 TOTAL
                     EDM=   .30E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8375        4.6176         .0000       -.53948E-04
   2  norm          1.6774        .75576         .0000        .13492E-01
   3  Prefactor     .25149        .23900         .0000        .29164E-01
   4  Prefactor     3.7794        2.1903         .0000        .17239E-02
   5  Prefactor     4.7749        1.9087         .0000        .82808E-01
   6  norm          .56208        .43644         .0000        .26629E-01
   7  Prefactor     1.1930        1.0012         .0000        .24564E-02
   8  Prefactor     8.1912        5.1337         .0000        .19731E-02
   9  Prefactor     3.0542        2.2500         .0000        .42633E-01
  10  Prefactor     .10000E-03    1.2998         .0000    ** at limit **
  11  Prefactor     1.8530        1.3721         .0000        .15969    
  12  Prefactor     .10000E-03    .90328         .0000    ** at limit **
  13  norm          .91814        .20333         .0000        .16534E-01
  14  Prefactor     6.9792        2.3041         .0000       -.35129E-02
  15  Prefactor     .83051        1.6882         .0000        .38910    
  16  Prefactor     2.9333        .90342         .0000        .64903E-02
  17  Prefactor     .10000E-03    1.5268         .0000    ** at limit **
  18  Prefactor     .33247        .64518         .0000        .16182E-01
  19  Prefactor     .10000E-03    .57593         .0000    ** at limit **
  20  Prefactor     2.7229        1.5683         .0000        .19364    
  21  norm          1.0429        1.1925         .0000        .62260E-02
  22  Prefactor     6.5135        7.7248         .0000        .97883E-03
  23  norm          1.5212        .14655         .0000       -.38014E-02
  24  Prefactor     .11959        .35142         .0000        .99339E-02
  25  norm          9.0971        .33337         .0000        .58966E-02
  26  Prefactor     .10000E-03    4.9696         .0000    ** at limit **
  27  norm          21.443        4.5834         .0000       -.28003E-03
  28  Prefactor     12.505        4.5481         .0000        .10899E-01
  29  norm          1.6857        .54640         .0000        .76800E-02
  30  norm          3.6273        .45496         .0000       -.10292E-02
  31  Prefactor     8.6141        16.322         .0000        .21480E-03
  32  norm          1.3531        .21403         .0000        .72301E-02
  33  norm          .47161        .73178         .0000        .28592E-01
  34  Prefactor     34.632        20.704         .0000       -.54621E-03
  35  norm          2.3056        .49777         .0000        .25052E-02
  36  Prefactor     2.0274        2.1403         .0000        .14953E-01
  37  Prefactor     .10000E-03    2.2240         .0000    ** at limit **
  38  Normalizat    1.0294        .44181E-01     .0000       -.17108E-02
  39  Prefactor     1.0291        .39666E-01     .0000       -.18111E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8375
  norm       = 1.67745
  Prefactor  = 0.251491
  Prefactor  = 3.77943
  Prefactor  = 4.77494
  norm       = 0.562083
  Prefactor  = 1.19304
  Prefactor  = 8.19118
  Prefactor  = 3.0542
  Prefactor  = 0.0001
  Prefactor  = 1.85297
  Prefactor  = 0.0001
  norm       = 0.918143
  Prefactor  = 6.97921
  Prefactor  = 0.830514
  Prefactor  = 2.93334
  Prefactor  = 0.0001
  Prefactor  = 0.332465
  Prefactor  = 0.0001
  Prefactor  = 2.72286
  norm       = 1.04288
  Prefactor  = 6.51347
  norm       = 1.52116
  Prefactor  = 0.119591
  norm       = 9.0971
  Prefactor  = 0.0001
  norm       = 21.4428
  Prefactor  = 12.5054
  norm       = 1.68568
  norm       = 3.62727
  Prefactor  = 8.61415
  norm       = 1.35305
  norm       = 0.471615
  Prefactor  = 34.6318
  norm       = 2.30556
  Prefactor  = 2.02735
  Prefactor  = 0.0001
  Normalizat = 1.02939
  Prefactor  = 1.02911
 **********
 **   18 **HESSE 
 **********

 FCN=   119548.8     FROM HESSE     STATUS=OK           974 CALLS     6322 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8375        4.5925        .14323E-03   -1.5148    
   2  norm          1.6774        .74209        .19002E-03   -1.5449    
   3  Prefactor     .25149        .26745        .15291E-02   -1.5608    
   4  Prefactor     3.7794        2.1850        .20766E-03   -1.5319    
   5  Prefactor     4.7749        1.9029        .92061E-03   -1.5271    
   6  norm          .56208        .43004        .19180E-03   -1.5558    
   7  Prefactor     1.1930        1.0024        .30802E-03   -1.5490    
   8  Prefactor     8.1912        5.1337        .70042E-03   -1.5135    
   9  Prefactor     3.0542        2.2453        .11607E-02   -1.5358    
  10  Prefactor     .10000E-03    1.3098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8530        1.3637        .15313E-02   -1.5436    
  12  Prefactor     .10000E-03    8.1343        .63261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91814        .19537        .69090E-03   -1.5516    
  14  Prefactor     6.9792        2.2995        .15186E-03   -1.5180    
  15  Prefactor     .83051        1.6674        .25102E-02   -1.5526    
  16  Prefactor     2.9333        .89673        .16979E-03   -1.5365    
  17  Prefactor     .10000E-03    1.5449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33247        .72912        .37248E-02   -1.5593    
  19  Prefactor     .10000E-03    .59002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7229        1.5482        .12339E-02   -1.5378    
  21  norm          1.0429        1.0120        .36961E-02   -1.5504    
  22  Prefactor     6.5135        7.5114        .15722E-03   -1.5197    
  23  norm          1.5212        .14647        .39352E-04   -1.5461    
  24  Prefactor     .11959        2.0662        .32924E-02   -1.5639    
  25  norm          9.0971        .33303        .36170E-04   -1.5105    
  26  Prefactor     .10000E-03    5.1076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          21.443        4.5824        .86498E-04   -1.4782    
  28  Prefactor     12.505        4.5753        .56638E-03   -1.5001    
  29  norm          1.6857        .54429        .11897E-03   -1.5448    
  30  norm          3.6273        .45503        .79845E-04   -1.5327    
  31  Prefactor     8.6141        16.312        .13658E-03   -1.5121    
  32  norm          1.3531        .21031        .58652E-04   -1.5475    
  33  norm          .47161        .56842        .19953E-03   -1.5571    
  34  Prefactor     34.632        20.707        .68096E-04   -1.4530    
  35  norm          2.3056        .49720        .10886E-03   -1.5404    
  36  Prefactor     2.0274        1.7253        .28373E-03   -1.5423    
  37  Prefactor     .10000E-03    2.2765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    1.0294        .50419E-01    .27641E-03   -.92052    
  39  Prefactor     1.0291        .45519E-01    .26471E-03   -.91765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66462e-07
Minuit parameter uncertainties:
  1  4.59275
  2  0.742099
  3  0.267452
  4  2.18503
  5  1.90293
  6  0.430045
  7  1.00244
  8  5.13402
  9  2.24532
  10  5.77633e-06
  11  1.36373
  12  9.95224e-06
  13  0.195372
  14  2.29958
  15  1.66752
  16  0.896731
  17  1.12567e-05
  18  0.729142
  19  3.80473e-06
  20  1.54818
  21  1.01207
  22  7.51245
  23  0.146466
  24  0.993801
  25  0.333025
  26  1.73607e-05
  27  4.58249
  28  4.57538
  29  0.544295
  30  0.455031
  31  16.3202
  32  0.210311
  33  0.568425
  34  20.7113
  35  0.497205
  36  1.72535
  37  1.90098e-05
  38  0.0504209
  39  0.0455208
Done.

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

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  3.805e-06  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:  1.029e+00  4.552e-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.029e+00  5.042e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.926 61.619
Photon Flux Upper Limit: 1.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629374/likelihoodResults_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.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) = 119548.81494
delta logL = -0.00809061707696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 119548.80685
delta logL = -8.12622602098e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7185       1.0000          .0000       10.000    
     3 'Normalizat'    1.0294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0291       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   119548.8     FROM MIGRAD    STATUS=FAILED       154 CALLS      315 TOTAL
                     EDM=   .30E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91640E-02    8.1930        .55974E-03    .20057    
   2  Index         5.8275        6.9886        .40709E-01   -.81279E-03
   3  Normalizat    1.0267        .48784E-01    .27673E-03    .65863E-03
   4  Prefactor     1.0306        .33369E-01    .26454E-03    .18036E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   119548.8     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      409 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91640E-02    8.1930        .72574E-04    .20057    
   2  Index         5.8275        6.9886        .10132E-01   -.81279E-03
   3  Normalizat    1.0267        .48784E-01    .50744E-05    .65863E-03
   4  Prefactor     1.0306        .33369E-01    .54844E-05    .18036E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   119548.8     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      440 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91659E-02    .92345        .11195E-03   -.32984E-03
   2  Index         5.8273        5.6649        .81419E-02    .77747E-05
   3  Normalizat    1.0267        .47680E-01    .11069E-04    .36152E-03
   4  Prefactor     1.0306        .44499E-01    .10582E-04    .15093E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00916591
  Index      = 5.82733
  Normalizat = 1.02667
  Prefactor  = 1.03059
 **********
 **   18 **HESSE 
 **********

 FCN=   119548.8     FROM HESSE     STATUS=OK            25 CALLS      465 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91659E-02    .30331        .44779E-05   -1.5689    
   2  Index         5.8273        7.0830        .32568E-03    9.2585    
   3  Normalizat    1.0267        .47052E-01    .22138E-05   -.92142    
   4  Prefactor     1.0306        .44345E-01    .21163E-05   -.91717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49083e-10
Minuit parameter uncertainties:
  1  0.104877
  2  7.17924
  3  0.0470537
  4  0.0443465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629374': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 119548.778784
delta logL = 0.0280653882073

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  9.166e-03  1.049e-01  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  5.827e+00  7.179e+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.031e+00  4.435e-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.027e+00  4.705e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.926 61.619

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/629374/cmap_HighResolution_672451201_675043201_4FGL_J0943.7+6137_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-04', job_status='DONE', photon_flux_upper_limit='1.12e-08', time_completed='2022-05-24 08:59:53.413728', job_id='629374', GAL2='1.03', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1653407993.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.81e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='168' AND source_name='4FGL J0943.7+6137' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 08:59:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 629374: <4FGL_J0943.7+6137_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0943.7+6137_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 02:50:23 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:50:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:50:26 2022
Terminated at Tue May 24 08:59:54 2022
Results reported at Tue May 24 08:59:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.7+6137_monthly_bin168 145.926 61.6192 672451201 675043201 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 :                                   22024.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             520.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   22168 sec.
    Turnaround time :                            22171 sec.

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

