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


Performing analysis on: 4FGL_J2129.9+1208_daily_bin1702
RA = 322.482, Dec = 12.1439
tmin = 680486401, tmax = 680745601
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='257633', job_status='RUN', time_executed='2022-07-29 01:35:49.373248', time_epoch_executed='1659083749.37' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257633/ft1_4FGL_J2129.9+1208_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257633/ft2_4FGL_J2129.9+1208_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257633/ft1_4FGL_J2129.9+1208_daily_bin1702.fits outfile=/scratch/kocevski/257633/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1702.fits ra=322.482 dec=12.1439 rad=12.0 tmin=680486401.0 tmax=680745601.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.94
user 2.73
sys 0.19

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

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

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

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

Number of photons that the gtmktime cut: 406

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257633/ft1_filtered_4FGL_J2129.9+1208_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/257633/ft2_4FGL_J2129.9+1208_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/257633/ltcube_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.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/257633/ft2_4FGL_J2129.9+1208_daily_bin1702.fits
.....................!
real 15.11
user 14.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257633/ft1_filtered_4FGL_J2129.9+1208_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257633/ft2_4FGL_J2129.9+1208_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/257633/ltcube_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.fits outfile=/scratch/kocevski/257633/expmap_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.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/257633/ltcube_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.fits
.....................!
real 191.56
user 186.30
sys 4.72

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/257633/ft1_filtered_4FGL_J2129.9+1208_daily_bin1702.fits scfile=/scratch/kocevski/257633/ft2_4FGL_J2129.9+1208_daily_bin1702.fits outfile=/scratch/kocevski/257633/cmap_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.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.52
user 0.38
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257633/ft1_filtered_4FGL_J2129.9+1208_daily_bin1702.fits scfile=/scratch/kocevski/257633/ft2_4FGL_J2129.9+1208_daily_bin1702.fits outfile=/scratch/kocevski/257633/cmap_HighResolution_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.668       1.0000         .10000E-03   10000.    
     2 'norm      '    .38088E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .34226E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7533       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18775E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81236E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14579E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9757       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42516E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.1438       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3818       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20580E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20747E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61212E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30442E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .63825E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18548E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48924E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10657E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    38.124       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .80100E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.418       1.0000         .10000E-03   10000.    
    24 'Prefactor '    120.00       1.0000         .10000E-03   10000.    
    25 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .26106E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17228E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2068       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=   4836.397     FROM MIGRAD    STATUS=CONVERGED    236 CALLS     2655 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.835        108.65        .15164E-04    .79116E-05
   2  norm          .10000E-03    20.595       -.69252E-04** at limit **
   3  norm          .10002E-03    49.260        .18659E-04** at limit **
   4  Prefactor     6.7587        17.810        .72048E-06   -.15530E-02
   5  Prefactor     .10000E-03    48.876       -.44677E-05** at limit **
   6  Prefactor     .10000E-03    12.185       -.12429E-07** at limit **
   7  Prefactor     .10000E-03    341.66       -.40452E-04** at limit **
   8  Prefactor     .10000E-03    42.792       -.72166E-05** at limit **
   9  Prefactor     10.351        30.287       -.34020E-04   -.23270E-03
  10  Prefactor     .10005E-03    3.2754        .20923E-05** at limit **
  11  norm          7.0886        4.6178        .14077E-05    .46565E-04
  12  Prefactor     6.3001        199.08        .11377E-03   -.20593E-03
  13  Prefactor     .10000E-03    8.6170       -.21311E-05** at limit **
  14  Prefactor     .10000E-03    8.7437       -.31284E-05** at limit **
  15  Prefactor     .10046E-03    83.533       -.28771E-04** at limit **
  16  Prefactor     .10890E-03    22.802       -.48061E-05** at limit **
  17  norm          .10000E-03    4.2129       -.61815E-07** at limit **
  18  Prefactor     .10134E-03    67.829        .11846E-04** at limit **
  19  Prefactor     .10031E-03    100.41        .84772E-05** at limit **
  20  norm          .10000E-03    2.2609        .13775E-05** at limit **
  21  norm          38.038        16.743        .72695E-05    .82547E-02
  22  Prefactor     .10001E-03    53.163       -.19213E-04** at limit **
  23  Prefactor     41.082        31.305       -.30104E-05   -.48250E-03
  24  Prefactor     118.29        68.875        .26122E-04   -.29949E-02
  25  norm          .10000E-03    .44021        .10011E-05** at limit **
  26  Prefactor     .10001E-03    53.078       -.32156E-05** at limit **
  27  Prefactor     .10002E-03    68.175        .25049E-04** at limit **
  28  Normalizat    .10000E-01    .38572        .46041E-04** at limit **
  29  Prefactor     1.2071        .81316E-01   -.17658E-05    .98171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.8354
  norm       = 0.0001
  norm       = 0.00010002
  Prefactor  = 6.75868
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.3515
  Prefactor  = 0.000100048
  norm       = 7.08857
  Prefactor  = 6.30006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100464
  Prefactor  = 0.000108899
  norm       = 0.0001
  Prefactor  = 0.000101342
  Prefactor  = 0.000100309
  norm       = 0.0001
  norm       = 38.0381
  Prefactor  = 0.000100009
  Prefactor  = 41.0816
  Prefactor  = 118.289
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100015
  Normalizat = 0.01
  Prefactor  = 1.20707
 **********
 **   18 **HESSE 
 **********

 FCN=   4836.397     FROM HESSE     STATUS=OK           611 CALLS     3266 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.835        109.01        .10667E-02   -1.3919    
   2  norm          .10000E-03    20.462        .10643E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    50.836        .98405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7587        37.352        .38600E-02   -1.5188    
   5  Prefactor     .10000E-03    47.508        .10142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.146        .10446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    352.60        .11678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.671        .10247E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.351        30.495        .33446E-02   -1.5064    
  10  Prefactor     .10005E-03    59.522        .10618E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0886        4.6238        .37520E-02   -1.5175    
  12  Prefactor     6.3001        201.41        .48101E-02   -1.5206    
  13  Prefactor     .10000E-03    8.4631        .10102E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6230        .10098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10046E-03    86.318        .10527E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10890E-03    96.860        .99062E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1823        .33060E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10134E-03    77.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10031E-03    103.91        .96161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          38.038        40.024        .16228E-02   -1.4474    
  22  Prefactor     .10001E-03    51.787        .10451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     41.082        36.712        .15763E-02   -1.4425    
  24  Prefactor     118.29        71.821        .91840E-03   -1.3528    
  25  norm          .10000E-03    .42879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    53.794        .99872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    68.178        .10179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .17938        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.2071        .10171        .34471E-01   -.86114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78164e-07
Minuit parameter uncertainties:
  1  109.281
  2  0.000132462
  3  0.0020046
  4  31.8076
  5  0.000340914
  6  2.47387e-06
  7  0.00110353
  8  4.83265e-05
  9  30.5409
  10  0.00338151
  11  4.62403
  12  71.5063
  13  1.38457e-05
  14  1.2526e-05
  15  0.0126755
  16  0.0588147
  17  2.46854e-06
  18  0.0204799
  19  0.0113496
  20  3.28704e-06
  21  40.0525
  22  0.00137282
  23  36.7323
  24  71.8741
  25  3.44305e-07
  26  0.00133139
  27  0.00204979
  28  7.73218e-07
  29  0.101724
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.385e-05  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:  1.207e+00  1.017e-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.000e-02  7.732e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/257633/likelihoodResults_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.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): 102
logL (Free Index) = 4836.39709339
delta logL = -0.000566268923649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4836.39652712
delta logL = -3.34512151312e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6131       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2071       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4836.397     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      249 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    113.06        .18142E-02** at limit **
   2  Index         2.5965        7.4100        .50000        .38715E-05
   3  Normalizat    .10000E-01    .10472E-01    .12641E-01** at limit **
   4  Prefactor     1.2071        .11164E-01    .14174E-03   -.25667E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100091
  Index      = 2.59646
  Normalizat = 0.01
  Prefactor  = 1.20707
 **********
 **   18 **HESSE 
 **********

 FCN=   4836.397     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    495.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5965        8.6909        .50000       -.50146    
   3  Normalizat    .10000E-01    .51442E-01    .25282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2071        .24691E-01    .56695E-05   -.86114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48578e-09
Minuit parameter uncertainties:
  1  0.0135763
  2  899.59
  3  9.01373e-08
  4  0.024691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257633': 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): 102
logL (Free Index) = 4836.3965271
delta logL = 1.6382728063e-08

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.001e-04  1.358e-02  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  2.596e+00  8.996e+02  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:  1.207e+00  2.469e-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.000e-02  9.014e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.482 12.144

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/257633/cmap_HighResolution_680486401_680745601_4FGL_J2129.9+1208_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2022-07-29 01:46:46.733512', job_id='257633', GAL2='1.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1659084406.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1702' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:46:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 257633: <4FGL_J2129.9+1208_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2129.9+1208_daily_bin1702> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 29 01:30:29 2022
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:32:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:32:21 2022
Terminated at Fri Jul 29 01:46:47 2022
Results reported at Fri Jul 29 01:46:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin1702 322.482 12.1439 680486401 680745601 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 :                                   659.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            978 sec.

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

