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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin1713
RA = 187.268, Dec = 2.0454
tmin = 683337601, tmax = 683596801
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='119185', job_status='RUN', time_executed='2022-09-16 16:48:10.655803', time_epoch_executed='1663372090.66' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/119185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/119185/ft1_4FGL_J1229.0+0202_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/119185/ft1_4FGL_J1229.0+0202_daily_bin1713.fits outfile=/scratch/kocevski/119185/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1713.fits ra=187.268 dec=2.0454 rad=12.0 tmin=683337601.0 tmax=683596801.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.53
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.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/119185/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.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.33
sys 0.16

Number of photons that the gtmktime cut: 656

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/119185/ltcube_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.fits outfile=/scratch/kocevski/119185/expmap_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.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/119185/ltcube_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.fits
.....................!
real 193.26
user 187.11
sys 4.89

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/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.fits scfile=/scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.fits outfile=/scratch/kocevski/119185/cmap_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.fits scfile=/scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.fits outfile=/scratch/kocevski/119185/cmap_HighResolution_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/119185/Model_4FGL_J1229.0+0202_daily_bin1713.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/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.fits.....................!
real 62.08
user 60.66
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.fits', '/scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.fits', expMap='/scratch/kocevski/119185/expmap_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.fits', expCube='/scratch/kocevski/119185/ltcube_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/119185/Model_4FGL_J1229.0+0202_daily_bin1713.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/119185/ft1_filtered_4FGL_J1229.0+0202_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/119185/ft2_4FGL_J1229.0+0202_daily_bin1713.fits
Exposure map: /scratch/kocevski/119185/expmap_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.fits
Exposure cube: /scratch/kocevski/119185/ltcube_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/119185/Model_4FGL_J1229.0+0202_daily_bin1713.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7288.29610555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52432E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.4369       1.0000          .0000       .10000E+07
     3 'Prefactor '    .40409       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34806E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7211       1.0000          .0000       .10000E+07
     6 'Prefactor '    .63816E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    95.511       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10757E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17230E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    19.568       1.0000          .0000       .10000E+07
    11 'norm      '    .50032E-06   1.0000          .0000       .10000E+07
    12 'norm      '    7.1774       1.0000          .0000       .10000E+07
    13 'Prefactor '    54.442       1.0000          .0000       .10000E+07
    14 'norm      '    .67764E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .48183       1.0000          .0000       .10000E+07
    16 'Prefactor '    16.458       1.0000          .0000       .10000E+07
    17 'Prefactor '    21.632       1.0000          .0000       .10000E+07
    18 'norm      '    .72220E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    36.601       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11939E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .11146E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .20695E-06   1.0000          .0000       .10000E+07
    23 'norm      '    .42201       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10457E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.4799       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81274       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=   7283.613     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     1442 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72164E-09    1.3897       -.49875E-07** at limit **
   2  Prefactor     7.5856        11.772        .94808E-07    .16329E-01
   3  Prefactor     .66005        22.411        .38734E-07    .33156E-02
   4  Prefactor     .81168E-06    6.7374       -.30692E-06** at limit **
   5  Prefactor     .24357E-05    132.43       -.70549E-06** at limit **
   6  Prefactor     .23914E-06    4.9818        .84941E-06** at limit **
   7  Prefactor     94.896        60.317       -.16432E-08    .27783E-01
   8  Prefactor     .48223E-06    11.748       -.36807E-06** at limit **
   9  Prefactor     .46277        241.93       -.80286E-05    .82786E-02
  10  Prefactor     19.623        11.988       -.40662E-06    .85516E-02
  11  norm          .96090E-07    14.072       -.40346E-06** at limit **
  12  norm          7.1577        4.2666        .19620E-06   -.26843E-03
  13  Prefactor     54.639        2.8538        .13536E-07   -.17080E-01
  14  norm          .11102E-08    40.354        .17953E-05** at limit **
  15  norm          .48350        .57676        .81056E-07    .38435E-03
  16  Prefactor     16.442        10.626        .21616E-06    .44292E-01
  17  Prefactor     21.437        9.0960        .36014E-07    .25897E-01
  18  norm           .0000        .55865        .54420E-07** at limit **
  19  Prefactor     36.657        8.0287       -.41179E-07    .57816E-01
  20  Prefactor     .14005E-06    5.6596        .75772E-06** at limit **
  21  norm          .15876E-07    70.819       -.53635E-06** at limit **
  22  Prefactor     .38058E-06    5.6511        .13875E-06** at limit **
  23  norm          .42211        .18315       -.17484E-07   -.15420E-02
  24  Prefactor     .68279E-08    21.448        .15697E-05** at limit **
  25  Normalizat    1.4797        .26182       -.85358E-05   -.99644E-04
  26  Prefactor     .81247        .19342        .28190E-05   -.98919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21645e-10
  Prefactor  = 7.58564
  Prefactor  = 0.660047
  Prefactor  = 8.11684e-07
  Prefactor  = 2.43572e-06
  Prefactor  = 2.39142e-07
  Prefactor  = 94.8957
  Prefactor  = 4.82225e-07
  Prefactor  = 0.462771
  Prefactor  = 19.6232
  norm       = 9.60898e-08
  norm       = 7.15768
  Prefactor  = 54.6389
  norm       = 1.11022e-09
  norm       = 0.483497
  Prefactor  = 16.4424
  Prefactor  = 21.4369
  norm       = 0
  Prefactor  = 36.6574
  Prefactor  = 1.40055e-07
  norm       = 1.58762e-08
  Prefactor  = 3.80584e-07
  norm       = 0.422107
  Prefactor  = 6.82787e-09
  Normalizat = 1.47973
  Prefactor  = 0.812471
 **********
 **   18 **HESSE 
 **********

 FCN=   7283.613     FROM HESSE     STATUS=OK           516 CALLS     1958 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72164E-09    84.467        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5856        12.028        .36753E-03   -1.5653    
   3  Prefactor     .66005        22.595        .89015E-03   -1.5692    
   4  Prefactor     .81168E-06    9.0288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .24357E-05    139.29        .80039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .23914E-06    11.540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     94.896        63.068        .10233E-03   -1.5513    
   8  Prefactor     .48223E-06    13.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46277        17.572        .17226E-01   -1.5694    
  10  Prefactor     19.623        14.110        .22614E-03   -1.5619    
  11  norm          .96090E-07    2.0239        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1577        4.3989        .37418E-03   -1.5654    
  13  Prefactor     54.639        35.080        .13554E-03   -1.5560    
  14  norm          .11102E-08    40.135        .14893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .48350        .60338        .80558E-03   -1.5694    
  16  Prefactor     16.442        10.891        .24662E-03   -1.5627    
  17  Prefactor     21.437        11.866        .21506E-03   -1.5615    
  18  norm           .0000        .55525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.657        11.759        .16531E-03   -1.5587    
  20  Prefactor     .14005E-06    11.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .15876E-07    70.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .38058E-06    6.6723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .42211        .18430        .52695E-03   -1.5695    
  24  Prefactor     .68279E-08    21.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4797        .21858        .63356E-01   -.78350    
  26  Prefactor     .81247        .16182        .63888E-01   -.99270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15198e-07
Minuit parameter uncertainties:
  1  0.000487376
  2  12.028
  3  7.72361
  4  0.00541433
  5  0.0368402
  6  0.00332252
  7  63.0685
  8  0.00504445
  9  5.70324
  10  14.1101
  11  0.00088211
  12  4.39886
  13  35.0805
  14  0.000419632
  15  0.603377
  16  10.891
  17  11.8664
  18  2.44559e-06
  19  11.759
  20  0.00250001
  21  0.00211578
  22  0.00318706
  23  0.184304
  24  0.000766075
  25  0.218724
  26  0.16192
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.835e-01  6.034e-01  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:  8.125e-01  1.619e-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.480e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/119185/likelihoodResults_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.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) = 7283.53491311
delta logL = 0.0778130966846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7283.52820918
delta logL = 0.0845170292032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44722       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2511       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82997       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=   7283.528     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44689        12.270        .84208E-03    .19279E-01
   2  alpha         3.2521        3.3417        .43787        .22366E-04
   3  Normalizat    1.4529        .70027E-01    .63806E-01    .50338E-05
   4  Prefactor     .82997        .59753E-01    .63287E-01    .19644E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.446892
  alpha      = 3.25209
  Normalizat = 1.45286
  Prefactor  = 0.82997
 **********
 **   18 **HESSE 
 **********

 FCN=   7283.528     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44689        .70099        .55445E-05   -1.5695    
   2  alpha         3.2521        1.8840        .41647E-01    .30557    
   3  Normalizat    1.4529        .25688        .28222E-03   -.79112    
   4  Prefactor     .82997        .19657        .27992E-03   -.98633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63005e-09
Minuit parameter uncertainties:
  1  0.700988
  2  2.17238
  3  0.257105
  4  0.196732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/119185': 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) = 7283.528209
delta logL = 0.084517207205

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.469e-01  7.010e-01  0.000e+00  1.000e+06 ( 1.000e-10)
336        alpha:  3.252e+00  2.172e+00  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:  8.300e-01  1.967e-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.453e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.25 +/- 2.17
Photon Flux (Free Index): 7.18e-08 +/- 7.69e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.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/119185/cmap_HighResolution_683337601_683596801_4FGL_J1229.0+0202_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='8.45e-02', photon_flux2='7.18e-08', job_status='DONE', time_completed='2022-09-16 16:59:03.601271', photon_index_error2='2.17', photon_index2='3.25', ts='0.91', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.43e-05', EG='1.48', time_epoch_completed='1663372743.6', return_code='0', job_id='119185', GAL2='0.83', EG2='1.45', return_code2='0', photon_flux_error2='7.69e-08', ts2='1.12', photon_index='2.61' WHERE bin_id='1713' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:59:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 119185: <4FGL_J1229.0+0202_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin1713> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:45:23 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:47:47 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:47:47 2022
Terminated at Fri Sep 16 16:59:04 2022
Results reported at Fri Sep 16 16:59:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin1713 187.268 2.0454 683337601 683596801 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 :                                   653.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            821 sec.

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

