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


Performing analysis on: 4FGL_J2129.9+1208_daily_bin1703
RA = 322.482, Dec = 12.1439
tmin = 680745601, tmax = 681004801
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='324059', job_status='RUN', time_executed='2022-08-01 01:23:45.090953', time_epoch_executed='1659342225.09' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324059/ft1_4FGL_J2129.9+1208_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324059/ft2_4FGL_J2129.9+1208_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324059/ft1_4FGL_J2129.9+1208_daily_bin1703.fits outfile=/scratch/kocevski/324059/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1703.fits ra=322.482 dec=12.1439 rad=12.0 tmin=680745601.0 tmax=681004801.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.96
user 2.74
sys 0.20

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

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

Number of photons that the gtmktime cut: 334

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324059/ft1_filtered_4FGL_J2129.9+1208_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/324059/ft2_4FGL_J2129.9+1208_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/324059/ltcube_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.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/324059/ft2_4FGL_J2129.9+1208_daily_bin1703.fits
.....................!
real 14.60
user 14.17
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324059/ft1_filtered_4FGL_J2129.9+1208_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324059/ft2_4FGL_J2129.9+1208_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324059/ltcube_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.fits outfile=/scratch/kocevski/324059/expmap_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.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/324059/ltcube_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.fits
.....................!
real 192.75
user 186.83
sys 4.97

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/324059/ft1_filtered_4FGL_J2129.9+1208_daily_bin1703.fits scfile=/scratch/kocevski/324059/ft2_4FGL_J2129.9+1208_daily_bin1703.fits outfile=/scratch/kocevski/324059/cmap_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324059/ft1_filtered_4FGL_J2129.9+1208_daily_bin1703.fits scfile=/scratch/kocevski/324059/ft2_4FGL_J2129.9+1208_daily_bin1703.fits outfile=/scratch/kocevski/324059/cmap_HighResolution_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.492       1.0000         .10000E-03   10000.    
     3 'norm      '    49.756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19116E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.484       1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.321       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-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      '    7.5772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7163       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82708       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11662E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.6163       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    127.44       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73539E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0040       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=   4003.952     FROM MIGRAD    STATUS=CONVERGED   1280 CALLS     4866 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.044        .18142E-02** at limit **
   2  norm          17.494        17.155        .95763E-04   -.23090E-04
   3  norm          49.774        88.508        .56852E-04   -.97786E-05
   4  Prefactor     .10084E-03    233.98        .62846E-02** at limit **
   5  Prefactor     37.489        26.659        .65462E-04   -.28655E-04
   6  Prefactor     45.331        30.116        .59556E-04   -.41042E-05
   7  Prefactor     .10000E-03    53.290        .18142E-02** at limit **
   8  Prefactor     .10000E-03    26.793        .18142E-02** at limit **
   9  Prefactor     .10000E-03    29.625        .18142E-02** at limit **
  10  Prefactor     .10000E-03    39.490        .18142E-02** at limit **
  11  norm          7.5792        6.4895        .13895E-03   -.73634E-05
  12  Prefactor     .10000E-03    57.353        .18142E-02** at limit **
  13  Prefactor     2.7252        13.348        .24711E-03    .62430E-04
  14  Prefactor     .79774        73.931        .34890E-02    .61040E-04
  15  Prefactor     .10000E-03    296.96        .18142E-02** at limit **
  16  Prefactor     .10000E-03    205.52        .18142E-02** at limit **
  17  norm          8.6194        4.5402        .83215E-04    .73569E-04
  18  Prefactor     .10000E-03    45.617        .18142E-02** at limit **
  19  Prefactor     127.43        144.61        .35661E-04    .26173E-04
  20  norm          .10000E-03    2.1297        .89705E-03** at limit **
  21  norm          .10000E-03    119.17        .18142E-02** at limit **
  22  Prefactor     .10000E-03    13.857        .18142E-02** at limit **
  23  Prefactor     .10000E-03    30.227        .18142E-02** at limit **
  24  Prefactor     .10000E-03    42.326        .18142E-02** at limit **
  25  norm          .10000E-03    .39529        .76172E-04** at limit **
  26  Prefactor     .10000E-03    20.744        .18142E-02** at limit **
  27  Prefactor     .10000E-03    45.177        .18142E-02** at limit **
  28  Normalizat    .73298E-01    .83214        .10333E-01    .23447E-04
  29  Prefactor     1.0041        .17951        .14383E-03    .49125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 17.4936
  norm       = 49.774
  Prefactor  = 0.000100841
  Prefactor  = 37.4894
  Prefactor  = 45.3314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.57923
  Prefactor  = 0.0001
  Prefactor  = 2.72524
  Prefactor  = 0.797743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.6194
  Prefactor  = 0.0001
  Prefactor  = 127.435
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.0732982
  Prefactor  = 1.00411
 **********
 **   18 **HESSE 
 **********

 FCN=   4003.952     FROM HESSE     STATUS=OK           527 CALLS     5393 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.494        17.154        .38305E-05   -1.4871    
   3  norm          49.774        88.099        .11370E-04   -1.4296    
   4  Prefactor     .10084E-03    239.87        .25138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.489        26.645        .26185E-05   -1.4483    
   6  Prefactor     45.331        30.008        .23822E-05   -1.4360    
   7  Prefactor     .10000E-03    53.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5792        6.4827        .55582E-05   -1.5157    
  12  Prefactor     .10000E-03    57.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7252        12.874        .98845E-05   -1.5378    
  14  Prefactor     .79774        68.680        .13956E-03   -1.5529    
  15  Prefactor     .10000E-03    296.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    205.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.6194        4.4711        .33286E-05   -1.5121    
  18  Prefactor     .10000E-03    45.617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     127.43        143.86        .71322E-05   -1.3445    
  20  norm          .10000E-03    2.1299        .17941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    119.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .39529        .15234E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    45.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73298E-01    .61852        .41330E-03   -1.4114    
  29  Prefactor     1.0041        .15779        .57532E-05   -.92593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53079e-09
Minuit parameter uncertainties:
  1  8.2076e-06
  2  17.159
  3  88.331
  4  0.0285251
  5  26.6539
  6  30.0184
  7  4.84205e-06
  8  1.84039e-06
  9  3.3692e-06
  10  2.27e-06
  11  6.4833
  12  1.72595e-05
  13  11.8504
  14  14.8205
  15  0.000117395
  16  9.52815e-06
  17  4.47127
  18  7.30415e-06
  19  144.254
  20  4.59078e-06
  21  0.000400479
  22  2.40031e-05
  23  2.01229e-05
  24  2.35745e-06
  25  2.99861e-07
  26  6.3697e-06
  27  8.80324e-06
  28  0.401271
  29  0.157868
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  2.725e+00  1.185e+01  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.004e+00  1.579e-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:  7.330e-02  4.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/324059/likelihoodResults_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.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) = 4003.26433121
delta logL = 0.687378605723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4003.25571343
delta logL = 0.695996381255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3038       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2987       1.0000          .0000       10.000    
     3 'Normalizat'    .94313E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99544       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=   4003.256     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3038        6.4063        .14222E-03    .11002E-02
   2  Index         1.2986        .74400        .79306E-02   -.22208E-03
   3  Normalizat    .94130E-01    .47262        .99248E-02    .14594E-04
   4  Prefactor     .99550        .16747        .14423E-03    .21321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30381
  Index      = 1.29863
  Normalizat = 0.0941301
  Prefactor  = 0.9955
 **********
 **   18 **HESSE 
 **********

 FCN=   4003.256     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3038        6.7852        .28443E-04   -1.5344    
   2  Index         1.2986        .78736        .15861E-02   -.83348    
   3  Normalizat    .94130E-01    .39472        .39699E-03   -1.3870    
   4  Prefactor     .99550        .15283        .57693E-05   -.92880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71923e-09
Minuit parameter uncertainties:
  1  6.78678
  2  0.794746
  3  0.368515
  4  0.152899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324059': 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) = 4003.25571329
delta logL = 0.695996522726

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  3.304e+00  6.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  1.299e+00  7.947e-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.955e-01  1.529e-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:  9.413e-02  3.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 322.482 12.144
Photon Index (Free Index): 1.30 +/- 0.79
Photon Flux (Free Index): 1.11e-08 +/- 1.96e-08
Energy Flux (Free Index): 6.80e-05 +/- 1.23e-04

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/324059/cmap_HighResolution_680745601_681004801_4FGL_J2129.9+1208_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', comment='SUCCESS', energy_flux2='6.80e-05', dlogl='6.96e-01', photon_flux2='1.11e-08', job_status='DONE', time_completed='2022-08-01 01:35:55.858876', photon_index_error2='0.79', photon_index2='1.30', ts='0.07', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.43e-07', energy_flux_error2='1.23e-04', EG='0.07', time_epoch_completed='1659342955.86', return_code='0', job_id='324059', GAL2='1.00', EG2='0.09', return_code2='0', photon_flux_error2='1.96e-08', ts2='1.46', photon_index='2.62' WHERE bin_id='1703' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:35:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 324059: <4FGL_J2129.9+1208_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2129.9+1208_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:15 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:20:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:20:37 2022
Terminated at Mon Aug  1 01:35:56 2022
Results reported at Mon Aug  1 01:35:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin1703 322.482 12.1439 680745601 681004801 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 :                                   730.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            941 sec.

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

