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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin1776
RA = 145.91, Dec = 42.1169
tmin = 699667201, tmax = 699926401
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='830084', job_status='RUN', time_executed='2023-03-08 00:25:54.215705', time_epoch_executed='1678263954.22' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830084/ft1_4FGL_J0943.6+4207_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830084/ft2_4FGL_J0943.6+4207_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830084/ft1_4FGL_J0943.6+4207_daily_bin1776.fits outfile=/scratch/kocevski/830084/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1776.fits ra=145.91 dec=42.1169 rad=12.0 tmin=699667201.0 tmax=699926401.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.16
user 3.68
sys 0.22

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

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

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830084/ft1_filtered_4FGL_J0943.6+4207_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/830084/ft2_4FGL_J0943.6+4207_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/830084/ltcube_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.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/830084/ft2_4FGL_J0943.6+4207_daily_bin1776.fits
.....................!
real 12.04
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830084/ft1_filtered_4FGL_J0943.6+4207_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830084/ft2_4FGL_J0943.6+4207_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/830084/ltcube_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.fits outfile=/scratch/kocevski/830084/expmap_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.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/830084/ltcube_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.fits
.....................!
real 190.76
user 185.33
sys 5.09

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/830084/ft1_filtered_4FGL_J0943.6+4207_daily_bin1776.fits scfile=/scratch/kocevski/830084/ft2_4FGL_J0943.6+4207_daily_bin1776.fits outfile=/scratch/kocevski/830084/cmap_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830084/ft1_filtered_4FGL_J0943.6+4207_daily_bin1776.fits scfile=/scratch/kocevski/830084/ft2_4FGL_J0943.6+4207_daily_bin1776.fits outfile=/scratch/kocevski/830084/cmap_HighResolution_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83647E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .18607E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10454E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.1126       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1498       1.0000          .0000       .10000E+07
     6 'norm      '    .56051       1.0000          .0000       .10000E+07
     7 'Prefactor '    .68279E-08   1.0000          .0000       .10000E+07
     8 'norm      '    9.1188       1.0000          .0000       .10000E+07
     9 'Prefactor '    .59119E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .62662E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1842       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10189E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .53425E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .22056E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12358E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21461E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.8045       1.0000          .0000       .10000E+07
    18 'norm      '    .50661E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .22214E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .23559E-04   1.0000          .0000       .10000E+07
    21 'norm      '    4.7788       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.3914       1.0000          .0000       .10000E+07
    23 'norm      '    6.8621       1.0000          .0000       .10000E+07
    24 'Prefactor '    10.698       1.0000          .0000       .10000E+07
    25 'Prefactor '    .51625       1.0000          .0000       .10000E+07
    26 'Normalizat'    .81959       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2869       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=   6441.625     FROM MIGRAD    STATUS=CONVERGED    227 CALLS     1994 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65783E-04    892.35        .12424E-04** at limit **
   2  Prefactor     .24547E-06    9.6214       -.52812E-07** at limit **
   3  Prefactor     .30476E-07    17.626        .20329E-06** at limit **
   4  Prefactor     2.1127        2.0765       -.18509E-07    .22811E-03
   5  Prefactor     3.1601        11.605        .19494E-06    .67557E-01
   6  norm          .56063        .34891        .64701E-09   -.45456E-02
   7  Prefactor      .0000        1.6347        .98399E-07** at limit **
   8  norm          9.1195        7.1681       -.20674E-07   -.29178E-01
   9  Prefactor      .0000        3.0655        .14192E-07** at limit **
  10  Prefactor     .55511E-10    2.1018       -.72828E-07** at limit **
  11  Prefactor     1.1840        2.3283       -.12600E-07    .28128E-02
  12  Prefactor     .67557E-07    29.783       -.15993E-08** at limit **
  13  norm          .61062E-09    5.9460       -.47019E-08** at limit **
  14  Prefactor     .55511E-09    9.4176       -.19885E-07** at limit **
  15  Prefactor     .52819E-06    7.9734       -.18453E-06** at limit **
  16  Prefactor     .38858E-09    9.7937        .36717E-07** at limit **
  17  Prefactor     6.9251        9.7767       -.72748E-08    .15630E-02
  18  norm          .15904E-05    91.507        .23560E-05** at limit **
  19  Prefactor      .0000        2.1102       -.31208E-07** at limit **
  20  Prefactor      .0000        1.5898       -.24604E-07** at limit **
  21  norm          4.7785        2.4469       -.16338E-07    .22499E-04
  22  Prefactor     4.3872        4.7203        .63862E-07   -.50093E-03
  23  norm          6.8595        7.4638        .33862E-07   -.23869E-03
  24  Prefactor     10.594        25.330       -.85812E-06    .62992E-01
  25  Prefactor     .51702        1.8910       -.10535E-08    .14248E-02
  26  Normalizat    .81939        .18274        .72302E-06   -.16727E-03
  27  Prefactor     1.2870        .22728       -.11481E-05   -.22389E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.57834e-05
  Prefactor  = 2.4547e-07
  Prefactor  = 3.04756e-08
  Prefactor  = 2.11268
  Prefactor  = 3.16009
  norm       = 0.560635
  Prefactor  = 0
  norm       = 9.11947
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.18398
  Prefactor  = 6.75571e-08
  norm       = 6.10623e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 5.28189e-07
  Prefactor  = 3.88578e-10
  Prefactor  = 6.92507
  norm       = 1.59039e-06
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.77854
  Prefactor  = 4.3872
  norm       = 6.85953
  Prefactor  = 10.5936
  Prefactor  = 0.517022
  Normalizat = 0.819394
  Prefactor  = 1.28698
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.625     FROM HESSE     STATUS=OK           554 CALLS     2548 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65783E-04    6.6907        .56591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24547E-06    15.684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .30476E-07    18.353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1127        2.1028        .70945E-03   -1.5679    
   5  Prefactor     3.1601        28.086        .57089E-03   -1.5672    
   6  norm          .56063        .35503        .72843E-03   -1.5693    
   7  Prefactor      .0000        1.6289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.1195        8.1569        .33166E-03   -1.5648    
   9  Prefactor      .0000        1.0342        .30889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    2.1087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1840        2.3757        .10487E-02   -1.5686    
  12  Prefactor     .67557E-07    29.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .61062E-09    5.9876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-09    9.4596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .52819E-06    16.703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .38858E-09    9.8329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9251        9.7928        .38440E-03   -1.5655    
  18  norm          .15904E-05    89.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.1131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.5939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7785        2.4520        .46000E-03   -1.5664    
  22  Prefactor     4.3872        4.7559        .48037E-03   -1.5666    
  23  norm          6.8595        7.4989        .38277E-03   -1.5656    
  24  Prefactor     10.594        31.898        .30607E-03   -1.5643    
  25  Prefactor     .51702        1.9222        .77091E-03   -1.5694    
  26  Normalizat    .81939        .15527        .43865E-01   -.99353    
  27  Prefactor     1.2870        .19262        .57204E-01   -.83695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05002e-06
Minuit parameter uncertainties:
  1  0.0419591
  2  0.00392419
  3  0.00149612
  4  2.10284
  5  18.842
  6  0.355026
  7  1.8501e-06
  8  8.15691
  9  1.96423e-06
  10  2.57294e-05
  11  2.37575
  12  0.00283104
  13  0.000120514
  14  0.000145942
  15  0.00594043
  16  0.000121787
  17  9.79278
  18  0.0238093
  19  1.10781e-05
  20  7.26226e-06
  21  2.452
  22  4.75591
  23  7.49888
  24  31.8989
  25  1.92223
  26  0.155359
  27  0.192728
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  5.551e-10  1.459e-04  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.287e+00  1.927e-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:  8.194e-01  1.554e-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: 5.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830084/likelihoodResults_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.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) = 6441.62785922
delta logL = -0.00293561546823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6441.62492435
delta logL = -7.47743797547e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30234E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.1480       1.0000          .0000       10.000    
     3 'Normalizat'    .81935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2871       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=   6441.625     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      250 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    10.962        .42118E-03** at limit **
   2  Index         1.3099        6.9320        .50000       -.12278E-08
   3  Normalizat    .81939        .14810        .43862E-01    .26598E-03
   4  Prefactor     1.2870        .19123        .57204E-01    .43054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  Index      = 1.30993
  Normalizat = 0.819392
  Prefactor  = 1.28698
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.625     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    10.636        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3099        8.6438        .50000       -.83012    
   3  Normalizat    .81939        .17509        .24063E-03   -.99353    
   4  Prefactor     1.2870        .22608        .25295E-03   -.83695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28653e-10
Minuit parameter uncertainties:
  1  0.000344523
  2  29418.7
  3  0.175208
  4  0.22625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830084': 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) = 6441.6249236
delta logL = -3.15594661515e-10

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  2.776e-09  3.445e-04  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  1.310e+00  2.942e+04  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.287e+00  2.262e-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:  8.194e-01  1.752e-01  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/830084/cmap_HighResolution_699667201_699926401_4FGL_J0943.6+4207_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2023-03-08 00:37:55.931656', job_id='830084', GAL2='1.29', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1678264675.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='-3.16e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1776' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:37:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 830084: <4FGL_J0943.6+4207_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 00:25:32 2023
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:25:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:25:39 2023
Terminated at Wed Mar  8 00:37:56 2023
Results reported at Wed Mar  8 00:37:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1776 145.91 42.1169 699667201 699926401 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 :                                   723.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            744 sec.

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

