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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1666
RA = 325.894, Dec = 17.7306
tmin = 671155201, tmax = 671414401
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='414418', job_status='RUN', time_executed='2022-04-12 00:35:55.663561', time_epoch_executed='1649748955.66' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414418/ft1_4FGL_J2143.5+1743_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414418/ft2_4FGL_J2143.5+1743_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414418/ft1_4FGL_J2143.5+1743_daily_bin1666.fits outfile=/scratch/kocevski/414418/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1666.fits ra=325.894 dec=17.7306 rad=12.0 tmin=671155201.0 tmax=671414401.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.14
user 3.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414418/ft2_4FGL_J2143.5+1743_daily_bin1666.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/414418/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1666.fits evtable="EVENTS" outfile="/scratch/kocevski/414418/ft1_filtered_4FGL_J2143.5+1743_daily_bin1666.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.42
user 0.26
sys 0.15

Number of photons that the gtmktime cut: 817

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414418/ft1_filtered_4FGL_J2143.5+1743_daily_bin1666.fits" evtable="EVENTS" scfile=/scratch/kocevski/414418/ft2_4FGL_J2143.5+1743_daily_bin1666.fits sctable="SC_DATA" outfile=/scratch/kocevski/414418/ltcube_671155201_671414401_4FGL_J2143.5+1743_daily_bin1666.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/414418/ft2_4FGL_J2143.5+1743_daily_bin1666.fits
.....................!
real 9.01
user 8.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414418/ft1_filtered_4FGL_J2143.5+1743_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414418/ft2_4FGL_J2143.5+1743_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/414418/ltcube_671155201_671414401_4FGL_J2143.5+1743_daily_bin1666.fits outfile=/scratch/kocevski/414418/expmap_671155201_671414401_4FGL_J2143.5+1743_daily_bin1666.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/414418/ltcube_671155201_671414401_4FGL_J2143.5+1743_daily_bin1666.fits
.....................!
real 145.47
user 141.22
sys 3.97

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414418/ft1_filtered_4FGL_J2143.5+1743_daily_bin1666.fits scfile=/scratch/kocevski/414418/ft2_4FGL_J2143.5+1743_daily_bin1666.fits outfile=/scratch/kocevski/414418/cmap_HighResolution_671155201_671414401_4FGL_J2143.5+1743_daily_bin1666.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.51
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.610       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    238.73       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.354       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.721       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    254.74       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8392       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12892E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10535E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.0224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.697       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70014E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83104       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91515       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=   8974.814     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     2999 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.611        21.025        .12300E-03    .42331E-04
   2  Prefactor     .10000E-03    8.3820        .18142E-02** at limit **
   3  Prefactor     238.73        102.90        .26203E-04    .22735E-04
   4  Prefactor     21.355        17.229        .86678E-04    .13195E-03
   5  Prefactor     22.849        26.256        .83796E-04    .11125E-04
   6  Prefactor     22.720        23.954        .84032E-04    .59527E-05
   7  norm          .10000E-03    .99369        .92092E-03** at limit **
   8  Prefactor     11.928        6.1497        .11598E-03    .33464E-03
   9  Prefactor     1.5538        6.0589        .34178E-03   -.15900E-04
  10  Prefactor     254.74        163.90        .12694E-03    .29054E-04
  11  norm          1.8382        2.2625        .14627E-03    .45857E-03
  12  Prefactor     .10002E-03    298.63        .18142E-02** at limit **
  13  norm          .10000E-03    2.9783        .17258E-02** at limit **
  14  norm          7.0136        19.023        .15138E-03   -.17708E-03
  15  Prefactor     12.703        33.540        .11241E-03    .55219E-04
  16  Prefactor     .10000E-03    21.837        .18142E-02** at limit **
  17  norm          .10000E-03    .83018        .12703E-02** at limit **
  18  Prefactor     .10000E-03    16.742        .95453E-01** at limit **
  19  norm          .10000E-03    3.0799        .16123E-02** at limit **
  20  Prefactor     .10000E-03    3.7414        .17885E-02** at limit **
  21  Prefactor     .10000E-03    13.833        .18142E-02** at limit **
  22  Normalizat    .83070        .26434        .39705E-03    .46557E-04
  23  Prefactor     .91526        .11067        .16524E-03   -.89165E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6112
  Prefactor  = 0.0001
  Prefactor  = 238.727
  Prefactor  = 21.3554
  Prefactor  = 22.849
  Prefactor  = 22.72
  norm       = 0.0001
  Prefactor  = 11.9276
  Prefactor  = 1.55382
  Prefactor  = 254.736
  norm       = 1.83817
  Prefactor  = 0.000100017
  norm       = 0.0001
  norm       = 7.01362
  Prefactor  = 12.7026
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.830698
  Prefactor  = 0.915257
 **********
 **   18 **HESSE 
 **********

 FCN=   8974.814     FROM HESSE     STATUS=OK           356 CALLS     3355 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.611        21.022        .49201E-05   -1.5056    
   2  Prefactor     .10000E-03    8.3825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     238.73        102.90        .52406E-05   -1.2605    
   4  Prefactor     21.355        17.227        .34671E-05   -1.4783    
   5  Prefactor     22.849        26.268        .33518E-05   -1.4752    
   6  Prefactor     22.720        23.961        .33613E-05   -1.4754    
   7  norm          .10000E-03    .99371        .18418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.928        6.1484        .46393E-05   -1.5017    
   9  Prefactor     1.5538        6.0558        .13671E-04   -1.5459    
  10  Prefactor     254.74        163.88        .25387E-04   -1.2502    
  11  norm          1.8382        2.2620        .58508E-05   -1.5437    
  12  Prefactor     .10002E-03    298.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9908        .34516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.0136        19.020        .60554E-05   -1.5178    
  15  Prefactor     12.703        33.558        .44965E-05   -1.4995    
  16  Prefactor     .10000E-03    21.838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .83187        .25405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.469        .10053       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0811        .32246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7416        .35771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .83070        .26447        .15882E-04   -.98940    
  23  Prefactor     .91526        .11075        .33048E-04   -.95610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9501e-10
Minuit parameter uncertainties:
  1  21.037
  2  3.31374e-06
  3  102.974
  4  17.2311
  5  26.2813
  6  23.9708
  7  2.5918e-06
  8  6.14877
  9  6.05816
  10  164.178
  11  2.26213
  12  0.00451788
  13  4.32685e-05
  14  19.0359
  15  33.6083
  16  3.37531e-05
  17  3.24257e-05
  18  0.000361179
  19  6.24442e-06
  20  2.71392e-06
  21  1.76918e-05
  22  0.264877
  23  0.110779
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.838e+00  2.262e+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

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.153e-01  1.108e-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:  8.307e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/414418/likelihoodResults_671155201_671414401_4FGL_J2143.5+1743_daily_bin1666.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) = 8974.79834325
delta logL = 0.015353431796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8974.79794797
delta logL = 0.0157487111737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8654       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6009       1.0000          .0000       5.0000    
     3 'Normalizat'    .82479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91680       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=   8974.798     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8654        2.1829        .71485E-03   -.87381E-03
   2  alpha         2.6010        .84656        .26910E-01    .23300E-04
   3  Normalizat    .82479        .25194        .39836E-03    .13037E-03
   4  Prefactor     .91681        .10945        .16511E-03    .34757E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86541
  alpha      = 2.60096
  Normalizat = 0.824785
  Prefactor  = 0.916807
 **********
 **   18 **HESSE 
 **********

 FCN=   8974.798     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8654        2.1679        .28594E-04   -1.5435    
   2  alpha         2.6010        .84138        .10764E-02    .40394E-01
   3  Normalizat    .82479        .25217        .15934E-04   -.99156    
   4  Prefactor     .91681        .10950        .33023E-04   -.95556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68219e-10
Minuit parameter uncertainties:
  1  2.16799
  2  0.858164
  3  0.252525
  4  0.109524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414418': 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) = 8974.79794797
delta logL = 0.0157487138003

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.865e+00  2.168e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.601e+00  8.582e-01  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:  9.168e-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:  8.248e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 325.894 17.731
Photon Index (Free Index): 2.60 +/- 0.86
Photon Flux (Free Index): 4.16e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.23e-05

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/414418/cmap_HighResolution_671155201_671414401_4FGL_J2143.5+1743_daily_bin1666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.57e-02', photon_flux2='4.16e-08', job_status='DONE', time_completed='2022-04-12 00:47:47.741391', photon_index_error2='0.86', photon_index2='2.60', ts='0.99', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.23e-05', EG='0.83', time_epoch_completed='1649749667.74', return_code='0', job_id='414418', GAL2='0.92', EG2='0.82', return_code2='0', photon_flux_error2='5.39e-08', ts2='1.02', photon_index='2.45' WHERE bin_id='1666' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:47:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 414418: <4FGL_J2143.5+1743_daily_bin1666> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 12 00:35:32 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:35:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:35:33 2022
Terminated at Tue Apr 12 00:47:48 2022
Results reported at Tue Apr 12 00:47:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1666 325.894 17.7306 671155201 671414401 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 :                                   712.18 sec.
    Max Memory :                                 792 MB
    Average Memory :                             345.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

