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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin1006
RA = 235.755, Dec = 61.5033
tmin = 500083201, tmax = 500342401
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='666757', job_status='RUN', time_executed='2021-09-12 11:02:39.914266', time_epoch_executed='1631469759.91' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666757/ft1_4FGL_J1543.0+6130_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666757/ft1_4FGL_J1543.0+6130_daily_bin1006.fits outfile=/scratch/kocevski/666757/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1006.fits ra=235.755 dec=61.5033 rad=12.0 tmin=500083201.0 tmax=500342401.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 6.12
user 5.41
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.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/666757/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/666757/ltcube_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.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/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits
.....................!
real 13.63
user 13.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/666757/ltcube_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.fits outfile=/scratch/kocevski/666757/expmap_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.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/666757/ltcube_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.fits
.....................!
real 192.01
user 186.44
sys 4.98

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
Added 224 point sources and 0 extended sources

Setting source of interest to:
4FGL J1543.0+6130 @ 235.755 61.5033

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits scfile=/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits outfile=/scratch/kocevski/666757/cmap_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.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=235.755 yref=61.5033 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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits scfile=/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits outfile=/scratch/kocevski/666757/cmap_HighResolution_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.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=235.755 yref=61.5033 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666757/Model_4FGL_J1543.0+6130_daily_bin1006.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits.....................!
real 54.05
user 52.66
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits', '/scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits', expMap='/scratch/kocevski/666757/expmap_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.fits', expCube='/scratch/kocevski/666757/ltcube_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/666757/Model_4FGL_J1543.0+6130_daily_bin1006.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.0+6130'

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  6.436e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  5.950e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/666757/ft1_filtered_4FGL_J1543.0+6130_daily_bin1006.fits
Spacecraft file(s): /scratch/kocevski/666757/ft2_4FGL_J1543.0+6130_daily_bin1006.fits
Exposure map: /scratch/kocevski/666757/expmap_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.fits
Exposure cube: /scratch/kocevski/666757/ltcube_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/666757/Model_4FGL_J1543.0+6130_daily_bin1006.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) = 5756.14944643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.590       1.0000         .10000E-03   10000.    
     6 'Prefactor '    61.206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7013       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.332       1.0000         .10000E-03   10000.    
    11 'norm      '    6.0640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.9619       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3005       1.0000         .10000E-03   10000.    
    17 'norm      '    18.954       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7802       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    35.941       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33320E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0487       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12250E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.335       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.844       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3403       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5756.122     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3304 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.922       -.83772E-06** at limit **
   2  Prefactor     .10000E-03    552.86       -.60227E-04** at limit **
   3  Prefactor     .10000E-03    7.0915       -.80750E-08** at limit **
   4  Prefactor     .10000E-03    11.838       -.10014E-06** at limit **
   5  Prefactor     19.593        18.492        .22371E-06    .33560E-06
   6  Prefactor     61.211        38.498       -.13259E-05    .93238E-05
   7  Prefactor     7.7034        9.1504        .31249E-05   -.47680E-04
   8  Prefactor     .10000E-03    4.1945       -.84604E-07** at limit **
   9  Prefactor     .10000E-03    2.8038        .87284E-09** at limit **
  10  Prefactor     15.333        15.656       -.11997E-06    .14983E-04
  11  norm          6.0645        3.2747        .15953E-07    .15479E-04
  12  Prefactor     .10000E-03    26.583        .21435E-06** at limit **
  13  Prefactor     .10000E-03    2.4472       -.12208E-07** at limit **
  14  norm          7.9629        6.2572        .22166E-06    .21733E-04
  15  Prefactor     .10000E-03    8.8119       -.24979E-07** at limit **
  16  Prefactor     4.3033        8.5553       -.19851E-05   -.23850E-03
  17  norm          18.949        27.077        .10303E-05    .69771E-05
  18  Prefactor     6.7833        7.9985       -.77503E-06   -.27269E-04
  19  Prefactor     .10000E-03    20.707        .20916E-06** at limit **
  20  norm          35.915        15.318        .29179E-05    .91298E-03
  21  Prefactor     .10049E-03    12.624       -.11652E-05** at limit **
  22  norm          3.0467        1.2615       -.87894E-06    .35936E-02
  23  Prefactor     .10000E-03    6.4568       -.42675E-05** at limit **
  24  Prefactor     25.278        33.697        .24451E-04    .31569E-03
  25  Prefactor     13.842        12.689       -.13863E-05    .34124E-03
  26  Normalizat    1.3401        .19573       -.61152E-06    .63378E-03
  27  Prefactor     .71285        .19009       -.44591E-06    .42693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5929
  Prefactor  = 61.211
  Prefactor  = 7.70338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3328
  norm       = 6.06446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.96286
  Prefactor  = 0.0001
  Prefactor  = 4.30332
  norm       = 18.949
  Prefactor  = 6.78328
  Prefactor  = 0.0001
  norm       = 35.9153
  Prefactor  = 0.00010049
  norm       = 3.04673
  Prefactor  = 0.000100004
  Prefactor  = 25.278
  Prefactor  = 13.8419
  Normalizat = 1.34007
  Prefactor  = 0.712849
 **********
 **   18 **HESSE 
 **********

 FCN=   5756.122     FROM HESSE     STATUS=OK           482 CALLS     3786 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    550.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.593        18.495        .90492E-04   -1.4822    
   6  Prefactor     61.211        38.602        .51287E-04   -1.4142    
   7  Prefactor     7.7034        9.1324        .14450E-03   -1.5153    
   8  Prefactor     .10000E-03    4.2247        .15165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8042        .12407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.333        15.659        .10229E-03   -1.4925    
  11  norm          6.0645        3.2746        .97734E-04   -1.5215    
  12  Prefactor     .10000E-03    26.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4496        .11589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9629        6.2607        .14210E-03   -1.5144    
  15  Prefactor     .10000E-03    8.8128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3033        8.5709        .19427E-03   -1.5293    
  17  norm          18.949        26.991        .91997E-04   -1.4837    
  18  Prefactor     6.7833        7.9676        .15409E-03   -1.5187    
  19  Prefactor     .10000E-03    20.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          35.915        15.149        .66848E-04   -1.4509    
  21  Prefactor     .10049E-03    150.57        .49983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0467        1.2447        .48246E-04   -1.5359    
  23  Prefactor     .10000E-03    41.129        .35441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.278        33.691        .79586E-04   -1.4702    
  25  Prefactor     13.842        12.403        .10765E-03   -1.4964    
  26  Normalizat    1.3401        .23539        .22909E-03   -.82378    
  27  Prefactor     .71285        .22602        .30004E-03   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58965e-09
Minuit parameter uncertainties:
  1  3.53026e-05
  2  6.96663e-05
  3  8.79309e-07
  4  2.28303e-06
  5  18.5002
  6  38.6176
  7  9.13401
  8  2.2276e-05
  9  5.24575e-07
  10  15.6627
  11  3.27469
  12  4.52562e-07
  13  1.37442e-06
  14  6.26117
  15  4.49605e-07
  16  8.57332
  17  27.0084
  18  7.9688
  19  1.90793e-05
  20  15.1509
  21  0.0172197
  22  1.24472
  23  0.000824975
  24  33.7159
  25  12.4054
  26  0.235577
  27  0.226307
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  6.064e+00  3.275e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  5.950e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  7.128e-01  2.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.340e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.42
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 1.89e-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) = 5755.42585932
delta logL = 0.696588010952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5755.41847446
delta logL = 0.703972869144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6133       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4209       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5755.418     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6125        3.2630        .42390E-02    .61361E-04
   2  alpha         1.4208        .32834        .26240       -.28973E-04
   3  Normalizat    1.3566        .18920        .51560E-01    .10613E-05
   4  Prefactor     .70638        .18779        .68111E-01    .23743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.6125
  alpha      = 1.42081
  Normalizat = 1.35656
  Prefactor  = 0.706379
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.418     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6125        3.7145        .10164E-03   -1.5234    
   2  alpha         1.4208        .40112        .10799E-01   -.44635    
   3  Normalizat    1.3566        .22533        .22796E-03   -.81893    
   4  Prefactor     .70638        .22334        .30139E-03   -1.0328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34305e-12
Minuit parameter uncertainties:
  1  3.71462
  2  0.403261
  3  0.225491
  4  0.223619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666757': 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) = 5755.41847443
delta logL = 0.703972895675

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  5.613e+00  3.715e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.421e+00  4.033e-01  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  5.950e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  7.064e-01  2.236e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.357e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.81
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.42 +/- 0.40
Photon Flux (Free Index): 2.85e-08 +/- 2.16e-08
Energy Flux (Free Index): 7.62e-05 +/- 6.81e-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/666757/cmap_HighResolution_500083201_500342401_4FGL_J1543.0+6130_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='7.62e-05', photon_flux_error='2.48e-08', dlogl='7.04e-01', energy_flux='3.50e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-12 11:15:41.380839', photon_index_error2='0.40', photon_index2='1.42', ts='14.42', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='6.81e-05', EG='1.34', time_epoch_completed='1631470541.38', return_code='0', job_id='666757', GAL2='0.71', EG2='1.36', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='2.16e-08', ts2='15.81', photon_index='1.90' WHERE bin_id='1006' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:15:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 666757: <4FGL_J1543.0+6130_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin1006> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 11:00:31 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:01:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 11:01:20 2021
Terminated at Sun Sep 12 11:15:42 2021
Results reported at Sun Sep 12 11:15:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin1006 235.755 61.5033 500083201 500342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1543.0+6130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            911 sec.

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

