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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin1748
RA = 187.268, Dec = 2.0454
tmin = 692409601, tmax = 692668801
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='886297', job_status='RUN', time_executed='2022-12-14 00:40:51.639084', time_epoch_executed='1671007251.64' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886297/ft1_4FGL_J1229.0+0202_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886297/ft1_4FGL_J1229.0+0202_daily_bin1748.fits outfile=/scratch/kocevski/886297/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1748.fits ra=187.268 dec=2.0454 rad=12.0 tmin=692409601.0 tmax=692668801.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.95
user 2.74
sys 0.18

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

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

Number of photons that the gtmktime cut: 759

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886297/ft1_filtered_4FGL_J1229.0+0202_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/886297/ltcube_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.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/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits
.....................!
real 10.69
user 10.36
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886297/ft1_filtered_4FGL_J1229.0+0202_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/886297/ltcube_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.fits outfile=/scratch/kocevski/886297/expmap_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.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/886297/ltcube_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.fits
.....................!
real 156.10
user 151.51
sys 4.26

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/886297/ft1_filtered_4FGL_J1229.0+0202_daily_bin1748.fits scfile=/scratch/kocevski/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits outfile=/scratch/kocevski/886297/cmap_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886297/ft1_filtered_4FGL_J1229.0+0202_daily_bin1748.fits scfile=/scratch/kocevski/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits outfile=/scratch/kocevski/886297/cmap_HighResolution_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.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.48
user 0.31
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/886297/ft1_filtered_4FGL_J1229.0+0202_daily_bin1748.fits', '/scratch/kocevski/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits', expMap='/scratch/kocevski/886297/expmap_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.fits', expCube='/scratch/kocevski/886297/ltcube_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/886297/Model_4FGL_J1229.0+0202_daily_bin1748.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/886297/ft1_filtered_4FGL_J1229.0+0202_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/886297/ft2_4FGL_J1229.0+0202_daily_bin1748.fits
Exposure map: /scratch/kocevski/886297/expmap_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.fits
Exposure cube: /scratch/kocevski/886297/ltcube_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/886297/Model_4FGL_J1229.0+0202_daily_bin1748.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) = 8297.04976477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29899E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .83644E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55721E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20315E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .24868E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .49809E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17631E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .39994E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    18.759       1.0000          .0000       .10000E+07
    10 'Prefactor '    .13384E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .14505E-06   1.0000          .0000       .10000E+07
    12 'norm      '    6.0172       1.0000          .0000       .10000E+07
    13 'Prefactor '    29.002       1.0000          .0000       .10000E+07
    14 'norm      '    15.158       1.0000          .0000       .10000E+07
    15 'norm      '    .89893       1.0000          .0000       .10000E+07
    16 'Prefactor '    16.038       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.5177       1.0000          .0000       .10000E+07
    18 'norm      '    2.3069       1.0000          .0000       .10000E+07
    19 'Prefactor '    20.631       1.0000          .0000       .10000E+07
    20 'Prefactor '    .34803E-02   1.0000          .0000       .10000E+07
    21 'norm      '    7.6635       1.0000          .0000       .10000E+07
    22 'Prefactor '    15.776       1.0000          .0000       .10000E+07
    23 'norm      '    .25127       1.0000          .0000       .10000E+07
    24 'Prefactor '    .63393E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0698       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=   8295.571     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1362 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.338       -.36872E-07** at limit **
   2  Prefactor     .55511E-10    4.9237       -.18825E-08** at limit **
   3  Prefactor     .26166E-03    3248.0        .12487E-04** at limit **
   4  Prefactor     .24813E-07    39.459        .77258E-07** at limit **
   5  Prefactor     .11102E-09    27.724       -.46881E-07** at limit **
   6  Prefactor      .0000        18.510       -.21834E-07** at limit **
   7  Prefactor     .28866E-08    10.688       -.68797E-07** at limit **
   8  Prefactor      .0000        5.7729       -.22910E-07** at limit **
   9  Prefactor     18.832        2.0524       -.35055E-07    .30521E-01
  10  Prefactor      .0000        2.9627       -.26708E-07** at limit **
  11  norm           .0000        .59486       -.36176E-07** at limit **
  12  norm          5.9904        3.9213        .30979E-08    .10518E-03
  13  Prefactor     28.966        6.4326        .12939E-06   -.10998    
  14  norm          15.848        36.536        .25721E-06    .10100E-01
  15  norm          .89668        .54119       -.85864E-08    .33258E-02
  16  Prefactor     15.958        8.0655        .17622E-07   -.60380E-01
  17  Prefactor     1.5062        19.447        .27014E-07   -.82139E-02
  18  norm          2.3071        1.5240       -.97994E-08    .13000E-02
  19  Prefactor     20.837        9.3741       -.26629E-07    .29770E-01
  20  Prefactor     .73830E-08    14.032       -.89794E-07** at limit **
  21  norm          7.6633        6.4687        .20688E-06   -.54809E-01
  22  Prefactor     15.703        10.226        .88131E-07    .15435E-01
  23  norm          .25119        .15092       -.34755E-08   -.29041E-02
  24  Prefactor     .16986E-07    11.847        .14265E-06** at limit **
  25  Normalizat    1.1274        .22519        .29359E-05    .21923E-03
  26  Prefactor     1.0692        .17895       -.21625E-06    .26605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0.000261661
  Prefactor  = 2.48135e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 2.88658e-09
  Prefactor  = 0
  Prefactor  = 18.8325
  Prefactor  = 0
  norm       = 0
  norm       = 5.99042
  Prefactor  = 28.9665
  norm       = 15.8478
  norm       = 0.896685
  Prefactor  = 15.9584
  Prefactor  = 1.50615
  norm       = 2.30708
  Prefactor  = 20.8365
  Prefactor  = 7.38298e-09
  norm       = 7.66335
  Prefactor  = 15.703
  norm       = 0.251193
  Prefactor  = 1.69864e-08
  Normalizat = 1.12735
  Prefactor  = 1.06919
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.571     FROM HESSE     STATUS=OK           514 CALLS     1876 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.346        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    4.9307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26166E-03    5.9192        .61883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24813E-07    39.010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    27.804        .16735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        18.541        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .28866E-08    10.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.7869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.832        22.841        .23097E-03   -1.5621    
  10  Prefactor      .0000        2.9690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .59295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9904        4.0160        .40909E-03   -1.5659    
  13  Prefactor     28.966        22.562        .18572E-03   -1.5600    
  14  norm          15.848        37.370        .25699E-03   -1.5628    
  15  norm          .89668        .55054        .45834E-03   -1.5689    
  16  Prefactor     15.958        12.352        .24983E-03   -1.5628    
  17  Prefactor     1.5062        22.382        .86721E-03   -1.5683    
  18  norm          2.3071        1.5381        .67528E-03   -1.5678    
  19  Prefactor     20.837        10.277        .22023E-03   -1.5617    
  20  Prefactor     .73830E-08    14.083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6633        20.177        .36201E-03   -1.5653    
  22  Prefactor     15.703        13.051        .25190E-03   -1.5629    
  23  norm          .25119        .15412        .59905E-03   -1.5698    
  24  Prefactor     .16986E-07    11.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1274        .19399        .65204E-01   -.88878    
  26  Prefactor     1.0692        .15178        .38865E-01   -.90457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74931e-07
Minuit parameter uncertainties:
  1  6.4315e-05
  2  3.36263e-05
  3  0.07871
  4  0.00196793
  5  0.00010675
  6  3.54283e-05
  7  0.000350532
  8  2.45943e-05
  9  22.8412
  10  4.70502e-06
  11  3.68579e-06
  12  4.01599
  13  22.5616
  14  37.3709
  15  0.550538
  16  12.3518
  17  11.6122
  18  1.53811
  19  10.2772
  20  0.000645503
  21  20.1768
  22  13.0507
  23  0.154116
  24  0.000902462
  25  0.194109
  26  0.151842
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.967e-01  5.505e-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:  1.069e+00  1.518e-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.127e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.85e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 1.44e-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) = 8295.18416082
delta logL = 0.386818763665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8295.17764194
delta logL = 0.393337649664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83781       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1688       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0937       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=   8295.178     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83719        8.5442        .50158E-03    .11888E-01
   2  alpha         3.1688        3.4677        .43187        .13888E-04
   3  Normalizat    1.0878        .91357E-01    .66179E-01    .25588E-04
   4  Prefactor     1.0935        .85513E-01    .37832E-01    .10977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.837188
  alpha      = 3.16878
  Normalizat = 1.08784
  Prefactor  = 1.09346
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.178     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83719        .51194        .40064E-05   -1.5690    
   2  alpha         3.1688        .69435        .19904E-01    .27081    
   3  Normalizat    1.0878        .22413        .29277E-03   -.90143    
   4  Prefactor     1.0935        .17944        .23855E-03   -.89676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65573e-10
Minuit parameter uncertainties:
  1  0.511937
  2  0.704339
  3  0.224322
  4  0.179537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886297': 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) = 8295.17764038
delta logL = 0.393339203436

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.372e-01  5.119e-01  0.000e+00  1.000e+06 ( 1.000e-10)
336        alpha:  3.169e+00  7.043e-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:  1.093e+00  1.795e-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.088e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.17 +/- 0.70
Photon Flux (Free Index): 1.27e-07 +/- 6.79e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.24e-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/886297/cmap_HighResolution_692409601_692668801_4FGL_J1229.0+0202_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.85e-08', energy_flux2='2.34e-05', photon_flux_error='6.04e-08', dlogl='3.93e-01', energy_flux='2.34e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2022-12-14 00:49:11.207071', photon_index_error2='0.70', photon_index2='3.17', ts='4.23', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.13', time_epoch_completed='1671007751.21', return_code='0', job_id='886297', GAL2='1.09', EG2='1.09', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.79e-08', ts2='5.21', photon_index='2.61' WHERE bin_id='1748' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:49:11 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 886297: <4FGL_J1229.0+0202_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:40:13 2022
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:40:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:40:14 2022
Terminated at Wed Dec 14 00:49:11 2022
Results reported at Wed Dec 14 00:49:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin1748 187.268 2.0454 692409601 692668801 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 :                                   501.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             391.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            538 sec.

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

