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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1766
RA = 185.988, Dec = 50.0089
tmin = 697075201, tmax = 697334401
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='847842', job_status='RUN', time_executed='2023-02-06 00:48:23.574338', time_epoch_executed='1675673303.57' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847842/ft1_4FGL_J1223.9+5000_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847842/ft2_4FGL_J1223.9+5000_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847842/ft1_4FGL_J1223.9+5000_daily_bin1766.fits outfile=/scratch/kocevski/847842/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1766.fits ra=185.988 dec=50.0089 rad=12.0 tmin=697075201.0 tmax=697334401.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.73
user 3.49
sys 0.20

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

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

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847842/ft1_filtered_4FGL_J1223.9+5000_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/847842/ft2_4FGL_J1223.9+5000_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/847842/ltcube_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.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/847842/ft2_4FGL_J1223.9+5000_daily_bin1766.fits
.....................!
real 16.34
user 15.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847842/ft1_filtered_4FGL_J1223.9+5000_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/847842/ft2_4FGL_J1223.9+5000_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/847842/ltcube_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.fits outfile=/scratch/kocevski/847842/expmap_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.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/847842/ltcube_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.fits
.....................!
real 193.98
user 188.52
sys 4.43

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/847842/ft1_filtered_4FGL_J1223.9+5000_daily_bin1766.fits scfile=/scratch/kocevski/847842/ft2_4FGL_J1223.9+5000_daily_bin1766.fits outfile=/scratch/kocevski/847842/cmap_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847842/ft1_filtered_4FGL_J1223.9+5000_daily_bin1766.fits scfile=/scratch/kocevski/847842/ft2_4FGL_J1223.9+5000_daily_bin1766.fits outfile=/scratch/kocevski/847842/cmap_HighResolution_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27305E-02   1.0000          .0000       .10000E+07
     2 'norm      '    13.124       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.1734       1.0000          .0000       .10000E+07
     4 'norm      '    .22659E-05   1.0000          .0000       .10000E+07
     5 'norm      '    7.0308       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35523E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    51.818       1.0000          .0000       .10000E+07
     8 'norm      '    .13827E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .40068E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.9449       1.0000          .0000       .10000E+07
    11 'Prefactor '    .70593E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .18729E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .95589E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.0584       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5362       1.0000          .0000       .10000E+07
    16 'norm      '    .55275       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21858E-01   1.0000          .0000       .10000E+07
    18 'norm      '    3.1999       1.0000          .0000       .10000E+07
    19 'Prefactor '    .73697E-04   1.0000          .0000       .10000E+07
    20 'norm      '    16.259       1.0000          .0000       .10000E+07
    21 'norm      '    4.0570       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23081       1.0000          .0000       .10000E+07
    23 'Prefactor '    63.509       1.0000          .0000       .10000E+07
    24 'norm      '    .19153E-05   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83482       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=   6019.269     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2262 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20056E-06    42.804        .80467E-06** at limit **
   2  norm          13.202        1.1513       -.18684E-07    .93771E-03
   3  Prefactor     2.1749        5.2036       -.10822E-06   -.34709E-04
   4  norm           .0000        1.0049       -.46717E-06** at limit **
   5  norm          6.9934        6.9630       -.72509E-09    .52712E-03
   6  Prefactor      .0000        1.7447       -.56894E-07** at limit **
   7  Prefactor     54.005        51.479       -.34916E-06   -.40159E-01
   8  norm           .0000        5.5361       -.42297E-07** at limit **
   9  Prefactor     .55511E-10    45.180       -.20240E-06** at limit **
  10  Prefactor     6.9776        7.0149        .37937E-07    .42762E-03
  11  Prefactor     .16653E-09    13.603        .12660E-06** at limit **
  12  norm           .0000        .75720        .21197E-07** at limit **
  13  norm          .16653E-09    4.5924        .70818E-07** at limit **
  14  Prefactor     7.9267        12.413       -.15989E-06   -.89521E-02
  15  Prefactor     1.5369        2.3563       -.63993E-08    .16741E-03
  16  norm          .55295        1.0748        .78465E-07    .76495E-03
  17  Prefactor     .35860E-07    65.597       -.74036E-06** at limit **
  18  norm          3.2033        2.2641        .23506E-07    .61649E-03
  19  Prefactor      .0000        2.2281       -.12296E-06** at limit **
  20  norm          16.461        13.433        .33924E-06    .71223E-01
  21  norm          4.0590        3.7990       -.13534E-06    .74417E-04
  22  Prefactor     .14572E-05    151.72       -.30809E-05** at limit **
  23  Prefactor     64.256        14.275       -.27612E-06    .21002    
  24  norm           .0000        1.0407        .75465E-07** at limit **
  25  Normalizat    1.0820        .17955       -.16179E-05   -.16815E-04
  26  Prefactor     .83469        .22169       -.61338E-06   -.14529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00562e-07
  norm       = 13.2015
  Prefactor  = 2.17492
  norm       = 0
  norm       = 6.9934
  Prefactor  = 0
  Prefactor  = 54.0048
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 6.97757
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 1.66533e-10
  Prefactor  = 7.9267
  Prefactor  = 1.53687
  norm       = 0.552945
  Prefactor  = 3.58602e-08
  norm       = 3.20335
  Prefactor  = 0
  norm       = 16.4611
  norm       = 4.05902
  Prefactor  = 1.45722e-06
  Prefactor  = 64.2561
  norm       = 0
  Normalizat = 1.082
  Prefactor  = 0.834688
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.269     FROM HESSE     STATUS=OK           518 CALLS     2780 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20056E-06    42.964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.202        31.064        .27624E-03   -1.5635    
   3  Prefactor     2.1749        5.2201        .69817E-03   -1.5678    
   4  norm           .0000        .99791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9934        6.9640        .37810E-03   -1.5655    
   6  Prefactor      .0000        1.7411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.005        53.051        .13893E-03   -1.5561    
   8  norm           .0000        5.4982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    13.257        .89719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9776        7.0233        .38045E-03   -1.5655    
  11  Prefactor     .16653E-09    13.585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .75437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16653E-09    4.5723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9267        12.441        .35295E-03   -1.5652    
  15  Prefactor     1.5369        2.3860        .86029E-03   -1.5683    
  16  norm          .55295        1.1005        .73571E-03   -1.5693    
  17  Prefactor     .35860E-07    14.250        .90490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2033        2.2686        .56616E-03   -1.5672    
  19  Prefactor      .0000        2.2237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.461        13.732        .24812E-03   -1.5627    
  21  norm          4.0590        3.8304        .50035E-03   -1.5668    
  22  Prefactor     .14572E-05    150.20        .11251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.256        40.580        .12549E-03   -1.5548    
  24  norm           .0000        1.0390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0820        .15396        .38758E-01   -.90332    
  26  Prefactor     .83469        .18922        .65067E-01   -.98462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30214e-06
Minuit parameter uncertainties:
  1  0.00587065
  2  31.0646
  3  5.22016
  4  6.60595e-06
  5  6.96402
  6  3.03809e-06
  7  53.0515
  8  4.25864e-06
  9  4.34578e-05
  10  7.02333
  11  0.000101336
  12  2.16314e-08
  13  5.87727e-05
  14  12.4409
  15  2.38599
  16  1.10049
  17  0.00142919
  18  2.2686
  19  7.48765e-06
  20  13.7318
  21  3.83037
  22  0.0295894
  23  40.5803
  24  3.13502e-06
  25  0.154021
  26  0.189366
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.665e-10  5.877e-05  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.347e-01  1.894e-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.082e+00  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/847842/likelihoodResults_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.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) = 6019.26926497
delta logL = -0.00016012150536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6019.26910499
delta logL = -1.40564225148e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11474E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    1.1731       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83474       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=   6019.269     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      261 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    .41243E-01    .42118E-03** at limit **
   2  alpha         3.1070        3.9432        .51000        .66875E-10
   3  Normalizat    1.0820        .46313E-03    .38785E-01   -.43802E-03
   4  Prefactor     .83469        .57900E-03    .65067E-01   -.34370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  alpha      = 3.10701
  Normalizat = 1.082
  Prefactor  = 0.834687
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.269     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      286 TOTAL
                     EDM=   .72E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    .21547        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1070        3.3394        .50000        .24526    
   3  Normalizat    1.0820        .10521E-02    .20595E-03   -.90332    
   4  Prefactor     .83469        .13136E-02    .28782E-03   -.98462    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.15267e-13
Minuit parameter uncertainties:
  1  1.00155e-05
  2  35993.6
  3  0.00105205
  4  0.00131365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847842': 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) = 6019.26910485
delta logL = -9.64064383879e-11

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.110e-10  1.002e-05  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  3.107e+00  3.599e+04  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:  8.347e-01  1.314e-03  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.082e+00  1.052e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.988 50.009

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/847842/cmap_HighResolution_697075201_697334401_4FGL_J1223.9+5000_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-05', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2023-02-06 01:00:25.098874', job_id='847842', GAL2='0.83', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1675674025.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-9.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1766' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:00:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 847842: <4FGL_J1223.9+5000_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1766> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Feb  6 00:45:16 2023
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:47:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:47:25 2023
Terminated at Mon Feb  6 01:00:25 2023
Results reported at Mon Feb  6 01:00:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1766 185.988 50.0089 697075201 697334401 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 :                                   722.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            909 sec.

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

