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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1735
RA = 325.894, Dec = 17.7306
tmin = 689040001, tmax = 689299201
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='866552', job_status='RUN', time_executed='2022-11-05 00:36:56.083979', time_epoch_executed='1667633816.08' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866552

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866552/ft1_4FGL_J2143.5+1743_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866552/ft1_4FGL_J2143.5+1743_daily_bin1735.fits outfile=/scratch/kocevski/866552/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1735.fits ra=325.894 dec=17.7306 rad=12.0 tmin=689040001.0 tmax=689299201.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.62
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.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/866552/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1735.fits evtable="EVENTS" outfile="/scratch/kocevski/866552/ft1_filtered_4FGL_J2143.5+1743_daily_bin1735.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 850

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866552/ft1_filtered_4FGL_J2143.5+1743_daily_bin1735.fits" evtable="EVENTS" scfile=/scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits sctable="SC_DATA" outfile=/scratch/kocevski/866552/ltcube_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.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/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits
.....................!
real 12.10
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866552/ft1_filtered_4FGL_J2143.5+1743_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/866552/ltcube_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.fits outfile=/scratch/kocevski/866552/expmap_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.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/866552/ltcube_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.fits
.....................!
real 190.12
user 185.19
sys 4.63

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/866552/ft1_filtered_4FGL_J2143.5+1743_daily_bin1735.fits scfile=/scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits outfile=/scratch/kocevski/866552/cmap_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866552/ft1_filtered_4FGL_J2143.5+1743_daily_bin1735.fits scfile=/scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits outfile=/scratch/kocevski/866552/cmap_HighResolution_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866552/ft1_filtered_4FGL_J2143.5+1743_daily_bin1735.fits', '/scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits', expMap='/scratch/kocevski/866552/expmap_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.fits', expCube='/scratch/kocevski/866552/ltcube_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866552/Model_4FGL_J2143.5+1743_daily_bin1735.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/866552/ft1_filtered_4FGL_J2143.5+1743_daily_bin1735.fits
Spacecraft file(s): /scratch/kocevski/866552/ft2_4FGL_J2143.5+1743_daily_bin1735.fits
Exposure map: /scratch/kocevski/866552/expmap_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.fits
Exposure cube: /scratch/kocevski/866552/ltcube_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866552/Model_4FGL_J2143.5+1743_daily_bin1735.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.326       1.0000          .0000       .10000E+07
     2 'Prefactor '    85.474       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50318E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12296E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .16190E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16657       1.0000          .0000       .10000E+07
     7 'Prefactor '    47.766       1.0000          .0000       .10000E+07
     8 'norm      '    1.0176       1.0000          .0000       .10000E+07
     9 'norm      '    2.1696       1.0000          .0000       .10000E+07
    10 'norm      '    .30407E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    183.02       1.0000          .0000       .10000E+07
    12 'Prefactor '    .15856E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.6929       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.469       1.0000          .0000       .10000E+07
    15 'norm      '    .54068E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .13951E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .27684E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    .86232       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0276       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=   9348.887     FROM MIGRAD    STATUS=CONVERGED    147 CALLS      949 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.480        6.7780        .72676E-08    .72189E-01
   2  Prefactor     82.769        38.995       -.43355E-06   -.32004E-01
   3  Prefactor     .39180E-06    28.757       -.11359E-06** at limit **
   4  Prefactor     .13212E-07    13.222        .76497E-06** at limit **
   5  norm          .16653E-09    7.6906        .80505E-06** at limit **
   6  Prefactor     .76450E-04    77.152       -.28434E-05** at limit **
   7  Prefactor     52.694        73.438        .10276E-05   -.18472E-01
   8  norm          .98886        2.4006       -.20058E-06    .27857E-02
   9  norm          2.1696        2.3368       -.11634E-06    .40547E-02
  10  norm          .19251E-06    38.544        .69594E-06** at limit **
  11  Prefactor     184.47        45.593        .46556E-06    .20779E-01
  12  Prefactor     .78215E-07    16.797        .11387E-05** at limit **
  13  norm          1.6871        .97473       -.34556E-07    .57909E-02
  14  Prefactor     16.622        16.303       -.65849E-06   -.94630E-01
  15  norm           .0000        3.5815       -.26763E-06** at limit **
  16  Prefactor     .72164E-09    5.4460        .89144E-06** at limit **
  17  Prefactor     .53291E-08    43.075        .55177E-05** at limit **
  18  Normalizat    .86303        .27177       -.18176E-04    .52057E-03
  19  Prefactor     1.0279        .11491        .42539E-06    .10910E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4797
  Prefactor  = 82.7689
  Prefactor  = 3.91798e-07
  Prefactor  = 1.32117e-08
  norm       = 1.66533e-10
  Prefactor  = 7.64495e-05
  Prefactor  = 52.694
  norm       = 0.988857
  norm       = 2.16955
  norm       = 1.92513e-07
  Prefactor  = 184.466
  Prefactor  = 7.82152e-08
  norm       = 1.68713
  Prefactor  = 16.6218
  norm       = 0
  Prefactor  = 7.21645e-10
  Prefactor  = 5.32907e-09
  Normalizat = 0.863034
  Prefactor  = 1.02791
 **********
 **   18 **HESSE 
 **********

 FCN=   9348.887     FROM HESSE     STATUS=OK           320 CALLS     1269 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.480        25.425        .15948E-03   -1.5584    
   2  Prefactor     82.769        79.165        .10817E-03   -1.5526    
   3  Prefactor     .39180E-06    30.626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13212E-07    13.310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .16653E-09    7.5282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .76450E-04    2.9862        .10252E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.694        84.561        .14470E-03   -1.5563    
   8  norm          .98886        2.4807        .12876E-02   -1.5688    
   9  norm          2.1696        2.3594        .69885E-03   -1.5679    
  10  norm          .19251E-06    38.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     184.47        46.563        .73925E-04   -1.5436    
  12  Prefactor     .78215E-07    16.941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6871        .98079        .80861E-03   -1.5682    
  14  Prefactor     16.622        20.566        .24653E-03   -1.5626    
  15  norm           .0000        3.5803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .72164E-09    5.4581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .53291E-08    10.157        .93891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .86303        .24614        .97164E-01   -.97771    
  19  Prefactor     1.0279        .10015        .41455E-01   -.91805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89073e-07
Minuit parameter uncertainties:
  1  25.4249
  2  79.1656
  3  0.00692786
  4  0.000838069
  5  6.85705e-05
  6  0.0302186
  7  84.563
  8  2.48073
  9  2.35936
  10  0.00545622
  11  46.5635
  12  0.00230255
  13  0.98079
  14  20.5664
  15  1.60657e-05
  16  0.000124099
  17  0.00046504
  18  0.246455
  19  0.100167
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  9.889e-01  2.481e+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.028e+00  1.002e-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.630e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/866552/likelihoodResults_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.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) = 9348.87802293
delta logL = 0.00871340034064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9348.87723827
delta logL = 0.00949806097196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0719       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7026       1.0000          .0000       5.0000    
     3 'Normalizat'    .85657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0295       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=   9348.877     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      252 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0719        2.4253        .10480E-03   -.16644E-01
   2  alpha         2.7026        1.7558        .53363E-01    .37363E-04
   3  Normalizat    .85661        .26816        .43192E-03    .27901E-05
   4  Prefactor     1.0295        .11550        .17194E-03   -.92569E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07191
  alpha      = 2.70265
  Normalizat = 0.856607
  Prefactor  = 1.0295
 **********
 **   18 **HESSE 
 **********

 FCN=   9348.877     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0719        2.3794        .41922E-05   -1.5687    
   2  alpha         2.7026        1.7358        .21345E-02    .81147E-01
   3  Normalizat    .85661        .26868        .17277E-04   -.98002    
   4  Prefactor     1.0295        .11551        .68775E-05   -.91752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7051e-09
Minuit parameter uncertainties:
  1  2.37945
  2  1.92031
  3  0.269095
  4  0.115538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866552': 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) = 9348.87723826
delta logL = 0.00949806834433

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.072e+00  2.379e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  2.703e+00  1.920e+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.030e+00  1.155e-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.566e-01  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/866552/cmap_HighResolution_689040001_689299201_4FGL_J2143.5+1743_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2022-11-05 00:47:50.148835', job_id='866552', GAL2='1.03', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1667634470.15', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.50e-03', ts2='0.24', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1735' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:47:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 866552: <4FGL_J2143.5+1743_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:35:16 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:35:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:35:17 2022
Terminated at Sat Nov  5 00:47:51 2022
Results reported at Sat Nov  5 00:47:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1735 325.894 17.7306 689040001 689299201 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 :                                   656.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

