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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin1757
RA = 145.91, Dec = 42.1169
tmin = 694742401, tmax = 695001601
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='191777', job_status='RUN', time_executed='2023-01-10 00:39:21.305355', time_epoch_executed='1673339961.31' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191777/ft1_4FGL_J0943.6+4207_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191777/ft2_4FGL_J0943.6+4207_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191777/ft1_4FGL_J0943.6+4207_daily_bin1757.fits outfile=/scratch/kocevski/191777/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1757.fits ra=145.91 dec=42.1169 rad=12.0 tmin=694742401.0 tmax=695001601.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.89
user 2.64
sys 0.22

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

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

Number of photons that the gtmktime cut: 253

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191777/ft1_filtered_4FGL_J0943.6+4207_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/191777/ft2_4FGL_J0943.6+4207_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/191777/ltcube_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.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/191777/ft2_4FGL_J0943.6+4207_daily_bin1757.fits
.....................!
real 15.27
user 14.73
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191777/ft1_filtered_4FGL_J0943.6+4207_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/191777/ft2_4FGL_J0943.6+4207_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/191777/ltcube_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.fits outfile=/scratch/kocevski/191777/expmap_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.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/191777/ltcube_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.fits
.....................!
real 192.74
user 185.84
sys 5.68

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/191777/ft1_filtered_4FGL_J0943.6+4207_daily_bin1757.fits scfile=/scratch/kocevski/191777/ft2_4FGL_J0943.6+4207_daily_bin1757.fits outfile=/scratch/kocevski/191777/cmap_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191777/ft1_filtered_4FGL_J0943.6+4207_daily_bin1757.fits scfile=/scratch/kocevski/191777/ft2_4FGL_J0943.6+4207_daily_bin1757.fits outfile=/scratch/kocevski/191777/cmap_HighResolution_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46824E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .35571       1.0000          .0000       .10000E+07
     3 'Prefactor '    .35298E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    17.252       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41877E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .81324E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .94294       1.0000          .0000       .10000E+07
     8 'norm      '    .64268E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14192E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .54516E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25741E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .12079E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .95066E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    17.728       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11698E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30168E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11839E-02   1.0000          .0000       .10000E+07
    18 'norm      '    34.944       1.0000          .0000       .10000E+07
    19 'Prefactor '    .40941E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.7370       1.0000          .0000       .10000E+07
    21 'norm      '    1.6425       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20412E-03   1.0000          .0000       .10000E+07
    23 'norm      '    3.1587       1.0000          .0000       .10000E+07
    24 'Prefactor '    13.641       1.0000          .0000       .10000E+07
    25 'Prefactor '    .18346E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1832       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88749       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=   2860.978     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2386 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27389E-06    10.242       -.16632E-06** at limit **
   2  Prefactor     .20961E-06    4.4744       -.26966E-08** at limit **
   3  Prefactor     .75828E-07    37.131        .76917E-06** at limit **
   4  Prefactor     17.282        9.6232        .22051E-06    .33106E-02
   5  Prefactor     .44265E-06    10.812       -.65124E-06** at limit **
   6  norm           .0000        .65776       -.90672E-07** at limit **
   7  Prefactor     .89089        2.2660        .24045E-06    .53507E-04
   8  norm          .21044E-06    5.5831       -.84538E-06** at limit **
   9  Prefactor     .55511E-10    4.1568        .18246E-06** at limit **
  10  Prefactor     .30753E-07    6.8177       -.40379E-06** at limit **
  11  Prefactor     .11480E-06    9.3050       -.11378E-06** at limit **
  12  Prefactor     .11752E-06    5.0322       -.25544E-06** at limit **
  13  norm          .23870E-08    4.8367       -.68017E-06** at limit **
  14  Prefactor     19.782        41.830        .14817E-05   -.96324E-02
  15  Prefactor     .41134E-07    6.8933       -.11719E-06** at limit **
  16  Prefactor     .64837E-07    66.510        .66729E-07** at limit **
  17  Prefactor     .13323E-08    8.3988        .51688E-06** at limit **
  18  norm          35.626        11.633       -.47291E-07    .84523E-01
  19  Prefactor     .11102E-09    4.2297       -.28255E-06** at limit **
  20  Prefactor     1.7308        5.6903       -.18370E-06    .24452E-03
  21  norm          1.6448        2.4966       -.34958E-07   -.45045E-03
  22  Prefactor     .16775E-06    6.0361       -.18797E-06** at limit **
  23  norm          3.1232        2.6268       -.26450E-06    .13191E-02
  24  Prefactor     15.907        38.930        .14948E-05    .32781E-02
  25  Prefactor     .16653E-09    4.7407        .67339E-06** at limit **
  26  Normalizat    1.1769        .30618       -.22287E-05    .79598E-05
  27  Prefactor     .89007        .35154       -.99319E-05   -.58895E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73892e-07
  Prefactor  = 2.0961e-07
  Prefactor  = 7.58282e-08
  Prefactor  = 17.282
  Prefactor  = 4.42646e-07
  norm       = 0
  Prefactor  = 0.890887
  norm       = 2.10443e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 3.07532e-08
  Prefactor  = 1.14797e-07
  Prefactor  = 1.17517e-07
  norm       = 2.38698e-09
  Prefactor  = 19.7818
  Prefactor  = 4.11338e-08
  Prefactor  = 6.4837e-08
  Prefactor  = 1.33227e-09
  norm       = 35.6261
  Prefactor  = 1.11022e-10
  Prefactor  = 1.73082
  norm       = 1.64485
  Prefactor  = 1.67755e-07
  norm       = 3.12319
  Prefactor  = 15.9068
  Prefactor  = 1.66533e-10
  Normalizat = 1.17692
  Prefactor  = 0.890071
 **********
 **   18 **HESSE 
 **********

 FCN=   2860.978     FROM HESSE     STATUS=OK           536 CALLS     2922 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27389E-06    14.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20961E-06    73.204        .94808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .75828E-07    37.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.282        12.034        .24086E-03   -1.5625    
   5  Prefactor     .44265E-06    15.883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .65654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .89089        9.5106        .42835E-03   -1.5689    
   8  norm          .21044E-06    7.2280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    4.1336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30753E-07    9.4489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11480E-06    20.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11752E-06    10.789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .23870E-08    9.8371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.782        54.556        .23760E-03   -1.5619    
  15  Prefactor     .41134E-07    7.2088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .64837E-07    66.809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13323E-08    11.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          35.626        24.733        .16919E-03   -1.5589    
  19  Prefactor     .11102E-09    4.2337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7308        5.7602        .79589E-03   -1.5682    
  21  norm          1.6448        2.5325        .82401E-03   -1.5682    
  22  Prefactor     .16775E-06    7.5532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1232        18.892        .57004E-03   -1.5673    
  24  Prefactor     15.907        55.210        .27094E-03   -1.5628    
  25  Prefactor     .16653E-09    4.7259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1769        .26937        .35318E-01   -.87319    
  27  Prefactor     .89007        .30422        .70088E-01   -.96489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71407e-07
Minuit parameter uncertainties:
  1  0.0040105
  2  0.00783441
  3  0.00336936
  4  12.034
  5  0.00530317
  6  1.08406e-08
  7  5.82164
  8  0.00246651
  9  3.40013e-05
  10  0.00107839
  11  0.00303435
  12  0.00225221
  13  0.000307593
  14  54.5577
  15  0.00108877
  16  0.00416299
  17  0.000250893
  18  24.7327
  19  4.39678e-05
  20  5.76019
  21  2.5325
  22  0.00225136
  23  15.3627
  24  55.2121
  25  5.26893e-05
  26  0.26969
  27  0.304806
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.978e+01  5.456e+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:  8.901e-01  3.048e-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.177e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: 2.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191777/likelihoodResults_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.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) = 2860.17253322
delta logL = 0.805569947262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2860.17031699
delta logL = 0.807786177043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0121       1.0000          .0000       .10000E+07
     2 'Index     '    4.3139       1.0000          .0000       10.000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96175       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=   2860.170     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      315 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0508        119.17        .44894E-03    .13843E-02
   2  Index         4.3099        4.0128        .10970        .69272E-04
   3  Normalizat    1.0836        .87986E-01    .38689E-01   -.59303E-05
   4  Prefactor     .96243        .10841        .67672E-01   -.41086E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05079
  Index      = 4.30993
  Normalizat = 1.0836
  Prefactor  = 0.962435
 **********
 **   18 **HESSE 
 **********

 FCN=   2860.170     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      348 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0508        189.63        .99622E-05   -1.5663    
   2  Index         4.3099        7.1436        .43072E-02   -.13846    
   3  Normalizat    1.0836        .28789        .22851E-03   -.90280    
   4  Prefactor     .96243        .34434        .29934E-03   -.93992    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37641e-07
Minuit parameter uncertainties:
  1  61.8985
  2  6.62073
  3  0.28831
  4  0.345123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191777': 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): 102
logL (Free Index) = 2860.170312
delta logL = 0.80779116837

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  5.051e+00  6.190e+01  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  4.310e+00  6.621e+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:  9.624e-01  3.451e-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.084e+00  2.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 145.910 42.117
Photon Index (Free Index): 4.31 +/- 6.62
Photon Flux (Free Index): 1.21e-07 +/- 1.20e-07
Energy Flux (Free Index): 1.73e-05 +/- 2.73e-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/191777/cmap_HighResolution_694742401_695001601_4FGL_J0943.6+4207_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', energy_flux2='1.73e-05', dlogl='8.08e-01', photon_flux2='1.21e-07', job_status='DONE', time_completed='2023-01-10 00:48:21.386182', photon_index_error2='6.62', photon_index2='4.31', ts='0.15', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='2.73e-05', EG='1.18', time_epoch_completed='1673340501.39', return_code='0', job_id='191777', GAL2='0.96', EG2='1.08', return_code2='102', photon_flux_error2='1.20e-07', ts2='1.89', photon_index='2.60' WHERE bin_id='1757' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 00:48:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 191777: <4FGL_J0943.6+4207_daily_bin1757> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin1757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 10 00:35:19 2023
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 00:37:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 00:37:27 2023
Terminated at Tue Jan 10 00:48:22 2023
Results reported at Tue Jan 10 00:48:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1757 145.91 42.1169 694742401 695001601 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 :                                   540.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            783 sec.

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

