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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1703
RA = 325.894, Dec = 17.7306
tmin = 680745601, tmax = 681004801
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='324086', job_status='RUN', time_executed='2022-08-01 01:24:13.457606', time_epoch_executed='1659342253.46' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324086/ft1_4FGL_J2143.5+1743_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324086/ft2_4FGL_J2143.5+1743_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324086/ft1_4FGL_J2143.5+1743_daily_bin1703.fits outfile=/scratch/kocevski/324086/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1703.fits ra=325.894 dec=17.7306 rad=12.0 tmin=680745601.0 tmax=681004801.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 2.98
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324086/ft2_4FGL_J2143.5+1743_daily_bin1703.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/324086/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/324086/ft1_filtered_4FGL_J2143.5+1743_daily_bin1703.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 542

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324086/ft1_filtered_4FGL_J2143.5+1743_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/324086/ft2_4FGL_J2143.5+1743_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/324086/ltcube_680745601_681004801_4FGL_J2143.5+1743_daily_bin1703.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/324086/ft2_4FGL_J2143.5+1743_daily_bin1703.fits
.....................!
real 15.67
user 15.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324086/ft1_filtered_4FGL_J2143.5+1743_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324086/ft2_4FGL_J2143.5+1743_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324086/ltcube_680745601_681004801_4FGL_J2143.5+1743_daily_bin1703.fits outfile=/scratch/kocevski/324086/expmap_680745601_681004801_4FGL_J2143.5+1743_daily_bin1703.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/324086/ltcube_680745601_681004801_4FGL_J2143.5+1743_daily_bin1703.fits
.....................!
real 194.50
user 187.43
sys 4.77

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/324086/ft1_filtered_4FGL_J2143.5+1743_daily_bin1703.fits scfile=/scratch/kocevski/324086/ft2_4FGL_J2143.5+1743_daily_bin1703.fits outfile=/scratch/kocevski/324086/cmap_680745601_681004801_4FGL_J2143.5+1743_daily_bin1703.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.57
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.388       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1393       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13908E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5596       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14241E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3967       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5365       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.174       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71660       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90241       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.

 FCN=   6276.237     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2580 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.382        37.030        .19836E-06   -.17558E-05
   2  Prefactor     23.347        22.100        .45364E-06   -.36974E-05
   3  Prefactor     18.970        90.863       -.15165E-04   -.59441E-05
   4  Prefactor     33.238        28.937       -.14523E-06    .11518E-04
   5  Prefactor     .10000E-03    22.357        .15581E-06** at limit **
   6  Prefactor     .10000E-03    35.877        .31864E-06** at limit **
   7  norm          5.1409        5.6855       -.25776E-08    .30508E-06
   8  Prefactor     .10000E-03    6.0626       -.34132E-06** at limit **
   9  Prefactor     .10000E-03    18.128       -.40177E-06** at limit **
  10  Prefactor     .10000E-03    136.33       -.58138E-06** at limit **
  11  norm          5.5593        3.8392       -.78141E-07    .20664E-04
  12  Prefactor     .10000E-03    42.789        .94222E-07** at limit **
  13  norm          .10000E-03    1.7495       -.48817E-07** at limit **
  14  norm          .10000E-03    131.48       -.14284E-05** at limit **
  15  Prefactor     .10000E-03    19.300        .38827E-06** at limit **
  16  Prefactor     .10000E-03    25.724       -.50937E-06** at limit **
  17  norm          .10000E-03    .30544        .32640E-07** at limit **
  18  Prefactor     6.3963        11.900       -.91169E-07   -.52556E-05
  19  norm          2.5360        4.8828        .27272E-06   -.46004E-04
  20  Prefactor     .10000E-03    6.0051        .66775E-09** at limit **
  21  Prefactor     13.158        15.419       -.25358E-06    .31869E-05
  22  Normalizat    .71742        .27996        .33002E-05    .10649E-04
  23  Prefactor     .90204        .10835       -.65429E-06    .14818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3824
  Prefactor  = 23.3474
  Prefactor  = 18.9702
  Prefactor  = 33.2382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.14089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.55935
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.39628
  norm       = 2.53603
  Prefactor  = 0.0001
  Prefactor  = 13.1585
  Normalizat = 0.717425
  Prefactor  = 0.902041
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.237     FROM HESSE     STATUS=OK           368 CALLS     2948 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.382        37.039        .81114E-04   -1.4720    
   2  Prefactor     23.347        22.097        .82915E-04   -1.4741    
   3  Prefactor     18.970        92.640        .92607E-04   -1.4837    
   4  Prefactor     33.238        28.836        .69522E-04   -1.4554    
   5  Prefactor     .10000E-03    22.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1409        5.6747        .17734E-03   -1.5254    
   8  Prefactor     .10000E-03    37.213        .37179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    136.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5593        3.8280        .11921E-03   -1.5236    
  12  Prefactor     .10000E-03    42.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7605        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    132.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .31156        .42710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3963        11.891        .79347E-03   -1.5202    
  19  norm          2.5360        4.9226        .11741E-02   -1.5389    
  20  Prefactor     .10000E-03    6.0093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.158        15.455        .11036E-03   -1.4982    
  22  Normalizat    .71742        .31571        .42709E-03   -1.0321    
  23  Prefactor     .90204        .12564        .15703E-03   -.96070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65176e-11
Minuit parameter uncertainties:
  1  37.0742
  2  22.1046
  3  84.0528
  4  28.848
  5  3.78016e-06
  6  7.69461e-06
  7  5.67525
  8  0.000244761
  9  1.96553e-05
  10  1.81036e-05
  11  3.82814
  12  3.77296e-06
  13  1.90302e-06
  14  0.000113206
  15  1.34313e-05
  16  1.10804e-05
  17  8.18861e-07
  18  11.8951
  19  4.9234
  20  2.35975e-06
  21  15.4598
  22  0.316517
  23  0.12568
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.559e+00  3.828e+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.020e-01  1.257e-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:  7.174e-01  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 325.894 17.731
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 7.65e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 2.23e-05

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

Saving results to:
/scratch/kocevski/324086/likelihoodResults_680745601_681004801_4FGL_J2143.5+1743_daily_bin1703.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) = 6275.94492091
delta logL = 0.292545078206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6275.94017608
delta logL = 0.297289906285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1756       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0361       1.0000          .0000       5.0000    
     3 'Normalizat'    .64746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92234       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=   6275.940     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1760        4.2031        .10117E-03   -.19261E-02
   2  alpha         3.0357        .90441        .17753E-01   -.11058E-03
   3  Normalizat    .64754        .31551        .44802E-03    .12206E-03
   4  Prefactor     .92232        .12658        .15547E-03    .65257E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.17602
  alpha      = 3.03574
  Normalizat = 0.647539
  Prefactor  = 0.92232
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.940     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1760        3.9850        .40469E-05   -1.5253    
   2  alpha         3.0357        .85833        .71013E-03    .21597    
   3  Normalizat    .64754        .31522        .17921E-04   -1.0600    
   4  Prefactor     .92232        .12628        .31095E-04   -.95365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39752e-09
Minuit parameter uncertainties:
  1  3.9852
  2  0.877062
  3  0.316106
  4  0.126324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324086': 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) = 6275.94017599
delta logL = 0.297289994397

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.176e+00  3.985e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  3.036e+00  8.771e-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.223e-01  1.263e-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:  6.475e-01  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 325.894 17.731
Photon Index (Free Index): 3.04 +/- 0.88
Photon Flux (Free Index): 1.66e-07 +/- 1.14e-07
Energy Flux (Free Index): 3.25e-05 +/- 2.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/324086/cmap_HighResolution_680745601_681004801_4FGL_J2143.5+1743_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-05', comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='3.25e-05', photon_flux_error='7.65e-08', dlogl='2.97e-01', energy_flux='3.23e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2022-08-01 01:35:43.882960', photon_index_error2='0.88', photon_index2='3.04', ts='3.21', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='2.58e-07', energy_flux_error2='2.01e-05', EG='0.72', time_epoch_completed='1659342943.88', return_code='0', job_id='324086', GAL2='0.92', EG2='0.65', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='1.14e-07', ts2='3.91', photon_index='2.45' WHERE bin_id='1703' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:35:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 324086: <4FGL_J2143.5+1743_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:16 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:21:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:21:06 2022
Terminated at Mon Aug  1 01:35:44 2022
Results reported at Mon Aug  1 01:35:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1703 325.894 17.7306 680745601 681004801 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 :                                   689.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            928 sec.

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

