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 33 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2129.9+1208_weekly_bin722
RA = 322.482, Dec = 12.1439
tmin = 675648001, tmax = 676252801
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='993053', job_status='RUN', time_executed='2022-06-07 01:24:35.853304', time_epoch_executed='1654590275.85' WHERE source_name='4FGL J2129.9+1208' and cadence='weekly' and bin_id='722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993053

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993053/ft1_4FGL_J2129.9+1208_weekly_bin722.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993053/ft1_4FGL_J2129.9+1208_weekly_bin722.fits outfile=/scratch/kocevski/993053/ft1_filteredMKT_4FGL_J2129.9+1208_weekly_bin722.fits ra=322.482 dec=12.1439 rad=12.0 tmin=675648001.0 tmax=676252801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.87
user 8.53
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.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/993053/ft1_filteredMKT_4FGL_J2129.9+1208_weekly_bin722.fits evtable="EVENTS" outfile="/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.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.57
user 0.42
sys 0.14

Number of photons that the gtmktime cut: 2033

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits" evtable="EVENTS" scfile=/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits sctable="SC_DATA" outfile=/scratch/kocevski/993053/ltcube_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.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/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits
.....................!
real 32.61
user 32.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits sctable="SC_DATA" expcube=/scratch/kocevski/993053/ltcube_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.fits outfile=/scratch/kocevski/993053/expmap_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.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/993053/ltcube_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.fits
.....................!
real 191.85
user 186.82
sys 4.64

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 176 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2129.9+1208 @ 322.482 12.1439

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits scfile=/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits outfile=/scratch/kocevski/993053/cmap_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.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=322.482 yref=12.1439 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.62
user 0.45
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits scfile=/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits outfile=/scratch/kocevski/993053/cmap_HighResolution_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.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=322.482 yref=12.1439 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.43
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993053/Model_4FGL_J2129.9+1208_weekly_bin722.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits.....................!
real 323.72
user 321.76
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits', '/scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits', expMap='/scratch/kocevski/993053/expmap_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.fits', expCube='/scratch/kocevski/993053/ltcube_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993053/Model_4FGL_J2129.9+1208_weekly_bin722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2129.9+1208'

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.210e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/993053/ft1_filtered_4FGL_J2129.9+1208_weekly_bin722.fits
Spacecraft file(s): /scratch/kocevski/993053/ft2_4FGL_J2129.9+1208_weekly_bin722.fits
Exposure map: /scratch/kocevski/993053/expmap_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.fits
Exposure cube: /scratch/kocevski/993053/ltcube_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993053/Model_4FGL_J2129.9+1208_weekly_bin722.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) = 22246.4881033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7909       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7982       1.0000         .10000E-03   10000.    
     3 'norm      '    41.182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8814       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4752       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0113       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.080       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7137       1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11986E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .74023       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4617       1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.068       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9750       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85475       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96595       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22246.48     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3775 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7904        22.870       -.16299E-07    .24205E-06
   2  norm          2.7983        4.7984        .48931E-06    .46810E-04
   3  norm          41.177        51.618       -.97837E-07    .30498E-04
   4  Prefactor     5.8806        12.407        .17097E-05   -.93784E-04
   5  Prefactor     .10000E-03    3.8836        .63776E-07** at limit **
   6  Prefactor     5.7559        9.1955        .19151E-05   -.11381E-03
   7  Prefactor     .10000E-03    13.645       -.15540E-05** at limit **
   8  Prefactor     2.4799        8.5494        .13190E-05    .16387E-03
   9  Prefactor     8.8704        11.083        .30418E-06   -.18500E-04
  10  Prefactor     .10000E-03    10.637        .88868E-06** at limit **
  11  norm          5.0112        2.4717        .32459E-07   -.31025E-04
  12  Prefactor     10.081        11.638        .24386E-06    .93416E-05
  13  Prefactor     2.2960        2.5253        .24190E-06    .61919E-04
  14  Prefactor     2.7137        4.5212       -.10608E-06   -.21592E-03
  15  Prefactor     48.584        23.934        .26544E-06   -.89668E-05
  16  Prefactor     .10000E-03    21.130        .25808E-05** at limit **
  17  norm          .10000E-03    .36418        .10963E-06** at limit **
  18  Prefactor     .10000E-03    32.369       -.38533E-05** at limit **
  19  Prefactor     .10000E-03    53.677        .18599E-05** at limit **
  20  norm          .74041        1.0175        .31913E-06    .38695E-03
  21  norm          .10000E-03    3.3702        .20680E-07** at limit **
  22  Prefactor     4.4581        3.4470        .89582E-06   -.60469E-03
  23  Prefactor     31.073        17.328        .12494E-06   -.10218E-03
  24  Prefactor     .10000E-03    8.9464       -.22094E-06** at limit **
  25  norm          .10000E-03    .19105        .65976E-07** at limit **
  26  Prefactor     .10000E-03    4.9036        .87049E-08** at limit **
  27  Prefactor     9.9745        18.852        .38455E-06   -.91252E-05
  28  Normalizat    .85460        .14178       -.14223E-05   -.76164E-04
  29  Prefactor     .96602        .57935E-01    .97243E-07   -.10638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.79035
  norm       = 2.79827
  norm       = 41.1774
  Prefactor  = 5.88057
  Prefactor  = 0.0001
  Prefactor  = 5.75586
  Prefactor  = 0.0001
  Prefactor  = 2.47992
  Prefactor  = 8.87041
  Prefactor  = 0.0001
  norm       = 5.01119
  Prefactor  = 10.0805
  Prefactor  = 2.29604
  Prefactor  = 2.71373
  Prefactor  = 48.5838
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.740408
  norm       = 0.0001
  Prefactor  = 4.45811
  Prefactor  = 31.0725
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97453
  Normalizat = 0.854596
  Prefactor  = 0.966016
 **********
 **   18 **HESSE 
 **********

 FCN=   22246.48     FROM HESSE     STATUS=OK           561 CALLS     4336 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7904        22.775        .12807E-03   -1.5082    
   2  norm          2.7983        4.7716        .24321E-03   -1.5373    
   3  norm          41.177        51.611        .62464E-04   -1.4424    
   4  Prefactor     5.8806        12.348        .82795E-03   -1.5223    
   5  Prefactor     .10000E-03    3.8938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7559        9.1595        .83719E-03   -1.5228    
   7  Prefactor     .10000E-03    13.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4799        8.5741        .25988E-03   -1.5393    
   9  Prefactor     8.8704        11.080        .67288E-03   -1.5112    
  10  Prefactor     .10000E-03    10.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0112        2.4680        .15760E-03   -1.5260    
  12  Prefactor     10.081        11.631        .12621E-03   -1.5073    
  13  Prefactor     2.2960        2.4971        .23293E-03   -1.5405    
  14  Prefactor     2.7137        4.4744        .24725E-03   -1.5378    
  15  Prefactor     48.584        23.988        .57528E-04   -1.4313    
  16  Prefactor     .10000E-03    21.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5768        .16762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .74041        .98906        .16438E-03   -1.5536    
  21  norm          .10000E-03    3.3831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4581        3.4596        .95315E-03   -1.5286    
  23  Prefactor     31.073        16.906        .71884E-04   -1.4593    
  24  Prefactor     .10000E-03    8.9518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .40106        .12555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.9357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.9745        18.885        .12687E-03   -1.5076    
  28  Normalizat    .85460        .16427        .37821E-03   -.98074    
  29  Prefactor     .96602        .69672E-01    .15998E-03   -.93871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79514e-10
Minuit parameter uncertainties:
  1  22.7957
  2  4.77222
  3  51.6665
  4  12.3536
  5  1.81795e-06
  6  9.16174
  7  0.000111655
  8  8.57831
  9  11.0822
  10  4.71668e-05
  11  2.46806
  12  11.6337
  13  2.49718
  14  4.47497
  15  23.993
  16  0.000220246
  17  5.68193e-06
  18  0.000396647
  19  8.62005e-05
  20  0.989086
  21  1.80105e-06
  22  3.45971
  23  16.9084
  24  1.20551e-05
  25  1.95733e-06
  26  1.12625e-06
  27  18.8958
  28  0.164369
  29  0.0696789
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  2.296e+00  2.497e+00  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.660e-01  6.968e-02  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.546e-01  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 322.482 12.144
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 4.99e-06 +/- 5.42e-06

TS (Fixed Index): 1.34
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 6.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993053/likelihoodResults_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.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) = 22245.8301013
delta logL = 0.646771259628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22245.8092554
delta logL = 0.667617187966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7892       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6679       1.0000          .0000       10.000    
     3 'Normalizat'    .87275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22245.81     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7897        1.7602        .78182E-02    .10174E-03
   2  Index         1.6680        .38752        .28137       -.21343E-03
   3  Normalizat    .87286        .12619        .84582E-01    .81302E-04
   4  Prefactor     .96137        .56709E-01    .45783E-01   -.21844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78966
  Index      = 1.66801
  Normalizat = 0.872861
  Prefactor  = 0.96137
 **********
 **   18 **HESSE 
 **********

 FCN=   22245.81     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7897        2.1893        .19130E-03   -1.5440    
   2  Index         1.6680        .63073        .15141E-01   -.72937    
   3  Normalizat    .87286        .14992        .37451E-03   -.97420    
   4  Prefactor     .96137        .67544E-01    .16030E-03   -.94028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10829e-08
Minuit parameter uncertainties:
  1  2.18942
  2  0.633778
  3  0.149991
  4  0.0675503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993053': 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) = 22245.809255
delta logL = 0.667617519583

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.790e+00  2.189e+00  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  1.668e+00  6.338e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.614e-01  6.755e-02  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.729e-01  1.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 322.482 12.144
Photon Index (Free Index): 1.67 +/- 0.63
Photon Flux (Free Index): 6.07e-09 +/- 8.57e-09
Energy Flux (Free Index): 1.10e-05 +/- 1.57e-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/993053/cmap_HighResolution_675648001_676252801_4FGL_J2129.9+1208_weekly_bin722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='1.10e-05', photon_flux_error='2.10e-08', dlogl='6.68e-01', energy_flux='4.99e-06', photon_flux2='6.07e-09', job_status='DONE', time_completed='2022-06-07 02:04:06.066709', photon_index_error2='0.63', photon_index2='1.67', ts='1.34', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.68e-08', energy_flux_error2='1.57e-05', EG='0.85', time_epoch_completed='1654592646.07', return_code='0', job_id='993053', GAL2='0.96', EG2='0.87', return_code2='0', energy_flux_error='5.42e-06', photon_flux_error2='8.57e-09', ts2='2.67', photon_index='2.62' WHERE bin_id='722' AND source_name='4FGL J2129.9+1208' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  7 02:04:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 993053: <4FGL_J2129.9+1208_weekly_bin722> in cluster <slac> Done

Job <4FGL_J2129.9+1208_weekly_bin722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jun  7 01:20:34 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun  7 01:23:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun  7 01:23:52 2022
Terminated at Tue Jun  7 02:04:06 2022
Results reported at Tue Jun  7 02:04:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_weekly_bin722 322.482 12.1439 675648001 676252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2129.9+1208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2363.98 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             374.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2935 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2414 sec.
    Turnaround time :                            2612 sec.

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

