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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1773
RA = 325.894, Dec = 17.7306
tmin = 698889601, tmax = 699148801
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='804533', job_status='RUN', time_executed='2023-02-27 10:31:50.928207', time_epoch_executed='1677522710.93' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804533/ft1_4FGL_J2143.5+1743_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804533/ft2_4FGL_J2143.5+1743_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804533/ft1_4FGL_J2143.5+1743_daily_bin1773.fits outfile=/scratch/kocevski/804533/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1773.fits ra=325.894 dec=17.7306 rad=12.0 tmin=698889601.0 tmax=699148801.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.93
user 2.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/804533/ft2_4FGL_J2143.5+1743_daily_bin1773.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/804533/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/804533/ft1_filtered_4FGL_J2143.5+1743_daily_bin1773.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.35
sys 0.14

Number of photons that the gtmktime cut: 876

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804533/ft1_filtered_4FGL_J2143.5+1743_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/804533/ft2_4FGL_J2143.5+1743_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/804533/ltcube_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.fits outfile=/scratch/kocevski/804533/expmap_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.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/804533/ltcube_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.fits
.....................!
real 190.30
user 185.24
sys 4.70

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/804533/ft1_filtered_4FGL_J2143.5+1743_daily_bin1773.fits scfile=/scratch/kocevski/804533/ft2_4FGL_J2143.5+1743_daily_bin1773.fits outfile=/scratch/kocevski/804533/cmap_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804533/ft1_filtered_4FGL_J2143.5+1743_daily_bin1773.fits scfile=/scratch/kocevski/804533/ft2_4FGL_J2143.5+1743_daily_bin1773.fits outfile=/scratch/kocevski/804533/cmap_HighResolution_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804533/ft1_filtered_4FGL_J2143.5+1743_daily_bin1773.fits', '/scratch/kocevski/804533/ft2_4FGL_J2143.5+1743_daily_bin1773.fits', expMap='/scratch/kocevski/804533/expmap_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.fits', expCube='/scratch/kocevski/804533/ltcube_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804533/Model_4FGL_J2143.5+1743_daily_bin1773.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/804533/ft1_filtered_4FGL_J2143.5+1743_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/804533/ft2_4FGL_J2143.5+1743_daily_bin1773.fits
Exposure map: /scratch/kocevski/804533/expmap_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.fits
Exposure cube: /scratch/kocevski/804533/ltcube_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804533/Model_4FGL_J2143.5+1743_daily_bin1773.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) = 9839.81177945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57659E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .73060       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36150E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30595E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .17142E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .25360       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14962E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .58174       1.0000          .0000       .10000E+07
     9 'norm      '    2.6597       1.0000          .0000       .10000E+07
    10 'norm      '    24.090       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10162E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19053       1.0000          .0000       .10000E+07
    13 'norm      '    1.4006       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.0798       1.0000          .0000       .10000E+07
    15 'norm      '    5.0825       1.0000          .0000       .10000E+07
    16 'Prefactor '    .96412E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    19.278       1.0000          .0000       .10000E+07
    18 'Normalizat'    .77313       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1127       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=   9838.834     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1209 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50515E-08    8.9497        .11024E-06** at limit **
   2  Prefactor     .22204E-09    172.43       -.31796E-05** at limit **
   3  Prefactor     .83988E-07    34.081       -.77461E-06** at limit **
   4  Prefactor     .16598E-07    8.1158        .65457E-06** at limit **
   5  norm           .0000        1.9093        .26694E-06** at limit **
   6  Prefactor     .35591        23.369        .15581E-05    .18807E-01
   7  Prefactor     .64115E-07    31.923        .11959E-05** at limit **
   8  norm          .58791        2.6361       -.34938E-06    .13745E-02
   9  norm          2.3993        6.4712       -.91657E-06    .81687E-03
  10  norm          28.380        79.214        .23877E-05   -.19861E-02
  11  Prefactor     .41633E-08    15.407       -.11236E-05** at limit **
  12  Prefactor     .24980E-08    42.062        .21947E-05** at limit **
  13  norm          1.4033        1.0437        .18337E-06   -.10565E-01
  14  Prefactor     3.8540        12.462       -.96931E-06    .16307E-01
  15  norm          5.0789        6.3524        .53212E-06   -.27680E-03
  16  Prefactor      .0000        13.675       -.87573E-06** at limit **
  17  Prefactor     19.182        11.387        .20455E-06   -.62208E-01
  18  Normalizat    .77113        .28803       -.15626E-04   -.16664E-04
  19  Prefactor     1.1128        .11341        .53274E-05   -.21586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05151e-09
  Prefactor  = 2.22045e-10
  Prefactor  = 8.39884e-08
  Prefactor  = 1.65978e-08
  norm       = 0
  Prefactor  = 0.355908
  Prefactor  = 6.41154e-08
  norm       = 0.587908
  norm       = 2.39934
  norm       = 28.3797
  Prefactor  = 4.16334e-09
  Prefactor  = 2.498e-09
  norm       = 1.40328
  Prefactor  = 3.85403
  norm       = 5.07894
  Prefactor  = 0
  Prefactor  = 19.1821
  Normalizat = 0.771132
  Prefactor  = 1.11282
 **********
 **   18 **HESSE 
 **********

 FCN=   9838.834     FROM HESSE     STATUS=OK           308 CALLS     1517 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50515E-08    8.9679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22204E-09    172.56        .58258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83988E-07    34.441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16598E-07    8.2545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.9109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35591        6.0436        .81475E-02   -1.5696    
   7  Prefactor     .64115E-07    32.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .58791        2.6504        .70880E-03   -1.5693    
   9  norm          2.3993        7.0755        .62474E-03   -1.5677    
  10  norm          28.380        85.571        .20379E-03   -1.5601    
  11  Prefactor     .41633E-08    15.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24980E-08    41.653        .11947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4033        1.0632        .91645E-03   -1.5684    
  14  Prefactor     3.8540        13.422        .57770E-03   -1.5669    
  15  norm          5.0789        6.4312        .44575E-03   -1.5663    
  16  Prefactor      .0000        13.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.182        13.060        .22784E-03   -1.5620    
  18  Normalizat    .77113        .25866        .10328       -1.0115    
  19  Prefactor     1.1128        .98971E-01    .37124E-01   -.89058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44933e-07
Minuit parameter uncertainties:
  1  0.000425288
  2  0.000388501
  3  0.00340159
  4  0.000740775
  5  1.41032e-05
  6  2.93323
  7  0.00287486
  8  2.49657
  9  7.07553
  10  85.5744
  11  0.00050498
  12  0.000647547
  13  1.06318
  14  13.4224
  15  6.43125
  16  1.68794e-05
  17  13.0599
  18  0.259076
  19  0.0989873
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.879e-01  2.497e+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:  1.113e+00  9.899e-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:  7.711e-01  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/804533/likelihoodResults_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.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) = 9838.8152491
delta logL = 0.0191069556422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9838.81434569
delta logL = 0.0200103586449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65564       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9610       1.0000          .0000       5.0000    
     3 'Normalizat'    .76088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1154       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9838.814     FROM MIGRAD    STATUS=FAILED        98 CALLS      255 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65363        2.9323        .23978E-04   -.62584E-04
   2  alpha         2.9553        3.7839        .75300E-01    .17626E-03
   3  Normalizat    .76108        .27150        .46060E-03   -.16784E-05
   4  Prefactor     1.1153        .11259        .16190E-03   -.42133E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9838.814     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      330 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65363        2.9323        .15985E-04   -1.5692    
   2  alpha         2.9553        3.7839        .35979E-02    .18314    
   3  Normalizat    .76108        .27150        .35620E-03   -1.0153    
   4  Prefactor     1.1153        .11259        .13437E-03   -.88978    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9838.814     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      357 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65363        2.3531        .95913E-06   -.99672E-04
   2  alpha         2.9553        3.6506        .15060E-01    .68686E-05
   3  Normalizat    .76108        .27226        .18424E-04   -.17278E-05
   4  Prefactor     1.1153        .11258        .64758E-05   -.70222E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.653633
  alpha      = 2.9553
  Normalizat = 0.761083
  Prefactor  = 1.11534
 **********
 **   18 **HESSE 
 **********

 FCN=   9838.814     FROM HESSE     STATUS=OK            25 CALLS      382 TOTAL
                     EDM=   .71E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65363        2.3118        .37412E-06   -1.5692    
   2  alpha         2.9553        2.0626        .30120E-02    .18314    
   3  Normalizat    .76108        .27217        .36848E-05   -1.0153    
   4  Prefactor     1.1153        .11252        .12952E-05   -.88978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06228e-14
Minuit parameter uncertainties:
  1  2.31176
  2  2.44737
  3  0.272654
  4  0.112547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804533': 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) = 9838.81434106
delta logL = 0.0200149970551

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  6.536e-01  2.312e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.955e+00  2.447e+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:  1.115e+00  1.125e-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:  7.611e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/804533/cmap_HighResolution_698889601_699148801_4FGL_J2143.5+1743_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2023-02-27 10:43:11.012168', job_id='804533', GAL2='1.12', fit_tolerance='1e-08', EG2='0.76', EG='0.77', time_epoch_completed='1677523391.01', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.00e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1773' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:43:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 804533: <4FGL_J2143.5+1743_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1773> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Feb 27 10:30:30 2023
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:30:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:30:32 2023
Terminated at Mon Feb 27 10:43:11 2023
Results reported at Mon Feb 27 10:43:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1773 325.894 17.7306 698889601 699148801 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 :                                   681.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

