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


Performing analysis on: 4FGL_J0943.7+6137_daily_bin1760
RA = 145.926, Dec = 61.6192
tmin = 695520001, tmax = 695779201
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='733531', job_status='RUN', time_executed='2023-01-19 00:42:45.741131', time_epoch_executed='1674117765.74' WHERE source_name='4FGL J0943.7+6137' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733531

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733531/ft1_4FGL_J0943.7+6137_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733531/ft1_4FGL_J0943.7+6137_daily_bin1760.fits outfile=/scratch/kocevski/733531/ft1_filteredMKT_4FGL_J0943.7+6137_daily_bin1760.fits ra=145.926 dec=61.6192 rad=12.0 tmin=695520001.0 tmax=695779201.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.46
user 2.21
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.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/733531/ft1_filteredMKT_4FGL_J0943.7+6137_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.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.54
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 322

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733531/ltcube_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.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/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits
.....................!
real 17.31
user 16.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733531/ltcube_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.fits outfile=/scratch/kocevski/733531/expmap_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.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/733531/ltcube_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.fits
.....................!
real 196.04
user 189.61
sys 5.98

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

Setting source of interest to:
4FGL J0943.7+6137 @ 145.926 61.6192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits scfile=/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits outfile=/scratch/kocevski/733531/cmap_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.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.926 yref=61.6192 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits scfile=/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits outfile=/scratch/kocevski/733531/cmap_HighResolution_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.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.926 yref=61.6192 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/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733531/Model_4FGL_J0943.7+6137_daily_bin1760.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/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits.....................!
real 48.66
user 47.23
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits', '/scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits', expMap='/scratch/kocevski/733531/expmap_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.fits', expCube='/scratch/kocevski/733531/ltcube_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733531/Model_4FGL_J0943.7+6137_daily_bin1760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0943.7+6137'

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  2.807e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  2.706e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/733531/ft1_filtered_4FGL_J0943.7+6137_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/733531/ft2_4FGL_J0943.7+6137_daily_bin1760.fits
Exposure map: /scratch/kocevski/733531/expmap_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.fits
Exposure cube: /scratch/kocevski/733531/ltcube_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733531/Model_4FGL_J0943.7+6137_daily_bin1760.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3612.90525397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    228.10       1.0000          .0000       .10000E+07
     2 'norm      '    17.923       1.0000          .0000       .10000E+07
     3 'Prefactor '    .95779E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .40748E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .58116E-04   1.0000          .0000       .10000E+07
     6 'norm      '    2.9707       1.0000          .0000       .10000E+07
     7 'Prefactor '    .23010E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    75.133       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10999E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37587E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .24949E-02   1.0000          .0000       .10000E+07
    12 'norm      '    3.1535       1.0000          .0000       .10000E+07
    13 'Prefactor '    35.037       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12553       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.4348       1.0000          .0000       .10000E+07
    16 'Prefactor '    62.515       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22143E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    39.042       1.0000          .0000       .10000E+07
    19 'norm      '    .47502E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    60.451       1.0000          .0000       .10000E+07
    21 'norm      '    1.5644       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17312E-05   1.0000          .0000       .10000E+07
    23 'norm      '    2.1873       1.0000          .0000       .10000E+07
    24 'Prefactor '    62.458       1.0000          .0000       .10000E+07
    25 'norm      '    .75752E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.2995       1.0000          .0000       .10000E+07
    27 'norm      '    1.7751       1.0000          .0000       .10000E+07
    28 'norm      '    .16218E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    .91066E-01   1.0000          .0000       .10000E+07
    30 'norm      '    2.7795       1.0000          .0000       .10000E+07
    31 'norm      '    .58842E-08   1.0000          .0000       .10000E+07
    32 'Prefactor '    .21825E-03   1.0000          .0000       .10000E+07
    33 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    34 'Prefactor '    .53461E-05   1.0000          .0000       .10000E+07
    35 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .98464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3606.446     FROM MIGRAD    STATUS=CONVERGED    267 CALLS     2307 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     227.51        50.205        .14334E-06    .21028E-01
   2  norm          17.923        16.587       -.31890E-07    .32935E-03
   3  Prefactor      .0000        1.9422       -.17542E-07** at limit **
   4  Prefactor     .81363E-05    39.033        .22210E-06** at limit **
   5  Prefactor      .0000        28.567        .62123E-07** at limit **
   6  norm          2.9464        4.6568       -.11223E-07   -.13065E-03
   7  Prefactor     .33307E-09    14.416        .69444E-08** at limit **
   8  Prefactor     74.993        8.4315        .30937E-07   -.47972E-01
   9  Prefactor     .22204E-09    19.735       -.20192E-07** at limit **
  10  Prefactor     .17532E-05    81.220       -.10264E-06** at limit **
  11  Prefactor     .85765E-07    41.123       -.27384E-07** at limit **
  12  norm          3.1529        1.8530        .17051E-08   -.45744E-03
  13  Prefactor     34.825        3.7216       -.94125E-08    .91266E-02
  14  Prefactor     .17088        2.8064        .96996E-07** at limit **
  15  Prefactor     7.3765        14.053       -.52493E-07   -.11537E-01
  16  Prefactor     62.404        6.8970        .27091E-07   -.19060E-01
  17  Prefactor     .38858E-09    13.011        .16282E-07** at limit **
  18  Prefactor     39.776        23.760        .43027E-07    .10557    
  19  norm          .16653E-09    9.5603        .11831E-07** at limit **
  20  Prefactor     59.927        26.705        .15286E-06   -.98955E-01
  21  norm          1.5628        1.0147       -.30630E-08   -.11953E-02
  22  Prefactor     .16653E-09    9.0310        .23047E-08** at limit **
  23  norm          2.1860        1.5302       -.60087E-08   -.26034E-03
  24  Prefactor     62.554        27.576       -.15853E-06    .50807E-01
  25  norm          .43798E-07    135.53       -.91389E-07** at limit **
  26  Prefactor     .44766E-02    7613.3        .75813E-05** at limit **
  27  norm          2.0473        3.5439        .17216E-06    .25466E-02
  28  norm          .64038E-06    6.1909        .35758E-07** at limit **
  29  Prefactor      .0000        97.924       -.40648E-07** at limit **
  30  norm          2.7759        1.2421       -.17553E-08   -.16259E-02
  31  norm           .0000        1.3686       -.94337E-08** at limit **
  32  Prefactor     .11990E-07    28.863        .13388E-06** at limit **
  33  norm           .0000        .86764       -.82904E-09** at limit **
  34  Prefactor     .28373E-05    43.612       -.63697E-07** at limit **
  35  Normalizat    1.2751        .30744        .17951E-05    .33811E-04
  36  Prefactor     .98077        .26840       -.12505E-05    .12555E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 227.513
  norm       = 17.9234
  Prefactor  = 0
  Prefactor  = 8.13627e-06
  Prefactor  = 0
  norm       = 2.94637
  Prefactor  = 3.33067e-10
  Prefactor  = 74.9929
  Prefactor  = 2.22045e-10
  Prefactor  = 1.75321e-06
  Prefactor  = 8.57647e-08
  norm       = 3.1529
  Prefactor  = 34.8252
  Prefactor  = 0.170882
  Prefactor  = 7.37654
  Prefactor  = 62.4038
  Prefactor  = 3.88578e-10
  Prefactor  = 39.7763
  norm       = 1.66533e-10
  Prefactor  = 59.9265
  norm       = 1.56285
  Prefactor  = 1.66533e-10
  norm       = 2.18603
  Prefactor  = 62.5542
  norm       = 4.37983e-08
  Prefactor  = 0.00447662
  norm       = 2.04733
  norm       = 6.40377e-07
  Prefactor  = 0
  norm       = 2.77587
  norm       = 0
  Prefactor  = 1.19904e-08
  norm       = 0
  Prefactor  = 2.83729e-06
  Normalizat = 1.27512
  Prefactor  = 0.980771
 **********
 **   18 **HESSE 
 **********

 FCN=   3606.446     FROM HESSE     STATUS=OK           891 CALLS     3198 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     227.51        150.94        .66220E-04   -1.5406    
   2  norm          17.923        16.790        .23630E-03   -1.5623    
   3  Prefactor      .0000        1.9420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81363E-05    78.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        28.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9464        4.7020        .58885E-03   -1.5674    
   7  Prefactor     .33307E-09    14.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     74.993        67.377        .11538E-03   -1.5535    
   9  Prefactor     .22204E-09    19.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17532E-05    99.021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .85765E-07    41.376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1529        1.8557        .57053E-03   -1.5672    
  13  Prefactor     34.825        35.732        .16896E-03   -1.5590    
  14  Prefactor     .17088        21.940        .96122E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3765        15.388        .36758E-03   -1.5654    
  16  Prefactor     62.404        64.883        .12648E-03   -1.5550    
  17  Prefactor     .38858E-09    13.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.776        32.468        .16006E-03   -1.5582    
  19  norm          .16653E-09    9.6128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.927        89.807        .12863E-03   -1.5553    
  21  norm          1.5628        1.0355        .85010E-03   -1.5683    
  22  Prefactor     .16653E-09    9.0688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1860        1.5525        .69566E-03   -1.5678    
  24  Prefactor     62.554        79.536        .12654E-03   -1.5550    
  25  norm          .43798E-07    140.99        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .44766E-02    175.87        .77260E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.0473        5.1984        .78546E-03   -1.5679    
  28  norm          .64038E-06    1.7061        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor      .0000        98.159        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          2.7759        1.2469        .61011E-03   -1.5675    
  31  norm           .0000        1.3724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .11990E-07    70.921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm           .0000        .86736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .28373E-05    66.006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.2751        .29728        .65955E-01   -.84312    
  36  Prefactor     .98077        .24643        .68076E-01   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45688e-06
Minuit parameter uncertainties:
  1  150.939
  2  16.7899
  3  1.19835e-05
  4  0.0505424
  5  5.14718e-05
  6  4.70197
  7  0.000140124
  8  67.3778
  9  0.000137679
  10  0.0263523
  11  0.00376706
  12  1.85567
  13  35.7324
  14  3.87255
  15  15.3879
  16  64.8839
  17  0.000144905
  18  32.4677
  19  7.95201e-05
  20  89.8088
  21  1.03547
  22  7.72744e-05
  23  1.55252
  24  79.5377
  25  0.00497079
  26  1.77465
  27  5.19845
  28  0.00209054
  29  2.31053e-05
  30  1.24692
  31  8.16195e-06
  32  0.00184502
  33  2.1483e-06
  34  0.0273701
  35  0.297674
  36  0.246713
Done.

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

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  3.886e-10  1.449e-04  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  2.706e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  9.808e-01  2.467e-01  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.275e+00  2.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.926 61.619
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733531/likelihoodResults_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.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) = 3606.44633038
delta logL = -0.000114519821182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3606.44621587
delta logL = -1.69984559761e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
     2 'Index     '    .72605       1.0000          .0000       10.000    
     3 'Normalizat'    1.2751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98076       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3606.446     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      293 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .55686E-01    .42118E-03** at limit **
   2  Index         4.5287        7.5462        .42747        .11968E-09
   3  Normalizat    1.2751        .66360E-03    .65955E-01    .10312E-04
   4  Prefactor     .98077        .61309E-03    .68076E-01    .52910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 4.52872
  Normalizat = 1.27511
  Prefactor  = 0.980773
 **********
 **   18 **HESSE 
 **********

 FCN=   3606.446     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      326 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    1.6422        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.5287        7.2448        .50000       -.94397E-01
   3  Normalizat    1.2751        .35161E-02    .29176E-03   -.84312    
   4  Prefactor     .98077        .32477E-02    .30111E-03   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.9125e-12
Minuit parameter uncertainties:
  1  4.86478e-05
  2  37163.9
  3  0.00351612
  4  0.00324768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733531': 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) = 3606.44621587
delta logL = -1.09139364213e-11

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  3.331e-10  4.865e-05  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  4.529e+00  3.716e+04  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  9.808e-01  3.248e-03  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  1.275e+00  3.516e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.926 61.619

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/733531/cmap_HighResolution_695520001_695779201_4FGL_J0943.7+6137_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2023-01-19 00:54:07.019878', job_id='733531', GAL2='0.98', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1674118447.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1760' AND source_name='4FGL J0943.7+6137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:54:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 733531: <4FGL_J0943.7+6137_daily_bin1760> in cluster <slac> Done

Job <4FGL_J0943.7+6137_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:23 2023
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:42:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:42:16 2023
Terminated at Thu Jan 19 00:54:07 2023
Results reported at Thu Jan 19 00:54:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.7+6137_daily_bin1760 145.926 61.6192 695520001 695779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0943.7+6137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             363.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            824 sec.

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

