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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1712
RA = 187.712, Dec = 12.3883
tmin = 683078401, tmax = 683337601
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='119228', job_status='RUN', time_executed='2022-09-16 16:49:54.635481', time_epoch_executed='1663372194.64' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/119228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/119228/ft1_4FGL_J1230.8+1223_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/119228/ft2_4FGL_J1230.8+1223_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/119228/ft1_4FGL_J1230.8+1223_daily_bin1712.fits outfile=/scratch/kocevski/119228/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1712.fits ra=187.712 dec=12.3883 rad=12.0 tmin=683078401.0 tmax=683337601.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.80
user 4.51
sys 0.24

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

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

Number of photons that the gtmktime cut: 496

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/119228/ft1_filtered_4FGL_J1230.8+1223_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/119228/ft2_4FGL_J1230.8+1223_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/119228/ltcube_683078401_683337601_4FGL_J1230.8+1223_daily_bin1712.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/119228/ft2_4FGL_J1230.8+1223_daily_bin1712.fits
.....................!
real 15.28
user 14.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/119228/ft1_filtered_4FGL_J1230.8+1223_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/119228/ft2_4FGL_J1230.8+1223_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/119228/ltcube_683078401_683337601_4FGL_J1230.8+1223_daily_bin1712.fits outfile=/scratch/kocevski/119228/expmap_683078401_683337601_4FGL_J1230.8+1223_daily_bin1712.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/119228/ltcube_683078401_683337601_4FGL_J1230.8+1223_daily_bin1712.fits
.....................!
real 193.13
user 186.26
sys 5.75

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/119228/ft1_filtered_4FGL_J1230.8+1223_daily_bin1712.fits scfile=/scratch/kocevski/119228/ft2_4FGL_J1230.8+1223_daily_bin1712.fits outfile=/scratch/kocevski/119228/cmap_683078401_683337601_4FGL_J1230.8+1223_daily_bin1712.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/119228/ft1_filtered_4FGL_J1230.8+1223_daily_bin1712.fits scfile=/scratch/kocevski/119228/ft2_4FGL_J1230.8+1223_daily_bin1712.fits outfile=/scratch/kocevski/119228/cmap_HighResolution_683078401_683337601_4FGL_J1230.8+1223_daily_bin1712.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75678E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    136.88       1.0000          .0000       .10000E+07
     3 'Prefactor '    16.090       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11068E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6699       1.0000          .0000       .10000E+07
     6 'Prefactor '    .36531E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.0359       1.0000          .0000       .10000E+07
     8 'Prefactor '    .99282E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .48965E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    48.343       1.0000          .0000       .10000E+07
    11 'norm      '    .23960E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    41.175       1.0000          .0000       .10000E+07
    13 'norm      '    .30427       1.0000          .0000       .10000E+07
    14 'norm      '    36.718       1.0000          .0000       .10000E+07
    15 'norm      '    .46458       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.964       1.0000          .0000       .10000E+07
    17 'norm      '    1.5238       1.0000          .0000       .10000E+07
    18 'Prefactor '    15.720       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.9032       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17150E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    .96815       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0730       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=   5722.699     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1795 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    14.019        .17312E-06** at limit **
   2  Prefactor     138.61        117.55        .10709E-04   -.87024E-02
   3  Prefactor     16.140        13.557       -.15358E-05    .82216E-03
   4  Prefactor      .0000        10.285        .22037E-06** at limit **
   5  Prefactor     2.7116        5.3778        .23387E-06    .38950E-03
   6  Prefactor     .76039E-06    34.898        .13218E-04** at limit **
   7  Prefactor     8.7956        6.3481       -.33316E-05    .18739E-01
   8  Prefactor     .55511E-10    3.9915       -.25830E-07** at limit **
   9  Prefactor      .0000        6.5937       -.52476E-07** at limit **
  10  Prefactor     49.479        29.389        .11068E-04    .74283E-01
  11  norm          .19429E-08    13.295       -.73693E-06** at limit **
  12  Prefactor     42.844        38.155       -.48241E-05    .68094E-01
  13  norm          .30517        .21775        .19258E-07   -.32720E-02
  14  norm          37.505        26.394        .52826E-05   -.97255E-01
  15  norm          .46173        .50864       -.22964E-06    .59574E-02
  16  Prefactor     11.961        10.898        .17770E-06    .50832E-03
  17  norm          1.5241        1.2892       -.53582E-09   -.34478E-03
  18  Prefactor     15.814        12.689        .18105E-06    .24733E-02
  19  Prefactor     5.0092        13.293       -.13873E-06    .24415E-02
  20  Prefactor     .16598E-07    31.044       -.45522E-05** at limit **
  21  Normalizat    .96559        .25731       -.82036E-05    .15384E-03
  22  Prefactor     1.0723        .22223       -.50915E-05    .12543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 138.605
  Prefactor  = 16.1398
  Prefactor  = 0
  Prefactor  = 2.71156
  Prefactor  = 7.60392e-07
  Prefactor  = 8.79556
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 49.4788
  norm       = 1.94289e-09
  Prefactor  = 42.8438
  norm       = 0.305172
  norm       = 37.5049
  norm       = 0.461728
  Prefactor  = 11.961
  norm       = 1.52413
  Prefactor  = 15.8143
  Prefactor  = 5.00917
  Prefactor  = 1.65978e-08
  Normalizat = 0.965591
  Prefactor  = 1.07226
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.699     FROM HESSE     STATUS=OK           390 CALLS     2185 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    14.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     138.61        118.35        .85480E-04   -1.5472    
   3  Prefactor     16.140        13.580        .24942E-03   -1.5628    
   4  Prefactor      .0000        10.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7116        5.4072        .62346E-03   -1.5675    
   6  Prefactor     .76039E-06    36.525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7956        32.793        .35345E-03   -1.5649    
   8  Prefactor     .55511E-10    3.9530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        6.4899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     49.479        31.828        .14384E-03   -1.5567    
  11  norm          .19429E-08    13.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.844        44.174        .15586E-03   -1.5577    
  13  norm          .30517        .22235        .64820E-03   -1.5697    
  14  norm          37.505        41.357        .16505E-03   -1.5585    
  15  norm          .46173        .53937        .82356E-03   -1.5694    
  16  Prefactor     11.961        10.902        .28936E-03   -1.5639    
  17  norm          1.5241        1.3090        .86490E-03   -1.5683    
  18  Prefactor     15.814        12.701        .25234E-03   -1.5628    
  19  Prefactor     5.0092        13.381        .45400E-03   -1.5663    
  20  Prefactor     .16598E-07    31.060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96559        .22472        .45767E-01   -.94192    
  22  Prefactor     1.0723        .19186        .38718E-01   -.90358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32986e-07
Minuit parameter uncertainties:
  1  8.72339e-05
  2  118.357
  3  13.5796
  4  6.28641e-06
  5  5.40719
  6  0.0105402
  7  32.7933
  8  2.47105e-05
  9  1.9673e-05
  10  31.8284
  11  0.000316821
  12  44.1745
  13  0.222351
  14  41.3569
  15  0.539374
  16  10.9015
  17  1.309
  18  12.7012
  19  13.3809
  20  0.00143504
  21  0.224944
  22  0.191986
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.196e+01  1.090e+01  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.072e+00  1.920e-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:  9.656e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.79e-05

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) = 5722.67395745
delta logL = 0.0251189923283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5722.67198994
delta logL = 0.0270865019484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.402       1.0000          .0000       .10000E+07
     2 'Index     '    2.2569       1.0000          .0000       10.000    
     3 'Normalizat'    .95236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0773       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5722.672     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      254 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.403        11.008        .11857E-04   -.30250E-02
   2  Index         2.2574        .85982        .90221E-02   -.32699E-04
   3  Normalizat    .95237        .25550        .28708E-03   -.37226E-04
   4  Prefactor     1.0773        .22210        .24218E-03   -.24974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4028
  Index      = 2.25736
  Normalizat = 0.952367
  Prefactor  = 1.07734
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.672     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.403        10.637        .23714E-05   -1.5640    
   2  Index         2.2574        .82785        .36088E-03   -.58060    
   3  Normalizat    .95237        .25479        .11483E-04   -.94644    
   4  Prefactor     1.0773        .22204        .96872E-05   -.90194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65939e-11
Minuit parameter uncertainties:
  1  10.6373
  2  0.833359
  3  0.255111
  4  0.222228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/119228': 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) = 5722.67198961
delta logL = 0.0270868347679

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.140e+01  1.064e+01  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.257e+00  8.334e-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.077e+00  2.222e-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:  9.524e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.26 +/- 0.83
Photon Flux (Free Index): 4.54e-08 +/- 6.87e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.59e-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/119228/cmap_HighResolution_683078401_683337601_4FGL_J1230.8+1223_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='1.84e-05', photon_flux_error='2.97e-08', dlogl='2.71e-02', energy_flux='1.97e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2022-09-16 16:58:45.012230', photon_index_error2='0.83', photon_index2='2.26', ts='5.31', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.97', time_epoch_completed='1663372725.01', return_code='0', job_id='119228', GAL2='1.08', EG2='0.95', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='6.87e-08', ts2='5.35', photon_index='2.06' WHERE bin_id='1712' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:58:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 119228: <4FGL_J1230.8+1223_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1712> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:45:25 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:48:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:48:42 2022
Terminated at Fri Sep 16 16:58:45 2022
Results reported at Fri Sep 16 16:58:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1712 187.712 12.3883 683078401 683337601 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 :                                   531.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            800 sec.

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

