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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1776
RA = 325.894, Dec = 17.7306
tmin = 699667201, tmax = 699926401
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='843367', job_status='RUN', time_executed='2023-03-08 01:17:30.496683', time_epoch_executed='1678267050.5' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843367/ft1_4FGL_J2143.5+1743_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843367/ft2_4FGL_J2143.5+1743_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843367/ft1_4FGL_J2143.5+1743_daily_bin1776.fits outfile=/scratch/kocevski/843367/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1776.fits ra=325.894 dec=17.7306 rad=12.0 tmin=699667201.0 tmax=699926401.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.90
user 3.65
sys 0.22

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

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

Number of photons that the gtmktime cut: 889

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843367/ft1_filtered_4FGL_J2143.5+1743_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/843367/ft2_4FGL_J2143.5+1743_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/843367/ltcube_699667201_699926401_4FGL_J2143.5+1743_daily_bin1776.fits outfile=/scratch/kocevski/843367/expmap_699667201_699926401_4FGL_J2143.5+1743_daily_bin1776.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/843367/ltcube_699667201_699926401_4FGL_J2143.5+1743_daily_bin1776.fits
.....................!
real 190.40
user 185.15
sys 4.85

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/843367/ft1_filtered_4FGL_J2143.5+1743_daily_bin1776.fits scfile=/scratch/kocevski/843367/ft2_4FGL_J2143.5+1743_daily_bin1776.fits outfile=/scratch/kocevski/843367/cmap_699667201_699926401_4FGL_J2143.5+1743_daily_bin1776.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843367/ft1_filtered_4FGL_J2143.5+1743_daily_bin1776.fits scfile=/scratch/kocevski/843367/ft2_4FGL_J2143.5+1743_daily_bin1776.fits outfile=/scratch/kocevski/843367/cmap_HighResolution_699667201_699926401_4FGL_J2143.5+1743_daily_bin1776.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.034       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47260E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    20.853       1.0000          .0000       .10000E+07
     4 'Prefactor '    .67712E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .59908E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9428       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11753E-01   1.0000          .0000       .10000E+07
     8 'norm      '    1.1415       1.0000          .0000       .10000E+07
     9 'norm      '    1.5988       1.0000          .0000       .10000E+07
    10 'norm      '    .62794E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .36495E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    44.942       1.0000          .0000       .10000E+07
    13 'norm      '    2.0730       1.0000          .0000       .10000E+07
    14 'Prefactor '    41.612       1.0000          .0000       .10000E+07
    15 'norm      '    2.7549       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21997       1.0000          .0000       .10000E+07
    17 'Prefactor '    12.185       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1296       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91415       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=   9754.618     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1447 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.904        1.4275        .36858E-08   -.71540E-02
   2  Prefactor     .42480E-04    83.383        .29447E-06** at limit **
   3  Prefactor     20.272        16.180       -.33174E-06    .68012E-02
   4  Prefactor     .27589E-07    19.764        .58009E-06** at limit **
   5  norm           .0000        1.3699       -.16119E-06** at limit **
   6  Prefactor     1.9521        5.5517       -.60769E-06    .10625E-03
   7  Prefactor     .11258E-06    30.956        .41464E-06** at limit **
   8  norm          1.1380        1.8944       -.12516E-06   -.15102E-03
   9  norm          1.5958        1.9497        .17786E-07    .46006E-03
  10  norm           .0000        7.1561        .10804E-05** at limit **
  11  Prefactor     .17845E-05    58.221        .48852E-06** at limit **
  12  Prefactor     48.497        29.341       -.32729E-06    .13777    
  13  norm          2.0674        1.1213       -.87296E-08    .43440E-03
  14  Prefactor     41.157        18.177        .30631E-06    .89809E-01
  15  norm          2.7343        5.3359        .11354E-06    .51897E-03
  16  Prefactor     .40962E-05    38.607        .14688E-05** at limit **
  17  Prefactor     12.132        13.544       -.21233E-06   -.48183E-02
  18  Normalizat    1.1319        .27562       -.41785E-05    .14936E-04
  19  Prefactor     .91353        .11006        .36824E-05    .39843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9038
  Prefactor  = 4.248e-05
  Prefactor  = 20.2719
  Prefactor  = 2.7589e-08
  norm       = 0
  Prefactor  = 1.95209
  Prefactor  = 1.12577e-07
  norm       = 1.13803
  norm       = 1.59581
  norm       = 0
  Prefactor  = 1.78452e-06
  Prefactor  = 48.4973
  norm       = 2.06737
  Prefactor  = 41.1566
  norm       = 2.73435
  Prefactor  = 4.09622e-06
  Prefactor  = 12.1319
  Normalizat = 1.1319
  Prefactor  = 0.913532
 **********
 **   18 **HESSE 
 **********

 FCN=   9754.618     FROM HESSE     STATUS=OK           310 CALLS     1757 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.904        20.787        .18562E-03   -1.5600    
   2  Prefactor     .42480E-04    113.33        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.272        16.221        .21905E-03   -1.5618    
   4  Prefactor     .27589E-07    20.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.3684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9521        5.5813        .74449E-03   -1.5680    
   7  Prefactor     .11258E-06    31.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1380        1.9312        .10872E-02   -1.5687    
   9  norm          1.5958        1.9668        .83826E-03   -1.5683    
  10  norm           .0000        7.1514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17845E-05    59.363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.497        47.892        .14918E-03   -1.5569    
  13  norm          2.0674        1.1268        .71714E-03   -1.5679    
  14  Prefactor     41.157        21.706        .15504E-03   -1.5580    
  15  norm          2.7343        5.3798        .61303E-03   -1.5675    
  16  Prefactor     .40962E-05    9.0403        .11431E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.132        13.573        .28672E-03   -1.5638    
  18  Normalizat    1.1319        .23432        .85225E-01   -.88734    
  19  Prefactor     .91353        .92111E-01    .45185E-01   -.95670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40282e-06
Minuit parameter uncertainties:
  1  20.7868
  2  0.138771
  3  16.2207
  4  0.00148764
  5  6.86202e-07
  6  5.58128
  7  0.00374324
  8  1.93116
  9  1.96681
  10  1.9179e-05
  11  0.020585
  12  47.8928
  13  1.12679
  14  21.7057
  15  5.37979
  16  0.0121707
  17  13.5735
  18  0.23454
  19  0.0921269
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.138e+00  1.931e+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:  9.135e-01  9.213e-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.132e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/843367/likelihoodResults_699667201_699926401_4FGL_J2143.5+1743_daily_bin1776.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) = 9754.6171812
delta logL = 0.00113757995496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9754.61716746
delta logL = 0.00115132557767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1337       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4045       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91331       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=   9754.617     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      265 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1310        1.8816        .16955E-04    .31381E-03
   2  alpha         2.4026        .95713        .31513E-01   -.12540E-03
   3  Normalizat    1.1330        .25498        .37721E-03    .32851E-04
   4  Prefactor     .91326        .10851        .17592E-03    .77419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.131
  alpha      = 2.40264
  Normalizat = 1.13297
  Prefactor  = 0.913259
 **********
 **   18 **HESSE 
 **********

 FCN=   9754.617     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1310        1.8904        .67819E-06   -1.5687    
   2  alpha         2.4026        .96215        .63026E-02   -.38955E-01
   3  Normalizat    1.1330        .25523        .15088E-04   -.88700    
   4  Prefactor     .91326        .10858        .35184E-04   -.95679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66355e-12
Minuit parameter uncertainties:
  1  1.89036
  2  0.987682
  3  0.255508
  4  0.108604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843367': 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) = 9754.6171639
delta logL = 0.00115487722542

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.131e+00  1.890e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.403e+00  9.877e-01  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:  9.133e-01  1.086e-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.133e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/843367/cmap_HighResolution_699667201_699926401_4FGL_J2143.5+1743_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2023-03-08 01:29:12.407815', job_id='843367', GAL2='0.91', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1678267752.41', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.15e-03', ts2='0.47', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1776' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:29:12 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 843367: <4FGL_J2143.5+1743_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 01:15:15 2023
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:15:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:15:17 2023
Terminated at Wed Mar  8 01:29:13 2023
Results reported at Wed Mar  8 01:29:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1776 325.894 17.7306 699667201 699926401 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 :                                   703.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

