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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin1712
RA = 145.91, Dec = 42.1169
tmin = 683078401, tmax = 683337601
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='84641', job_status='RUN', time_executed='2022-09-16 14:54:13.514526', time_epoch_executed='1663365253.51' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84641/ft1_4FGL_J0943.6+4207_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84641/ft1_4FGL_J0943.6+4207_daily_bin1712.fits outfile=/scratch/kocevski/84641/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1712.fits ra=145.91 dec=42.1169 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.79
user 4.53
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.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/84641/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 513

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/84641/ltcube_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.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/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits
.....................!
real 14.39
user 13.98
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/84641/ltcube_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.fits outfile=/scratch/kocevski/84641/expmap_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.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/84641/ltcube_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.fits
.....................!
real 192.20
user 186.26
sys 5.55

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

Setting source of interest to:
4FGL J0943.6+4207 @ 145.91 42.1169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits scfile=/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits outfile=/scratch/kocevski/84641/cmap_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.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.91 yref=42.1169 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits scfile=/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits outfile=/scratch/kocevski/84641/cmap_HighResolution_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.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.91 yref=42.1169 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/84641/Model_4FGL_J0943.6+4207_daily_bin1712.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/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits.....................!
real 50.71
user 49.28
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits', '/scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits', expMap='/scratch/kocevski/84641/expmap_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.fits', expCube='/scratch/kocevski/84641/ltcube_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/84641/Model_4FGL_J0943.6+4207_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0943.6+4207'

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  2.782e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  2.604e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/84641/ft1_filtered_4FGL_J0943.6+4207_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/84641/ft2_4FGL_J0943.6+4207_daily_bin1712.fits
Exposure map: /scratch/kocevski/84641/expmap_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.fits
Exposure cube: /scratch/kocevski/84641/ltcube_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/84641/Model_4FGL_J0943.6+4207_daily_bin1712.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) = 5708.28755525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4649       1.0000          .0000       .10000E+07
     2 'Prefactor '    .26141E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .57363E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.4725       1.0000          .0000       .10000E+07
     5 'Prefactor '    .99093E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .10943       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1433       1.0000          .0000       .10000E+07
     8 'norm      '    9.2548       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12104E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.1561       1.0000          .0000       .10000E+07
    11 'Prefactor '    .48491E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .69720E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .65403E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10586E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .30938       1.0000          .0000       .10000E+07
    16 'Prefactor '    .42598E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .48053E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .29109E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .38705E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .83313E-03   1.0000          .0000       .10000E+07
    21 'norm      '    3.2205       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.4402       1.0000          .0000       .10000E+07
    23 'norm      '    2.3366       1.0000          .0000       .10000E+07
    24 'Prefactor '    .19517E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    14.145       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1548       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5708.083     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     1918 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4536        6.6534       -.15986E-06   -.57022E-03
   2  Prefactor     .44409E-09    18.024        .30389E-07** at limit **
   3  Prefactor     .55511E-10    4.2160       -.66425E-06** at limit **
   4  Prefactor     4.4658        4.0973        .56344E-06   -.36591E-03
   5  Prefactor     .78271E-08    3.9794       -.50107E-06** at limit **
   6  norm          .11404        1.1876       -.24014E-06** at limit **
   7  Prefactor     1.1115        4.8754        .19453E-06   -.16264E-02
   8  norm          9.2128        5.9573       -.45564E-07    .13525E-01
   9  Prefactor     .91593E-08    16.061       -.20895E-05** at limit **
  10  Prefactor     7.1430        9.6461       -.25020E-06   -.60118E-02
  11  Prefactor     .66613E-09    4.9554        .13968E-06** at limit **
  12  Prefactor     .19118E-06    23.548       -.66807E-06** at limit **
  13  norm          .87708E-08    10.981        .14021E-05** at limit **
  14  Prefactor     .70222E-07    3.7904        .47630E-07** at limit **
  15  Prefactor     .29565        13.887        .55532E-06    .43393E-02
  16  Prefactor     .35472E-07    3.3270       -.27208E-06** at limit **
  17  Prefactor     .11657E-08    7.2187        .21576E-06** at limit **
  18  norm          .43798E-07    4.3980        .91301E-06** at limit **
  19  Prefactor     .12246E-06    1.7034        .27484E-06** at limit **
  20  Prefactor     .55511E-09    1.7910        .30045E-06** at limit **
  21  norm          3.2186        2.3995        .25282E-06   -.38251E-02
  22  Prefactor     5.3911        5.2251       -.31141E-06   -.12032E-03
  23  norm          2.4348        3.6927       -.50176E-06   -.23897E-01
  24  Prefactor     .33112E-06    9.3907        .18880E-05** at limit **
  25  Prefactor     14.119        6.3117        .13076E-06    .14242E-01
  26  Normalizat    1.0503        .22213       -.17006E-04    .48550E-04
  27  Prefactor     1.1542        .26034        .11782E-04    .53302E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.45362
  Prefactor  = 4.44089e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 4.46579
  Prefactor  = 7.82707e-09
  norm       = 0.11404
  Prefactor  = 1.11155
  norm       = 9.21282
  Prefactor  = 9.15934e-09
  Prefactor  = 7.14302
  Prefactor  = 6.66134e-10
  Prefactor  = 1.9118e-07
  norm       = 8.77076e-09
  Prefactor  = 7.02216e-08
  Prefactor  = 0.295654
  Prefactor  = 3.54716e-08
  Prefactor  = 1.16573e-09
  norm       = 4.37983e-08
  Prefactor  = 1.22458e-07
  Prefactor  = 5.55112e-10
  norm       = 3.21864
  Prefactor  = 5.39107
  norm       = 2.43482
  Prefactor  = 3.31124e-07
  Prefactor  = 14.1191
  Normalizat = 1.05028
  Prefactor  = 1.15419
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.083     FROM HESSE     STATUS=OK           552 CALLS     2470 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4536        6.6936        .47629E-03   -1.5666    
   2  Prefactor     .44409E-09    18.052        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    15.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4658        4.2963        .47587E-03   -1.5666    
   5  Prefactor     .78271E-08    16.093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11404        1.2121        .13683E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1115        5.9776        .10854E-02   -1.5687    
   8  norm          9.2128        9.2392        .32920E-03   -1.5647    
   9  Prefactor     .91593E-08    2.2407        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1430        10.002        .37474E-03   -1.5655    
  11  Prefactor     .66613E-09    5.2199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .19118E-06    27.362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .87708E-08    13.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .70222E-07    17.514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .29565        3.4591        .73354E-02   -1.5697    
  16  Prefactor     .35472E-07    14.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    7.4253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .43798E-07    19.304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12246E-06    27.223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-09    17.971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2186        2.3959        .56425E-03   -1.5672    
  22  Prefactor     5.3911        5.2711        .43058E-03   -1.5662    
  23  norm          2.4348        12.579        .67053E-03   -1.5677    
  24  Prefactor     .33112E-06    23.262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.119        6.6323        .26605E-03   -1.5633    
  26  Normalizat    1.0503        .18946        .40600E-01   -.91365    
  27  Prefactor     1.1542        .21858        .63375E-01   -.87753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31213e-08
Minuit parameter uncertainties:
  1  6.69361
  2  0.000178201
  3  4.29436e-05
  4  4.29626
  5  0.000710068
  6  0.743576
  7  5.15534
  8  9.23925
  9  0.000286602
  10  10.0019
  11  0.000120086
  12  0.00457451
  13  0.000683057
  14  0.00221804
  15  2.02257
  16  0.00142668
  17  0.000186069
  18  0.00183904
  19  0.00365195
  20  0.000199363
  21  2.39586
  22  5.27107
  23  11.0684
  24  0.00555086
  25  6.6323
  26  0.189584
  27  0.21875
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  7.022e-08  2.218e-03  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  2.604e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.154e+00  2.187e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.050e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: 7.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/84641/likelihoodResults_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.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) = 5708.11042693
delta logL = -0.0277266089761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5708.08270054
delta logL = -2.16375156015e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16110E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4947       1.0000          .0000       10.000    
     3 'Normalizat'    1.0502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5708.083     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      199 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.051       -.68224E-05** at limit **
   2  Index         2.5060        6.2528        .24128E-03     .0000    
   3  Normalizat    1.0503        .20899       -.73779E-06   -.53520E-03
   4  Prefactor     1.1542        .25418        .52951E-05   -.20194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.50597
  Normalizat = 1.05027
  Prefactor  = 1.1542
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5708.083     FROM HESSE     STATUS=FAILED        11 CALLS      210 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .70780        1.9086        .24128E-03   -.52222    
   3  Normalizat    1.0503        1.2035       -.73779E-06   -.91365    
   4  Prefactor     1.1542        1.1200        .52951E-05   -.87753    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.15894e-10
Minuit parameter uncertainties:
  1  4.31997e-05
  2  1.29438
  3  1.23714
  4  1.1443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84641': 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) = 5708.08270032
delta logL = 1.72440195456e-09

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  4.320e-05  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  2.506e+00  1.294e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.154e+00  1.144e+00  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.050e+00  1.237e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.910 42.117

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/84641/cmap_HighResolution_683078401_683337601_4FGL_J0943.6+4207_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2022-09-16 15:05:29.896371', job_id='84641', GAL2='1.15', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1663365929.9', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.72e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1712' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:05:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 84641: <4FGL_J0943.6+4207_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin1712> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 14:50:17 2022
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 14:50:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 14:50:57 2022
Terminated at Fri Sep 16 15:05:30 2022
Results reported at Fri Sep 16 15:05:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1712 145.91 42.1169 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0943.6+4207 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            913 sec.

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

