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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1700
RA = 325.894, Dec = 17.7306
tmin = 679968001, tmax = 680227201
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='83318', job_status='RUN', time_executed='2022-07-23 00:38:10.069608', time_epoch_executed='1658561890.07' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83318/ft1_4FGL_J2143.5+1743_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83318/ft1_4FGL_J2143.5+1743_daily_bin1700.fits outfile=/scratch/kocevski/83318/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1700.fits ra=325.894 dec=17.7306 rad=12.0 tmin=679968001.0 tmax=680227201.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 4.54
user 4.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.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/83318/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1700.fits evtable="EVENTS" outfile="/scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 691

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83318/ltcube_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.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/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits
.....................!
real 11.90
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83318/ltcube_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.fits outfile=/scratch/kocevski/83318/expmap_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.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/83318/ltcube_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.fits
.....................!
real 192.10
user 186.00
sys 5.31

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 165 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 J2143.5+1743 @ 325.894 17.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits scfile=/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits outfile=/scratch/kocevski/83318/cmap_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.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=325.894 yref=17.7306 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.98
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits scfile=/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits outfile=/scratch/kocevski/83318/cmap_HighResolution_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.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=325.894 yref=17.7306 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 1.01
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83318/Model_4FGL_J2143.5+1743_daily_bin1700.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/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits.....................!
real 128.71
user 124.87
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits', '/scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits', expMap='/scratch/kocevski/83318/expmap_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.fits', expCube='/scratch/kocevski/83318/ltcube_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83318/Model_4FGL_J2143.5+1743_daily_bin1700.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2143.5+1743'

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  7.341e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.790e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/83318/ft1_filtered_4FGL_J2143.5+1743_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/83318/ft2_4FGL_J2143.5+1743_daily_bin1700.fits
Exposure map: /scratch/kocevski/83318/expmap_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.fits
Exposure cube: /scratch/kocevski/83318/ltcube_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83318/Model_4FGL_J2143.5+1743_daily_bin1700.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) = 7823.25011101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.737       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.426       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13507E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10479E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.570       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8689       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.571       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.272       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9609       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91511       1.0000         .10000E-03   10000.    
    19 'norm      '    8.9384       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.903       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7823.241     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2518 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.232        .74454E-06** at limit **
   2  Prefactor     .10000E-03    7.7855       -.22944E-06** at limit **
   3  Prefactor     .10000E-03    30.494        .20873E-06** at limit **
   4  Prefactor     10.738        20.509        .10808E-05    .56067E-04
   5  Prefactor     10.396        26.506       -.32011E-06   -.50033E-04
   6  Prefactor     .10000E-03    20.051       -.70374E-07** at limit **
   7  norm          .10000E-03    1.4832       -.13853E-06** at limit **
   8  Prefactor     2.4897        5.5731        .82641E-06    .86039E-03
   9  Prefactor     .10000E-03    3.4913        .25010E-06** at limit **
  10  Prefactor     .10000E-03    201.48        .22628E-05** at limit **
  11  norm          .10000E-03    1.0189        .14109E-05** at limit **
  12  Prefactor     40.569        59.256       -.53161E-07    .23983E-05
  13  norm          2.8701        2.9599        .19511E-06    .24884E-04
  14  norm          .10000E-03    7.8844       -.24830E-07** at limit **
  15  Prefactor     37.479        36.219        .35378E-06   -.39728E-04
  16  Prefactor     43.280        40.215       -.15254E-06   -.10181E-03
  17  norm          1.9618        1.2185        .13561E-06    .11578E-03
  18  Prefactor     .86162        38.153        .73207E-05   -.44735E-03
  19  norm          8.9391        5.5112        .44835E-07   -.14066E-03
  20  Prefactor     .10000E-03    13.041       -.27311E-06** at limit **
  21  Prefactor     11.905        12.669        .30666E-06   -.76360E-04
  22  Normalizat    1.0657        .26024       -.44129E-05   -.30366E-03
  23  Prefactor     .75109        .97198E-01    .14200E-05   -.58591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.738
  Prefactor  = 10.3962
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.48974
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 40.569
  norm       = 2.87009
  norm       = 0.0001
  Prefactor  = 37.4788
  Prefactor  = 43.2804
  norm       = 1.96179
  Prefactor  = 0.861623
  norm       = 8.93912
  Prefactor  = 0.0001
  Prefactor  = 11.9052
  Normalizat = 1.06573
  Prefactor  = 0.751088
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.241     FROM HESSE     STATUS=OK           368 CALLS     2886 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.738        20.536        .12227E-03   -1.5052    
   5  Prefactor     10.396        26.541        .12409E-03   -1.5063    
   6  Prefactor     .10000E-03    20.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4950        .10516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4897        5.9210        .12964E-02   -1.5392    
   9  Prefactor     .10000E-03    3.5166        .16150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    202.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1402        .91397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.569        59.259        .62932E-04   -1.4433    
  13  norm          2.8701        2.9576        .13733E-03   -1.5369    
  14  norm          .10000E-03    7.8910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.479        36.290        .65387E-04   -1.4483    
  16  Prefactor     43.280        40.260        .60943E-04   -1.4391    
  17  norm          1.9618        1.2138        .71597E-04   -1.5428    
  18  Prefactor     .86162        84.645        .53379E-02   -1.5522    
  19  norm          8.9391        5.5100        .13406E-03   -1.5110    
  20  Prefactor     .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.905        12.696        .11611E-03   -1.5018    
  22  Normalizat    1.0657        .29071        .34708E-03   -.90860    
  23  Prefactor     .75109        .10937        .16802E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24164e-09
Minuit parameter uncertainties:
  1  0.0001531
  2  3.13982e-05
  3  0.000112598
  4  20.5493
  5  26.5708
  6  5.32422e-05
  7  6.30509e-06
  8  5.92242
  9  2.38994e-05
  10  0.000897998
  11  6.4602e-05
  12  59.3453
  13  2.95776
  14  1.79977e-06
  15  36.3111
  16  40.2856
  17  1.21382
  18  17.104
  19  5.51032
  20  4.00177e-05
  21  12.6993
  22  0.291149
  23  0.109405
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.000e-04  6.460e-05  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  3.790e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  7.511e-01  1.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.066e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.894 17.731
Photon Flux Upper Limit: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83318/likelihoodResults_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.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) = 7823.24532278
delta logL = -0.00417615652805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7823.22634591
delta logL = 0.0148007095204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55502E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75507       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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=   7823.226     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      347 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55521E-01    .65343        .75511E-03    .29755E-02
   2  alpha         5.0000        2.7037        .50000    ** at limit **
   3  Normalizat    1.0499        .27443        .34942E-03    .47503E-03
   4  Prefactor     .75508        .10945        .16761E-03    .60764E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0555208
  alpha      = 5
  Normalizat = 1.04988
  Prefactor  = 0.755076
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.226     FROM HESSE     STATUS=OK            31 CALLS      378 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55521E-01    .52496        .30205E-04   -1.5661    
   2  alpha         5.0000        2.5032        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0499        .27406        .69884E-04   -.91378    
   4  Prefactor     .75508        .10950        .33522E-04   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21435e-09
Minuit parameter uncertainties:
  1  0.341142
  2  0.00317076
  3  0.274427
  4  0.109528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83318': 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) = 7823.22634591
delta logL = 0.0148007179505

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.552e-02  3.411e-01  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  5.000e+00  3.171e-03  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  3.790e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.009e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  7.551e-01  1.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.050e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.894 17.731

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/83318/cmap_HighResolution_679968001_680227201_4FGL_J2143.5+1743_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2022-07-23 00:51:14.753903', job_id='83318', GAL2='0.76', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1658562674.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.48e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1700' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:51:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 83318: <4FGL_J2143.5+1743_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:38 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:39 2022
Terminated at Sat Jul 23 00:51:15 2022
Results reported at Sat Jul 23 00:51:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1700 325.894 17.7306 679968001 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2143.5+1743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

