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


Performing analysis on: 4FGL_J2129.9+1208_weekly_bin721
RA = 322.482, Dec = 12.1439
tmin = 675043201, tmax = 675648001
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='284158', job_status='RUN', time_executed='2022-05-31 01:18:33.359959', time_epoch_executed='1653985113.36' WHERE source_name='4FGL J2129.9+1208' and cadence='weekly' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284158

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284158/ft1_4FGL_J2129.9+1208_weekly_bin721.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284158/ft2_4FGL_J2129.9+1208_weekly_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284158/ft1_4FGL_J2129.9+1208_weekly_bin721.fits outfile=/scratch/kocevski/284158/ft1_filteredMKT_4FGL_J2129.9+1208_weekly_bin721.fits ra=322.482 dec=12.1439 rad=12.0 tmin=675043201.0 tmax=675648001.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 7.44
user 7.11
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284158/ft2_4FGL_J2129.9+1208_weekly_bin721.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/284158/ft1_filteredMKT_4FGL_J2129.9+1208_weekly_bin721.fits evtable="EVENTS" outfile="/scratch/kocevski/284158/ft1_filtered_4FGL_J2129.9+1208_weekly_bin721.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.56
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 2040

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284158/ft1_filtered_4FGL_J2129.9+1208_weekly_bin721.fits" evtable="EVENTS" scfile=/scratch/kocevski/284158/ft2_4FGL_J2129.9+1208_weekly_bin721.fits sctable="SC_DATA" outfile=/scratch/kocevski/284158/ltcube_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.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/284158/ft2_4FGL_J2129.9+1208_weekly_bin721.fits
.....................!
real 33.72
user 33.04
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284158/ft1_filtered_4FGL_J2129.9+1208_weekly_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/284158/ft2_4FGL_J2129.9+1208_weekly_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/284158/ltcube_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.fits outfile=/scratch/kocevski/284158/expmap_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.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/284158/ltcube_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.fits
.....................!
real 194.12
user 188.11
sys 5.59

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/284158/ft1_filtered_4FGL_J2129.9+1208_weekly_bin721.fits scfile=/scratch/kocevski/284158/ft2_4FGL_J2129.9+1208_weekly_bin721.fits outfile=/scratch/kocevski/284158/cmap_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.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.60
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284158/ft1_filtered_4FGL_J2129.9+1208_weekly_bin721.fits scfile=/scratch/kocevski/284158/ft2_4FGL_J2129.9+1208_weekly_bin721.fits outfile=/scratch/kocevski/284158/cmap_HighResolution_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.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.59
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.730       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4890       1.0000         .10000E-03   10000.    
     3 'norm      '    88.303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59894       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.776       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16273E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8466       1.0000         .10000E-03   10000.    
    17 'norm      '    .19989E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.5408       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.020       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95671       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=   22287.51     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3871 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.735        25.568       -.24388E-05    .29959E-04
   2  norm          2.4863        4.6885        .33042E-05   -.11903E-02
   3  norm          88.363        44.409        .22473E-05    .73064E-03
   4  Prefactor     .54679        4.7611        .23622E-06   -.84270E-04
   5  Prefactor     3.1746        15.747        .35587E-05    .20931E-04
   6  Prefactor     .10000E-03    7.8269        .24134E-06** at limit **
   7  Prefactor     27.772        14.251       -.98723E-07   -.12130E-03
   8  Prefactor     .10000E-03    5.7212       -.47304E-06** at limit **
   9  Prefactor     .10000E-03    8.3161        .85716E-07** at limit **
  10  Prefactor     .10000E-03    10.125       -.53604E-07** at limit **
  11  norm          .10000E-03    .82416        .72379E-07** at limit **
  12  Prefactor     .10000E-03    3.2652        .57587E-08** at limit **
  13  Prefactor     .10000E-03    1.3269        .22218E-06** at limit **
  14  Prefactor     .10001E-03    1.4301        .10389E-06** at limit **
  15  Prefactor     .10000E-03    6.6130        .45687E-07** at limit **
  16  Prefactor     3.7245        227.93        .50136E-06   -.15745E-04
  17  norm          .10002E-03    .33478        .17989E-06** at limit **
  18  Prefactor     .10000E-03    15.641        .10260E-06** at limit **
  19  Prefactor     .10000E-03    12.195       -.35167E-06** at limit **
  20  norm          .10000E-03    .44530       -.47111E-06** at limit **
  21  norm          6.5372        12.102        .13083E-05    .36539E-03
  22  Prefactor     .10000E-03    1.2505        .22589E-07** at limit **
  23  Prefactor     .10000E-03    11.071       -.75681E-06** at limit **
  24  Prefactor     .10000E-03    9.7895       -.78381E-08** at limit **
  25  norm          .10000E-03    .17618        .25114E-06** at limit **
  26  Prefactor     .10000E-03    4.1569       -.63232E-07** at limit **
  27  Prefactor     12.017        13.581        .11216E-06   -.60288E-05
  28  Normalizat    1.0909        .14006       -.17794E-05    .59756E-03
  29  Prefactor     .95671        .57376E-01    .78254E-06    .25120E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7346
  norm       = 2.48633
  norm       = 88.3634
  Prefactor  = 0.546786
  Prefactor  = 3.17458
  Prefactor  = 0.0001
  Prefactor  = 27.7725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 3.72454
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.53721
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0173
  Normalizat = 1.09092
  Prefactor  = 0.95671
 **********
 **   18 **HESSE 
 **********

 FCN=   22287.51     FROM HESSE     STATUS=OK           573 CALLS     4444 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.735        25.701        .12231E-03   -1.5053    
   2  norm          2.4863        5.0256        .12955E-02   -1.5393    
   3  norm          88.363        48.447        .42757E-04   -1.3825    
   4  Prefactor     .54679        53.256        .58013E-02   -1.5560    
   5  Prefactor     3.1746        15.927        .11368E-02   -1.5352    
   6  Prefactor     .10000E-03    7.9350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.772        14.244        .76015E-04   -1.4653    
   8  Prefactor     .10000E-03    5.7483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5410        .26206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3164        .32344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    2.9438        .54213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7245        229.02        .20577E-03   -1.5322    
  17  norm          .10002E-03    1.0622        .27756E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .77086        .18770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.5372        12.002        .15692E-03   -1.5197    
  22  Prefactor     .10000E-03    4.5214        .32062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .30421        .11976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.1689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.017        13.582        .11555E-03   -1.5015    
  28  Normalizat    1.0909        .16361        .35030E-03   -.90044    
  29  Prefactor     .95671        .70986E-01    .16488E-03   -.94187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26325e-07
Minuit parameter uncertainties:
  1  25.727
  2  5.02647
  3  48.469
  4  10.8015
  5  14.2272
  6  6.11647e-06
  7  14.2459
  8  8.86752e-05
  9  6.84807e-05
  10  5.01829e-05
  11  1.51652e-05
  12  7.34159e-07
  13  1.3895e-05
  14  0.000281107
  15  1.21041e-05
  16  58.6474
  17  0.000260519
  18  2.22108e-05
  19  3.10091e-05
  20  2.56787e-05
  21  12.0061
  22  1.15979e-06
  23  0.000217502
  24  4.86205e-07
  25  7.99644e-06
  26  9.15372e-06
  27  13.5857
  28  0.163687
  29  0.0709934
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.389e-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:  9.567e-01  7.099e-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.091e+00  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/284158/likelihoodResults_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.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) = 22287.5067756
delta logL = -0.0010976498852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22287.50568
delta logL = -2.07308039535e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12345E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6606       1.0000          .0000       10.000    
     3 'Normalizat'    1.0911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95667       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=   22287.50     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      330 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79893E-01    1.4260        .32087E-01   -.29700E-02
   2  Index         3.9360        1.6621        .50000        .15987E-04
   3  Normalizat    1.0855        .84458E-02    .35030E-03    .45306E-04
   4  Prefactor     .95799        .37707E-02    .16488E-03    .20029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0798932
  Index      = 3.93597
  Normalizat = 1.08547
  Prefactor  = 0.957994
 **********
 **   18 **HESSE 
 **********

 FCN=   22287.50     FROM HESSE     STATUS=OK            31 CALLS      361 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79893E-01    1.8992        .13813E-02   -1.5764    
   2  Index         3.9360        4.0952        .20077E-01   -.21445    
   3  Normalizat    1.0855        .16138        .14012E-04   -.90220    
   4  Prefactor     .95799        .69927E-01    .32976E-04   -.94143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35014e-08
Minuit parameter uncertainties:
  1  0.778607
  2  4.85631
  3  0.161457
  4  0.0699332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284158': 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) = 22287.4991112
delta logL = 0.00656675194841

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  7.989e-02  7.786e-01  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  3.936e+00  4.856e+00  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.580e-01  6.993e-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.085e+00  1.615e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/284158/cmap_HighResolution_675043201_675648001_4FGL_J2129.9+1208_weekly_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2022-05-31 01:59:15.936124', job_id='284158', GAL2='0.96', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1653987555.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.57e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='721' AND source_name='4FGL J2129.9+1208' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 31 01:59:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 284158: <4FGL_J2129.9+1208_weekly_bin721> in cluster <slac> Done

Job <4FGL_J2129.9+1208_weekly_bin721> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue May 31 01:15:44 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 31 01:18:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 31 01:18:03 2022
Terminated at Tue May 31 01:59:16 2022
Results reported at Tue May 31 01:59:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_weekly_bin721 322.482 12.1439 675043201 675648001 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 :                                   2434.08 sec.
    Max Memory :                                 1274 MB
    Average Memory :                             381.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2935 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2473 sec.
    Turnaround time :                            2612 sec.

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

