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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1710
RA = 187.712, Dec = 12.3883
tmin = 682560001, tmax = 682819201
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='119226', job_status='RUN', time_executed='2022-09-16 16:51:09.890051', time_epoch_executed='1663372269.89' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/119226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/119226/ft1_4FGL_J1230.8+1223_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/119226/ft2_4FGL_J1230.8+1223_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/119226/ft1_4FGL_J1230.8+1223_daily_bin1710.fits outfile=/scratch/kocevski/119226/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1710.fits ra=187.712 dec=12.3883 rad=12.0 tmin=682560001.0 tmax=682819201.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.70
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/119226/ft2_4FGL_J1230.8+1223_daily_bin1710.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/119226/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/119226/ft1_filtered_4FGL_J1230.8+1223_daily_bin1710.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.51
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 595

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/119226/ft1_filtered_4FGL_J1230.8+1223_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/119226/ft2_4FGL_J1230.8+1223_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/119226/ltcube_682560001_682819201_4FGL_J1230.8+1223_daily_bin1710.fits outfile=/scratch/kocevski/119226/expmap_682560001_682819201_4FGL_J1230.8+1223_daily_bin1710.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/119226/ltcube_682560001_682819201_4FGL_J1230.8+1223_daily_bin1710.fits
.....................!
real 192.47
user 185.92
sys 5.56

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/119226/ft1_filtered_4FGL_J1230.8+1223_daily_bin1710.fits scfile=/scratch/kocevski/119226/ft2_4FGL_J1230.8+1223_daily_bin1710.fits outfile=/scratch/kocevski/119226/cmap_682560001_682819201_4FGL_J1230.8+1223_daily_bin1710.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/119226/ft1_filtered_4FGL_J1230.8+1223_daily_bin1710.fits scfile=/scratch/kocevski/119226/ft2_4FGL_J1230.8+1223_daily_bin1710.fits outfile=/scratch/kocevski/119226/cmap_HighResolution_682560001_682819201_4FGL_J1230.8+1223_daily_bin1710.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25448E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38299       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.1466       1.0000          .0000       .10000E+07
     4 'Prefactor '    .36118E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.6410       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.3213       1.0000          .0000       .10000E+07
     7 'Prefactor '    .25171E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.1955       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.7468       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.0150       1.0000          .0000       .10000E+07
    11 'norm      '    .51353E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4049       1.0000          .0000       .10000E+07
    13 'norm      '    .24812       1.0000          .0000       .10000E+07
    14 'norm      '    .27119E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .69413       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.5757       1.0000          .0000       .10000E+07
    17 'norm      '    .59103E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .62892E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .84620E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    14.831       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.5398       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67666       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=   6658.132     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1418 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    6.1905        .84491E-09** at limit **
   2  Prefactor     .34417E-07    41.253       -.24931E-06** at limit **
   3  Prefactor     8.3397        9.9969       -.44976E-07    .10174E-01
   4  Prefactor     .40523E-08    22.925        .49416E-06** at limit **
   5  Prefactor     1.6992        4.8396       -.66818E-07   -.36291E-03
   6  Prefactor     2.4203        962.04       -.30123E-05    .43947E-03
   7  Prefactor     .51181E-07    26.702        .34009E-06** at limit **
   8  Prefactor     1.1836        3.3702       -.36382E-08   -.16449E-03
   9  Prefactor     2.7564        3.9676       -.74373E-08   -.66732E-03
  10  Prefactor     6.5847        3.4862       -.85818E-07    .19804E-02
  11  norm           .0000        1.8755        .20238E-07** at limit **
  12  Prefactor     2.3450        2.9353       -.30556E-07   -.41066E-01
  13  norm          .24805        .21591        .18251E-07** at limit **
  14  norm          .49960E-09    10.122        .59354E-07** at limit **
  15  norm          .69418        .38668        .82589E-08    .10252E-01
  16  Prefactor     1.5675        8.5359       -.12931E-06    .34157E-01
  17  norm           .0000        .74840        .12842E-07** at limit **
  18  Prefactor     .37192E-08    7.5563       -.28174E-07** at limit **
  19  Prefactor     .22204E-09    4.2097       -.42799E-07** at limit **
  20  Prefactor     14.945        9.1375        .58656E-07    .72781E-01
  21  Normalizat    1.5401        .22769        .27952E-06   -.96998E-04
  22  Prefactor     .67605        .18798       -.47294E-06   -.99509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 3.44169e-08
  Prefactor  = 8.33969
  Prefactor  = 4.05231e-09
  Prefactor  = 1.69919
  Prefactor  = 2.42032
  Prefactor  = 5.11813e-08
  Prefactor  = 1.18362
  Prefactor  = 2.7564
  Prefactor  = 6.58468
  norm       = 0
  Prefactor  = 2.34501
  norm       = 0.248047
  norm       = 4.996e-10
  norm       = 0.694177
  Prefactor  = 1.56746
  norm       = 0
  Prefactor  = 3.71925e-09
  Prefactor  = 2.22045e-10
  Prefactor  = 14.9454
  Normalizat = 1.54007
  Prefactor  = 0.676047
 **********
 **   18 **HESSE 
 **********

 FCN=   6658.132     FROM HESSE     STATUS=OK           392 CALLS     1810 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    6.2033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .34417E-07    42.494        .91484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3397        10.183        .35102E-03   -1.5650    
   4  Prefactor     .40523E-08    23.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6992        4.9486        .82449E-03   -1.5682    
   6  Prefactor     2.4203        1002.1        .43545E-03   -1.5677    
   7  Prefactor     .51181E-07    26.958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1836        3.6334        .10396E-02   -1.5686    
   9  Prefactor     2.7564        4.1904        .61400E-03   -1.5675    
  10  Prefactor     6.5847        23.097        .40917E-03   -1.5657    
  11  norm           .0000        1.8648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3450        77.879        .65995E-03   -1.5677    
  13  norm          .24805        .22168        .76462E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .49960E-09    10.160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69418        .39333        .61186E-03   -1.5691    
  16  Prefactor     1.5675        20.657        .84614E-03   -1.5683    
  17  norm           .0000        .72276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .37192E-08    7.5682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    4.2104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.945        11.666        .25982E-03   -1.5631    
  21  Normalizat    1.5401        .19311        .52318E-01   -.76658    
  22  Prefactor     .67605        .16077        .64949E-01   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84962e-07
Minuit parameter uncertainties:
  1  8.49132e-05
  2  0.00241808
  3  10.1835
  4  0.000618177
  5  4.9486
  6  98.5142
  7  0.00234947
  8  3.63338
  9  4.19041
  10  23.0974
  11  1.37237e-05
  12  27.0283
  13  0.221684
  14  0.000139611
  15  0.393335
  16  11.3806
  17  4.56174e-06
  18  0.000335167
  19  5.74144e-05
  20  11.6658
  21  0.193207
  22  0.160882
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.567e+00  1.138e+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:  6.760e-01  1.609e-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.540e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/119226/likelihoodResults_682560001_682819201_4FGL_J1230.8+1223_daily_bin1710.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) = 6658.01621975
delta logL = 0.115601035443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6658.0016532
delta logL = 0.13016758412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6131       1.0000          .0000       .10000E+07
     2 'Index     '    2.6698       1.0000          .0000       10.000    
     3 'Normalizat'    1.5254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67764       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6658.002     FROM MIGRAD    STATUS=FAILED       100 CALLS      271 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6167        10.268        .12285E-03   -.83029E-03
   2  Index         2.6700        1.5732        .97703E-02    .41338E-03
   3  Normalizat    1.5257        .21892        .23217E-03   -.38499E-03
   4  Prefactor     .67747        .18807        .28700E-03   -.46306E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6658.002     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      347 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6167        10.268        .23702E-04   -1.5676    
   2  Index         2.6700        1.5732        .88985E-03   -.48477    
   3  Normalizat    1.5257        .21892        .27990E-03   -.77058    
   4  Prefactor     .67747        .18807        .30962E-03   -1.0442    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6658.002     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      377 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6167        7.2731        .49139E-05    .14807E-03
   2  Index         2.6700        1.1274        .19541E-02   -.32464E-05
   3  Normalizat    1.5257        .21889        .46434E-04    .34277E-06
   4  Prefactor     .67747        .18742        .11480E-04    .59417E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61673
  Index      = 2.66999
  Normalizat = 1.52573
  Prefactor  = 0.677465
 **********
 **   18 **HESSE 
 **********

 FCN=   6658.002     FROM HESSE     STATUS=OK            23 CALLS      400 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6167        7.0510        .19656E-06   -1.5676    
   2  Index         2.6700        1.0931        .78162E-04   -.48477    
   3  Normalizat    1.5257        .21905        .92869E-05   -.77058    
   4  Prefactor     .67747        .18755        .22960E-05   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23485e-12
Minuit parameter uncertainties:
  1  7.05102
  2  1.10459
  3  0.219185
  4  0.187729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/119226': 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) = 6658.00165152
delta logL = 0.130169262156

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.617e+00  7.051e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.670e+00  1.105e+00  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:  6.775e-01  1.877e-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.526e+00  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 187.712 12.388

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/119226/cmap_HighResolution_682560001_682819201_4FGL_J1230.8+1223_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2022-09-16 17:00:48.490470', job_id='119226', GAL2='0.68', fit_tolerance='1e-08', EG2='1.53', EG='1.54', time_epoch_completed='1663372848.49', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.30e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1710' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:00:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 119226: <4FGL_J1230.8+1223_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1710> 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) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:48:37 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:37 2022
Terminated at Fri Sep 16 17:00:49 2022
Results reported at Fri Sep 16 17:00:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1710 187.712 12.3883 682560001 682819201 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 :                                   579.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            924 sec.

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

