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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1750
RA = 185.988, Dec = 50.0089
tmin = 692928001, tmax = 693187201
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='10738', job_status='RUN', time_executed='2022-12-20 00:48:02.303759', time_epoch_executed='1671526082.3' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10738/ft1_4FGL_J1223.9+5000_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10738/ft1_4FGL_J1223.9+5000_daily_bin1750.fits outfile=/scratch/kocevski/10738/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1750.fits ra=185.988 dec=50.0089 rad=12.0 tmin=692928001.0 tmax=693187201.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.45
user 3.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.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/10738/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 598

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/10738/ltcube_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.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/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits
.....................!
real 11.31
user 10.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/10738/ltcube_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.fits outfile=/scratch/kocevski/10738/expmap_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.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/10738/ltcube_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.fits
.....................!
real 191.37
user 185.84
sys 5.22

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

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits scfile=/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits outfile=/scratch/kocevski/10738/cmap_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.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=185.988 yref=50.0089 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits scfile=/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits outfile=/scratch/kocevski/10738/cmap_HighResolution_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.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=185.988 yref=50.0089 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10738/Model_4FGL_J1223.9+5000_daily_bin1750.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/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits.....................!
real 54.30
user 52.92
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits', '/scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits', expMap='/scratch/kocevski/10738/expmap_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.fits', expCube='/scratch/kocevski/10738/ltcube_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10738/Model_4FGL_J1223.9+5000_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10738/ft1_filtered_4FGL_J1223.9+5000_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/10738/ft2_4FGL_J1223.9+5000_daily_bin1750.fits
Exposure map: /scratch/kocevski/10738/expmap_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.fits
Exposure cube: /scratch/kocevski/10738/ltcube_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10738/Model_4FGL_J1223.9+5000_daily_bin1750.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) = 6450.31745361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.637       1.0000          .0000       .10000E+07
     2 'norm      '    .25747       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.1608       1.0000          .0000       .10000E+07
     4 'norm      '    1.3181       1.0000          .0000       .10000E+07
     5 'norm      '    10.510       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.8487       1.0000          .0000       .10000E+07
     7 'Prefactor '    .70452E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .18252E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    35.406       1.0000          .0000       .10000E+07
    10 'Prefactor '    .96034E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    .23139E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .18273       1.0000          .0000       .10000E+07
    13 'norm      '    5.3036       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.1620       1.0000          .0000       .10000E+07
    15 'Prefactor '    .95579       1.0000          .0000       .10000E+07
    16 'norm      '    2.6880       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.1391       1.0000          .0000       .10000E+07
    18 'norm      '    .23925E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .86288E-02   1.0000          .0000       .10000E+07
    20 'norm      '    29.987       1.0000          .0000       .10000E+07
    21 'norm      '    3.4776       1.0000          .0000       .10000E+07
    22 'Prefactor '    65.566       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.3914       1.0000          .0000       .10000E+07
    24 'norm      '    3.9744       1.0000          .0000       .10000E+07
    25 'Normalizat'    .98890       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6450.317     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     3033 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.659        1.5772        .58048E-07   -.58901E-01
   2  norm          .94413E-06    43.338       -.12249E-05** at limit **
   3  Prefactor     4.1686        7.7774        .70971E-06    .33578E-01
   4  norm          1.3192        1.2047        .15143E-06   -.43609E-02
   5  norm          10.507        1.0163       -.61974E-08   -.71464E-02
   6  Prefactor     1.8547        3.1873        .16268E-06    .78283E-03
   7  Prefactor     .10686E-06    14.461        .71534E-06** at limit **
   8  norm          .55511E-10    1.7110        .11765E-06** at limit **
   9  Prefactor     35.378        1.8848       -.36612E-07    .46685E-01
  10  Prefactor     .55511E-10    1.6881       -.26729E-06** at limit **
  11  Prefactor      .0000        4.6057       -.34563E-06** at limit **
  12  norm          .19056        4.2343       -.94126E-06** at limit **
  13  norm          5.2996        6.2864        .59845E-06    .37608E-01
  14  Prefactor     9.1560        1.9368        .10134E-06    .21689E-01
  15  Prefactor     .94631        .59049       -.28769E-07    .81712E-03
  16  norm          2.6862        1.6563       -.71323E-07    .37897E-02
  17  Prefactor     5.1385        1.0432        .56996E-08   -.14656E-02
  18  norm           .0000        .56245        .13120E-06** at limit **
  19  Prefactor     .14516E-06    12.272        .44148E-06** at limit **
  20  norm          29.979        1.0712       -.23805E-08   -.21208E-02
  21  norm          3.4597        3.7784       -.23214E-06    .23114E-02
  22  Prefactor     65.624        3.3633        .91875E-07   -.25413    
  23  Prefactor     2.3650        3.9398       -.59565E-06    .53130E-01
  24  norm          4.0286        4.9534       -.74902E-07    .34073E-02
  25  Normalizat    .98883        .18609       -.49660E-05    .54066E-04
  26  Prefactor     .99606        .22667        .85828E-05    .29981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6594
  norm       = 9.44134e-07
  Prefactor  = 4.16856
  norm       = 1.31917
  norm       = 10.5074
  Prefactor  = 1.85472
  Prefactor  = 1.06859e-07
  norm       = 5.55112e-11
  Prefactor  = 35.3782
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0.190556
  norm       = 5.29959
  Prefactor  = 9.15602
  Prefactor  = 0.946313
  norm       = 2.68617
  Prefactor  = 5.13846
  norm       = 0
  Prefactor  = 1.45162e-07
  norm       = 29.9785
  norm       = 3.4597
  Prefactor  = 65.6242
  Prefactor  = 2.36495
  norm       = 4.02857
  Normalizat = 0.988831
  Prefactor  = 0.996055
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.317     FROM HESSE     STATUS=OK           520 CALLS     3553 TOTAL
                     EDM=   .25E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.659        94.274        .20151E-03   -1.5609    
   2  norm          .94413E-06    43.519        .10831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1686        7.8369        .49388E-03   -1.5667    
   4  norm          1.3192        1.2292        .95853E-03   -1.5685    
   5  norm          10.507        9.7734        .30881E-03   -1.5643    
   6  Prefactor     1.8547        3.5959        .76656E-03   -1.5681    
   7  Prefactor     .10686E-06    14.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    1.7015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.378        21.706        .16808E-03   -1.5589    
  10  Prefactor     .55511E-10    1.6861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.5989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .19056        1.0386        .43963E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2996        9.5474        .43619E-03   -1.5662    
  14  Prefactor     9.1560        24.969        .33087E-03   -1.5647    
  15  Prefactor     .94631        6.3897        .42193E-03   -1.5689    
  16  norm          2.6862        1.6931        .62119E-03   -1.5675    
  17  Prefactor     5.1385        14.819        .44324E-03   -1.5663    
  18  norm           .0000        .56216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14516E-06    12.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.979        17.434        .18264E-03   -1.5598    
  21  norm          3.4597        3.9037        .54200E-03   -1.5671    
  22  Prefactor     65.624        74.576        .12351E-03   -1.5546    
  23  Prefactor     2.3650        690.80        .66200E-03   -1.5677    
  24  norm          4.0286        5.0105        .50569E-03   -1.5668    
  25  Normalizat    .98883        .16416        .46028E-01   -.93406    
  26  Prefactor     .99606        .19625        .46220E-01   -.92861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5314e-05
Minuit parameter uncertainties:
  1  94.2793
  2  0.01282
  3  7.83694
  4  1.22918
  5  9.77343
  6  3.59592
  7  0.00249004
  8  1.56614e-05
  9  21.706
  10  2.0034e-05
  11  3.35847e-06
  12  0.889727
  13  9.54745
  14  24.9698
  15  4.91801
  16  1.69306
  17  14.8187
  18  2.18045e-06
  19  0.00265522
  20  17.4344
  21  3.90371
  22  74.5771
  23  80.8475
  24  5.01048
  25  0.164239
  26  0.196394
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  5.300e+00  9.547e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.961e-01  1.964e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  9.888e-01  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10738/likelihoodResults_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.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) = 6450.29161549
delta logL = 0.0255281419795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6450.28613423
delta logL = 0.0310093992848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5735       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7052       1.0000          .0000       5.0000    
     3 'Normalizat'    .98330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0009       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6450.286     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5752        198.38        .47045E-03    .43961E-02
   2  alpha         2.7043        2.5959        .41328        .39545E-04
   3  Normalizat    .98316        .52408E-01    .45957E-01    .14927E-04
   4  Prefactor     1.0012        .66378E-01    .45409E-01    .17814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5752
  alpha      = 2.70434
  Normalizat = 0.983156
  Prefactor  = 1.00121
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.286     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5752        7.6146        .18818E-04   -1.5665    
   2  alpha         2.7043        1.2436        .23956E-01    .81828E-01
   3  Normalizat    .98316        .18168        .22535E-03   -.93597    
   4  Prefactor     1.0012        .22796        .28073E-03   -.92689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19803e-11
Minuit parameter uncertainties:
  1  7.61458
  2  1.30207
  3  0.181793
  4  0.228178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10738': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6450.28613302
delta logL = 0.0310106076095

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.575e+00  7.615e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.704e+00  1.302e+00  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.001e+00  2.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  9.832e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
Ra Dec: 185.988 50.009

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/10738/cmap_HighResolution_692928001_693187201_4FGL_J1223.9+5000_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2022-12-20 01:01:25.910974', job_id='10738', GAL2='1.00', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1671526885.91', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.10e-02', ts2='0.82', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1750' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:01:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 10738: <4FGL_J1223.9+5000_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 20 00:45:15 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:45:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:45:16 2022
Terminated at Tue Dec 20 01:01:26 2022
Results reported at Tue Dec 20 01:01:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1750 185.988 50.0089 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   805.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

