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


Performing analysis on: 4FGL_J1230.8+1223_weekly_bin762
RA = 187.712, Dec = 12.3883
tmin = 699840001, tmax = 700444801
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='996686', job_status='RUN', time_executed='2023-03-14 03:12:08.075464', time_epoch_executed='1678788728.08' WHERE source_name='4FGL J1230.8+1223' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996686

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996686/ft1_4FGL_J1230.8+1223_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996686/ft2_4FGL_J1230.8+1223_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996686/ft1_4FGL_J1230.8+1223_weekly_bin762.fits outfile=/scratch/kocevski/996686/ft1_filteredMKT_4FGL_J1230.8+1223_weekly_bin762.fits ra=187.712 dec=12.3883 rad=12.0 tmin=699840001.0 tmax=700444801.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 8.02
user 7.73
sys 0.27

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

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

Number of photons that the gtmktime cut: 1292

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996686/ft1_filtered_4FGL_J1230.8+1223_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/996686/ft2_4FGL_J1230.8+1223_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/996686/ltcube_699840001_700444801_4FGL_J1230.8+1223_weekly_bin762.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/996686/ft2_4FGL_J1230.8+1223_weekly_bin762.fits
.....................!
real 26.27
user 25.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996686/ft1_filtered_4FGL_J1230.8+1223_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/996686/ft2_4FGL_J1230.8+1223_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/996686/ltcube_699840001_700444801_4FGL_J1230.8+1223_weekly_bin762.fits outfile=/scratch/kocevski/996686/expmap_699840001_700444801_4FGL_J1230.8+1223_weekly_bin762.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/996686/ltcube_699840001_700444801_4FGL_J1230.8+1223_weekly_bin762.fits
.....................!
real 191.59
user 186.35
sys 4.86

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/996686/ft1_filtered_4FGL_J1230.8+1223_weekly_bin762.fits scfile=/scratch/kocevski/996686/ft2_4FGL_J1230.8+1223_weekly_bin762.fits outfile=/scratch/kocevski/996686/cmap_699840001_700444801_4FGL_J1230.8+1223_weekly_bin762.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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996686/ft1_filtered_4FGL_J1230.8+1223_weekly_bin762.fits scfile=/scratch/kocevski/996686/ft2_4FGL_J1230.8+1223_weekly_bin762.fits outfile=/scratch/kocevski/996686/cmap_HighResolution_699840001_700444801_4FGL_J1230.8+1223_weekly_bin762.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.009       1.0000          .0000       .10000E+07
     2 'Prefactor '    .22509       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18395E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .26446E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7509       1.0000          .0000       .10000E+07
     6 'Prefactor '    .84207E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76500E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .74385E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .54673E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .60081E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.9681       1.0000          .0000       .10000E+07
    12 'Prefactor '    .37158E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .11385E-06   1.0000          .0000       .10000E+07
    14 'norm      '    25.951       1.0000          .0000       .10000E+07
    15 'norm      '    .51109       1.0000          .0000       .10000E+07
    16 'Prefactor '    19.371       1.0000          .0000       .10000E+07
    17 'norm      '    1.9420       1.0000          .0000       .10000E+07
    18 'Prefactor '    .35083E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .64634       1.0000          .0000       .10000E+07
    20 'Prefactor '    .41931E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2025       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0072       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=   14702.80     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1441 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9938        9.1957       -.27095E-07   -.10865E-01
   2  Prefactor     .27423E-07    48.759        .13008E-06** at limit **
   3  Prefactor      .0000        1.6612        .78855E-07** at limit **
   4  Prefactor     .57909E-06    10.220       -.18297E-06** at limit **
   5  Prefactor     3.7495        2.8130        .33228E-08    .23818E-03
   6  Prefactor     .11843E-05    9.3221       -.14631E-06** at limit **
   7  Prefactor     .24369E-07    35.795        .14335E-06** at limit **
   8  Prefactor      .0000        .95029        .43540E-07** at limit **
   9  Prefactor      .0000        .77084       -.97164E-08** at limit **
  10  Prefactor     .22204E-08    7.9911        .13808E-06** at limit **
  11  norm          1.9591        2.2565       -.56552E-07   -.91538E-04
  12  Prefactor     .65248E-06    17.992        .21663E-07** at limit **
  13  norm           .0000        .16820        .66824E-07** at limit **
  14  norm          26.129        1.2544       -.17969E-09    .10252E-02
  15  norm          .51068        .32869        .12431E-07    .14815E-02
  16  Prefactor     19.328        7.4362       -.32357E-08   -.55087E-03
  17  norm          1.9421        .98909        .17873E-08   -.49357E-03
  18  Prefactor      .0000        1.7869        .10029E-06** at limit **
  19  Prefactor     .60446        6.6124       -.39597E-06   -.38960E-03
  20  Prefactor     .95923E-07    10.662       -.58314E-07** at limit **
  21  Normalizat    1.2028        .14788       -.95886E-07   -.34685E-04
  22  Prefactor     1.0072        .12984        .12295E-07   -.27988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99385
  Prefactor  = 2.74225e-08
  Prefactor  = 0
  Prefactor  = 5.79092e-07
  Prefactor  = 3.74955
  Prefactor  = 1.18427e-06
  Prefactor  = 2.43694e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.22045e-09
  norm       = 1.95907
  Prefactor  = 6.52478e-07
  norm       = 0
  norm       = 26.1293
  norm       = 0.510681
  Prefactor  = 19.3279
  norm       = 1.94206
  Prefactor  = 0
  Prefactor  = 0.604459
  Prefactor  = 9.59233e-08
  Normalizat = 1.20284
  Prefactor  = 1.00716
 **********
 **   18 **HESSE 
 **********

 FCN=   14702.80     FROM HESSE     STATUS=OK           388 CALLS     1829 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9938        9.2345        .31649E-03   -1.5645    
   2  Prefactor     .27423E-07    48.831        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.6666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .57909E-06    14.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7495        2.8183        .52107E-03   -1.5669    
   6  Prefactor     .11843E-05    17.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24369E-07    35.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .94348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .77241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-08    8.0146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9591        2.3944        .73890E-03   -1.5680    
  12  Prefactor     .65248E-06    22.243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .61787E-01    .99875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.129        22.601        .19634E-03   -1.5606    
  15  norm          .51068        .34583        .77601E-03   -1.5694    
  16  Prefactor     19.328        7.4303        .22729E-03   -1.5620    
  17  norm          1.9421        .99703        .74466E-03   -1.5680    
  18  Prefactor      .0000        1.7828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .60446        6.6098        .65175E-03   -1.5692    
  20  Prefactor     .95923E-07    11.190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2028        .12615        .58255E-01   -.86515    
  22  Prefactor     1.0072        .11028        .43772E-01   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81488e-07
Minuit parameter uncertainties:
  1  9.23454
  2  0.00231371
  3  1.79943e-06
  4  0.00570116
  5  2.81828
  6  0.00901766
  7  0.00186943
  8  7.38329e-07
  9  1.6387e-07
  10  0.000268295
  11  2.39445
  12  0.00761924
  13  4.56793e-07
  14  22.6014
  15  0.345827
  16  7.43032
  17  0.997029
  18  1.51983e-06
  19  3.99767
  20  0.00207224
  21  0.126187
  22  0.110307
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.933e+01  7.430e+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.007e+00  1.103e-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.203e+00  1.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.87
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.27e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.22e-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) = 14701.9362656
delta logL = 0.860598316858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14701.9009953
delta logL = 0.895868610274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.850       1.0000          .0000       .10000E+07
     2 'Index     '    1.7035       1.0000          .0000       10.000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0015       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=   14701.90     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.849        9.1286        .83700E-05    .29227E-01
   2  Index         1.7033        .25761        .68422E-02    .92373E-03
   3  Normalizat    1.2182        .14462        .25624E-03   -.28120E-03
   4  Prefactor     1.0015        .12941        .24864E-03   -.30379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8492
  Index      = 1.70329
  Normalizat = 1.21823
  Prefactor  = 1.00148
 **********
 **   18 **HESSE 
 **********

 FCN=   14701.90     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.849        9.1328        .16740E-05   -1.5612    
   2  Index         1.7033        .25771        .27369E-03   -.71994    
   3  Normalizat    1.2182        .14475        .10250E-04   -.86041    
   4  Prefactor     1.0015        .12954        .99455E-05   -.92680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52555e-09
Minuit parameter uncertainties:
  1  9.13281
  2  0.25791
  3  0.144801
  4  0.129581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996686': 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) = 14701.9009949
delta logL = 0.895869050768

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.285e+01  9.133e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  1.703e+00  2.579e-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.001e+00  1.296e-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.218e+00  1.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.67
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.70 +/- 0.26
Photon Flux (Free Index): 3.51e-08 +/- 1.91e-08
Energy Flux (Free Index): 5.67e-05 +/- 3.43e-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/996686/cmap_HighResolution_699840001_700444801_4FGL_J1230.8+1223_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.27e-08', energy_flux2='5.67e-05', photon_flux_error='2.03e-08', dlogl='8.96e-01', energy_flux='3.18e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2023-03-14 03:25:56.654772', photon_index_error2='0.26', photon_index2='1.70', ts='21.87', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.43e-05', EG='1.20', time_epoch_completed='1678789556.65', return_code='0', job_id='996686', GAL2='1.00', EG2='1.22', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='1.91e-08', ts2='23.67', photon_index='2.06' WHERE bin_id='762' AND source_name='4FGL J1230.8+1223' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 03:25:56 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 996686: <4FGL_J1230.8+1223_weekly_bin762> in cluster <slac> Done

Job <4FGL_J1230.8+1223_weekly_bin762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 14 03:10:24 2023
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 03:10:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 03:10:24 2023
Terminated at Tue Mar 14 03:25:57 2023
Results reported at Tue Mar 14 03:25:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_weekly_bin762 187.712 12.3883 699840001 700444801 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 :                                   829.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

