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 50 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7451
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1729
RA = 325.894, Dec = 17.7306
tmin = 687484801, tmax = 687744001
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='378643', job_status='RUN', time_executed='2022-10-18 00:36:21.884800', time_epoch_executed='1666078581.88' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378643/ft1_4FGL_J2143.5+1743_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378643/ft1_4FGL_J2143.5+1743_daily_bin1729.fits outfile=/scratch/kocevski/378643/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1729.fits ra=325.894 dec=17.7306 rad=12.0 tmin=687484801.0 tmax=687744001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.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/378643/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1729.fits evtable="EVENTS" outfile="/scratch/kocevski/378643/ft1_filtered_4FGL_J2143.5+1743_daily_bin1729.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378643/ft1_filtered_4FGL_J2143.5+1743_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/378643/ltcube_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.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/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits
.....................!
real 12.39
user 12.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378643/ft1_filtered_4FGL_J2143.5+1743_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/378643/ltcube_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.fits outfile=/scratch/kocevski/378643/expmap_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.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/378643/ltcube_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.fits
.....................!
real 192.47
user 187.26
sys 4.75

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 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/378643/ft1_filtered_4FGL_J2143.5+1743_daily_bin1729.fits scfile=/scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits outfile=/scratch/kocevski/378643/cmap_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378643/ft1_filtered_4FGL_J2143.5+1743_daily_bin1729.fits scfile=/scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits outfile=/scratch/kocevski/378643/cmap_HighResolution_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.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 0.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378643/ft1_filtered_4FGL_J2143.5+1743_daily_bin1729.fits', '/scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits', expMap='/scratch/kocevski/378643/expmap_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.fits', expCube='/scratch/kocevski/378643/ltcube_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378643/Model_4FGL_J2143.5+1743_daily_bin1729.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  0.000e+00  1.000e+06 ( 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 -5.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/378643/ft1_filtered_4FGL_J2143.5+1743_daily_bin1729.fits
Spacecraft file(s): /scratch/kocevski/378643/ft2_4FGL_J2143.5+1743_daily_bin1729.fits
Exposure map: /scratch/kocevski/378643/expmap_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.fits
Exposure cube: /scratch/kocevski/378643/ltcube_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378643/Model_4FGL_J2143.5+1743_daily_bin1729.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) = 6589.61397763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40688E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69044       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10201E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .67198E-04   1.0000          .0000       .10000E+07
     5 'norm      '    1.9978       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.5928       1.0000          .0000       .10000E+07
     7 'Prefactor '    66.862       1.0000          .0000       .10000E+07
     8 'norm      '    2.5306       1.0000          .0000       .10000E+07
     9 'norm      '    .79443E-02   1.0000          .0000       .10000E+07
    10 'norm      '    21.008       1.0000          .0000       .10000E+07
    11 'Prefactor '    .49969E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16103E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .46629E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    52.291       1.0000          .0000       .10000E+07
    15 'norm      '    5.4122       1.0000          .0000       .10000E+07
    16 'Prefactor '    .40988E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.0062       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3163       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6589.575     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1430 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.7300        .24377E-06** at limit **
   2  Prefactor     .11537E-05    63.867        .24218E-05** at limit **
   3  Prefactor      .0000        3.2542        .55075E-06** at limit **
   4  Prefactor      .0000        7.0487       -.47821E-06** at limit **
   5  norm          2.0008        2.0737       -.15211E-07    .44360E-03
   6  Prefactor     3.7544        6.8799        .63265E-06    .30747E-03
   7  Prefactor     63.333        127.60        .42714E-05    .29859E-03
   8  norm          2.5523        2.8122       -.26085E-06   -.12655E-02
   9  norm          .55511E-10    10.510       -.10448E-05** at limit **
  10  norm          22.144        8.0699        .22319E-06   -.23770E-01
  11  Prefactor      .0000        22.609       -.13550E-05** at limit **
  12  Prefactor     .13267E-06    30.676       -.30714E-05** at limit **
  13  norm           .0000        .47345        .72911E-07** at limit **
  14  Prefactor     52.888        28.066        .99898E-06   -.57282E-02
  15  norm          5.3624        5.5153       -.24334E-06   -.59020E-03
  16  Prefactor      .0000        7.2007       -.10952E-06** at limit **
  17  Prefactor     1.5300        11.323       -.12836E-05    .17225E-01
  18  Normalizat    1.3100        .28992        .23396E-05   -.69217E-05
  19  Prefactor     .77660        .11850        .10102E-05   -.15630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.15369e-06
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.00084
  Prefactor  = 3.7544
  Prefactor  = 63.3328
  norm       = 2.55226
  norm       = 5.55112e-11
  norm       = 22.144
  Prefactor  = 0
  Prefactor  = 1.32672e-07
  norm       = 0
  Prefactor  = 52.8876
  norm       = 5.36236
  Prefactor  = 0
  Prefactor  = 1.52997
  Normalizat = 1.30998
  Prefactor  = 0.776602
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.575     FROM HESSE     STATUS=OK           308 CALLS     1738 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.7251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11537E-05    86.745        .61488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        3.2596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        7.0572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0008        2.0681        .73252E-03   -1.5680    
   6  Prefactor     3.7544        6.8788        .53287E-03   -1.5669    
   7  Prefactor     63.333        127.96        .12230E-03   -1.5549    
   8  norm          2.5523        2.8281        .64181E-03   -1.5676    
   9  norm          .55511E-10    2.2867        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.144        28.025        .21824E-03   -1.5614    
  11  Prefactor      .0000        22.748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13267E-06    33.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .47117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.888        28.647        .13830E-03   -1.5563    
  15  norm          5.3624        5.5396        .43171E-03   -1.5662    
  16  Prefactor      .0000        7.1949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5300        42.825        .43984E-03   -1.5683    
  18  Normalizat    1.3100        .25130        .72767E-01   -.83269    
  19  Prefactor     .77660        .99347E-01    .43391E-01   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51544e-08
Minuit parameter uncertainties:
  1  4.25134e-06
  2  0.0200082
  3  4.0727e-07
  4  9.60947e-06
  5  2.06809
  6  6.8788
  7  127.965
  8  2.82814
  9  2.59074e-05
  10  28.0248
  11  1.64416e-05
  12  0.00420519
  13  3.38365e-07
  14  28.6471
  15  5.53961
  16  2.11199e-05
  17  16.1892
  18  0.251538
  19  0.0993703
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  2.552e+00  2.828e+00  0.000e+00  1.000e+06 ( 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 -5.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.766e-01  9.937e-02  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.310e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 325.894 17.731
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 5.65e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.64e-05

TS (Fixed Index): 1.11
Ra Dec: 325.894 17.731
Photon Flux Upper Limit: 1.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378643/likelihoodResults_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.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) = 6589.57260696
delta logL = 0.00201711507088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6589.57228552
delta logL = 0.00233856369596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6040       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3638       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77497       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6589.572     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      248 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6046        2.9242        .13549E-04   -.31213E-03
   2  alpha         2.3636        1.1865        .24912E-01   -.29609E-05
   3  Normalizat    1.3146        .28431        .32152E-03   -.41016E-05
   4  Prefactor     .77492        .11976        .17222E-03   -.10562E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60461
  alpha      = 2.36355
  Normalizat = 1.31459
  Prefactor  = 0.774924
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.572     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6046        2.8822        .54197E-06   -1.5676    
   2  alpha         2.3636        1.1716        .99646E-03   -.54605E-01
   3  Normalizat    1.3146        .28455        .12861E-04   -.83132    
   4  Prefactor     .77492        .11975        .68888E-05   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69976e-13
Minuit parameter uncertainties:
  1  2.88221
  2  1.21959
  3  0.284886
  4  0.119793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378643': 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) = 6589.57228542
delta logL = 0.00233865618156

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  2.605e+00  2.882e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.364e+00  1.220e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  3.790e-02  0.000e+00 -5.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.749e-01  1.198e-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.315e+00  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 325.894 17.731
Photon Index (Free Index): 2.36 +/- 1.22
Photon Flux (Free Index): 4.91e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.57e-05 +/- 2.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/378643/cmap_HighResolution_687484801_687744001_4FGL_J2143.5+1743_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-05', comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='1.57e-05', photon_flux_error='5.65e-08', dlogl='2.34e-03', energy_flux='1.48e-05', photon_flux2='4.91e-08', job_status='DONE', time_completed='2022-10-18 00:45:58.227575', photon_index_error2='1.22', photon_index2='2.36', ts='1.11', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='2.11e-05', EG='1.31', time_epoch_completed='1666079158.23', return_code='0', job_id='378643', GAL2='0.77', EG2='1.31', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='6.10e-08', ts2='1.11', photon_index='2.45' WHERE bin_id='1729' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:45:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 378643: <4FGL_J2143.5+1743_daily_bin1729> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1729> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:22 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:35:23 2022
Terminated at Tue Oct 18 00:45:58 2022
Results reported at Tue Oct 18 00:45:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1729 325.894 17.7306 687484801 687744001 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 :                                   578.00 sec.
    Max Memory :                                 1092 MB
    Average Memory :                             343.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            636 sec.

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

