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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin1709
RA = 145.91, Dec = 42.1169
tmin = 682300801, tmax = 682560001
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='84637', job_status='RUN', time_executed='2022-09-16 14:51:29.143344', time_epoch_executed='1663365089.14' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84637

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84637/ft1_4FGL_J0943.6+4207_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84637/ft1_4FGL_J0943.6+4207_daily_bin1709.fits outfile=/scratch/kocevski/84637/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1709.fits ra=145.91 dec=42.1169 rad=12.0 tmin=682300801.0 tmax=682560001.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 3.86
user 3.58
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.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/84637/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/84637/ft1_filtered_4FGL_J0943.6+4207_daily_bin1709.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.52
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 541

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84637/ft1_filtered_4FGL_J0943.6+4207_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/84637/ltcube_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.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/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits
.....................!
real 14.93
user 14.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84637/ft1_filtered_4FGL_J0943.6+4207_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/84637/ltcube_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.fits outfile=/scratch/kocevski/84637/expmap_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.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/84637/ltcube_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.fits
.....................!
real 192.13
user 185.93
sys 5.44

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/84637/ft1_filtered_4FGL_J0943.6+4207_daily_bin1709.fits scfile=/scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits outfile=/scratch/kocevski/84637/cmap_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84637/ft1_filtered_4FGL_J0943.6+4207_daily_bin1709.fits scfile=/scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits outfile=/scratch/kocevski/84637/cmap_HighResolution_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.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.59
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/84637/ft1_filtered_4FGL_J0943.6+4207_daily_bin1709.fits', '/scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits', expMap='/scratch/kocevski/84637/expmap_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.fits', expCube='/scratch/kocevski/84637/ltcube_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/84637/Model_4FGL_J0943.6+4207_daily_bin1709.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/84637/ft1_filtered_4FGL_J0943.6+4207_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/84637/ft2_4FGL_J0943.6+4207_daily_bin1709.fits
Exposure map: /scratch/kocevski/84637/expmap_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.fits
Exposure cube: /scratch/kocevski/84637/ltcube_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/84637/Model_4FGL_J0943.6+4207_daily_bin1709.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) = 5981.08832871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8816       1.0000          .0000       .10000E+07
     2 'Prefactor '    16.973       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.5136       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.6825       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.610       1.0000          .0000       .10000E+07
     6 'norm      '    .23888       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19368E-06   1.0000          .0000       .10000E+07
     8 'norm      '    9.2156       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5654       1.0000          .0000       .10000E+07
    10 'Prefactor '    17.096       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14988E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1147       1.0000          .0000       .10000E+07
    13 'norm      '    .33640E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    37.024       1.0000          .0000       .10000E+07
    15 'Prefactor '    .24430E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.224       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.1439       1.0000          .0000       .10000E+07
    18 'norm      '    .21545E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .26331E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.5395       1.0000          .0000       .10000E+07
    21 'norm      '    7.8590       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.8572       1.0000          .0000       .10000E+07
    23 'norm      '    2.9851       1.0000          .0000       .10000E+07
    24 'Prefactor '    .86502E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    1.2743       1.0000          .0000       .10000E+07
    26 'Normalizat'    .64705       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4420       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=   5981.076     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2385 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8925        6.7584        .38741E-06    .36737E-03
   2  Prefactor     16.246        32.640       -.14287E-05    .20745E-02
   3  Prefactor     3.3362        2.7639       -.11927E-06    .46776E-03
   4  Prefactor     1.6781        3.3641       -.26391E-06   -.16809E-03
   5  Prefactor     10.842        3.2608       -.10710E-06    .88151E-02
   6  norm          .23872        .23692       -.21964E-07** at limit **
   7  Prefactor      .0000        .76544       -.97617E-07** at limit **
   8  norm          9.1517        8.2443       -.27846E-06   -.90952E-02
   9  Prefactor     1.5718        2.8183       -.10291E-08    .57722E-03
  10  Prefactor     17.098        9.9514        .32021E-06   -.40559E-02
  11  Prefactor      .0000        1.3069       -.10499E-06** at limit **
  12  Prefactor     2.2635        34.383       -.16500E-05   -.11989E-02
  13  norm          .99920E-08    27.411        .30482E-06** at limit **
  14  Prefactor     36.503        9.0103        .76814E-07   -.13475E-01
  15  Prefactor      .0000        3.6210        .61428E-06** at limit **
  16  Prefactor     15.765        8.8207       -.28830E-06   -.69895E-02
  17  Prefactor     7.1344        8.2002        .69498E-07    .67593E-02
  18  norm          .19929E-07    21.833        .41090E-06** at limit **
  19  Prefactor      .0000        1.7052       -.39682E-06** at limit **
  20  Prefactor     6.5483        3.8757       -.76765E-07    .23747E-03
  21  norm          7.8755        3.1409       -.18831E-06    .11126E-03
  22  Prefactor     1.8556        3.0697       -.12061E-07    .26427E-03
  23  norm          2.9733        5.2751       -.93090E-07    .85464E-02
  24  Prefactor      .0000        12.547        .66846E-06** at limit **
  25  Prefactor     1.2735        4.3125        .51946E-06   -.48407E-03
  26  Normalizat    .64805        .20618        .73961E-05    .23617E-04
  27  Prefactor     1.4416        .24839       -.41169E-05    .25963E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89253
  Prefactor  = 16.2459
  Prefactor  = 3.33615
  Prefactor  = 1.67807
  Prefactor  = 10.8421
  norm       = 0.23872
  Prefactor  = 0
  norm       = 9.15166
  Prefactor  = 1.57181
  Prefactor  = 17.0979
  Prefactor  = 0
  Prefactor  = 2.26352
  norm       = 9.99201e-09
  Prefactor  = 36.5034
  Prefactor  = 0
  Prefactor  = 15.7652
  Prefactor  = 7.13442
  norm       = 1.99285e-08
  Prefactor  = 0
  Prefactor  = 6.54827
  norm       = 7.8755
  Prefactor  = 1.85564
  norm       = 2.97328
  Prefactor  = 0
  Prefactor  = 1.27352
  Normalizat = 0.648051
  Prefactor  = 1.44158
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.076     FROM HESSE     STATUS=OK           554 CALLS     2939 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8925        6.7862        .59846E-03   -1.5674    
   2  Prefactor     16.246        33.676        .24283E-03   -1.5627    
   3  Prefactor     3.3362        49.856        .53909E-03   -1.5671    
   4  Prefactor     1.6781        3.5211        .81171E-03   -1.5682    
   5  Prefactor     10.842        22.059        .30735E-03   -1.5642    
   6  norm          .23872        .23716        .82193E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .76431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.1517        10.508        .32990E-03   -1.5647    
   9  Prefactor     1.5718        2.9726        .84976E-03   -1.5683    
  10  Prefactor     17.098        10.224        .24196E-03   -1.5625    
  11  Prefactor      .0000        1.3065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2635        35.943        .70906E-03   -1.5678    
  13  norm          .99920E-08    29.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.503        25.018        .16436E-03   -1.5587    
  15  Prefactor      .0000        3.6166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.765        30.467        .24839E-03   -1.5629    
  17  Prefactor     7.1344        8.9534        .37507E-03   -1.5655    
  18  norm          .19929E-07    24.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.7083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5483        3.8935        .39220E-03   -1.5657    
  21  norm          7.8755        3.1403        .35744E-03   -1.5652    
  22  Prefactor     1.8556        3.1180        .76448E-03   -1.5681    
  23  norm          2.9733        9.4002        .58734E-03   -1.5673    
  24  Prefactor      .0000        12.559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2735        4.5196        .98434E-03   -1.5685    
  26  Normalizat    .64805        .17695        .63248E-01   -1.0598    
  27  Prefactor     1.4416        .20915        .56119E-01   -.79189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06324e-07
Minuit parameter uncertainties:
  1  6.7862
  2  33.6761
  3  25.7938
  4  3.52114
  5  22.0588
  6  0.237158
  7  1.59441e-07
  8  10.5078
  9  2.97259
  10  10.2242
  11  7.12452e-07
  12  18.0398
  13  0.00108008
  14  25.0178
  15  1.36196e-05
  16  30.4671
  17  8.95339
  18  0.00139742
  19  2.98663e-06
  20  3.89355
  21  3.14027
  22  3.118
  23  9.40024
  24  1.84082e-05
  25  4.51966
  26  0.177102
  27  0.209273
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  3.650e+01  2.502e+01  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.442e+00  2.093e-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:  6.481e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 145.910 42.117
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 9.22e-06

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) = 5979.50740005
delta logL = 1.56865114781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5979.44759186
delta logL = 1.62845934525

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5979.448     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.829        39.190        .14513E-05   -.14562E-02
   2  Index         1.7026        .47529        .57074E-04   -.66471E-05
   3  Normalizat    .68124        .16270       -.36245E-05   -.75787E-03
   4  Prefactor     1.4161        .20675        .32553E-06   -.69789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.8294
  Index      = 1.70256
  Normalizat = 0.681238
  Prefactor  = 1.41608
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.448     FROM HESSE     STATUS=OK            27 CALLS      246 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.829        38.579        .28632E-04   -1.5568    
   2  Index         1.7026        .46800        .73986E-02   -.72014    
   3  Normalizat    .68124        .19344        .27336E-03   -1.0464    
   4  Prefactor     1.4161        .24631        .24994E-03   -.79918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77883e-10
Minuit parameter uncertainties:
  1  38.5795
  2  0.469218
  3  0.193631
  4  0.246513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84637': 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) = 5979.44758806
delta logL = 1.6284631382

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  4.883e+01  3.858e+01  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  1.703e+00  4.692e-01  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.416e+00  2.465e-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:  6.812e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 145.910 42.117
Photon Index (Free Index): 1.70 +/- 0.47
Photon Flux (Free Index): 2.39e-08 +/- 2.36e-08
Energy Flux (Free Index): 3.87e-05 +/- 4.10e-05

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/84637/cmap_HighResolution_682300801_682560001_4FGL_J0943.6+4207_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='3.87e-05', photon_flux_error='3.53e-08', dlogl='1.63e+00', energy_flux='1.35e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2022-09-16 15:02:39.729072', photon_index_error2='0.47', photon_index2='1.70', ts='4.37', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='0.65', time_epoch_completed='1663365759.73', return_code='0', job_id='84637', GAL2='1.42', EG2='0.68', return_code2='0', energy_flux_error='9.22e-06', photon_flux_error2='2.36e-08', ts2='7.61', photon_index='2.60' WHERE bin_id='1709' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:02:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 84637: <4FGL_J0943.6+4207_daily_bin1709> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin1709> 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) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 14:50:56 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:56 2022
Terminated at Fri Sep 16 15:02:40 2022
Results reported at Fri Sep 16 15:02:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1709 145.91 42.1169 682300801 682560001 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 :                                   672.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            743 sec.

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

