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


Performing analysis on: 4FGL_J1223.9+5000_weekly_bin759
RA = 185.988, Dec = 50.0089
tmin = 698025601, tmax = 698630401
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='589722', job_status='RUN', time_executed='2023-02-21 03:33:28.965057', time_epoch_executed='1676979208.97' WHERE source_name='4FGL J1223.9+5000' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589722

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589722/ft1_4FGL_J1223.9+5000_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589722/ft2_4FGL_J1223.9+5000_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589722/ft1_4FGL_J1223.9+5000_weekly_bin759.fits outfile=/scratch/kocevski/589722/ft1_filteredMKT_4FGL_J1223.9+5000_weekly_bin759.fits ra=185.988 dec=50.0089 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.54
user 8.20
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589722/ft2_4FGL_J1223.9+5000_weekly_bin759.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/589722/ft1_filteredMKT_4FGL_J1223.9+5000_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/589722/ft1_filtered_4FGL_J1223.9+5000_weekly_bin759.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.57
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 571

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589722/ft1_filtered_4FGL_J1223.9+5000_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/589722/ft2_4FGL_J1223.9+5000_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/589722/ltcube_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.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/589722/ft2_4FGL_J1223.9+5000_weekly_bin759.fits
.....................!
real 26.98
user 26.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589722/ft1_filtered_4FGL_J1223.9+5000_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589722/ft2_4FGL_J1223.9+5000_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/589722/ltcube_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.fits outfile=/scratch/kocevski/589722/expmap_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.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/589722/ltcube_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.fits
.....................!
real 191.72
user 186.17
sys 5.06

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/589722/ft1_filtered_4FGL_J1223.9+5000_weekly_bin759.fits scfile=/scratch/kocevski/589722/ft2_4FGL_J1223.9+5000_weekly_bin759.fits outfile=/scratch/kocevski/589722/cmap_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589722/ft1_filtered_4FGL_J1223.9+5000_weekly_bin759.fits scfile=/scratch/kocevski/589722/ft2_4FGL_J1223.9+5000_weekly_bin759.fits outfile=/scratch/kocevski/589722/cmap_HighResolution_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51247E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .10132E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12159E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .73299       1.0000          .0000       .10000E+07
     5 'norm      '    .24174E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51248E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .56930E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .23739E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.2380       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12684       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.0076       1.0000          .0000       .10000E+07
    12 'norm      '    .12157E-07   1.0000          .0000       .10000E+07
    13 'norm      '    5.6137       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.1614       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11919E-03   1.0000          .0000       .10000E+07
    16 'norm      '    7.2365       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.303       1.0000          .0000       .10000E+07
    18 'norm      '    5.2442       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.9571       1.0000          .0000       .10000E+07
    20 'norm      '    8.3097       1.0000          .0000       .10000E+07
    21 'norm      '    .31165E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    63.293       1.0000          .0000       .10000E+07
    23 'Prefactor '    .40675E-04   1.0000          .0000       .10000E+07
    24 'norm      '    1.4007       1.0000          .0000       .10000E+07
    25 'Normalizat'    .87791       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98939       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=   6279.450     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1789 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-08    29.440       -.15400E-06** at limit **
   2  norm          .27756E-09    12.787        .93435E-06** at limit **
   3  Prefactor      .0000        1.8393       -.19477E-07** at limit **
   4  norm          .73332        1.1149        .25072E-07    .16016E-03
   5  norm           .0000        2.6688        .11251E-06** at limit **
   6  Prefactor     .61062E-09    6.4346        .49932E-06** at limit **
   7  Prefactor     .16653E-09    24.195        .12570E-05** at limit **
   8  norm           .0000        3.3942       -.40966E-06** at limit **
   9  Prefactor     4.2716        16.685        .39696E-06   -.13224E-02
  10  Prefactor     .49593E-05    2.6401        .29009E-06** at limit **
  11  Prefactor     5.2797        4.8747        .52268E-07   -.19880E-02
  12  norm           .0000        1.0528       -.19000E-08** at limit **
  13  norm          5.6448        6.6064       -.14769E-06    .20972E-02
  14  Prefactor     2.9934        2.5047        .11537E-06   -.38845E-02
  15  Prefactor     .16653E-09    5.6251       -.19813E-06** at limit **
  16  norm          7.2407        2.7717       -.59733E-07   -.25856E-02
  17  Prefactor     14.405        2.2163        .36613E-07    .29095E-02
  18  norm          5.2442        2.4451        .32831E-07    .67367E-04
  19  Prefactor     5.9290        6.8101       -.13480E-06    .33132E-01
  20  norm          8.3019        6.7372       -.16167E-06   -.39159E-01
  21  norm           .0000        2.3101        .86105E-07** at limit **
  22  Prefactor     63.778        6.5859       -.30382E-07    .41122E-01
  23  Prefactor     .59563E-07    46.436        .48089E-06** at limit **
  24  norm          1.3994        1.7216       -.41970E-07   -.13755E-03
  25  Normalizat    .87794        .17723       -.14990E-05    .24551E-04
  26  Prefactor     .98922        .22189        .31799E-05    .16761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-09
  norm       = 2.77556e-10
  Prefactor  = 0
  norm       = 0.733317
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 4.27161
  Prefactor  = 4.95926e-06
  Prefactor  = 5.27968
  norm       = 0
  norm       = 5.64481
  Prefactor  = 2.99337
  Prefactor  = 1.66533e-10
  norm       = 7.24065
  Prefactor  = 14.405
  norm       = 5.24422
  Prefactor  = 5.92898
  norm       = 8.30188
  norm       = 0
  Prefactor  = 63.7782
  Prefactor  = 5.95635e-08
  norm       = 1.39941
  Normalizat = 0.877937
  Prefactor  = 0.98922
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.450     FROM HESSE     STATUS=OK           514 CALLS     2303 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-08    29.457        .15491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .27756E-09    12.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.8398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .73332        1.1280        .58070E-03   -1.5691    
   5  norm           .0000        2.6734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .61062E-09    6.3894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-09    24.352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        3.3888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2716        19.317        .48922E-03   -1.5667    
  10  Prefactor     .49593E-05    4.5694        .94435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2797        19.232        .44914E-03   -1.5662    
  12  norm           .0000        1.0378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6448        8.4098        .42376E-03   -1.5660    
  14  Prefactor     2.9934        49.687        .56978E-03   -1.5673    
  15  Prefactor     .16653E-09    5.6045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.2407        2.8077        .37263E-03   -1.5654    
  17  Prefactor     14.405        15.087        .26458E-03   -1.5632    
  18  norm          5.2442        2.4506        .43869E-03   -1.5662    
  19  Prefactor     5.9290        9.5409        .41118E-03   -1.5659    
  20  norm          8.3019        8.8614        .34754E-03   -1.5650    
  21  norm           .0000        2.2901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.778        28.931        .12570E-03   -1.5548    
  23  Prefactor     .59563E-07    48.141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3994        1.7353        .91643E-03   -1.5684    
  25  Normalizat    .87794        .15211        .44619E-01   -.97240    
  26  Prefactor     .98922        .18882        .46134E-01   -.93090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02759e-08
Minuit parameter uncertainties:
  1  0.000356617
  2  0.000121354
  3  6.72155e-08
  4  1.12795
  5  6.02205e-06
  6  0.000124411
  7  0.000127058
  8  6.98066e-06
  9  18.1676
  10  0.00952073
  11  19.232
  12  1.44283e-06
  13  8.40977
  14  24.3913
  15  6.17344e-05
  16  2.80769
  17  15.087
  18  2.45061
  19  9.5409
  20  8.86141
  21  2.69456e-06
  22  28.931
  23  0.00338745
  24  1.73534
  25  0.152182
  26  0.188943
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  5.645e+00  8.410e+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.892e-01  1.889e-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:  8.779e-01  1.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/589722/likelihoodResults_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.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) = 6278.96834645
delta logL = 0.481887713217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6278.96754046
delta logL = 0.482693707622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6653       1.0000          .0000       .10000E+07
     2 'alpha     '    3.4089       1.0000          .0000       5.0000    
     3 'Normalizat'    .85029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       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=   6278.968     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      291 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6644        6.3381        .12274E-04    .77293E-02
   2  alpha         3.4082        1.2055        .17955E-01    .50829E-04
   3  Normalizat    .85032        .17745        .22488E-03   -.25337E-03
   4  Prefactor     1.0100        .22308        .26361E-03   -.25719E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.66438
  alpha      = 3.40815
  Normalizat = 0.850317
  Prefactor  = 1.00997
 **********
 **   18 **HESSE 
 **********

 FCN=   6278.968     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6644        5.3039        .49097E-06   -1.5670    
   2  alpha         3.4082        1.0233        .71822E-03    .37176    
   3  Normalizat    .85032        .17752        .89954E-05   -.98229    
   4  Prefactor     1.0100        .22302        .52722E-04   -.92398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82599e-10
Minuit parameter uncertainties:
  1  5.30394
  2  1.05945
  3  0.177639
  4  0.22322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589722': 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) = 6278.96753888
delta logL = 0.482695284738

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.664e+00  5.304e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  3.408e+00  1.059e+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.010e+00  2.232e-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:  8.503e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 185.988 50.009
Photon Index (Free Index): 3.41 +/- 1.06
Photon Flux (Free Index): 4.75e-08 +/- 4.20e-08
Energy Flux (Free Index): 8.98e-06 +/- 7.73e-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/589722/cmap_HighResolution_698025601_698630401_4FGL_J1223.9+5000_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', comment='SUCCESS', energy_flux2='8.98e-06', dlogl='4.83e-01', photon_flux2='4.75e-08', job_status='DONE', time_completed='2023-02-21 03:45:42.429998', photon_index_error2='1.06', photon_index2='3.41', ts='0.91', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.60e-08', energy_flux_error2='7.73e-06', EG='0.88', time_epoch_completed='1676979942.43', return_code='0', job_id='589722', GAL2='1.01', EG2='0.85', return_code2='0', photon_flux_error2='4.20e-08', ts2='1.90', photon_index='2.42' WHERE bin_id='759' AND source_name='4FGL J1223.9+5000' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:45:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 589722: <4FGL_J1223.9+5000_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1223.9+5000_weekly_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 03:30:23 2023
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:30:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:30:25 2023
Terminated at Tue Feb 21 03:45:42 2023
Results reported at Tue Feb 21 03:45:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_weekly_bin759 185.988 50.0089 698025601 698630401 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 :                                   730.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             266.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

