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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin1746
RA = 185.883, Dec = 8.3017
tmin = 691891201, tmax = 692150401
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='724711', job_status='RUN', time_executed='2022-12-08 00:52:07.955474', time_epoch_executed='1670489527.96' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724711/ft1_4FGL_J1223.5+0818_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724711/ft1_4FGL_J1223.5+0818_daily_bin1746.fits outfile=/scratch/kocevski/724711/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1746.fits ra=185.883 dec=8.3017 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.70
user 4.45
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.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/724711/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.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.55
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 666

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/724711/ltcube_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.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/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits
.....................!
real 12.54
user 12.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/724711/ltcube_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.fits outfile=/scratch/kocevski/724711/expmap_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.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/724711/ltcube_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.fits
.....................!
real 192.09
user 186.17
sys 5.54

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

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits scfile=/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits outfile=/scratch/kocevski/724711/cmap_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.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.883 yref=8.3017 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/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits scfile=/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits outfile=/scratch/kocevski/724711/cmap_HighResolution_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.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.883 yref=8.3017 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724711/Model_4FGL_J1223.5+0818_daily_bin1746.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/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits.....................!
real 63.97
user 62.58
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits', '/scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits', expMap='/scratch/kocevski/724711/expmap_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.fits', expCube='/scratch/kocevski/724711/ltcube_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/724711/Model_4FGL_J1223.5+0818_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/724711/ft1_filtered_4FGL_J1223.5+0818_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/724711/ft2_4FGL_J1223.5+0818_daily_bin1746.fits
Exposure map: /scratch/kocevski/724711/expmap_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.fits
Exposure cube: /scratch/kocevski/724711/ltcube_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/724711/Model_4FGL_J1223.5+0818_daily_bin1746.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) = 7508.04773451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58389E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.0591       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6853       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22432E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .45884E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .39078E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .48944E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .69663       1.0000          .0000       .10000E+07
     9 'Prefactor '    .56132E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .28876E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    18.673       1.0000          .0000       .10000E+07
    12 'norm      '    .24042E-05   1.0000          .0000       .10000E+07
    13 'norm      '    5.1934       1.0000          .0000       .10000E+07
    14 'Prefactor '    .36186E-02   1.0000          .0000       .10000E+07
    15 'norm      '    39.027       1.0000          .0000       .10000E+07
    16 'norm      '    .25175       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.950       1.0000          .0000       .10000E+07
    18 'Prefactor '    .80886E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .11102E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.3212       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.154       1.0000          .0000       .10000E+07
    22 'Prefactor '    20.051       1.0000          .0000       .10000E+07
    23 'Normalizat'    .71482       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1993       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7508.007     FROM MIGRAD    STATUS=CONVERGED    232 CALLS     2093 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99920E-08    98.485        .20811E-05** at limit **
   2  Prefactor     2.0593        5.2894        .29006E-06   -.40989E-03
   3  Prefactor     2.6813        5.5796        .54903E-06   -.54071E-03
   4  Prefactor     .31614E-06    11.458       -.73933E-06** at limit **
   5  Prefactor     .40951E-06    9.7475       -.18288E-05** at limit **
   6  Prefactor     .40024E-07    7.5448        .22213E-05** at limit **
   7  Prefactor     .29199E-07    45.970        .52641E-05** at limit **
   8  Prefactor     .69464        1.4408       -.29403E-06   -.19596E-03
   9  Prefactor     .71889E-01    10.893        .10955E-05** at limit **
  10  Prefactor     .29421E-08    13.094        .30418E-05** at limit **
  11  Prefactor     18.688        10.393       -.13741E-06   -.17209E-02
  12  norm          .55511E-10    1.5986       -.34740E-08** at limit **
  13  norm          5.1804        2.9827       -.50853E-09   -.79720E-02
  14  Prefactor     .44298E-07    41.106       -.38659E-05** at limit **
  15  norm          39.452        6.6952       -.55362E-06    .12814E-01
  16  norm          .25127        .39846        .14951E-06   -.21375E-01
  17  Prefactor     21.218        11.325        .60575E-07   -.11013E-03
  18  Prefactor     .28866E-08    12.033        .31459E-06** at limit **
  19  norm          .11102E-09    .57233       -.31077E-06** at limit **
  20  Prefactor     4.3788        4.9867        .61987E-07   -.15763E-02
  21  Prefactor     11.152        11.740       -.43048E-06   -.18259E-02
  22  Prefactor     19.873        14.545       -.64294E-07    .83389E-03
  23  Normalizat    .71457        .19871       -.11863E-04   -.22592E-03
  24  Prefactor     1.1991        .17457        .24109E-05   -.30545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99201e-09
  Prefactor  = 2.05934
  Prefactor  = 2.68134
  Prefactor  = 3.16136e-07
  Prefactor  = 4.09506e-07
  Prefactor  = 4.00235e-08
  Prefactor  = 2.91989e-08
  Prefactor  = 0.694641
  Prefactor  = 0.0718895
  Prefactor  = 2.94209e-09
  Prefactor  = 18.6876
  norm       = 5.55112e-11
  norm       = 5.18044
  Prefactor  = 4.42979e-08
  norm       = 39.4522
  norm       = 0.251273
  Prefactor  = 21.2176
  Prefactor  = 2.88658e-09
  norm       = 1.11022e-10
  Prefactor  = 4.37877
  Prefactor  = 11.1519
  Prefactor  = 19.8727
  Normalizat = 0.714565
  Prefactor  = 1.19908
 **********
 **   18 **HESSE 
 **********

 FCN=   7508.007     FROM HESSE     STATUS=OK           453 CALLS     2546 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99920E-08    98.686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0593        5.3575        .71991E-03   -1.5679    
   3  Prefactor     2.6813        5.6087        .62152E-03   -1.5675    
   4  Prefactor     .31614E-06    21.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .40951E-06    18.878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40024E-07    19.804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .29199E-07    48.388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .69464        1.4709        .60982E-03   -1.5691    
   9  Prefactor     .71889E-01    1.1022        .50622E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .29421E-08    20.362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.688        10.513        .23150E-03   -1.5622    
  12  norm          .55511E-10    1.5981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1804        3.2189        .44088E-03   -1.5662    
  14  Prefactor     .44298E-07    42.988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          39.452        37.698        .16009E-03   -1.5582    
  16  norm          .25127        .42920        .10919E-02   -1.5698    
  17  Prefactor     21.218        11.354        .21854E-03   -1.5616    
  18  Prefactor     .28866E-08    11.928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11102E-09    .56878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3788        5.0098        .48436E-03   -1.5666    
  21  Prefactor     11.152        11.759        .29972E-03   -1.5641    
  22  Prefactor     19.873        14.579        .22339E-03   -1.5619    
  23  Normalizat    .71457        .17647        .68354E-01   -1.0332    
  24  Prefactor     1.1991        .15278        .34647E-01   -.86359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58044e-07
Minuit parameter uncertainties:
  1  0.00198608
  2  5.3575
  3  5.60869
  4  0.00515845
  5  0.00556082
  6  0.00178001
  7  0.00237837
  8  1.47091
  9  0.562982
  10  0.000491552
  11  10.5127
  12  1.88753e-05
  13  3.21892
  14  0.00275962
  15  37.6981
  16  0.429203
  17  11.3545
  18  0.000370109
  19  1.6745e-05
  20  5.00977
  21  11.7595
  22  14.5791
  23  0.176611
  24  0.152838
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  4.430e-08  2.760e-03  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.199e+00  1.528e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  7.146e-01  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724711/likelihoodResults_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.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): 102
logL (Free Index) = 7508.01854893
delta logL = -0.0115472078833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7507.49864627
delta logL = 0.508355446166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93717       1.0000          .0000       .10000E+07
     2 'Index     '    3.4218       1.0000          .0000       10.000    
     3 'Normalizat'    .66129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7507.499     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      228 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93717        23.952        .43223E-03    .42230E-02
   2  Index         3.4218        2.5747        .80526E-01    .27456E-03
   3  Normalizat    .66122        .47720E-01    .70818E-01    .34640E-04
   4  Prefactor     1.2225        .41930E-01    .34119E-01    .22826E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.937173
  Index      = 3.42178
  Normalizat = 0.661222
  Prefactor  = 1.22253
 **********
 **   18 **HESSE 
 **********

 FCN=   7507.499     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93717        49.673        .84685E-05   -1.5689    
   2  Index         3.4218        6.6575        .49562E-02   -.32114    
   3  Normalizat    .66122        .16716        .31344E-03   -1.0544    
   4  Prefactor     1.2225        .14895        .21496E-03   -.85641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.61376e-08
Minuit parameter uncertainties:
  1  13.6459
  2  4.94677
  3  0.167286
  4  0.149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724711': 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) = 7507.49864615
delta logL = 0.508355571732

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  9.372e-01  1.365e+01  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  3.422e+00  4.947e+00  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.223e+00  1.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  6.612e-01  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 185.883 8.302
Photon Index (Free Index): 3.42 +/- 4.95
Photon Flux (Free Index): 4.73e-08 +/- 5.22e-08
Energy Flux (Free Index): 8.04e-06 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/724711/cmap_HighResolution_691891201_692150401_4FGL_J1223.5+0818_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', comment='SUCCESS', energy_flux2='8.04e-06', dlogl='5.08e-01', photon_flux2='4.73e-08', job_status='DONE', time_completed='2022-12-08 01:03:38.211743', photon_index_error2='4.95', photon_index2='3.42', ts='-0.00', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='5.40e-08', energy_flux_error2='1.20e-05', EG='0.71', time_epoch_completed='1670490218.21', return_code='0', job_id='724711', GAL2='1.22', EG2='0.66', return_code2='102', photon_flux_error2='5.22e-08', ts2='1.12', photon_index='1.92' WHERE bin_id='1746' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:03:38 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 724711: <4FGL_J1223.5+0818_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 00:50:15 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:50:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:50:16 2022
Terminated at Thu Dec  8 01:03:38 2022
Results reported at Thu Dec  8 01:03:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin1746 185.883 8.3017 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

