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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1751
RA = 185.988, Dec = 50.0089
tmin = 693187201, tmax = 693446401
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='77671', job_status='RUN', time_executed='2022-12-23 00:43:23.090397', time_epoch_executed='1671785003.09' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77671

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77671/ft1_4FGL_J1223.9+5000_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77671/ft1_4FGL_J1223.9+5000_daily_bin1751.fits outfile=/scratch/kocevski/77671/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1751.fits ra=185.988 dec=50.0089 rad=12.0 tmin=693187201.0 tmax=693446401.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.64
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.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/77671/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/77671/ft1_filtered_4FGL_J1223.9+5000_daily_bin1751.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.31
sys 0.17

Number of photons that the gtmktime cut: 570

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77671/ft1_filtered_4FGL_J1223.9+5000_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/77671/ltcube_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.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/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits
.....................!
real 12.07
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77671/ft1_filtered_4FGL_J1223.9+5000_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77671/ltcube_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.fits outfile=/scratch/kocevski/77671/expmap_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.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/77671/ltcube_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.fits
.....................!
real 190.53
user 185.04
sys 5.15

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/77671/ft1_filtered_4FGL_J1223.9+5000_daily_bin1751.fits scfile=/scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits outfile=/scratch/kocevski/77671/cmap_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77671/ft1_filtered_4FGL_J1223.9+5000_daily_bin1751.fits scfile=/scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits outfile=/scratch/kocevski/77671/cmap_HighResolution_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77671/ft1_filtered_4FGL_J1223.9+5000_daily_bin1751.fits', '/scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits', expMap='/scratch/kocevski/77671/expmap_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.fits', expCube='/scratch/kocevski/77671/ltcube_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77671/Model_4FGL_J1223.9+5000_daily_bin1751.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/77671/ft1_filtered_4FGL_J1223.9+5000_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/77671/ft2_4FGL_J1223.9+5000_daily_bin1751.fits
Exposure map: /scratch/kocevski/77671/expmap_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.fits
Exposure cube: /scratch/kocevski/77671/ltcube_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77671/Model_4FGL_J1223.9+5000_daily_bin1751.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) = 6228.51643837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74107E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .61732E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22484E-05   1.0000          .0000       .10000E+07
     4 'norm      '    4.7586       1.0000          .0000       .10000E+07
     5 'norm      '    .42749E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .63432E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    23.906       1.0000          .0000       .10000E+07
     8 'norm      '    .88128       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18224E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .65086E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    12.911       1.0000          .0000       .10000E+07
    12 'norm      '    .50095E-05   1.0000          .0000       .10000E+07
    13 'norm      '    4.2620       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.5431       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20901E-03   1.0000          .0000       .10000E+07
    16 'norm      '    2.9265       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.9439       1.0000          .0000       .10000E+07
    18 'norm      '    .15576E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .87004E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .13950       1.0000          .0000       .10000E+07
    21 'norm      '    5.1156       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.833       1.0000          .0000       .10000E+07
    23 'Prefactor '    .17812       1.0000          .0000       .10000E+07
    24 'norm      '    .38652E-06   1.0000          .0000       .10000E+07
    25 'Normalizat'    .78254       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2193       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=   6228.394     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1767 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16123E-05    41.396       -.52315E-06** at limit **
   2  norm          .87153E-08    25.275        .17447E-05** at limit **
   3  Prefactor      .0000        1.7487       -.40703E-06** at limit **
   4  norm          4.7292        1.7205        .15143E-07   -.86184E-03
   5  norm           .0000        2.4428        .57497E-06** at limit **
   6  Prefactor      .0000        1.9032       -.70464E-07** at limit **
   7  Prefactor     26.413        16.400       -.27871E-06    .46459E-01
   8  norm          .83490        2.2409        .59867E-06    .50332E-03
   9  Prefactor     .58498E-06    2.7629       -.12581E-05** at limit **
  10  Prefactor      .0000        2.7061        .26147E-06** at limit **
  11  Prefactor     13.486        15.369       -.10411E-05   -.76814E-02
  12  norm          .72164E-09    4.0780        .19564E-05** at limit **
  13  norm          4.3014        5.4177       -.69556E-07    .52321E-03
  14  Prefactor     9.5201        2.8556       -.32392E-06   -.50933E-02
  15  Prefactor      .0000        3.0702       -.10124E-06** at limit **
  16  norm          2.9247        1.6728       -.61758E-08    .44419E-03
  17  Prefactor     3.8881        4.9261       -.85059E-06   -.10163E-01
  18  norm           .0000        .72517        .22664E-06** at limit **
  19  Prefactor     .55511E-10    7.5742        .20577E-05** at limit **
  20  norm          .23963        8.0229        .17099E-05** at limit **
  21  norm          5.0831        3.6997       -.65913E-07    .80788E-03
  22  Prefactor     13.335        3.7822       -.50408E-06    .24411E-01
  23  Prefactor     .33862E-07    119.13       -.98178E-05** at limit **
  24  norm           .0000        .84930       -.32351E-06** at limit **
  25  Normalizat    .78284        .17209        .14078E-04    .12786E-03
  26  Prefactor     1.2182        .22071       -.24836E-04    .88465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61232e-06
  norm       = 8.71525e-09
  Prefactor  = 0
  norm       = 4.72924
  norm       = 0
  Prefactor  = 0
  Prefactor  = 26.4126
  norm       = 0.834901
  Prefactor  = 5.84977e-07
  Prefactor  = 0
  Prefactor  = 13.4859
  norm       = 7.21645e-10
  norm       = 4.30142
  Prefactor  = 9.52013
  Prefactor  = 0
  norm       = 2.9247
  Prefactor  = 3.88809
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0.239635
  norm       = 5.08309
  Prefactor  = 13.3353
  Prefactor  = 3.38618e-08
  norm       = 0
  Normalizat = 0.782842
  Prefactor  = 1.21822
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.394     FROM HESSE     STATUS=OK           528 CALLS     2295 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16123E-05    52.304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .87153E-08    25.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.7503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7292        1.7599        .46100E-03   -1.5664    
   5  norm           .0000        2.4436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.8964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.413        35.146        .20457E-03   -1.5605    
   8  norm          .83490        2.2593        .47063E-03   -1.5690    
   9  Prefactor     .58498E-06    7.2763        .11849E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.7004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.486        15.495        .27851E-03   -1.5635    
  12  norm          .72164E-09    1.2085        .32217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3014        5.9185        .48781E-03   -1.5666    
  14  Prefactor     9.5201        20.974        .32416E-03   -1.5646    
  15  Prefactor      .0000        3.0630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9247        1.6693        .59356E-03   -1.5674    
  17  Prefactor     3.8881        22.306        .50771E-03   -1.5669    
  18  norm           .0000        .72281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    7.5552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .23963        9.9741        .93367E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.0831        3.7705        .44428E-03   -1.5663    
  22  Prefactor     13.335        27.491        .27937E-03   -1.5635    
  23  Prefactor     .33862E-07    18.134        .12179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .85017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78284        .15084        .43382E-01   -1.0071    
  26  Prefactor     1.2182        .18681        .55886E-01   -.85772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.777e-07
Minuit parameter uncertainties:
  1  0.0183663
  2  0.000943368
  3  8.6357e-06
  4  1.75987
  5  2.82773e-06
  6  7.54822e-06
  7  35.1463
  8  2.25927
  9  0.00412617
  10  3.56336e-06
  11  15.4954
  12  5.91503e-05
  13  5.91846
  14  20.9743
  15  1.79186e-05
  16  1.66928
  17  18.6255
  18  4.48173e-06
  19  3.233e-05
  20  3.09203
  21  3.7705
  22  27.4915
  23  0.00156767
  24  3.53792e-06
  25  0.150919
  26  0.186913
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.301e+00  5.918e+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:  1.218e+00  1.869e-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:  7.828e-01  1.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 5.40e-06 +/- 7.43e-06

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

Saving results to:
/scratch/kocevski/77671/likelihoodResults_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.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) = 6228.39425782
delta logL = 7.47880894778e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6228.39425481
delta logL = 7.7802573287e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2917       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4364       1.0000          .0000       5.0000    
     3 'Normalizat'    .78251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2184       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6228.394     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      266 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2880        5.6793        .97213E-04   -.16324E-02
   2  alpha         2.4353        1.2887        .32949E-01   -.85194E-05
   3  Normalizat    .78253        .17222        .23395E-03   -.17110E-03
   4  Prefactor     1.2185        .22095        .24709E-03   -.82035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.28803
  alpha      = 2.43526
  Normalizat = 0.782526
  Prefactor  = 1.21846
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.394     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2880        5.5583        .38885E-05   -1.5667    
   2  alpha         2.4353        1.2631        .13179E-02   -.25897E-01
   3  Normalizat    .78253        .17220        .93579E-05   -1.0072    
   4  Prefactor     1.2185        .22100        .98838E-05   -.85765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93074e-11
Minuit parameter uncertainties:
  1  5.55834
  2  1.3242
  3  0.172324
  4  0.221171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77671': 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) = 6228.39425405
delta logL = 7.85644806456e-05

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.288e+00  5.558e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.435e+00  1.324e+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.218e+00  2.212e-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:  7.825e-01  1.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.44 +/- 1.32
Photon Flux (Free Index): 1.75e-08 +/- 2.91e-08
Energy Flux (Free Index): 5.40e-06 +/- 6.87e-06

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/77671/cmap_HighResolution_693187201_693446401_4FGL_J1223.9+5000_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='5.40e-06', photon_flux_error='2.37e-08', dlogl='7.86e-05', energy_flux='5.40e-06', photon_flux2='1.75e-08', job_status='DONE', time_completed='2022-12-23 00:54:35.012070', photon_index_error2='1.32', photon_index2='2.44', ts='1.03', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='7.39e-08', energy_flux_error2='6.87e-06', EG='0.78', time_epoch_completed='1671785675.01', return_code='0', job_id='77671', GAL2='1.22', EG2='0.78', return_code2='0', energy_flux_error='7.43e-06', photon_flux_error2='2.91e-08', ts2='1.03', photon_index='2.42' WHERE bin_id='1751' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:54:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 77671: <4FGL_J1223.9+5000_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:14 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:15 2022
Terminated at Fri Dec 23 00:54:35 2022
Results reported at Fri Dec 23 00:54:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1751 185.988 50.0089 693187201 693446401 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 :                                   674.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

