/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 92 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 = 7551
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1661
RA = 325.894, Dec = 17.7306
tmin = 669859201, tmax = 670118401
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='85170', job_status='RUN', time_executed='2022-03-28 00:42:13.634225', time_epoch_executed='1648453333.63' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85170/ft1_4FGL_J2143.5+1743_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85170/ft2_4FGL_J2143.5+1743_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85170/ft1_4FGL_J2143.5+1743_daily_bin1661.fits outfile=/scratch/kocevski/85170/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1661.fits ra=325.894 dec=17.7306 rad=12.0 tmin=669859201.0 tmax=670118401.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/85170/ft2_4FGL_J2143.5+1743_daily_bin1661.fits

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

Number of photons that the gtmktime cut: 807

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85170/ft1_filtered_4FGL_J2143.5+1743_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85170/ft2_4FGL_J2143.5+1743_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85170/ltcube_669859201_670118401_4FGL_J2143.5+1743_daily_bin1661.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/85170/ft2_4FGL_J2143.5+1743_daily_bin1661.fits
.....................!
real 14.06
user 13.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85170/ft1_filtered_4FGL_J2143.5+1743_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85170/ft2_4FGL_J2143.5+1743_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85170/ltcube_669859201_670118401_4FGL_J2143.5+1743_daily_bin1661.fits outfile=/scratch/kocevski/85170/expmap_669859201_670118401_4FGL_J2143.5+1743_daily_bin1661.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/85170/ltcube_669859201_670118401_4FGL_J2143.5+1743_daily_bin1661.fits
.....................!
real 190.32
user 185.43
sys 4.55

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/85170/ft1_filtered_4FGL_J2143.5+1743_daily_bin1661.fits scfile=/scratch/kocevski/85170/ft2_4FGL_J2143.5+1743_daily_bin1661.fits outfile=/scratch/kocevski/85170/cmap_669859201_670118401_4FGL_J2143.5+1743_daily_bin1661.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.269       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    106.21       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2226       1.0000         .10000E-03   10000.    
    14 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11285E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78990       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0470       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=   8581.479     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2522 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.355       -.35397E-05** at limit **
   2  Prefactor     11.871        15.738        .52598E-06    .23022E-04
   3  Prefactor     11.395        91.282       -.99924E-04    .64856E-05
   4  Prefactor     13.707        13.715       -.91218E-06    .17689E-05
   5  Prefactor     .10000E-03    6.0049        .12002E-05** at limit **
   6  Prefactor     20.270        30.848        .61402E-06    .60071E-05
   7  norm          3.8124        2.7215        .18085E-06    .15911E-03
   8  Prefactor     8.1689        5.8611       -.48777E-06   -.14248E-03
   9  Prefactor     .10000E-03    2.3399       -.35809E-07** at limit **
  10  Prefactor     106.19        95.669       -.14918E-04    .13430E-04
  11  norm          1.6192        1.7187       -.17030E-06   -.54915E-03
  12  Prefactor     .10000E-03    30.217        .23064E-05** at limit **
  13  norm          3.2223        2.3646       -.33693E-06   -.42111E-03
  14  norm          .10000E-03    10.889       -.98989E-06** at limit **
  15  Prefactor     .10000E-03    30.642       -.29189E-05** at limit **
  16  Prefactor     .10000E-03    17.560        .23151E-05** at limit **
  17  norm          .10000E-03    .37197       -.13238E-06** at limit **
  18  Prefactor     .10000E-03    7.0250       -.36301E-05** at limit **
  19  norm          .10000E-03    1.7783       -.23311E-06** at limit **
  20  Prefactor     .10000E-03    3.9632       -.10937E-06** at limit **
  21  Prefactor     .10000E-03    8.6279        .51128E-05** at limit **
  22  Normalizat    .78986        .22165        .20907E-05    .14413E-03
  23  Prefactor     1.0470        .98921E-01    .15849E-05   -.24669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.8712
  Prefactor  = 11.3951
  Prefactor  = 13.7071
  Prefactor  = 0.0001
  Prefactor  = 20.2695
  norm       = 3.81238
  Prefactor  = 8.16885
  Prefactor  = 0.0001
  Prefactor  = 106.191
  norm       = 1.61923
  Prefactor  = 0.0001
  norm       = 3.2223
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.789864
  Prefactor  = 1.04703
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.479     FROM HESSE     STATUS=OK           372 CALLS     2894 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.871        15.758        .11626E-03   -1.5019    
   3  Prefactor     11.395        91.701        .11848E-03   -1.5033    
   4  Prefactor     13.707        13.703        .10818E-03   -1.4967    
   5  Prefactor     .10000E-03    6.0068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.270        30.841        .88965E-04   -1.4807    
   7  norm          3.8124        2.7231        .12551E-03   -1.5317    
   8  Prefactor     8.1689        5.8576        .14027E-03   -1.5136    
   9  Prefactor     .10000E-03    2.3551        .13835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     106.19        95.570        .19511E-03   -1.3643    
  11  norm          1.6192        1.6960        .11988E-03   -1.5453    
  12  Prefactor     .10000E-03    30.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2223        2.3587        .11647E-03   -1.5349    
  14  norm          .10000E-03    10.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .74059        .10928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4172        .24032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9697        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78986        .25271        .40289E-03   -1.0045    
  23  Prefactor     1.0470        .11478        .16028E-03   -.91178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68011e-10
Minuit parameter uncertainties:
  1  7.21215e-06
  2  15.7638
  3  64.7872
  4  13.7063
  5  5.90351e-06
  6  30.865
  7  2.72317
  8  5.85801
  9  4.50103e-06
  10  95.7092
  11  1.69602
  12  6.31515e-06
  13  2.35874
  14  1.54184e-05
  15  6.02207e-05
  16  1.86445e-05
  17  1.15617e-05
  18  1.81061e-05
  19  4.28631e-05
  20  4.95137e-06
  21  6.40387e-05
  22  0.253085
  23  0.114808
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.619e+00  1.696e+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:  1.047e+00  1.148e-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.899e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 325.894 17.731
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 9.41e-06 +/- 9.86e-06

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

Saving results to:
/scratch/kocevski/85170/likelihoodResults_669859201_670118401_4FGL_J2143.5+1743_daily_bin1661.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) = 8581.24344645
delta logL = 0.235671087101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8581.23917278
delta logL = 0.23994474901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7326       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9376       1.0000          .0000       5.0000    
     3 'Normalizat'    .80581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0409       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=   8581.239     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7317        1.7248        .79724E-02    .50516E-03
   2  alpha         1.9373        .47041        .42551       -.43133E-04
   3  Normalizat    .80526        .21439        .90146E-01    .39093E-04
   4  Prefactor     1.0411        .97576E-01    .40477E-01   -.26722E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73174
  alpha      = 1.9373
  Normalizat = 0.805259
  Prefactor  = 1.04107
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.239     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7317        1.6785        .11186E-03   -1.5445    
   2  alpha         1.9373        .62671        .16689E-01   -.22702    
   3  Normalizat    .80526        .24823        .39928E-03   -.99874    
   4  Prefactor     1.0411        .11324        .16065E-03   -.91373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01671e-09
Minuit parameter uncertainties:
  1  1.67859
  2  0.633834
  3  0.248581
  4  0.113265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85170': 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) = 8581.23917004
delta logL = 0.239947498612

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  1.732e+00  1.679e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.937e+00  6.338e-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:  1.041e+00  1.133e-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.053e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 325.894 17.731
Photon Index (Free Index): 1.94 +/- 0.63
Photon Flux (Free Index): 2.61e-08 +/- 2.74e-08
Energy Flux (Free Index): 1.64e-05 +/- 2.09e-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/85170/cmap_HighResolution_669859201_670118401_4FGL_J2143.5+1743_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='1.64e-05', photon_flux_error='3.39e-08', dlogl='2.40e-01', energy_flux='9.41e-06', photon_flux2='2.61e-08', job_status='DONE', time_completed='2022-03-28 00:55:59.850832', photon_index_error2='0.63', photon_index2='1.94', ts='1.40', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='2.09e-05', EG='0.79', time_epoch_completed='1648454159.85', return_code='0', job_id='85170', GAL2='1.04', EG2='0.81', return_code2='0', energy_flux_error='9.86e-06', photon_flux_error2='2.74e-08', ts2='1.88', photon_index='2.45' WHERE bin_id='1661' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:55:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 85170: <4FGL_J2143.5+1743_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:25 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:27 2022
Terminated at Mon Mar 28 00:56:00 2022
Results reported at Mon Mar 28 00:56:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1661 325.894 17.7306 669859201 670118401 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 :                                   828.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

