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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1765
RA = 187.712, Dec = 12.3883
tmin = 696816001, tmax = 697075201
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='634060', job_status='RUN', time_executed='2023-02-03 00:56:34.155949', time_epoch_executed='1675414594.16' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634060/ft1_4FGL_J1230.8+1223_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634060/ft1_4FGL_J1230.8+1223_daily_bin1765.fits outfile=/scratch/kocevski/634060/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1765.fits ra=187.712 dec=12.3883 rad=12.0 tmin=696816001.0 tmax=697075201.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.44
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.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/634060/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.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.54
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 588

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/634060/ltcube_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.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/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits
.....................!
real 18.15
user 17.59
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/634060/ltcube_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.fits outfile=/scratch/kocevski/634060/expmap_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.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/634060/ltcube_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.fits
.....................!
real 196.11
user 190.16
sys 5.36

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

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits scfile=/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits outfile=/scratch/kocevski/634060/cmap_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.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=187.712 yref=12.3883 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits scfile=/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits outfile=/scratch/kocevski/634060/cmap_HighResolution_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.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=187.712 yref=12.3883 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.62
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634060/Model_4FGL_J1230.8+1223_daily_bin1765.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/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits.....................!
real 60.70
user 58.59
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits', '/scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits', expMap='/scratch/kocevski/634060/expmap_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.fits', expCube='/scratch/kocevski/634060/ltcube_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634060/Model_4FGL_J1230.8+1223_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/634060/ft1_filtered_4FGL_J1230.8+1223_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/634060/ft2_4FGL_J1230.8+1223_daily_bin1765.fits
Exposure map: /scratch/kocevski/634060/expmap_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.fits
Exposure cube: /scratch/kocevski/634060/ltcube_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634060/Model_4FGL_J1230.8+1223_daily_bin1765.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6707.20753417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4366       1.0000          .0000       .10000E+07
     2 'Prefactor '    .20178E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    20.089       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33855E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.8990       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61165E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.0874       1.0000          .0000       .10000E+07
     8 'Prefactor '    .39024E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.494       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25353E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .27587       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.0459       1.0000          .0000       .10000E+07
    13 'norm      '    .85487E-08   1.0000          .0000       .10000E+07
    14 'norm      '    11.439       1.0000          .0000       .10000E+07
    15 'norm      '    .62016       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.8837       1.0000          .0000       .10000E+07
    17 'norm      '    .11103       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.9311       1.0000          .0000       .10000E+07
    19 'Prefactor '    30.482       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.8728       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6707.136     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1493 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4372        3.9259       -.22582E-07   -.23012E-02
   2  Prefactor     .60507E-08    46.655        .16217E-06** at limit **
   3  Prefactor     20.183        12.412       -.49800E-07    .70271E-04
   4  Prefactor      .0000        12.468       -.74035E-07** at limit **
   5  Prefactor     6.8862        4.9048       -.10056E-07    .40633E-03
   6  Prefactor     .26756E-07    79.067        .49055E-06** at limit **
   7  Prefactor     8.3185        2.6516       -.27242E-07    .15452E-01
   8  Prefactor      .0000        1.9572        .43313E-07** at limit **
   9  Prefactor     10.506        4.1735       -.27302E-07    .29366E-03
  10  Prefactor     .11102E-09    18.040        .19992E-06** at limit **
  11  norm          .31152        7.3373       -.22053E-07   -.14360E-02
  12  Prefactor     3.0407        1.1142       -.28039E-08   -.32193E-03
  13  norm           .0000        .12182        .16721E-08** at limit **
  14  norm          11.255        3.6197        .17121E-07    .30756E-01
  15  norm          .61935        .49269        .20210E-08   -.94489E-04
  16  Prefactor     9.8742        8.1498       -.23076E-08    .19649E-02
  17  norm          .11275        5.5569       -.14379E-06** at limit **
  18  Prefactor     1.8567        8.2723        .50895E-07    .13195E-03
  19  Prefactor     30.585        15.246        .34648E-07    .81359E-03
  20  Prefactor     8.8512        8.2174       -.49403E-07   -.20704E-02
  21  Normalizat    1.0825        .23533        .56383E-06    .11731E-05
  22  Prefactor     .95908        .19518       -.68456E-06    .35867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43722
  Prefactor  = 6.05072e-09
  Prefactor  = 20.1826
  Prefactor  = 0
  Prefactor  = 6.88623
  Prefactor  = 2.67564e-08
  Prefactor  = 8.31846
  Prefactor  = 0
  Prefactor  = 10.5063
  Prefactor  = 1.11022e-10
  norm       = 0.311518
  Prefactor  = 3.04069
  norm       = 0
  norm       = 11.2554
  norm       = 0.619349
  Prefactor  = 9.87415
  norm       = 0.112754
  Prefactor  = 1.85668
  Prefactor  = 30.5852
  Prefactor  = 8.85122
  Normalizat = 1.08246
  Prefactor  = 0.959077
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.136     FROM HESSE     STATUS=OK           410 CALLS     1903 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4372        60.966        .90020E-03   -1.5684    
   2  Prefactor     .60507E-08    46.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.183        12.420        .22318E-03   -1.5618    
   4  Prefactor      .0000        12.535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8862        5.0480        .38173E-03   -1.5655    
   6  Prefactor     .26756E-07    79.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3185        53.545        .35232E-03   -1.5650    
   8  Prefactor      .0000        1.9503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.506        4.1870        .30906E-03   -1.5643    
  10  Prefactor     .11102E-09    18.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .31152        2.5337        .57590E-02   -1.5697    
  12  Prefactor     3.0407        32.748        .58109E-03   -1.5673    
  13  norm           .0000        .65386E-01    .11513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.255        34.939        .29595E-03   -1.5641    
  15  norm          .61935        .51602        .67441E-03   -1.5692    
  16  Prefactor     9.8742        8.1517        .31849E-03   -1.5645    
  17  norm          .11275        .81086        .43056E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8567        8.2674        .74712E-03   -1.5681    
  19  Prefactor     30.585        15.733        .18115E-03   -1.5597    
  20  Prefactor     8.8512        8.2204        .33625E-03   -1.5648    
  21  Normalizat    1.0825        .20479        .61122E-01   -.90317    
  22  Prefactor     .95908        .16624        .45748E-01   -.94106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91268e-07
Minuit parameter uncertainties:
  1  18.7216
  2  0.00106209
  3  12.4202
  4  2.9198e-05
  5  5.04801
  6  0.00292064
  7  42.2102
  8  1.18431e-06
  9  4.18697
  10  8.19805e-05
  11  1.77684
  12  19.9577
  13  2.31056e-08
  14  34.9393
  15  0.516019
  16  8.15168
  17  0.604739
  18  7.8358
  19  15.7329
  20  8.22042
  21  0.204943
  22  0.166326
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  9.874e+00  8.152e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.591e-01  1.663e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.082e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.69e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.34e-05

TS (Fixed Index): 3.38
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/634060/likelihoodResults_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.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) = 6706.93251351
delta logL = 0.203810030565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6706.93238337
delta logL = 0.203940164023

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6706.932     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.832        443.13        .29087E-03    .10803E-03
   2  Index         1.6955        5.2792        .19451        .61646E-04
   3  Normalizat    1.0921        .28063        .60885E-01   -.56990E-04
   4  Prefactor     .95444        .18496        .45695E-01   -.60214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.832
  Index      = 1.69553
  Normalizat = 1.09209
  Prefactor  = 0.954439
 **********
 **   18 **HESSE 
 **********

 FCN=   6706.932     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.832        9.7154        .11635E-04   -1.5639    
   2  Index         1.6955        .53380        .97335E-02   -.72201    
   3  Normalizat    1.0921        .21781        .26929E-03   -.90006    
   4  Prefactor     .95444        .19371        .25288E-03   -.94264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72003e-11
Minuit parameter uncertainties:
  1  9.71541
  2  0.53562
  3  0.217986
  4  0.193846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634060': 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) = 6706.93238233
delta logL = 0.203941212449

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.183e+01  9.715e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  1.696e+00  5.356e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.544e-01  1.938e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.092e+00  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.70 +/- 0.54
Photon Flux (Free Index): 1.80e-08 +/- 1.93e-08
Energy Flux (Free Index): 2.98e-05 +/- 3.90e-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/634060/cmap_HighResolution_696816001_697075201_4FGL_J1230.8+1223_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', comment='SUCCESS', photon_flux='2.69e-08', energy_flux2='2.98e-05', photon_flux_error='2.22e-08', dlogl='2.04e-01', energy_flux='1.62e-05', photon_flux2='1.80e-08', job_status='DONE', time_completed='2023-02-03 01:06:27.342449', photon_index_error2='0.54', photon_index2='1.70', ts='3.38', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='3.90e-05', EG='1.08', time_epoch_completed='1675415187.34', return_code='0', job_id='634060', GAL2='0.95', EG2='1.09', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='1.93e-08', ts2='3.79', photon_index='2.06' WHERE bin_id='1765' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:06:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 634060: <4FGL_J1230.8+1223_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:55:17 2023
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:56:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:56:19 2023
Terminated at Fri Feb  3 01:06:28 2023
Results reported at Fri Feb  3 01:06:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1765 187.712 12.3883 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            671 sec.

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

