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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin1774
RA = 145.91, Dec = 42.1169
tmin = 699148801, tmax = 699408001
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='678820', job_status='RUN', time_executed='2023-03-02 00:30:39.674735', time_epoch_executed='1677745839.67' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678820/ft1_4FGL_J0943.6+4207_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678820/ft2_4FGL_J0943.6+4207_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678820/ft1_4FGL_J0943.6+4207_daily_bin1774.fits outfile=/scratch/kocevski/678820/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1774.fits ra=145.91 dec=42.1169 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.82
user 2.59
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/678820/ft2_4FGL_J0943.6+4207_daily_bin1774.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/678820/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/678820/ft1_filtered_4FGL_J0943.6+4207_daily_bin1774.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.48
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 2

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678820/ft1_filtered_4FGL_J0943.6+4207_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678820/ft2_4FGL_J0943.6+4207_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/678820/ltcube_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.fits outfile=/scratch/kocevski/678820/expmap_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.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/678820/ltcube_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.fits
.....................!
real 189.34
user 184.88
sys 4.15

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/678820/ft1_filtered_4FGL_J0943.6+4207_daily_bin1774.fits scfile=/scratch/kocevski/678820/ft2_4FGL_J0943.6+4207_daily_bin1774.fits outfile=/scratch/kocevski/678820/cmap_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678820/ft1_filtered_4FGL_J0943.6+4207_daily_bin1774.fits scfile=/scratch/kocevski/678820/ft2_4FGL_J0943.6+4207_daily_bin1774.fits outfile=/scratch/kocevski/678820/cmap_HighResolution_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678820/ft1_filtered_4FGL_J0943.6+4207_daily_bin1774.fits', '/scratch/kocevski/678820/ft2_4FGL_J0943.6+4207_daily_bin1774.fits', expMap='/scratch/kocevski/678820/expmap_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.fits', expCube='/scratch/kocevski/678820/ltcube_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678820/Model_4FGL_J0943.6+4207_daily_bin1774.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/678820/ft1_filtered_4FGL_J0943.6+4207_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/678820/ft2_4FGL_J0943.6+4207_daily_bin1774.fits
Exposure map: /scratch/kocevski/678820/expmap_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.fits
Exposure cube: /scratch/kocevski/678820/ltcube_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678820/Model_4FGL_J0943.6+4207_daily_bin1774.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 30.0630782844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 28.4246197745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    97.876       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.7929       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.3741       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87279E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.6241       1.0000          .0000       .10000E+07
     6 'norm      '    .31006       1.0000          .0000       .10000E+07
     7 'Prefactor '    .42833       1.0000          .0000       .10000E+07
     8 'norm      '    3.1158       1.0000          .0000       .10000E+07
     9 'Prefactor '    .87380E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.8774       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0372       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.2986       1.0000          .0000       .10000E+07
    13 'norm      '    1.9813       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.7836       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7631       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.1921       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.4647       1.0000          .0000       .10000E+07
    18 'norm      '    6.8267       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23485       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.1622       1.0000          .0000       .10000E+07
    21 'norm      '    .47425       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.7987       1.0000          .0000       .10000E+07
    23 'norm      '    9.8877       1.0000          .0000       .10000E+07
    24 'Prefactor '    7.9052       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.7368       1.0000          .0000       .10000E+07
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .32439E-08   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23.63553     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     1137 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.934        53.950        .10109E-03   -.59302E-03
   2  Prefactor     .55511E-10    1010.8        .60854E-03** at limit **
   3  Prefactor     .16653E-09    1028.8        .43326E-03** at limit **
   4  Prefactor      .0000        83.105        .14284E-02** at limit **
   5  Prefactor     .55511E-10    1009.6        .38966E-03** at limit **
   6  norm           .0000        76.482        .10075E-02** at limit **
   7  Prefactor      .0000        519.23        .86275E-03** at limit **
   8  norm           .0000        2259.5        .57416E-03** at limit **
   9  Prefactor      .0000        430.93        .14281E-02** at limit **
  10  Prefactor      .0000        40506.        .41400E-03** at limit **
  11  Prefactor     .10000E+07    .74223E+06    .72432E-02** at limit **
  12  Prefactor     .10000E+07    .94828E+06    .48567E-02** at limit **
  13  norm          .10000E+07    .98634E+06    .73605E-02** at limit **
  14  Prefactor     .10000E+07    .98534E+06    .60963E-02** at limit **
  15  Prefactor     .11102E-09    32624.        .78871E-03** at limit **
  16  Prefactor     7.1921        1.0024         .0000         .0000    
  17  Prefactor     1.4647        1.0750         .0000         .0000    
  18  norm          6.8267        1.0027         .0000         .0000    
  19  Prefactor     .11102E-09    .31280        .23144E-06** at limit **
  20  Prefactor     1.1622        1.1510         .0000         .0000    
  21  norm           .0000        .16542        .43992E-07** at limit **
  22  Prefactor     1.7987        1.0451         .0000         .0000    
  23  norm          9.8877        1.0013         .0000         .0000    
  24  Prefactor     7.9052        1.0020         .0000         .0000    
  25  Prefactor     .38858E-09    .15839       -.39709E-06** at limit **
  26  Normalizat    .10000E-01    .25772       -.90188E-06** at limit **
  27  Prefactor     .67557E-11    .25504       -.12700E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 37.9338
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1.11022e-10
  Prefactor  = 7.19212
  Prefactor  = 1.46472
  norm       = 6.82667
  Prefactor  = 1.11022e-10
  Prefactor  = 1.16222
  norm       = 0
  Prefactor  = 1.79868
  norm       = 9.88767
  Prefactor  = 7.9052
  Prefactor  = 3.88578e-10
  Normalizat = 0.01
  Prefactor  = 6.75571e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23.63553     FROM HESSE     STATUS=FAILED        41 CALLS     1178 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.934        53.950        .10109E-03   -1.5831    
   2  Prefactor     .55511E-10    1010.8        .60854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    1028.8        .43326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        83.105        .14284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    1009.6        .38966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        76.482        .10075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        519.23        .86275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2259.5        .57416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        430.93        .14281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        40506.        .41400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E+07    .74223E+06    .72432E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E+07    .94828E+06    .48567E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E+07    .98634E+06    .73605E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E+07    .98534E+06    .60963E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    32624.        .78871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33553.        33546.         .0000       -1.5654    
  17  Prefactor     1.4647        1.0750         .0000       -1.5684    
  18  norm          6.8267        1.0027         .0000       -1.5656    
  19  Prefactor     .11102E-09    .31280        .23144E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1622        1.1510         .0000       -1.5686    
  21  norm           .0000        .16542        .43992E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7987        1.0451         .0000       -1.5681    
  23  norm          9.8877        1.0013         .0000       -1.5645    
  24  Prefactor     7.9052        1.0020         .0000       -1.5652    
  25  Prefactor     .38858E-09    .15839       -.39709E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .25772       -.90188E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .67557E-11    .25504       -.12700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.84629e-12
Minuit parameter uncertainties:
  1  53.951
  2  0.000350539
  3  0.00084523
  4  3.53915e-05
  5  0.000354754
  6  9.99391e-06
  7  0.000124676
  8  0.000277228
  9  1.14714e-05
  10  0.000452493
  11  0.116338
  12  0.273419
  13  286.925
  14  203.284
  15  0.00332488
  16  1.00244
  17  1.075
  18  1.00271
  19  1.27394e-05
  20  1.15103
  21  1.71562e-06
  22  1.04507
  23  1.00128
  24  1.00201
  25  1.52759e-05
  26  9.81524e-08
  27  2.6365e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 23.6355263231

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e+06  2.033e+02  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:  6.756e-12  2.637e-06  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.000e-02  9.815e-08  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 1000000.0 is not large enough
delta logLike = 3.8232670363e-09

TS (Fixed Index): 0.01
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.83e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/678820/likelihoodResults_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.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) = 23.6611921188
delta logL = -0.0256657957188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23.5107940516
delta logL = 0.124732271502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    9.9999       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.

 FCN=   23.51079     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       67 TOTAL
                     EDM=   .84E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index      10.0000        7.7295        .17832    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   23.51079     FROM HESSE     STATUS=OK             5 CALLS       72 TOTAL
                     EDM=   .83E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index      10.0000        7.6888        .39783E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25383e-15
Minuit parameter uncertainties:
  1  1.23124e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678820': 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) = 23.5107886934
delta logL = 0.124737629684

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e+06  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13) fixed
327        Index:  1.000e+01  1.231e-06  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:  8.410e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.001e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.01
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/678820/cmap_HighResolution_699148801_699408001_4FGL_J0943.6+4207_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.83e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2023-03-02 00:36:01.733215', job_id='678820', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677746161.73', return_code2='0', ts='0.01', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='1.25e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1774' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:36:01 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 678820: <4FGL_J0943.6+4207_daily_bin1774> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:30:19 2023
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:30:21 2023
Terminated at Thu Mar  2 00:36:02 2023
Results reported at Thu Mar  2 00:36:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1774 145.91 42.1169 699148801 699408001 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 :                                   325.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             474.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   340 sec.
    Turnaround time :                            343 sec.

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

