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


Performing analysis on: 4FGL_J2129.9+1208_daily_bin1771
RA = 322.482, Dec = 12.1439
tmin = 698371201, tmax = 698630401
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='568534', job_status='RUN', time_executed='2023-02-21 02:11:17.898640', time_epoch_executed='1676974277.9' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/568534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/568534/ft1_4FGL_J2129.9+1208_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/568534/ft1_4FGL_J2129.9+1208_daily_bin1771.fits outfile=/scratch/kocevski/568534/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1771.fits ra=322.482 dec=12.1439 rad=12.0 tmin=698371201.0 tmax=698630401.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.09
user 2.87
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.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/568534/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/568534/ft1_filtered_4FGL_J2129.9+1208_daily_bin1771.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 843

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/568534/ft1_filtered_4FGL_J2129.9+1208_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/568534/ltcube_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.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/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits
.....................!
real 12.97
user 12.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/568534/ft1_filtered_4FGL_J2129.9+1208_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/568534/ltcube_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.fits outfile=/scratch/kocevski/568534/expmap_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.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/568534/ltcube_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.fits
.....................!
real 189.85
user 185.59
sys 3.90

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/568534/ft1_filtered_4FGL_J2129.9+1208_daily_bin1771.fits scfile=/scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits outfile=/scratch/kocevski/568534/cmap_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.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.54
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/568534/ft1_filtered_4FGL_J2129.9+1208_daily_bin1771.fits scfile=/scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits outfile=/scratch/kocevski/568534/cmap_HighResolution_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/568534/ft1_filtered_4FGL_J2129.9+1208_daily_bin1771.fits', '/scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits', expMap='/scratch/kocevski/568534/expmap_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.fits', expCube='/scratch/kocevski/568534/ltcube_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/568534/Model_4FGL_J2129.9+1208_daily_bin1771.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/568534/ft1_filtered_4FGL_J2129.9+1208_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/568534/ft2_4FGL_J2129.9+1208_daily_bin1771.fits
Exposure map: /scratch/kocevski/568534/expmap_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.fits
Exposure cube: /scratch/kocevski/568534/ltcube_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/568534/Model_4FGL_J2129.9+1208_daily_bin1771.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) = 9458.52428303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23201E-05   1.0000          .0000       .10000E+07
     2 'norm      '    20.994       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18779E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18127E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    12.309       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38049E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    16.290       1.0000          .0000       .10000E+07
     8 'norm      '    4.3494       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.8027       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7917       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18534E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13172       1.0000          .0000       .10000E+07
    13 'norm      '    .20703E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .73445E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    16 'norm      '    9.7252       1.0000          .0000       .10000E+07
    17 'Prefactor '    .52774E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13781       1.0000          .0000       .10000E+07
    19 'Prefactor '    .71482E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .68356       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81336       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99359       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=   9458.473     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1402 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29349E-06    20.362       -.44846E-07** at limit **
   2  norm          20.951        8.8189        .10273E-06    .31815E-02
   3  Prefactor     .53022E-05    9.5839       -.92910E-06** at limit **
   4  Prefactor     .11102E-07    13.536        .43016E-06** at limit **
   5  Prefactor     12.326        1.2038        .11547E-08    .18291E-02
   6  Prefactor      .0000        12.663       -.98146E-06** at limit **
   7  Prefactor     16.177        2.2825       -.34660E-06    .38900E-01
   8  norm          4.3506        3.5447        .12321E-06   -.10514E-02
   9  Prefactor     6.7459        2.9106        .64373E-06   -.32719E-01
  10  Prefactor     3.8183        4.6636       -.10991E-06   -.25865E-03
  11  Prefactor      .0000        24.537        .11365E-05** at limit **
  12  Prefactor     .31586E-07    37.716        .36303E-05** at limit **
  13  norm          .18263E-07    5.6997       -.22533E-05** at limit **
  14  Prefactor     .74274E-07    70.343       -.11555E-05** at limit **
  15  norm          .11102E-09    1.4562        .19935E-06** at limit **
  16  norm          9.6259        1.7596       -.15889E-06    .12839E-01
  17  Prefactor     .54956E-08    4.1276        .57011E-06** at limit **
  18  Prefactor     .29815E-06    40.722       -.76963E-05** at limit **
  19  Prefactor     .24074E-05    21.227        .50065E-06** at limit **
  20  norm          .68359        .67673        .97762E-07   -.74841E-05
  21  Normalizat    .81386        .25602       -.21109E-04    .99324E-05
  22  Prefactor     .99362        .10840        .72572E-05    .68105E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93487e-07
  norm       = 20.9506
  Prefactor  = 5.3022e-06
  Prefactor  = 1.11022e-08
  Prefactor  = 12.3257
  Prefactor  = 0
  Prefactor  = 16.1769
  norm       = 4.35058
  Prefactor  = 6.74588
  Prefactor  = 3.81829
  Prefactor  = 0
  Prefactor  = 3.15858e-08
  norm       = 1.82632e-08
  Prefactor  = 7.42739e-08
  norm       = 1.11022e-10
  norm       = 9.62592
  Prefactor  = 5.4956e-09
  Prefactor  = 2.9815e-07
  Prefactor  = 2.40735e-06
  norm       = 0.683595
  Normalizat = 0.813857
  Prefactor  = 0.993621
 **********
 **   18 **HESSE 
 **********

 FCN=   9458.473     FROM HESSE     STATUS=OK           386 CALLS     1788 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29349E-06    21.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.951        8.8237        .21831E-03   -1.5616    
   3  Prefactor     .53022E-05    27.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-07    13.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.326        21.880        .28527E-03   -1.5638    
   6  Prefactor      .0000        12.649        .16053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.177        17.302        .24788E-03   -1.5628    
   8  norm          4.3506        3.5690        .48274E-03   -1.5666    
   9  Prefactor     6.7459        19.103        .38445E-03   -1.5656    
  10  Prefactor     3.8183        4.6685        .51816E-03   -1.5669    
  11  Prefactor      .0000        24.507        .17135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31586E-07    37.789        .13145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18263E-07    5.5356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .74274E-07    70.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11102E-09    1.4498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.6259        23.792        .32109E-03   -1.5646    
  17  Prefactor     .54956E-08    4.1438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29815E-06    40.670        .13008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24074E-05    28.835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .68359        .68637        .62053E-03   -1.5691    
  21  Normalizat    .81386        .22015        .92358E-01   -.99557    
  22  Prefactor     .99362        .90129E-01    .46187E-01   -.92942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42969e-07
Minuit parameter uncertainties:
  1  0.00508069
  2  8.82371
  3  0.0242596
  4  0.00077601
  5  21.8802
  6  9.66908e-06
  7  17.3023
  8  3.56905
  9  19.1035
  10  4.66846
  11  4.10937e-05
  12  0.00218507
  13  0.000635676
  14  0.00457918
  15  2.69524e-05
  16  23.792
  17  0.000302501
  18  0.00696417
  19  0.0166635
  20  0.686367
  21  0.220396
  22  0.0901424
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  3.818e+00  4.668e+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.936e-01  9.014e-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.139e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 322.482 12.144
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 3.22e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 8.30e-06 +/- 1.01e-05

TS (Fixed Index): 1.15
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/568534/likelihoodResults_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.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) = 9458.30745825
delta logL = 0.165296662417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9458.30706237
delta logL = 0.165692546261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7067       1.0000          .0000       .10000E+07
     2 'Index     '    1.9922       1.0000          .0000       10.000    
     3 'Normalizat'    .83815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98721       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=   9458.307     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7068        4.7169        .52429E-03   -.55249E-02
   2  Index         1.9916        .70301        .25834       -.88968E-04
   3  Normalizat    .83808        .21121        .91111E-01   -.83332E-04
   4  Prefactor     .98724        .89482E-01    .46107E-01   -.17562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70676
  Index      = 1.99164
  Normalizat = 0.838077
  Prefactor  = 0.987239
 **********
 **   18 **HESSE 
 **********

 FCN=   9458.307     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7068        4.7390        .20972E-04   -1.5669    
   2  Index         1.9916        .91867        .15435E-01   -.64559    
   3  Normalizat    .83808        .25336        .40357E-03   -.98671    
   4  Prefactor     .98724        .10779        .15872E-03   -.93156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05766e-10
Minuit parameter uncertainties:
  1  4.73898
  2  0.926971
  3  0.253721
  4  0.107809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/568534': 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) = 9458.30706209
delta logL = 0.165692822826

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  3.707e+00  4.739e+00  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  1.992e+00  9.270e-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.872e-01  1.078e-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:  8.381e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 322.482 12.144
Photon Index (Free Index): 1.99 +/- 0.93
Photon Flux (Free Index): 1.57e-08 +/- 2.76e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.72e-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/568534/cmap_HighResolution_698371201_698630401_4FGL_J2129.9+1208_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='3.22e-08', energy_flux2='1.11e-05', photon_flux_error='3.93e-08', dlogl='1.66e-01', energy_flux='8.30e-06', photon_flux2='1.57e-08', job_status='DONE', time_completed='2023-02-21 02:23:26.833580', photon_index_error2='0.93', photon_index2='1.99', ts='1.15', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.72e-05', EG='0.81', time_epoch_completed='1676975006.83', return_code='0', job_id='568534', GAL2='0.99', EG2='0.84', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.76e-08', ts2='1.48', photon_index='2.62' WHERE bin_id='1771' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 02:23:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 568534: <4FGL_J2129.9+1208_daily_bin1771> in cluster <slac> Done

Job <4FGL_J2129.9+1208_daily_bin1771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 02:10:20 2023
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:10:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:10:21 2023
Terminated at Tue Feb 21 02:23:27 2023
Results reported at Tue Feb 21 02:23:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin1771 322.482 12.1439 698371201 698630401 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            787 sec.

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

