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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1710
RA = 325.894, Dec = 17.7306
tmin = 682560001, tmax = 682819201
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='235989', job_status='RUN', time_executed='2022-09-16 23:30:09.287034', time_epoch_executed='1663396209.29' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235989/ft1_4FGL_J2143.5+1743_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235989/ft2_4FGL_J2143.5+1743_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235989/ft1_4FGL_J2143.5+1743_daily_bin1710.fits outfile=/scratch/kocevski/235989/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1710.fits ra=325.894 dec=17.7306 rad=12.0 tmin=682560001.0 tmax=682819201.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.67
user 3.42
sys 0.23

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

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

Number of photons that the gtmktime cut: 775

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235989/ft1_filtered_4FGL_J2143.5+1743_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/235989/ft2_4FGL_J2143.5+1743_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/235989/ltcube_682560001_682819201_4FGL_J2143.5+1743_daily_bin1710.fits outfile=/scratch/kocevski/235989/expmap_682560001_682819201_4FGL_J2143.5+1743_daily_bin1710.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/235989/ltcube_682560001_682819201_4FGL_J2143.5+1743_daily_bin1710.fits
.....................!
real 192.76
user 186.74
sys 5.65

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/235989/ft1_filtered_4FGL_J2143.5+1743_daily_bin1710.fits scfile=/scratch/kocevski/235989/ft2_4FGL_J2143.5+1743_daily_bin1710.fits outfile=/scratch/kocevski/235989/cmap_682560001_682819201_4FGL_J2143.5+1743_daily_bin1710.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235989/ft1_filtered_4FGL_J2143.5+1743_daily_bin1710.fits scfile=/scratch/kocevski/235989/ft2_4FGL_J2143.5+1743_daily_bin1710.fits outfile=/scratch/kocevski/235989/cmap_HighResolution_682560001_682819201_4FGL_J2143.5+1743_daily_bin1710.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8297.4122697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.933       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18371E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .54231E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .58064E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .32638E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7463       1.0000          .0000       .10000E+07
     7 'Prefactor '    .54897E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .19230       1.0000          .0000       .10000E+07
     9 'norm      '    .27416       1.0000          .0000       .10000E+07
    10 'norm      '    1.6686       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.146       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13866       1.0000          .0000       .10000E+07
    13 'norm      '    .40823       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.519       1.0000          .0000       .10000E+07
    15 'norm      '    .10511E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .80636       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34339E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    .18230       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2946       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=   8297.411     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1867 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.877        13.847        .83537E-08    .50682E-01
   2  Prefactor     .53994E-05    14.534       -.44177E-07** at limit **
   3  Prefactor     .82712E-08    4.3062       -.12204E-07** at limit **
   4  Prefactor     .10103E-05    10.205       -.90993E-07** at limit **
   5  norm           .0000        1.4633       -.14584E-07** at limit **
   6  Prefactor     7.7669        6.7688       -.28354E-07    .58038E-03
   7  Prefactor     .20483E-05    11.502       -.97695E-07** at limit **
   8  norm          .19137        2.0875        .14119E-06** at limit **
   9  norm          .26480        5.4886        .35138E-06    .42682E-02
  10  norm          1.6781        5.4389       -.47955E-08   -.26370E-01
  11  Prefactor     16.165        2.8650        .45624E-08   -.14833E-01
  12  Prefactor     .10825E-06    47.262       -.14401E-06** at limit **
  13  norm          .40777        .76601        .70189E-08   -.18810E-02
  14  Prefactor     31.469        7.9655       -.20046E-09    .86107E-01
  15  norm          .11657E-08    3.6839       -.89377E-07** at limit **
  16  Prefactor     .80732        .50138        .39930E-09    .16729E-02
  17  Prefactor     .72164E-09    5.2798       -.30408E-07** at limit **
  18  Normalizat    .18183        .25599       -.14679E-04   -.69979E-04
  19  Prefactor     1.2949        .11697        .16422E-05   -.19001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.877
  Prefactor  = 5.3994e-06
  Prefactor  = 8.27116e-09
  Prefactor  = 1.0103e-06
  norm       = 0
  Prefactor  = 7.76686
  Prefactor  = 2.04831e-06
  norm       = 0.191367
  norm       = 0.264802
  norm       = 1.67813
  Prefactor  = 16.1654
  Prefactor  = 1.08247e-07
  norm       = 0.407768
  Prefactor  = 31.4691
  norm       = 1.16573e-09
  Prefactor  = 0.807316
  Prefactor  = 7.21645e-10
  Normalizat = 0.181834
  Prefactor  = 1.29495
 **********
 **   18 **HESSE 
 **********

 FCN=   8297.411     FROM HESSE     STATUS=NOT POSDEF   316 CALLS     2183 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.877        22.789        .21863E-03   -1.5617    
   2  Prefactor     .53994E-05    26.864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .82712E-08    4.2874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10103E-05    28.146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.4294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7669        13.134        .36005E-03   -1.5652    
   7  Prefactor     .20483E-05    27.669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19137        2.0792        .32802E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .26480        5.2054        .55335E-02   -1.5698    
  10  norm          1.6781        18.984        .81589E-03   -1.5682    
  11  Prefactor     16.165        28.427        .24899E-03   -1.5628    
  12  Prefactor     .10825E-06    58.298        .12989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40777        1.4217        .88540E-03   -1.5695    
  14  Prefactor     31.469        27.571        .17814E-03   -1.5596    
  15  norm          .11657E-08    3.6480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .80732        8.0965        .52462E-03   -1.5690    
  17  Prefactor     .72164E-09    5.1523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .18183        6.0634        .17695       -1.3077    
  19  Prefactor     1.2949        .67422        .32704E-01   -.83457    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.21476e-07
Minuit parameter uncertainties:
  1  22.7891
  2  0.0240872
  3  0.000376364
  4  0.0106651
  5  3.84728e-06
  6  13.1342
  7  0.0150565
  8  1.26158
  9  2.3481
  10  11.2885
  11  28.4277
  12  0.00502449
  13  1.42171
  14  27.5709
  15  0.000129066
  16  5.11329
  17  0.000123133
  18  1.6444
  19  0.678832
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8297.41091051

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.914e-01  1.262e+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.295e+00  6.788e-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.818e-01  1.644e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/235989/likelihoodResults_682560001_682819201_4FGL_J2143.5+1743_daily_bin1710.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) = 8297.38259967
delta logL = 0.0283108408294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8297.37662446
delta logL = 0.0342860537839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31097       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9436       1.0000          .0000       5.0000    
     3 'Normalizat'    .18427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2934       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=   8297.377     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      254 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31064        1.1355        .15467E-03    .68828E-01
   2  alpha         1.9433        1.4248        .40420E-01   -.13754E-04
   3  Normalizat    .18438        .24295        .76147E-03    .28934E-04
   4  Prefactor     1.2933        .11644        .14419E-03   -.48885E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.310643
  alpha      = 1.94333
  Normalizat = 0.184384
  Prefactor  = 1.29333
 **********
 **   18 **HESSE 
 **********

 FCN=   8297.377     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31064        1.1515        .30934E-04   -1.5697    
   2  alpha         1.9433        1.4476        .16168E-02   -.22455    
   3  Normalizat    .18438        .24223        .30459E-04   -1.3058    
   4  Prefactor     1.2933        .11609        .57675E-05   -.83505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01958e-10
Minuit parameter uncertainties:
  1  1.15153
  2  1.54996
  3  0.24364
  4  0.116111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235989': 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) = 8297.37662431
delta logL = 0.0342862003999

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  3.106e-01  1.152e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  1.943e+00  1.550e+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.293e+00  1.161e-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.844e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/235989/cmap_HighResolution_682560001_682819201_4FGL_J2143.5+1743_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2022-09-16 23:41:48.636414', job_id='235989', GAL2='1.29', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1663396908.64', return_code2='0', ts='0.03', comment='SUCCESS', return_code='102', GAL='1.29', dlogl='3.43e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1710' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:41:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 235989: <4FGL_J2143.5+1743_daily_bin1710> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1710> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 16 23:25:23 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:26:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:26:01 2022
Terminated at Fri Sep 16 23:41:49 2022
Results reported at Fri Sep 16 23:41:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1710 325.894 17.7306 682560001 682819201 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 :                                   701.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            986 sec.

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

