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


Performing analysis on: 4FGL_J1230.8+1223_weekly_bin744
RA = 187.712, Dec = 12.3883
tmin = 688953601, tmax = 689558401
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='971785', job_status='RUN', time_executed='2022-11-08 01:10:48.408751', time_epoch_executed='1667898648.41' WHERE source_name='4FGL J1230.8+1223' and cadence='weekly' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/971785

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/971785/ft1_4FGL_J1230.8+1223_weekly_bin744.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/971785/ft1_4FGL_J1230.8+1223_weekly_bin744.fits outfile=/scratch/kocevski/971785/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin744.fits ra=187.712 dec=12.3883 rad=12.0 tmin=688953601.0 tmax=689558401.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 7.67
user 7.34
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.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/971785/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin744.fits evtable="EVENTS" outfile="/scratch/kocevski/971785/ft1_filtered_4FGL_J1230.8+1223_weekly_bin744.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.37
sys 0.15

Number of photons that the gtmktime cut: 1318

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/971785/ft1_filtered_4FGL_J1230.8+1223_weekly_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/971785/ltcube_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.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/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits
.....................!
real 27.83
user 27.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/971785/ft1_filtered_4FGL_J1230.8+1223_weekly_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/971785/ltcube_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.fits outfile=/scratch/kocevski/971785/expmap_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.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/971785/ltcube_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.fits
.....................!
real 191.08
user 185.15
sys 5.38

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/971785/ft1_filtered_4FGL_J1230.8+1223_weekly_bin744.fits scfile=/scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits outfile=/scratch/kocevski/971785/cmap_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/971785/ft1_filtered_4FGL_J1230.8+1223_weekly_bin744.fits scfile=/scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits outfile=/scratch/kocevski/971785/cmap_HighResolution_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/971785/ft1_filtered_4FGL_J1230.8+1223_weekly_bin744.fits', '/scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits', expMap='/scratch/kocevski/971785/expmap_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.fits', expCube='/scratch/kocevski/971785/ltcube_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/971785/Model_4FGL_J1230.8+1223_weekly_bin744.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/971785/ft1_filtered_4FGL_J1230.8+1223_weekly_bin744.fits
Spacecraft file(s): /scratch/kocevski/971785/ft2_4FGL_J1230.8+1223_weekly_bin744.fits
Exposure map: /scratch/kocevski/971785/expmap_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.fits
Exposure cube: /scratch/kocevski/971785/ltcube_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/971785/Model_4FGL_J1230.8+1223_weekly_bin744.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) = 14218.7605977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49144E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.045       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.9226       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54543E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .43778       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.4403       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17365E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .83045E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .42133E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14042E-05   1.0000          .0000       .10000E+07
    11 'norm      '    8.6632       1.0000          .0000       .10000E+07
    12 'Prefactor '    .55878E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .29032E-07   1.0000          .0000       .10000E+07
    14 'norm      '    15.211       1.0000          .0000       .10000E+07
    15 'norm      '    1.0042       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.2420       1.0000          .0000       .10000E+07
    17 'norm      '    1.4140       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14098E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.4523       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.7855       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2289       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1122       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=   14218.65     FROM MIGRAD    STATUS=CONVERGED    203 CALLS     1527 TOTAL
                     EDM=   .58E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.1908       -.92932E-08** at limit **
   2  Prefactor     9.3400        36.963        .11262E-05   -.65689E-04
   3  Prefactor     1.9600        6.2665        .66180E-07   -.90170E-04
   4  Prefactor      .0000        7.6125        .13250E-07** at limit **
   5  Prefactor     .44230        3.1670        .86486E-07   -.15450E-04
   6  Prefactor     2.6535        171.74        .11518E-05   -.11515E-03
   7  Prefactor      .0000        15.273        .12636E-06** at limit **
   8  Prefactor      .0000        1.0611       -.21391E-07** at limit **
   9  Prefactor      .0000        2.7066       -.13944E-07** at limit **
  10  Prefactor      .0000        12.623        .10891E-06** at limit **
  11  norm          8.6540        2.9709       -.17778E-07   -.17676E-03
  12  Prefactor      .0000        5.2764       -.34439E-07** at limit **
  13  norm           .0000        .24955       -.92362E-08** at limit **
  14  norm          15.506        25.176        .36660E-06   -.76775E-04
  15  norm          1.0032        .39928       -.73399E-08   -.12049E-02
  16  Prefactor     5.2294        4.4448       -.19336E-07    .28562E-04
  17  norm          1.4130        1.0294       -.12596E-07   -.14770E-03
  18  Prefactor      .0000        2.2366       -.70612E-07** at limit **
  19  Prefactor     6.5153        7.3083        .62475E-08   -.96473E-05
  20  Prefactor     1.7701        9.6616        .76426E-07   -.38642E-04
  21  Normalizat    1.2291        .15312       -.69874E-07   -.79690E-05
  22  Prefactor     1.1124        .13852       -.34033E-06   -.21031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 9.34001
  Prefactor  = 1.95996
  Prefactor  = 0
  Prefactor  = 0.442304
  Prefactor  = 2.65345
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 8.65401
  Prefactor  = 0
  norm       = 0
  norm       = 15.5065
  norm       = 1.00322
  Prefactor  = 5.22942
  norm       = 1.41299
  Prefactor  = 0
  Prefactor  = 6.51532
  Prefactor  = 1.77011
  Normalizat = 1.22912
  Prefactor  = 1.11236
 **********
 **   18 **HESSE 
 **********

 FCN=   14218.65     FROM HESSE     STATUS=OK           408 CALLS     1935 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.1891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.3400        36.985        .31592E-03   -1.5647    
   3  Prefactor     1.9600        6.3041        .74905E-03   -1.5680    
   4  Prefactor      .0000        7.6802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44230        1.2842        .60613E-02   -1.5695    
   6  Prefactor     2.6535        177.50        .47764E-03   -1.5675    
   7  Prefactor      .0000        15.278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.0420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .55819        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        12.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.6540        2.9785        .34032E-03   -1.5649    
  12  Prefactor      .0000        5.2871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .41714E-01    .13384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.506        25.140        .25655E-03   -1.5629    
  15  norm          1.0032        .40302        .43912E-03   -1.5688    
  16  Prefactor     5.2294        4.4450        .43879E-03   -1.5662    
  17  norm          1.4130        1.0436        .91030E-03   -1.5684    
  18  Prefactor      .0000        2.2380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5153        7.3713        .39488E-03   -1.5657    
  20  Prefactor     1.7701        9.8816        .78269E-03   -1.5681    
  21  Normalizat    1.2291        .13077        .58376E-01   -.85708    
  22  Prefactor     1.1124        .11645        .56704E-01   -.89072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26921e-06
Minuit parameter uncertainties:
  1  9.14413e-07
  2  36.9856
  3  6.30412
  4  5.29954e-06
  5  1.28415
  6  43.406
  7  7.36842e-07
  8  3.32701e-07
  9  1.38054e-07
  10  1.63378e-06
  11  2.97853
  12  5.585e-07
  13  5.45036e-08
  14  25.1397
  15  0.40302
  16  4.44502
  17  1.04359
  18  3.39867e-06
  19  7.37128
  20  8.36458
  21  0.130807
  22  0.116472
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  5.229e+00  4.445e+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:  1.112e+00  1.165e-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.229e+00  1.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.80
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.43e-08 +/- 1.21e-08
Energy Flux (Fixed Index): 8.60e-06 +/- 7.31e-06

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) = 14218.2253838
delta logL = 0.422026679005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14218.2136267
delta logL = 0.433783841598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0068       1.0000          .0000       .10000E+07
     2 'Index     '    1.5627       1.0000          .0000       10.000    
     3 'Normalizat'    1.2348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1107       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14218.21     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      282 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9997        5.2815        .81890E-04   -.62134E-03
   2  Index         1.5619        .50233        .12444E-01   -.56494E-05
   3  Normalizat    1.2349        .14756        .25764E-03    .14120E-04
   4  Prefactor     1.1106        .13789        .25092E-03    .74306E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.99966
  Index      = 1.56192
  Normalizat = 1.2349
  Prefactor  = 1.11057
 **********
 **   18 **HESSE 
 **********

 FCN=   14218.21     FROM HESSE     STATUS=OK            27 CALLS      309 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9997        5.3286        .16378E-04   -1.5659    
   2  Index         1.5619        .50694        .49778E-03   -.75820    
   3  Normalizat    1.2349        .14770        .10306E-04   -.85531    
   4  Prefactor     1.1106        .13803        .10037E-04   -.89130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49239e-13
Minuit parameter uncertainties:
  1  5.32856
  2  0.508606
  3  0.147751
  4  0.138071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/971785': 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) = 14218.2136248
delta logL = 0.433785744257

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.000e+00  5.329e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  1.562e+00  5.086e-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:  1.111e+00  1.381e-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.235e+00  1.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.67
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.56 +/- 0.51
Photon Flux (Free Index): 7.71e-09 +/- 8.98e-09
Energy Flux (Free Index): 1.98e-05 +/- 2.49e-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/971785/cmap_HighResolution_688953601_689558401_4FGL_J1230.8+1223_weekly_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-08', energy_flux2='1.98e-05', photon_flux_error='1.21e-08', dlogl='4.34e-01', energy_flux='8.60e-06', photon_flux2='7.71e-09', job_status='DONE', time_completed='2022-11-08 01:24:55.625205', photon_index_error2='0.51', photon_index2='1.56', ts='5.80', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='1.23', time_epoch_completed='1667899495.63', return_code='0', job_id='971785', GAL2='1.11', EG2='1.23', return_code2='0', energy_flux_error='7.31e-06', photon_flux_error2='8.98e-09', ts2='6.67', photon_index='2.06' WHERE bin_id='744' AND source_name='4FGL J1230.8+1223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Nov  8 01:24:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 971785: <4FGL_J1230.8+1223_weekly_bin744> in cluster <slac> Done

Job <4FGL_J1230.8+1223_weekly_bin744> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Nov  8 01:10:31 2022
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 01:10:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 01:10:32 2022
Terminated at Tue Nov  8 01:24:56 2022
Results reported at Tue Nov  8 01:24:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_weekly_bin744 187.712 12.3883 688953601 689558401 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 :                                   848.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

