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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin1774
RA = 187.268, Dec = 2.0454
tmin = 699148801, tmax = 699408001
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='681447', job_status='RUN', time_executed='2023-03-02 00:42:11.643989', time_epoch_executed='1677746531.64' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681447/ft1_4FGL_J1229.0+0202_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681447/ft1_4FGL_J1229.0+0202_daily_bin1774.fits outfile=/scratch/kocevski/681447/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1774.fits ra=187.268 dec=2.0454 rad=12.0 tmin=699148801.0 tmax=699408001.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.82
user 2.63
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.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/681447/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 246

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681447/ltcube_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.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/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits
.....................!
real 13.68
user 13.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681447/ltcube_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.fits outfile=/scratch/kocevski/681447/expmap_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.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/681447/ltcube_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.fits
.....................!
real 193.65
user 188.00
sys 5.29

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1229.0+0202 @ 187.268 2.0454

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits scfile=/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits outfile=/scratch/kocevski/681447/cmap_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.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.268 yref=2.0454 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits scfile=/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits outfile=/scratch/kocevski/681447/cmap_HighResolution_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.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.268 yref=2.0454 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/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681447/Model_4FGL_J1229.0+0202_daily_bin1774.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/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits.....................!
real 32.13
user 30.90
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits', '/scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits', expMap='/scratch/kocevski/681447/expmap_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.fits', expCube='/scratch/kocevski/681447/ltcube_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681447/Model_4FGL_J1229.0+0202_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.0+0202'

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681447/ft1_filtered_4FGL_J1229.0+0202_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/681447/ft2_4FGL_J1229.0+0202_daily_bin1774.fits
Exposure map: /scratch/kocevski/681447/expmap_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.fits
Exposure cube: /scratch/kocevski/681447/ltcube_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681447/Model_4FGL_J1229.0+0202_daily_bin1774.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) = 2982.06375606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60120       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33978E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17061E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12474E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .61997E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .41768E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .80427E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .89579E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .75588E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .35865E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.0794       1.0000          .0000       .10000E+07
    12 'norm      '    1.3386       1.0000          .0000       .10000E+07
    13 'Prefactor '    .40045E-01   1.0000          .0000       .10000E+07
    14 'norm      '    13.877       1.0000          .0000       .10000E+07
    15 'norm      '    2.1768       1.0000          .0000       .10000E+07
    16 'Prefactor '    16.913       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.9642       1.0000          .0000       .10000E+07
    18 'norm      '    4.1056       1.0000          .0000       .10000E+07
    19 'Prefactor '    11.576       1.0000          .0000       .10000E+07
    20 'Prefactor '    22.108       1.0000          .0000       .10000E+07
    21 'norm      '    .11834E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.5699       1.0000          .0000       .10000E+07
    23 'norm      '    .28513       1.0000          .0000       .10000E+07
    24 'Prefactor '    69.305       1.0000          .0000       .10000E+07
    25 'Normalizat'    .92479       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2982.062     FROM MIGRAD    STATUS=CONVERGED    234 CALLS     2357 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45686E-07    177.76        .29719E-05** at limit **
   2  Prefactor      .0000        24.172        .37724E-06** at limit **
   3  Prefactor      .0000        33.522       -.83399E-07** at limit **
   4  Prefactor      .0000        9.6151       -.22228E-06** at limit **
   5  Prefactor     .44409E-09    175.78        .75347E-06** at limit **
   6  Prefactor     .33307E-09    20.791       -.17028E-05** at limit **
   7  Prefactor     .33862E-08    68.561       -.13411E-05** at limit **
   8  Prefactor     .22204E-09    19.196        .15744E-05** at limit **
   9  Prefactor      .0000        41.910       -.20563E-06** at limit **
  10  Prefactor      .0000        9.3519       -.15273E-06** at limit **
  11  norm          1.0817        3.6490       -.24061E-06    .44160E-03
  12  norm          1.6992        35.310        .86789E-05    .40760E-03
  13  Prefactor      .0000        36.013        .25381E-07** at limit **
  14  norm          11.844        694.31       -.15415E-04   -.15202E-03
  15  norm          2.1714        1.3613       -.63639E-07    .36527E-03
  16  Prefactor     16.881        13.604       -.18776E-05   -.28688E-01
  17  Prefactor     5.9124        16.064        .14629E-05   -.85904E-03
  18  norm          4.1022        2.7798        .18911E-07   -.22562E-03
  19  Prefactor     11.447        11.995       -.10863E-06   -.55611E-04
  20  Prefactor     22.055        3.9502        .14394E-06   -.20546E-02
  21  norm           .0000        18.066       -.50398E-06** at limit **
  22  Prefactor     1.5801        111.32       -.12172E-04    .47070E-02
  23  norm          .28474        .20724       -.20894E-07   -.11738E-02
  24  Prefactor     70.847        79.895        .29979E-05    .67740E-04
  25  Normalizat    .92326        .39346        .74641E-05   -.51372E-05
  26  Prefactor     1.0269        .28276       -.70749E-05   -.10431E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56857e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 3.38618e-09
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.08168
  norm       = 1.6992
  Prefactor  = 0
  norm       = 11.8435
  norm       = 2.17136
  Prefactor  = 16.8807
  Prefactor  = 5.91237
  norm       = 4.10216
  Prefactor  = 11.4473
  Prefactor  = 22.0555
  norm       = 0
  Prefactor  = 1.58009
  norm       = 0.284736
  Prefactor  = 70.8471
  Normalizat = 0.923259
  Prefactor  = 1.02694
 **********
 **   18 **HESSE 
 **********

 FCN=   2982.062     FROM HESSE     STATUS=OK           510 CALLS     2867 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45686E-07    180.63        .69120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        24.147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        32.329        .17238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        9.6177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44409E-09    175.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33307E-09    20.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .33862E-08    68.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    19.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        41.879        .14638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        9.3520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0817        3.7102        .11602E-02   -1.5687    
  12  norm          1.6992        87.684        .94738E-03   -1.5682    
  13  Prefactor      .0000        36.076        .15962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.844        1703.1        .26862E-03   -1.5639    
  15  norm          2.1714        1.3477        .69755E-03   -1.5678    
  16  Prefactor     16.881        29.776        .24326E-03   -1.5626    
  17  Prefactor     5.9124        16.039        .41093E-03   -1.5659    
  18  norm          4.1022        2.7846        .49729E-03   -1.5667    
  19  Prefactor     11.447        12.024        .29419E-03   -1.5640    
  20  Prefactor     22.055        39.617        .21273E-03   -1.5614    
  21  norm           .0000        18.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5801        143.91        .84819E-03   -1.5683    
  23  norm          .28474        .21306        .45122E-03   -1.5697    
  24  Prefactor     70.847        80.738        .12013E-03   -1.5540    
  25  Normalizat    .92326        .34339        .74390E-01   -.95648    
  26  Prefactor     1.0269        .24113        .41545E-01   -.91837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38835e-08
Minuit parameter uncertainties:
  1  0.00574582
  2  2.38877e-05
  3  7.18663e-06
  4  1.82782e-05
  5  0.000569917
  6  0.000163962
  7  0.000966198
  8  0.000123323
  9  2.89655e-05
  10  1.38318e-05
  11  3.71023
  12  24.4129
  13  1.85227e-06
  14  284.131
  15  1.34766
  16  29.7759
  17  16.0386
  18  2.78462
  19  12.0236
  20  39.617
  21  3.68649e-05
  22  30.1595
  23  0.213064
  24  80.7393
  25  0.344207
  26  0.241387
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.171e+00  1.348e+00  0.000e+00  1.000e+06 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.027e+00  2.414e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.233e-01  3.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.51
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.39e-07 +/- 1.48e-07
Energy Flux (Fixed Index): 5.67e-05 +/- 3.52e-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) = 2981.09392981
delta logL = 0.968304873011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2981.03729054
delta logL = 1.02494414225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6517       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8606       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2981.037     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6512        1.0029        .82113E-03    .17452E-02
   2  alpha         1.8606        .40487        .18928       -.21376E-04
   3  Normalizat    1.0143        .31254        .71412E-01    .11903E-04
   4  Prefactor     .97593        .22906        .45965E-01    .65162E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65117
  alpha      = 1.86058
  Normalizat = 1.01428
  Prefactor  = 0.975926
 **********
 **   18 **HESSE 
 **********

 FCN=   2981.037     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6512        1.1763        .36741E-05   -1.5682    
   2  alpha         1.8606        .49400        .80683E-02   -.25864    
   3  Normalizat    1.0143        .36902        .31596E-03   -.92554    
   4  Prefactor     .97593        .27005        .23553E-03   -.93536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29843e-10
Minuit parameter uncertainties:
  1  1.17627
  2  0.497509
  3  0.369951
  4  0.270422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681447': 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) = 2981.03729042
delta logL = 1.02494426258

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.651e+00  1.176e+00  0.000e+00  1.000e+06 ( 1.000e-10)
336        alpha:  1.861e+00  4.975e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.759e-01  2.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.014e+00  3.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.63
Ra Dec: 187.268 2.045
Photon Index (Free Index): 1.86 +/- 0.50
Photon Flux (Free Index): 1.41e-07 +/- 1.05e-07
Energy Flux (Free Index): 7.27e-05 +/- 4.43e-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/681447/cmap_HighResolution_699148801_699408001_4FGL_J1229.0+0202_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.39e-07', energy_flux2='7.27e-05', photon_flux_error='1.48e-07', dlogl='1.02e+00', energy_flux='5.67e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2023-03-02 00:49:45.567840', photon_index_error2='0.50', photon_index2='1.86', ts='6.51', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.43e-05', EG='0.92', time_epoch_completed='1677746985.57', return_code='0', job_id='681447', GAL2='0.98', EG2='1.01', return_code2='0', energy_flux_error='3.52e-05', photon_flux_error2='1.05e-07', ts2='8.63', photon_index='2.61' WHERE bin_id='1774' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:49:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 681447: <4FGL_J1229.0+0202_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:23 2023
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:27 2023
Terminated at Thu Mar  2 00:49:46 2023
Results reported at Thu Mar  2 00:49:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin1774 187.268 2.0454 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.0+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   454.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            563 sec.

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

