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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1759
RA = 187.712, Dec = 12.3883
tmin = 695260801, tmax = 695520001
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='557037', job_status='RUN', time_executed='2023-01-16 01:09:07.218730', time_epoch_executed='1673860147.22' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/557037

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/557037/ft1_4FGL_J1230.8+1223_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/557037/ft2_4FGL_J1230.8+1223_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/557037/ft1_4FGL_J1230.8+1223_daily_bin1759.fits outfile=/scratch/kocevski/557037/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1759.fits ra=187.712 dec=12.3883 rad=12.0 tmin=695260801.0 tmax=695520001.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 2.77
user 2.53
sys 0.20

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

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

Number of photons that the gtmktime cut: 737

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/557037/ft1_filtered_4FGL_J1230.8+1223_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/557037/ft2_4FGL_J1230.8+1223_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/557037/ltcube_695260801_695520001_4FGL_J1230.8+1223_daily_bin1759.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/557037/ft2_4FGL_J1230.8+1223_daily_bin1759.fits
.....................!
real 16.56
user 16.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/557037/ft1_filtered_4FGL_J1230.8+1223_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/557037/ft2_4FGL_J1230.8+1223_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/557037/ltcube_695260801_695520001_4FGL_J1230.8+1223_daily_bin1759.fits outfile=/scratch/kocevski/557037/expmap_695260801_695520001_4FGL_J1230.8+1223_daily_bin1759.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/557037/ltcube_695260801_695520001_4FGL_J1230.8+1223_daily_bin1759.fits
.....................!
real 193.37
user 186.80
sys 5.72

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/557037/ft1_filtered_4FGL_J1230.8+1223_daily_bin1759.fits scfile=/scratch/kocevski/557037/ft2_4FGL_J1230.8+1223_daily_bin1759.fits outfile=/scratch/kocevski/557037/cmap_695260801_695520001_4FGL_J1230.8+1223_daily_bin1759.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22635E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    67.141       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.2408       1.0000          .0000       .10000E+07
     4 'Prefactor '    .57490E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .83754E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .43062E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.7139       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21079E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10333E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .30713E-03   1.0000          .0000       .10000E+07
    11 'norm      '    4.2268       1.0000          .0000       .10000E+07
    12 'Prefactor '    .91557E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .17467       1.0000          .0000       .10000E+07
    14 'norm      '    .26436E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .82364       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.608       1.0000          .0000       .10000E+07
    17 'norm      '    1.3039       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.3128       1.0000          .0000       .10000E+07
    19 'Prefactor '    .13207E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .59620E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3091       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0077       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=   8136.144     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     1818 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        20.205        .69104E-06** at limit **
   2  Prefactor     66.133        90.729       -.11504E-04    .63816E-02
   3  Prefactor     8.2570        6.8759       -.79165E-06    .34424E-02
   4  Prefactor      .0000        18.339        .26318E-05** at limit **
   5  Prefactor     .10437        25.287       -.13247E-05** at limit **
   6  Prefactor     .60618E-07    76.472        .94900E-05** at limit **
   7  Prefactor     5.6237        9.0956        .42946E-05    .19662E-01
   8  Prefactor     .11102E-09    1.9773       -.56046E-06** at limit **
   9  Prefactor     .11102E-09    3.6863       -.26681E-05** at limit **
  10  Prefactor     .27756E-09    5.9726        .57459E-06** at limit **
  11  norm          4.2307        3.0517       -.81354E-07   -.46055E-02
  12  Prefactor     .27756E-09    35.240       -.76208E-05** at limit **
  13  norm          .17462        .17677       -.22969E-06** at limit **
  14  norm          .22204E-09    50.549       -.73805E-05** at limit **
  15  norm          .82383        .44491        .64972E-07   -.28895E-01
  16  Prefactor     11.645        13.479       -.38694E-05   -.94902E-03
  17  norm          1.3026        1.2158       -.25052E-06   -.75763E-02
  18  Prefactor     3.2975        5.7721       -.10771E-05    .36965E-02
  19  Prefactor     .83267E-09    9.9875        .84807E-05** at limit **
  20  Prefactor     .72164E-09    6.0640       -.31449E-06** at limit **
  21  Normalizat    1.3094        .21571        .68329E-04   -.63080E-03
  22  Prefactor     1.0076        .18700       -.40749E-04   -.71712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 66.1329
  Prefactor  = 8.25704
  Prefactor  = 0
  Prefactor  = 0.104369
  Prefactor  = 6.06182e-08
  Prefactor  = 5.62366
  Prefactor  = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  norm       = 4.23068
  Prefactor  = 2.77556e-10
  norm       = 0.174623
  norm       = 2.22045e-10
  norm       = 0.823832
  Prefactor  = 11.645
  norm       = 1.30262
  Prefactor  = 3.29747
  Prefactor  = 8.32667e-10
  Prefactor  = 7.21645e-10
  Normalizat = 1.30938
  Prefactor  = 1.00756
 **********
 **   18 **HESSE 
 **********

 FCN=   8136.144     FROM HESSE     STATUS=OK           394 CALLS     2212 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        20.165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.133        91.255        .12205E-03   -1.5545    
   3  Prefactor     8.2570        6.8645        .34900E-03   -1.5650    
   4  Prefactor      .0000        18.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10437        1.8211        .75067E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .60618E-07    76.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6237        65.825        .41997E-03   -1.5661    
   8  Prefactor     .11102E-09    1.9649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    3.5115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27756E-09    5.9822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2307        3.0920        .48989E-03   -1.5667    
  12  Prefactor     .27756E-09    34.910        .14162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .17462        .19135        .83362E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    50.642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .82383        .45219        .51189E-03   -1.5690    
  16  Prefactor     11.645        13.506        .29378E-03   -1.5640    
  17  norm          1.3026        1.2537        .96660E-03   -1.5685    
  18  Prefactor     3.2975        5.8009        .55594E-03   -1.5672    
  19  Prefactor     .83267E-09    9.9292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .72164E-09    6.0589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3094        .18486        .58563E-01   -.83287    
  22  Prefactor     1.0076        .15786        .43685E-01   -.92478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37484e-07
Minuit parameter uncertainties:
  1  3.73444e-06
  2  91.2565
  3  6.86455
  4  4.38695e-05
  5  0.871922
  6  0.00431748
  7  38.4804
  8  2.76146e-05
  9  3.52169e-05
  10  8.32895e-05
  11  3.09199
  12  0.0001902
  13  0.191352
  14  0.000202111
  15  0.452187
  16  13.5058
  17  1.25368
  18  5.80093
  19  0.000181376
  20  0.000130606
  21  0.184953
  22  0.157928
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.165e+01  1.351e+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.008e+00  1.579e-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.309e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/557037/likelihoodResults_695260801_695520001_4FGL_J1230.8+1223_daily_bin1759.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) = 8134.45229168
delta logL = 1.69169976484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8134.44844242
delta logL = 1.6955490191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0557       1.0000          .0000       .10000E+07
     2 'Index     '    3.1010       1.0000          .0000       10.000    
     3 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0462       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=   8134.448     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      267 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0563        10.512        .95241E-05   -.24124E-02
   2  Index         3.1018        1.1314        .37767E-02   -.10448E-03
   3  Normalizat    1.2306        .21536        .26557E-03    .10429E-02
   4  Prefactor     1.0464        .19050        .25483E-03    .10376E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05634
  Index      = 3.10176
  Normalizat = 1.23058
  Prefactor  = 1.04643
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.448     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0563        6.0125        .38096E-06   -1.5668    
   2  Index         3.1018        .65094        .15107E-03   -.38942    
   3  Normalizat    1.2306        .21410        .53115E-04   -.85663    
   4  Prefactor     1.0464        .18852        .50966E-04   -.91198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3333e-09
Minuit parameter uncertainties:
  1  6.01253
  2  0.653108
  3  0.214254
  4  0.188639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/557037': 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) = 8134.44843716
delta logL = 1.69555428813

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.056e+00  6.013e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  3.102e+00  6.531e-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.046e+00  1.886e-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.231e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 187.712 12.388
Photon Index (Free Index): 3.10 +/- 0.65
Photon Flux (Free Index): 9.89e-08 +/- 5.67e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.10e-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/557037/cmap_HighResolution_695260801_695520001_4FGL_J1230.8+1223_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-03', comment='SUCCESS', energy_flux2='1.88e-05', dlogl='1.70e+00', photon_flux2='9.89e-08', job_status='DONE', time_completed='2023-01-16 01:20:13.301392', photon_index_error2='0.65', photon_index2='3.10', ts='0.88', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.10e-05', EG='1.31', time_epoch_completed='1673860813.3', return_code='0', job_id='557037', GAL2='1.05', EG2='1.23', return_code2='0', photon_flux_error2='5.67e-08', ts2='4.37', photon_index='2.06' WHERE bin_id='1759' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:20:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 557037: <4FGL_J1230.8+1223_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 01:05:24 2023
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:07:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:07:27 2023
Terminated at Mon Jan 16 01:20:14 2023
Results reported at Mon Jan 16 01:20:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1759 187.712 12.3883 695260801 695520001 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 :                                   667.06 sec.
    Max Memory :                                 1195 MB
    Average Memory :                             313.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            890 sec.

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

