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


Performing analysis on: 4FGL_J2143.5+1743_daily_bin1652
RA = 325.894, Dec = 17.7306
tmin = 667526401, tmax = 667785601
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='739766', job_status='RUN', time_executed='2022-03-01 00:51:24.933957', time_epoch_executed='1646124684.93' WHERE source_name='4FGL J2143.5+1743' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739766

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739766/ft1_4FGL_J2143.5+1743_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739766/ft1_4FGL_J2143.5+1743_daily_bin1652.fits outfile=/scratch/kocevski/739766/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1652.fits ra=325.894 dec=17.7306 rad=12.0 tmin=667526401.0 tmax=667785601.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 4.53
user 4.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.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/739766/ft1_filteredMKT_4FGL_J2143.5+1743_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/739766/ft1_filtered_4FGL_J2143.5+1743_daily_bin1652.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.33
sys 0.18
Number of photons that survived the gtmktime cut: 840

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739766/ft1_filtered_4FGL_J2143.5+1743_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/739766/ltcube_667526401_667785601_4FGL_J2143.5+1743_daily_bin1652.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/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.fits
.....................!
real 13.93
user 13.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739766/ft1_filtered_4FGL_J2143.5+1743_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/739766/ltcube_667526401_667785601_4FGL_J2143.5+1743_daily_bin1652.fits outfile=/scratch/kocevski/739766/expmap_667526401_667785601_4FGL_J2143.5+1743_daily_bin1652.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/739766/ltcube_667526401_667785601_4FGL_J2143.5+1743_daily_bin1652.fits
.....................!
real 191.00
user 185.91
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/739766/ft1_filtered_4FGL_J2143.5+1743_daily_bin1652.fits scfile=/scratch/kocevski/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.fits outfile=/scratch/kocevski/739766/cmap_667526401_667785601_4FGL_J2143.5+1743_daily_bin1652.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739766/ft1_filtered_4FGL_J2143.5+1743_daily_bin1652.fits scfile=/scratch/kocevski/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.fits outfile=/scratch/kocevski/739766/cmap_HighResolution_667526401_667785601_4FGL_J2143.5+1743_daily_bin1652.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/739766/ft1_filtered_4FGL_J2143.5+1743_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/739766/ft2_4FGL_J2143.5+1743_daily_bin1652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739766/Model_4FGL_J2143.5+1743_daily_bin1652.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/739766/ft1_filtered_4FGL_J2143.5+1743_daily_bin1652.fits....................!
real 141.95
user 140.39
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.961       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5326       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5153       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2213       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0801       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11692E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.779       1.0000         .10000E-03   10000.    
    17 'norm      '    .24061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.728       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0770       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.866       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.058       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .46171       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1920       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=   9490.006     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2559 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4100       -.67974E-07** at limit **
   2  Prefactor     15.951        21.636       -.10846E-04   -.80238E-04
   3  Prefactor     .10000E-03    21.305       -.51131E-05** at limit **
   4  Prefactor     .10000E-03    5.1409       -.35875E-07** at limit **
   5  Prefactor     .10000E-03    13.906        .70050E-05** at limit **
   6  Prefactor     14.960        17.676       -.69800E-06   -.49194E-05
   7  norm          1.6954        2.7302        .12298E-05   -.32837E-02
   8  Prefactor     7.5329        6.9638       -.21899E-05   -.14424E-04
   9  Prefactor     1.5116        12.493       -.33308E-05   -.91004E-04
  10  Prefactor     .10000E-03    50.913       -.19631E-05** at limit **
  11  norm          5.2190        3.0948       -.10743E-06   -.11151E-03
  12  Prefactor     .10000E-03    29.554        .39893E-05** at limit **
  13  norm          4.0795        2.6587       -.22319E-06   -.22868E-04
  14  norm          .10000E-03    13.268       -.55670E-05** at limit **
  15  Prefactor     .10000E-03    49.361        .32671E-05** at limit **
  16  Prefactor     30.754        44.210       -.29319E-04   -.55641E-04
  17  norm          .10000E-03    .38317        .24818E-07** at limit **
  18  Prefactor     15.717        19.266       -.32485E-05   -.36232E-04
  19  norm          2.0753        3.7619       -.75731E-06   -.23170E-02
  20  Prefactor     18.864        13.502       -.43623E-06   -.24061E-04
  21  Prefactor     12.054        12.217        .46106E-07   -.14567E-04
  22  Normalizat    .46241        .28170        .91756E-05    .16110E-03
  23  Prefactor     1.1918        .11406        .14903E-06   -.28241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.9506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9602
  norm       = 1.69544
  Prefactor  = 7.53287
  Prefactor  = 1.5116
  Prefactor  = 0.0001
  norm       = 5.21896
  Prefactor  = 0.0001
  norm       = 4.07951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7537
  norm       = 0.0001
  Prefactor  = 15.717
  norm       = 2.07534
  Prefactor  = 18.8637
  Prefactor  = 12.0539
  Normalizat = 0.462414
  Prefactor  = 1.19181
 **********
 **   18 **HESSE 
 **********

 FCN=   9490.006     FROM HESSE     STATUS=OK           372 CALLS     2931 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.951        21.666        .10021E-03   -1.4909    
   3  Prefactor     .10000E-03    21.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.960        17.675        .10355E-03   -1.4934    
   7  norm          1.6954        5.3237        .16160E-02   -1.5448    
   8  Prefactor     7.5329        6.8533        .14612E-03   -1.5159    
   9  Prefactor     1.5116        11.874        .34729E-03   -1.5462    
  10  Prefactor     .10000E-03    50.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2190        3.0532        .12001E-03   -1.5251    
  12  Prefactor     .10000E-03    29.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0795        2.6450        .12152E-03   -1.5304    
  14  norm          .10000E-03    13.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    49.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.754        44.220        .72220E-04   -1.4598    
  17  norm          .10000E-03    4.1601        .11504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.717        19.206        .10099E-03   -1.4915    
  19  norm          2.0753        4.2042        .13735E-02   -1.5420    
  20  Prefactor     18.864        13.488        .92210E-04   -1.4839    
  21  Prefactor     12.054        12.159        .11536E-03   -1.5013    
  22  Normalizat    .46241        .27135        .56510E-03   -1.1419    
  23  Prefactor     1.1918        .11316        .15949E-03   -.86584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4421e-08
Minuit parameter uncertainties:
  1  4.65272e-06
  2  21.6768
  3  1.67554e-05
  4  7.6301e-06
  5  2.1504e-05
  6  17.6811
  7  5.3252
  8  6.85399
  9  8.47519
  10  2.25475e-05
  11  3.05331
  12  1.79365e-05
  13  2.64506
  14  4.43831e-05
  15  0.000138035
  16  44.2671
  17  1.93385e-05
  18  19.2137
  19  4.20477
  20  13.49
  21  12.1611
  22  0.272127
  23  0.113182
Done.

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

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  5.219e+00  3.053e+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.192e+00  1.132e-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:  4.624e-01  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 325.894 17.731
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 6.10e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 1.77e-05

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) = 9489.81255102
delta logL = 0.193414285648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9489.80960323
delta logL = 0.196362076033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9642       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9887       1.0000          .0000       5.0000    
     3 'Normalizat'    .39773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2101       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=   9489.810     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9639        4.1615        .10309E-03    .72143E-03
   2  alpha         2.9888        1.2135        .20615E-01    .37551E-04
   3  Normalizat    .39779        .28718        .60731E-03   -.11101E-03
   4  Prefactor     1.2101        .12023        .15843E-03   -.83399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.96386
  alpha      = 2.98882
  Normalizat = 0.397785
  Prefactor  = 1.21009
 **********
 **   18 **HESSE 
 **********

 FCN=   9489.810     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9639        3.6558        .41237E-05   -1.5262    
   2  alpha         2.9888        1.0733        .82461E-03    .19679    
   3  Normalizat    .39779        .28217        .24292E-04   -1.1742    
   4  Prefactor     1.2101        .11837        .31686E-04   -.86021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99348e-10
Minuit parameter uncertainties:
  1  3.65594
  2  1.11088
  3  0.28319
  4  0.118399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739766': 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) = 9489.80960318
delta logL = 0.196362129091

Extracting fit parameters...

4FGL J2143.5+1743
   Spectrum: LogParabola
279         norm:  4.964e+00  3.656e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.989e+00  1.111e+00  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.210e+00  1.184e-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:  3.978e-01  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 325.894 17.731
Photon Index (Free Index): 2.99 +/- 1.11
Photon Flux (Free Index): 1.53e-07 +/- 1.05e-07
Energy Flux (Free Index): 3.06e-05 +/- 1.60e-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/739766/cmap_HighResolution_667526401_667785601_4FGL_J2143.5+1743_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='3.06e-05', photon_flux_error='6.10e-08', dlogl='1.96e-01', energy_flux='3.03e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2022-03-01 01:04:32.782468', photon_index_error2='1.11', photon_index2='2.99', ts='4.56', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.46', time_epoch_completed='1646125472.78', return_code='0', job_id='739766', GAL2='1.21', EG2='0.40', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='1.05e-07', ts2='5.11', photon_index='2.45' WHERE bin_id='1652' AND source_name='4FGL J2143.5+1743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 01:04:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 739766: <4FGL_J2143.5+1743_daily_bin1652> in cluster <slac> Done

Job <4FGL_J2143.5+1743_daily_bin1652> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Mar  1 00:50:31 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:51:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:51:09 2022
Terminated at Tue Mar  1 01:04:33 2022
Results reported at Tue Mar  1 01:04:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2143.5+1743_daily_bin1652 325.894 17.7306 667526401 667785601 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 :                                   789.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             399.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            842 sec.

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

