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


Performing analysis on: 4FGL_J0943.7+6137_daily_bin1754
RA = 145.926, Dec = 61.6192
tmin = 693964801, tmax = 694224001
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='640546', job_status='RUN', time_executed='2023-01-01 01:02:23.626462', time_epoch_executed='1672563743.63' WHERE source_name='4FGL J0943.7+6137' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640546/ft1_4FGL_J0943.7+6137_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640546/ft1_4FGL_J0943.7+6137_daily_bin1754.fits outfile=/scratch/kocevski/640546/ft1_filteredMKT_4FGL_J0943.7+6137_daily_bin1754.fits ra=145.926 dec=61.6192 rad=12.0 tmin=693964801.0 tmax=694224001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.91
user 3.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.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/640546/ft1_filteredMKT_4FGL_J0943.7+6137_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.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.33
sys 0.16

Number of photons that the gtmktime cut: 364

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/640546/ltcube_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.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/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits
.....................!
real 14.12
user 13.62
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/640546/ltcube_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.fits outfile=/scratch/kocevski/640546/expmap_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.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/640546/ltcube_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.fits
.....................!
real 191.29
user 185.70
sys 5.23

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/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits scfile=/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits outfile=/scratch/kocevski/640546/cmap_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits scfile=/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits outfile=/scratch/kocevski/640546/cmap_HighResolution_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.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.57
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640546/Model_4FGL_J0943.7+6137_daily_bin1754.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/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits.....................!
real 46.64
user 45.31
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits', '/scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits', expMap='/scratch/kocevski/640546/expmap_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.fits', expCube='/scratch/kocevski/640546/ltcube_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640546/Model_4FGL_J0943.7+6137_daily_bin1754.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/640546/ft1_filtered_4FGL_J0943.7+6137_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/640546/ft2_4FGL_J0943.7+6137_daily_bin1754.fits
Exposure map: /scratch/kocevski/640546/expmap_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.fits
Exposure cube: /scratch/kocevski/640546/ltcube_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640546/Model_4FGL_J0943.7+6137_daily_bin1754.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) = 3902.58381016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    338.33       1.0000          .0000       .10000E+07
     2 'norm      '    .10525E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19568E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    47.287       1.0000          .0000       .10000E+07
     6 'norm      '    5.0319       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.502       1.0000          .0000       .10000E+07
     8 'Prefactor '    .36364       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.0677       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.1203       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.317       1.0000          .0000       .10000E+07
    12 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .56531E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .40523E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.1522       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43573E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    18.144       1.0000          .0000       .10000E+07
    19 'norm      '    .22216E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .13051E-02   1.0000          .0000       .10000E+07
    21 'norm      '    1.7915       1.0000          .0000       .10000E+07
    22 'Prefactor '    .27200E-08   1.0000          .0000       .10000E+07
    23 'norm      '    2.7096       1.0000          .0000       .10000E+07
    24 'Prefactor '    .68631E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .38285E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    2.6493       1.0000          .0000       .10000E+07
    27 'norm      '    8.4811       1.0000          .0000       .10000E+07
    28 'norm      '    .12379E-07   1.0000          .0000       .10000E+07
    29 'Prefactor '    7.7414       1.0000          .0000       .10000E+07
    30 'norm      '    .77929       1.0000          .0000       .10000E+07
    31 'norm      '    1.9742       1.0000          .0000       .10000E+07
    32 'Prefactor '    .33801E-01   1.0000          .0000       .10000E+07
    33 'norm      '    .50092       1.0000          .0000       .10000E+07
    34 'Prefactor '    .18562E-02   1.0000          .0000       .10000E+07
    35 'Normalizat'    .50408       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.2884       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=   3900.986     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     2326 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     345.28        91.232       -.50974E-07   -.77549E-03
   2  norm           .0000        1.3808        .50049E-07** at limit **
   3  Prefactor      .0000        .58990        .26914E-07** at limit **
   4  Prefactor      .0000        5.7475       -.55951E-08** at limit **
   5  Prefactor     47.551        16.645        .37403E-07    .13314E-02
   6  norm          4.9005        3.2950       -.59660E-08    .11508E-02
   7  Prefactor     11.651        11.585        .94677E-08   -.11458E-04
   8  Prefactor     .62172E-08    132.47       -.28709E-06** at limit **
   9  Prefactor     5.7432        13.170        .23544E-07   -.13031E-03
  10  Prefactor     9.6086        29.237       -.26824E-06   -.19918E-01
  11  Prefactor     13.971        38.443       -.98057E-07    .71225E-02
  12  norm           .0000        1.1606       -.31166E-09** at limit **
  13  Prefactor      .0000        19.250       -.31352E-07** at limit **
  14  Prefactor      .0000        6.4762        .10930E-07** at limit **
  15  Prefactor      .0000        3.3200        .77235E-08** at limit **
  16  Prefactor     3.8876        6.4498       -.55361E-07   -.68401E-02
  17  Prefactor     .13378E-07    108.38       -.67766E-06** at limit **
  18  Prefactor     18.224        10.773        .10806E-08    .24322E-02
  19  norm           .0000        7.0422        .10048E-07** at limit **
  20  Prefactor      .0000        11.851        .13422E-07** at limit **
  21  norm          1.7946        .86854        .65741E-08   -.11415E-03
  22  Prefactor      .0000        2.7568        .52471E-07** at limit **
  23  norm          2.7155        1.3691       -.10804E-07    .43627E-03
  24  Prefactor     .33862E-07    59.301        .21861E-06** at limit **
  25  norm          .55511E-10    23.157        .34716E-07** at limit **
  26  Prefactor     3.7948        21.668       -.24993E-06    .22915E-01
  27  norm          8.3851        4.5263        .94094E-08   -.47766E-02
  28  norm           .0000        1.1223        .17889E-07** at limit **
  29  Prefactor     15.935        2528.3       -.28816E-05   -.28199E-03
  30  norm          .78144        .90659       -.52407E-08    .65335E-04
  31  norm          1.9691        2.8982        .51935E-07    .20141E-04
  32  Prefactor      .0000        73.477        .71690E-08** at limit **
  33  norm          .50757        2.5969        .22757E-07   -.30885E-04
  34  Prefactor     .36526E-07    33.011        .11763E-06** at limit **
  35  Normalizat    .49883        .26654        .27427E-05    .79996E-05
  36  Prefactor     1.2888        .24220       -.24697E-05    .10352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 345.283
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 47.5512
  norm       = 4.90053
  Prefactor  = 11.6513
  Prefactor  = 6.21725e-09
  Prefactor  = 5.74322
  Prefactor  = 9.60864
  Prefactor  = 13.971
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.88764
  Prefactor  = 1.33782e-08
  Prefactor  = 18.224
  norm       = 0
  Prefactor  = 0
  norm       = 1.7946
  Prefactor  = 0
  norm       = 2.71551
  Prefactor  = 3.38618e-08
  norm       = 5.55112e-11
  Prefactor  = 3.79478
  norm       = 8.38509
  norm       = 0
  Prefactor  = 15.9347
  norm       = 0.781437
  norm       = 1.96915
  Prefactor  = 0
  norm       = 0.507572
  Prefactor  = 3.65263e-08
  Normalizat = 0.498834
  Prefactor  = 1.28881
 **********
 **   18 **HESSE 
 **********

 FCN=   3900.986     FROM HESSE     STATUS=OK           893 CALLS     3219 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     345.28        91.294        .54376E-04   -1.5336    
   2  norm           .0000        1.3783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .58912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        5.7516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.551        16.626        .14543E-03   -1.5570    
   6  norm          4.9005        3.4420        .44803E-03   -1.5664    
   7  Prefactor     11.651        11.591        .29514E-03   -1.5640    
   8  Prefactor     .62172E-08    131.56        .93826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7432        13.189        .40736E-03   -1.5660    
  10  Prefactor     9.6086        33.503        .37569E-03   -1.5646    
  11  Prefactor     13.971        39.397        .27422E-03   -1.5633    
  12  norm           .0000        1.1382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        19.269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        6.4805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.3233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8876        44.921        .49440E-03   -1.5669    
  17  Prefactor     .13378E-07    9.6556        .60407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.224        11.302        .23485E-03   -1.5623    
  19  norm           .0000        7.0439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        11.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7946        .86706        .78111E-03   -1.5681    
  22  Prefactor      .0000        2.7591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7155        1.3777        .61852E-03   -1.5675    
  24  Prefactor     .33862E-07    59.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .55511E-10    23.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.7948        82.534        .62606E-03   -1.5669    
  27  norm          8.3851        5.5033        .34398E-03   -1.5650    
  28  norm           .0000        1.1235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.935        2544.7        .36017E-03   -1.5628    
  30  norm          .78144        .92750        .54492E-03   -1.5690    
  31  norm          1.9691        2.9925        .73757E-03   -1.5680    
  32  Prefactor      .0000        73.464        .16256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .50757        2.6495        .78617E-03   -1.5694    
  34  Prefactor     .36526E-07    33.727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .49883        .25231        .80503E-01   -1.1247    
  36  Prefactor     1.2888        .21969        .50977E-01   -.83640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47375e-07
Minuit parameter uncertainties:
  1  91.2942
  2  3.2655e-07
  3  6.9295e-08
  4  6.02518e-07
  5  16.6261
  6  3.44204
  7  11.5912
  8  0.00181121
  9  13.1889
  10  33.504
  11  39.3978
  12  6.42199e-08
  13  1.51576e-05
  14  2.92279e-06
  15  5.41913e-08
  16  26.4301
  17  0.000718204
  18  11.3021
  19  3.19067e-06
  20  1.95191e-05
  21  0.867059
  22  2.47192e-07
  23  1.37767
  24  0.00283988
  25  5.67813e-05
  26  35.3955
  27  5.50335
  28  1.10982e-07
  29  402.909
  30  0.927504
  31  2.99254
  32  2.03266e-06
  33  2.3193
  34  0.00221988
  35  0.252887
  36  0.219851
Done.

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

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  1.338e-08  7.182e-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:  1.289e+00  2.199e-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:  4.988e-01  2.529e-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.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640546/likelihoodResults_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.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) = 3900.99676863
delta logL = -0.0109695910051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3900.98577623
delta logL = 2.2807069854e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95613E-01   1.0000          .0000       .10000E+07
     2 'Index     '    3.2593       1.0000          .0000       10.000    
     3 'Normalizat'    .49810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2888       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3900.986     FROM MIGRAD    STATUS=FAILED       108 CALLS      285 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61690E-01    1275.0        .22522E-03** at limit **
   2  Index         3.1871        5.8016        .50000       -.14565E-05
   3  Normalizat    .49839        .19544E-01    .35673E-03    .14567E-03
   4  Prefactor     1.2889        .19256E-01    .22534E-03    .19757E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3900.986     FROM SIMPLEX   STATUS=UNCHANGED    103 CALLS      388 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61690E-01    1275.0        .86504E-04** at limit **
   2  Index         3.1871        5.8016        .58480E-02   -.14565E-05
   3  Normalizat    .49839        .19544E-01    .42037E-04    .14567E-03
   4  Prefactor     1.2889        .19256E-01    .95398E-05    .19757E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3900.986     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      423 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62051E-01    1937.7        .90089E-05** at limit **
   2  Index         3.1866        6.4725        .50000       -.74368E-05
   3  Normalizat    .49839        .23745E-01    .14269E-04    .37566E-03
   4  Prefactor     1.2889        .23406E-01    .45069E-04    .46939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0620512
  Index      = 3.18655
  Normalizat = 0.498388
  Prefactor  = 1.28895
 **********
 **   18 **HESSE 
 **********

 FCN=   3900.986     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      452 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62051E-01    1968.4        .36036E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1866        6.5160        .50000       -.37115    
   3  Normalizat    .49839        .23960E-01    .28538E-05   -1.1249    
   4  Prefactor     1.2889        .23618E-01    .90138E-05   -.83636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7311e-09
Minuit parameter uncertainties:
  1  22.1105
  2  33.7054
  3  0.0239601
  4  0.0236184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640546': 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) = 3900.98573292
delta logL = 6.61112180751e-05

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  6.205e-02  2.211e+01  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  3.187e+00  3.371e+01  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:  1.289e+00  2.362e-02  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:  4.984e-01  2.396e-02  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/640546/cmap_HighResolution_693964801_694224001_4FGL_J0943.7+6137_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2023-01-01 01:14:21.181602', job_id='640546', GAL2='1.29', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1672564461.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='6.61e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1754' AND source_name='4FGL J0943.7+6137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:14:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 640546: <4FGL_J0943.7+6137_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0943.7+6137_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 01:00:16 2023
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:00:54 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:00:54 2023
Terminated at Sun Jan  1 01:14:21 2023
Results reported at Sun Jan  1 01:14:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.7+6137_daily_bin1754 145.926 61.6192 693964801 694224001 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 :                                   719.19 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            845 sec.

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

