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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1749
RA = 185.988, Dec = 50.0089
tmin = 692668801, tmax = 692928001
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='950545', job_status='RUN', time_executed='2022-12-17 00:44:13.203931', time_epoch_executed='1671266653.2' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950545/ft1_4FGL_J1223.9+5000_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950545/ft2_4FGL_J1223.9+5000_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950545/ft1_4FGL_J1223.9+5000_daily_bin1749.fits outfile=/scratch/kocevski/950545/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1749.fits ra=185.988 dec=50.0089 rad=12.0 tmin=692668801.0 tmax=692928001.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.68
user 3.45
sys 0.21

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

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

Number of photons that the gtmktime cut: 586

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950545/ft1_filtered_4FGL_J1223.9+5000_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/950545/ft2_4FGL_J1223.9+5000_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/950545/ltcube_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.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/950545/ft2_4FGL_J1223.9+5000_daily_bin1749.fits
.....................!
real 12.27
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950545/ft1_filtered_4FGL_J1223.9+5000_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/950545/ft2_4FGL_J1223.9+5000_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/950545/ltcube_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.fits outfile=/scratch/kocevski/950545/expmap_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.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/950545/ltcube_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.fits
.....................!
real 191.51
user 185.53
sys 5.64

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/950545/ft1_filtered_4FGL_J1223.9+5000_daily_bin1749.fits scfile=/scratch/kocevski/950545/ft2_4FGL_J1223.9+5000_daily_bin1749.fits outfile=/scratch/kocevski/950545/cmap_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950545/ft1_filtered_4FGL_J1223.9+5000_daily_bin1749.fits scfile=/scratch/kocevski/950545/ft2_4FGL_J1223.9+5000_daily_bin1749.fits outfile=/scratch/kocevski/950545/cmap_HighResolution_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    118.26       1.0000          .0000       .10000E+07
     2 'norm      '    .11935E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .40614E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .97645       1.0000          .0000       .10000E+07
     5 'norm      '    .70756E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .66375E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.543       1.0000          .0000       .10000E+07
     8 'norm      '    .17018E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .51304E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18521E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .67892E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .29573E-01   1.0000          .0000       .10000E+07
    13 'norm      '    2.9027       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39446       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.2330       1.0000          .0000       .10000E+07
    16 'norm      '    2.5408       1.0000          .0000       .10000E+07
    17 'Prefactor '    .80815E-05   1.0000          .0000       .10000E+07
    18 'norm      '    2.9138       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38533E-02   1.0000          .0000       .10000E+07
    20 'norm      '    12.181       1.0000          .0000       .10000E+07
    21 'norm      '    .56908E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    56.751       1.0000          .0000       .10000E+07
    23 'Prefactor '    .67952E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .32930E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86673       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=   6387.261     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     2297 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     118.33        3.8555        .11705E-08   -.53238E-01
   2  norm          .11519E-06    6.6691        .81397E-07** at limit **
   3  Prefactor     .55511E-10    3.5415        .14789E-06** at limit **
   4  norm          .97689        1.1513        .16670E-07    .32479E-02
   5  norm          .55511E-10    3.9353       -.52260E-07** at limit **
   6  Prefactor      .0000        1.2707       -.85284E-09** at limit **
   7  Prefactor     20.477        1.2422        .17117E-08    .38475E-02
   8  norm          .22204E-09    6.0174       -.94644E-07** at limit **
   9  Prefactor     .25535E-08    5.8301        .23867E-07** at limit **
  10  Prefactor      .0000        3.0751        .22412E-08** at limit **
  11  Prefactor     .43465E-07    14.802        .32416E-06** at limit **
  12  norm          .26999E-01    28.180       -.13928E-05** at limit **
  13  norm          2.9886        6.9560        .89059E-06    .37182E-02
  14  Prefactor     .62589E-06    758.99        .43521E-07** at limit **
  15  Prefactor     2.2329        3.2745        .29365E-07    .16784E-02
  16  norm          2.5404        1.5884       -.13686E-07    .18079E-03
  17  Prefactor     .60507E-08    47.333        .21848E-06** at limit **
  18  norm          2.9135        2.0499       -.12574E-07   -.15208E-02
  19  Prefactor     .36193E-07    9.3543        .67333E-07** at limit **
  20  norm          12.193        3.9080        .11213E-07    .14780    
  21  norm           .0000        1.5845        .17864E-07** at limit **
  22  Prefactor     56.592        2.1099       -.91558E-09    .71922E-01
  23  Prefactor     .96534E-07    10.073       -.24917E-06** at limit **
  24  norm           .0000        2.6398       -.14897E-07** at limit **
  25  Normalizat    1.0693        .17187        .41209E-05    .26559E-03
  26  Prefactor     .86635        .20991       -.27460E-05    .15362E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 118.333
  norm       = 1.15186e-07
  Prefactor  = 5.55112e-11
  norm       = 0.976891
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 20.4766
  norm       = 2.22045e-10
  Prefactor  = 2.55351e-09
  Prefactor  = 0
  Prefactor  = 4.34652e-08
  norm       = 0.0269991
  norm       = 2.98858
  Prefactor  = 6.25888e-07
  Prefactor  = 2.23291
  norm       = 2.54039
  Prefactor  = 6.05072e-09
  norm       = 2.91349
  Prefactor  = 3.61933e-08
  norm       = 12.1928
  norm       = 0
  Prefactor  = 56.592
  Prefactor  = 9.65339e-08
  norm       = 0
  Normalizat = 1.06931
  Prefactor  = 0.866351
 **********
 **   18 **HESSE 
 **********

 FCN=   6387.261     FROM HESSE     STATUS=OK           512 CALLS     2809 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     118.33        94.929        .91963E-04   -1.5490    
   2  norm          .11519E-06    12.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    3.5332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .97689        1.1908        .42930E-03   -1.5688    
   5  norm          .55511E-10    3.9455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.2647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.477        30.891        .22070E-03   -1.5617    
   8  norm          .22204E-09    5.9519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .25535E-08    12.633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.0731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .43465E-07    14.998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .26999E-01    .87039        .49766E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9886        8.9891        .59614E-03   -1.5673    
  14  Prefactor     .62589E-06    39.289        .10473E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2329        3.2788        .68765E-03   -1.5678    
  16  norm          2.5404        1.5855        .64041E-03   -1.5676    
  17  Prefactor     .60507E-08    48.236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9135        2.0549        .59494E-03   -1.5674    
  19  Prefactor     .36193E-07    9.4254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.193        11.581        .28677E-03   -1.5638    
  21  norm           .0000        1.5797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     56.592        30.126        .13275E-03   -1.5558    
  23  Prefactor     .96534E-07    10.652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        2.6223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0693        .15156        .39447E-01   -.90743    
  26  Prefactor     .86635        .18179        .44579E-01   -.97327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58425e-07
Minuit parameter uncertainties:
  1  94.9306
  2  0.00242521
  3  3.16363e-05
  4  1.19078
  5  2.72425e-05
  6  2.77749e-06
  7  30.8913
  8  7.29963e-05
  9  0.000358121
  10  1.06526e-05
  11  0.00161523
  12  0.306593
  13  8.98914
  14  0.00991796
  15  3.27881
  16  1.58553
  17  0.00107907
  18  2.05486
  19  0.00116788
  20  11.5815
  21  3.07152e-06
  22  30.126
  23  0.00202813
  24  2.9588e-06
  25  0.151617
  26  0.181919
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.989e+00  8.989e+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:  8.664e-01  1.819e-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:  1.069e+00  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950545/likelihoodResults_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.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) = 6386.36868071
delta logL = 0.89255538957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6386.35606525
delta logL = 0.905170842749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2745       1.0000          .0000       .10000E+07
     2 'alpha     '    4.3344       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91527       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=   6386.356     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      243 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2700        19.403        .98421E-03   -.11228E-01
   2  alpha         4.3374        3.7643        .50000       -.40909E-05
   3  Normalizat    1.0045        .43928E-01    .46224E-01   -.37641E-03
   4  Prefactor     .91528        .54798E-01    .45199E-01   -.14075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27
  alpha      = 4.33737
  Normalizat = 1.00455
  Prefactor  = 0.915278
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.356     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2700        35.954        .66714E-05   -1.5685    
   2  alpha         4.3374        2.8701        .27925E-01    .82559    
   3  Normalizat    1.0045        .17645        .21125E-03   -.92878    
   4  Prefactor     .91528        .21687        .27273E-03   -.95609    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.9525e-09
Minuit parameter uncertainties:
  1  13.5148
  2  7.49578
  3  0.17655
  4  0.217075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950545': 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) = 6386.35606356
delta logL = 0.905172542301

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.270e+00  1.351e+01  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  4.337e+00  7.496e+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:  9.153e-01  2.171e-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:  1.005e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 185.988 50.009
Photon Index (Free Index): 4.34 +/- 7.50
Photon Flux (Free Index): 6.06e-08 +/- 5.27e-08
Energy Flux (Free Index): 9.26e-06 +/- 1.05e-05

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/950545/cmap_HighResolution_692668801_692928001_4FGL_J1223.9+5000_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', comment='SUCCESS', energy_flux2='9.26e-06', dlogl='9.05e-01', photon_flux2='6.06e-08', job_status='DONE', time_completed='2022-12-17 00:56:30.836342', photon_index_error2='7.50', photon_index2='4.34', ts='0.22', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.65e-08', energy_flux_error2='1.05e-05', EG='1.07', time_epoch_completed='1671267390.84', return_code='0', job_id='950545', GAL2='0.92', EG2='1.00', return_code2='102', photon_flux_error2='5.27e-08', ts2='2.13', photon_index='2.42' WHERE bin_id='1749' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:56:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 950545: <4FGL_J1223.9+5000_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 00:40:19 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:40:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:40:21 2022
Terminated at Sat Dec 17 00:56:31 2022
Results reported at Sat Dec 17 00:56:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1749 185.988 50.0089 692668801 692928001 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 :                                   739.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

