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


Performing analysis on: 4FGL_J2129.9+1208_daily_bin1731
RA = 322.482, Dec = 12.1439
tmin = 688003201, tmax = 688262401
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='551053', job_status='RUN', time_executed='2022-10-24 00:42:56.123854', time_epoch_executed='1666597376.12' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551053/ft1_4FGL_J2129.9+1208_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551053/ft1_4FGL_J2129.9+1208_daily_bin1731.fits outfile=/scratch/kocevski/551053/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1731.fits ra=322.482 dec=12.1439 rad=12.0 tmin=688003201.0 tmax=688262401.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.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.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/551053/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1731.fits evtable="EVENTS" outfile="/scratch/kocevski/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.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.33
sys 0.16

Number of photons that the gtmktime cut: 720

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/551053/ltcube_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.fits outfile=/scratch/kocevski/551053/expmap_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.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/551053/ltcube_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.fits
.....................!
real 191.12
user 185.60
sys 5.18

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_8years/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/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.fits scfile=/scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.fits outfile=/scratch/kocevski/551053/cmap_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.fits scfile=/scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.fits outfile=/scratch/kocevski/551053/cmap_HighResolution_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551053/Model_4FGL_J2129.9+1208_daily_bin1731.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/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.fits....................!
real 105.52
user 104.08
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.fits', '/scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.fits', expMap='/scratch/kocevski/551053/expmap_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.fits', expCube='/scratch/kocevski/551053/ltcube_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551053/Model_4FGL_J2129.9+1208_daily_bin1731.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  0.000e+00  1.000e+06 ( 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/551053/ft1_filtered_4FGL_J2129.9+1208_daily_bin1731.fits
Spacecraft file(s): /scratch/kocevski/551053/ft2_4FGL_J2129.9+1208_daily_bin1731.fits
Exposure map: /scratch/kocevski/551053/expmap_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.fits
Exposure cube: /scratch/kocevski/551053/ltcube_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551053/Model_4FGL_J2129.9+1208_daily_bin1731.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) = 7637.36421896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32687E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .28511E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13371       1.0000          .0000       .10000E+07
     4 'Prefactor '    .74130E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11001E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23333E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.658       1.0000          .0000       .10000E+07
     8 'norm      '    .96801       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5920       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2286       1.0000          .0000       .10000E+07
    11 'Prefactor '    58.377       1.0000          .0000       .10000E+07
    12 'Prefactor '    184.63       1.0000          .0000       .10000E+07
    13 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    .23582       1.0000          .0000       .10000E+07
    15 'norm      '    2.0471       1.0000          .0000       .10000E+07
    16 'norm      '    .23254E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97890E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .39478E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .51322E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .28866E-08   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7637.357     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1791 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99920E-09    33.134       -.67162E-07** at limit **
   2  norm           .0000        4.0152       -.10752E-06** at limit **
   3  Prefactor     .17473E-04    1453.4       -.22000E-05** at limit **
   4  Prefactor      .0000        5.1725       -.34555E-07** at limit **
   5  Prefactor     .22204E-09    9.9175        .50899E-06** at limit **
   6  Prefactor      .0000        20.474       -.19046E-06** at limit **
   7  Prefactor     18.757        6.8728       -.35013E-07    .34923E-01
   8  norm          .95345        7.9471        .20448E-06   -.25239E-02
   9  Prefactor     1.5655        14.100        .63239E-06    .11911E-02
  10  Prefactor     2.2280        3.7074       -.14393E-07   -.13272E-03
  11  Prefactor     58.207        14.497       -.91573E-07    .39302E-01
  12  Prefactor     188.11        119.73       -.51325E-06   -.19748E-02
  13  norm           .0000        1.5503       -.64367E-08** at limit **
  14  Prefactor     .58481E-06    551.11       -.12107E-05** at limit **
  15  norm          2.0471        1.8919        .38840E-08   -.20843E-03
  16  norm          .49960E-09    10.714       -.10342E-06** at limit **
  17  Prefactor      .0000        15.530        .83747E-07** at limit **
  18  Prefactor      .0000        11.708       -.35566E-06** at limit **
  19  Prefactor     .44409E-09    31.395        .19877E-06** at limit **
  20  norm           .0000        .15787        .29754E-08** at limit **
  21  Normalizat    1.0933        .26623       -.12027E-07   -.48187E-04
  22  Prefactor     .93352        .11768       -.12312E-05   -.93578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99201e-10
  norm       = 0
  Prefactor  = 1.74728e-05
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 18.7571
  norm       = 0.953449
  Prefactor  = 1.56555
  Prefactor  = 2.22801
  Prefactor  = 58.2067
  Prefactor  = 188.112
  norm       = 0
  Prefactor  = 5.8481e-07
  norm       = 2.04715
  norm       = 4.996e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  norm       = 0
  Normalizat = 1.09332
  Prefactor  = 0.933517
 **********
 **   18 **HESSE 
 **********

 FCN=   7637.357     FROM HESSE     STATUS=OK           394 CALLS     2185 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99920E-09    33.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        4.0266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17473E-04    10.529        .13100E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        5.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22204E-09    12.142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        20.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.757        33.296        .23159E-03   -1.5621    
   8  norm          .95345        9.4158        .42630E-03   -1.5688    
   9  Prefactor     1.5655        46.670        .84057E-03   -1.5683    
  10  Prefactor     2.2280        3.7162        .68840E-03   -1.5678    
  11  Prefactor     58.207        44.965        .13089E-03   -1.5555    
  12  Prefactor     188.11        120.03        .73602E-04   -1.5434    
  13  norm           .0000        1.5269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .58481E-06    33.127        .15360E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0471        1.9029        .72231E-03   -1.5679    
  16  norm          .49960E-09    11.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        15.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        11.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .44409E-09    31.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .15774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0933        .22557        .77470E-01   -.89967    
  22  Prefactor     .93352        .97548E-01    .45433E-01   -.94980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92218e-07
Minuit parameter uncertainties:
  1  0.000361561
  2  1.58053e-06
  3  0.0271278
  4  1.37141e-06
  5  9.87522e-05
  6  4.37439e-05
  7  33.2967
  8  5.99252
  9  17.0956
  10  3.71625
  11  44.9655
  12  120.028
  13  9.49375e-08
  14  0.00880297
  15  1.9029
  16  0.000150994
  17  1.61661e-05
  18  2.63938e-05
  19  0.000231399
  20  2.94572e-09
  21  0.225765
  22  0.0975665
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  2.228e+00  3.716e+00  0.000e+00  1.000e+06 ( 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.335e-01  9.757e-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:  1.093e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551053/likelihoodResults_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.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) = 7636.84175484
delta logL = 0.515477796296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7636.76730256
delta logL = 0.589930076265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7565       1.0000          .0000       .10000E+07
     2 'Index     '    1.6963       1.0000          .0000       10.000    
     3 'Normalizat'    1.1113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92613       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=   7636.767     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7627        4.6059        .52067E-03    .10255E-02
   2  Index         1.6972        .50402        .27895       -.54598E-04
   3  Normalizat    1.1113        .21635        .76903E-01    .20486E-04
   4  Prefactor     .92615        .97104E-01    .45337E-01    .12471E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.76272
  Index      = 1.69719
  Normalizat = 1.11129
  Prefactor  = 0.926148
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7627        4.4900        .18631E-04   -1.5669    
   2  Index         1.6972        .64673        .10572E-01   -.72157    
   3  Normalizat    1.1113        .26140        .34038E-03   -.89390    
   4  Prefactor     .92615        .11756        .16483E-03   -.95233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46896e-09
Minuit parameter uncertainties:
  1  4.49004
  2  0.649975
  3  0.261709
  4  0.117588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551053': 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) = 7636.76730113
delta logL = 0.589931507863

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  3.763e+00  4.490e+00  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  1.697e+00  6.500e-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.261e-01  1.176e-01  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:  1.111e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 322.482 12.144
Photon Index (Free Index): 1.70 +/- 0.65
Photon Flux (Free Index): 1.29e-08 +/- 1.73e-08
Energy Flux (Free Index): 2.13e-05 +/- 3.78e-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/551053/cmap_HighResolution_688003201_688262401_4FGL_J2129.9+1208_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='5.90e-01', photon_flux2='1.29e-08', job_status='DONE', time_completed='2022-10-24 00:54:30.585267', photon_index_error2='0.65', photon_index2='1.70', ts='0.51', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='3.78e-05', EG='1.09', time_epoch_completed='1666598070.59', return_code='0', job_id='551053', GAL2='0.93', EG2='1.11', return_code2='0', photon_flux_error2='1.73e-08', ts2='1.69', photon_index='2.62' WHERE bin_id='1731' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 00:54:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 551053: <4FGL_J2129.9+1208_daily_bin1731> in cluster <slac> Done

Job <4FGL_J2129.9+1208_daily_bin1731> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Oct 24 00:40:15 2022
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 00:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 00:40:17 2022
Terminated at Mon Oct 24 00:54:31 2022
Results reported at Mon Oct 24 00:54:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin1731 322.482 12.1439 688003201 688262401 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 :                                   696.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

