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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1750
RA = 325.894, Dec = 17.7306
tmin = 692928001, tmax = 693187201
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='25957', job_status='RUN', time_executed='2022-12-20 01:48:22.017821', time_epoch_executed='1671529702.02' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25957/ft1_4FGL_J2143.5+1743_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25957/ft2_4FGL_J2143.5+1743_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25957/ft1_4FGL_J2143.5+1743_daily_bin1750.fits outfile=/scratch/kocevski/25957/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1750.fits ra=325.894 dec=17.7306 rad=12.0 tmin=692928001.0 tmax=693187201.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.54
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25957/ft1_filtered_4FGL_J2143.5+1743_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/25957/ft2_4FGL_J2143.5+1743_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/25957/ltcube_692928001_693187201_4FGL_J2143.5+1743_daily_bin1750.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/25957/ft2_4FGL_J2143.5+1743_daily_bin1750.fits
.....................!
real 11.86
user 11.39
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25957/ft1_filtered_4FGL_J2143.5+1743_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/25957/ft2_4FGL_J2143.5+1743_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/25957/ltcube_692928001_693187201_4FGL_J2143.5+1743_daily_bin1750.fits outfile=/scratch/kocevski/25957/expmap_692928001_693187201_4FGL_J2143.5+1743_daily_bin1750.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/25957/ltcube_692928001_693187201_4FGL_J2143.5+1743_daily_bin1750.fits
.....................!
real 191.85
user 185.97
sys 5.12

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46005E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.502       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18493E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .95784       1.0000          .0000       .10000E+07
     5 'norm      '    9.3773       1.0000          .0000       .10000E+07
     6 'Prefactor '    .21908E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .27395       1.0000          .0000       .10000E+07
     8 'norm      '    3.1147       1.0000          .0000       .10000E+07
     9 'norm      '    .63323       1.0000          .0000       .10000E+07
    10 'norm      '    .27343E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13529       1.0000          .0000       .10000E+07
    12 'Prefactor '    65.143       1.0000          .0000       .10000E+07
    13 'norm      '    .34860       1.0000          .0000       .10000E+07
    14 'Prefactor '    .98116E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.0854       1.0000          .0000       .10000E+07
    16 'Prefactor '    .75773E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    11.195       1.0000          .0000       .10000E+07
    18 'Normalizat'    .88992       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96379       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=   7910.539     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1440 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    4.1834        .91351E-06** at limit **
   2  Prefactor     12.112        76.919        .45125E-05   -.48304E-03
   3  Prefactor      .0000        20.400        .28999E-07** at limit **
   4  Prefactor     .93605        2.5028       -.34461E-05    .16751E-02
   5  norm          9.3902        4.5864       -.20478E-06   -.23529E-02
   6  Prefactor      .0000        4.0537        .49133E-06** at limit **
   7  Prefactor     .55511E-09    59.543       -.59972E-05** at limit **
   8  norm          3.1191        2.4629       -.51380E-06   -.22974E-02
   9  norm          .63524        2.0286        .98044E-06   -.80502E-03
  10  norm           .0000        7.6106       -.12202E-05** at limit **
  11  Prefactor     .11657E-08    42.941       -.14500E-05** at limit **
  12  Prefactor     64.737        47.113        .92869E-05    .12171E-02
  13  norm          .35014        .92975       -.44239E-07   -.27533E-03
  14  Prefactor      .0000        14.578        .24275E-05** at limit **
  15  norm          2.0854        2.5203       -.40224E-06    .28620E-03
  16  Prefactor      .0000        6.7969       -.46366E-06** at limit **
  17  Prefactor     11.171        11.156        .18643E-05   -.99668E-03
  18  Normalizat    .89044        .27412       -.28479E-04   -.16948E-03
  19  Prefactor     .96343        .11738        .97346E-05   -.43320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 12.1117
  Prefactor  = 0
  Prefactor  = 0.936047
  norm       = 9.39024
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  norm       = 3.11908
  norm       = 0.635236
  norm       = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 64.7366
  norm       = 0.350136
  Prefactor  = 0
  norm       = 2.08542
  Prefactor  = 0
  Prefactor  = 11.1711
  Normalizat = 0.890439
  Prefactor  = 0.963428
 **********
 **   18 **HESSE 
 **********

 FCN=   7910.539     FROM HESSE     STATUS=OK           306 CALLS     1746 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    4.1785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.112        76.646        .30893E-03   -1.5638    
   3  Prefactor      .0000        20.330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93605        146.34        .42267E-03   -1.5689    
   5  norm          9.3902        4.6195        .32703E-03   -1.5647    
   6  Prefactor      .0000        4.0423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-09    59.507        .10584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1191        2.4772        .57427E-03   -1.5673    
   9  norm          .63524        2.0341        .66302E-03   -1.5692    
  10  norm           .0000        7.6080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11657E-08    42.158        .13064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     64.737        47.327        .12391E-03   -1.5547    
  13  norm          .35014        .93604        .95700E-03   -1.5696    
  14  Prefactor      .0000        14.559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0854        2.5275        .71471E-03   -1.5679    
  16  Prefactor      .0000        6.7885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.171        11.139        .29917E-03   -1.5641    
  18  Normalizat    .89044        .23151        .85008E-01   -.96797    
  19  Prefactor     .96343        .97553E-01    .45813E-01   -.93959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84203e-09
Minuit parameter uncertainties:
  1  3.34965e-05
  2  60.9374
  3  3.62353e-05
  4  23.4082
  5  4.61947
  6  1.71416e-05
  7  0.000360634
  8  2.47724
  9  2.03415
  10  1.82515e-05
  11  0.000439345
  12  47.3275
  13  0.936036
  14  3.16712e-05
  15  2.52747
  16  1.02901e-05
  17  11.1391
  18  0.231765
  19  0.0975711
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  3.119e+00  2.477e+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.634e-01  9.757e-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:  8.904e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 325.894 17.731
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/25957/likelihoodResults_692928001_693187201_4FGL_J2143.5+1743_daily_bin1750.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) = 7909.52481419
delta logL = 1.01379127478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7909.51968162
delta logL = 1.01892384046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4091       1.0000          .0000       .10000E+07
     2 'alpha     '    3.4404       1.0000          .0000       5.0000    
     3 'Normalizat'    .82297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98218       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.

 FCN=   7909.520     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      240 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4091        26.277        .65931E-03    .11929E-01
   2  alpha         3.4404        4.0392        .42651        .38399E-04
   3  Normalizat    .82303        .83844E-01    .88041E-01    .37046E-04
   4  Prefactor     .98214        .38525E-01    .46044E-01    .40515E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.40914
  alpha      = 3.44037
  Normalizat = 0.823029
  Prefactor  = 0.982145
 **********
 **   18 **HESSE 
 **********

 FCN=   7909.520     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4091        2.3677        .75058E-05   -1.5677    
   2  alpha         3.4404        .86324        .18338E-01    .38564    
   3  Normalizat    .82303        .26740        .38990E-03   -.99220    
   4  Prefactor     .98214        .11723        .15927E-03   -.93327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91882e-09
Minuit parameter uncertainties:
  1  2.36772
  2  0.884582
  3  0.267827
  4  0.117263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25957': 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) = 7909.51968156
delta logL = 1.01892390812

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  2.409e+00  2.368e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  3.440e+00  8.846e-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.821e-01  1.173e-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.230e-01  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 325.894 17.731
Photon Index (Free Index): 3.44 +/- 0.88
Photon Flux (Free Index): 1.13e-07 +/- 6.56e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.16e-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/25957/cmap_HighResolution_692928001_693187201_4FGL_J2143.5+1743_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='1.92e-05', photon_flux_error='4.95e-08', dlogl='1.02e+00', energy_flux='1.81e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2022-12-20 01:58:53.810889', photon_index_error2='0.88', photon_index2='3.44', ts='2.16', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.16e-05', EG='0.89', time_epoch_completed='1671530333.81', return_code='0', job_id='25957', GAL2='0.98', EG2='0.82', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.56e-08', ts2='4.33', photon_index='2.45' WHERE bin_id='1750' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:58:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 25957: <4FGL_J2143.5+1743_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 01:45:16 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:45:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:45:17 2022
Terminated at Tue Dec 20 01:58:54 2022
Results reported at Tue Dec 20 01:58:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1750 325.894 17.7306 692928001 693187201 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 :                                   633.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             338.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

