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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin830
RA = 235.755, Dec = 61.5033
tmin = 454464001, tmax = 454723201
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='665568', job_status='RUN', time_executed='2021-09-12 10:58:56.964358', time_epoch_executed='1631469536.96' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665568/ft1_4FGL_J1543.0+6130_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665568/ft1_4FGL_J1543.0+6130_daily_bin830.fits outfile=/scratch/kocevski/665568/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin830.fits ra=235.755 dec=61.5033 rad=12.0 tmin=454464001.0 tmax=454723201.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.57
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.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/665568/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin830.fits evtable="EVENTS" outfile="/scratch/kocevski/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/665568/ltcube_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.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/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits
.....................!
real 12.99
user 12.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/665568/ltcube_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.fits outfile=/scratch/kocevski/665568/expmap_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.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/665568/ltcube_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.fits
.....................!
real 191.08
user 186.08
sys 4.43

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/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits scfile=/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits outfile=/scratch/kocevski/665568/cmap_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits scfile=/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits outfile=/scratch/kocevski/665568/cmap_HighResolution_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665568/Model_4FGL_J1543.0+6130_daily_bin830.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/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits.....................!
real 55.90
user 54.48
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits', '/scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits', expMap='/scratch/kocevski/665568/expmap_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.fits', expCube='/scratch/kocevski/665568/ltcube_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/665568/Model_4FGL_J1543.0+6130_daily_bin830.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/665568/ft1_filtered_4FGL_J1543.0+6130_daily_bin830.fits
Spacecraft file(s): /scratch/kocevski/665568/ft2_4FGL_J1543.0+6130_daily_bin830.fits
Exposure map: /scratch/kocevski/665568/expmap_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.fits
Exposure cube: /scratch/kocevski/665568/ltcube_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/665568/Model_4FGL_J1543.0+6130_daily_bin830.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) = 6636.07377982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    819.67       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.546       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.766       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16539E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0654       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8102       1.0000         .10000E-03   10000.    
    11 'norm      '    8.2143       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2062       1.0000         .10000E-03   10000.    
    14 'norm      '    5.3282       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9861       1.0000         .10000E-03   10000.    
    17 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7742       1.0000         .10000E-03   10000.    
    22 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.163       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2637       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82592       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84992       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=   6636.034     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3271 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.382        38.832        .44900E-06   -.30692E-06
   2  Prefactor     819.31        575.46        .14010E-04    .13225E-05
   3  Prefactor     41.547        24.788        .36320E-07    .67083E-05
   4  Prefactor     29.767        25.907       -.17223E-07    .39537E-05
   5  Prefactor     .10000E-03    10.403        .82066E-07** at limit **
   6  Prefactor     .10000E-03    8.1964       -.16844E-07** at limit **
   7  Prefactor     .10001E-03    5.1941       -.22248E-06** at limit **
   8  Prefactor     4.4196        6.0379        .46883E-06    .61203E-04
   9  Prefactor     3.0652        6.6735        .19579E-05   -.54184E-05
  10  Prefactor     6.8099        16.111        .44174E-06   -.91834E-06
  11  norm          8.2144        3.0476        .23573E-07    .12949E-04
  12  Prefactor     .10000E-03    24.864       -.42181E-06** at limit **
  13  Prefactor     1.2023        19.662        .23626E-06   -.49051E-04
  14  norm          5.3304        9.1914        .43762E-06    .82339E-04
  15  Prefactor     .10000E-03    14.643       -.56609E-06** at limit **
  16  Prefactor     5.9867        6.3558        .10978E-05   -.71212E-05
  17  norm          .10000E-03    12.204        .21170E-06** at limit **
  18  Prefactor     8.8491        6.1785       -.24999E-07   -.25788E-05
  19  Prefactor     .10000E-03    10.360        .11666E-07** at limit **
  20  norm          .10000E-03    1.4356       -.22506E-07** at limit **
  21  Prefactor     6.7769        14.322        .25340E-06   -.31734E-05
  22  norm          .10000E-03    .28960        .37600E-07** at limit **
  23  Prefactor     16.165        7.4587        .63944E-07   -.35374E-04
  24  Prefactor     .10000E-03    18.029        .63055E-06** at limit **
  25  Prefactor     3.2629        5.0947        .28955E-06    .15585E-05
  26  Normalizat    .82589        .14889       -.60100E-06    .55709E-04
  27  Prefactor     .84998        .14397       -.23190E-06    .17536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.3823
  Prefactor  = 819.307
  Prefactor  = 41.5465
  Prefactor  = 29.7667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 4.4196
  Prefactor  = 3.06521
  Prefactor  = 6.80991
  norm       = 8.21437
  Prefactor  = 0.0001
  Prefactor  = 1.20228
  norm       = 5.33041
  Prefactor  = 0.0001
  Prefactor  = 5.98671
  norm       = 0.0001
  Prefactor  = 8.84911
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.77692
  norm       = 0.0001
  Prefactor  = 16.1653
  Prefactor  = 0.0001
  Prefactor  = 3.26285
  Normalizat = 0.825895
  Prefactor  = 0.849981
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.034     FROM HESSE     STATUS=OK           502 CALLS     3773 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.382        38.847        .55947E-04   -1.4273    
   2  Prefactor     819.31        572.39        .72909E-04   -.99021    
   3  Prefactor     41.547        24.847        .62191E-04   -1.4418    
   4  Prefactor     29.767        25.905        .73436E-04   -1.4616    
   5  Prefactor     .10000E-03    10.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    5.9944        .59288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4196        6.0401        .19159E-03   -1.5287    
   9  Prefactor     3.0652        6.6671        .11585E-02   -1.5358    
  10  Prefactor     6.8099        16.094        .76874E-03   -1.5186    
  11  norm          8.2144        3.0494        .83578E-04   -1.5135    
  12  Prefactor     .10000E-03    24.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2023        16.672        .41254E-03   -1.5489    
  14  norm          5.3304        8.4294        .17411E-03   -1.5246    
  15  Prefactor     .10000E-03    14.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9867        6.3496        .82058E-03   -1.5219    
  17  norm          .10000E-03    12.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8491        6.1758        .13474E-03   -1.5113    
  19  Prefactor     .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4369        .95313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.7769        14.296        .15416E-03   -1.5187    
  22  norm          .10000E-03    .62672        .83755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.165        7.3476        .99624E-04   -1.4904    
  24  Prefactor     .10000E-03    18.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2629        5.0736        .22063E-03   -1.5347    
  26  Normalizat    .82589        .17358        .22852E-03   -.99115    
  27  Prefactor     .84998        .16729        .23094E-03   -.97911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75489e-10
Minuit parameter uncertainties:
  1  38.8662
  2  576.629
  3  24.8528
  4  25.9152
  5  2.32988e-07
  6  1.32668e-06
  7  0.000366449
  8  6.04096
  9  6.6687
  10  16.1044
  11  3.04949
  12  1.99297e-07
  13  8.95686
  14  8.43127
  15  9.37066e-06
  16  6.35036
  17  8.93819e-07
  18  6.17624
  19  1.15294e-06
  20  2.79511e-08
  21  14.3031
  22  4.44172e-07
  23  7.34804
  24  7.49294e-06
  25  5.07431
  26  0.173699
  27  0.167395
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  8.214e+00  3.049e+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:  8.500e-01  1.674e-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:  8.259e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.10
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 6.22e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 4.74e-05 +/- 1.76e-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) = 6635.99871922
delta logL = 0.0354532619504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6635.99491104
delta logL = 0.039261438953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0489       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9935       1.0000          .0000       5.0000    
     3 'Normalizat'    .81825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85404       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=   6635.995     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0486        51.743        .35331E-02    .67692E-03
   2  alpha         1.9934        3.4467        .22943        .10152E-03
   3  Normalizat    .81820        .17814        .43848E-01    .25846E-03
   4  Prefactor     .85410        .11658        .44416E-01    .17039E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04863
  alpha      = 1.99343
  Normalizat = 0.818204
  Prefactor  = 0.854098
 **********
 **   18 **HESSE 
 **********

 FCN=   6635.995     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0486        3.0521        .80650E-04   -1.5140    
   2  alpha         1.9934        .33721        .90810E-02   -.20404    
   3  Normalizat    .81820        .16359        .22944E-03   -.99397    
   4  Prefactor     .85410        .16612        .23041E-03   -.97764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53303e-10
Minuit parameter uncertainties:
  1  3.05217
  2  0.338284
  3  0.163691
  4  0.16622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665568': 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) = 6635.99491092
delta logL = 0.0392615676546

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  8.049e+00  3.052e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.993e+00  3.383e-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:  8.541e-01  1.662e-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:  8.182e-01  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.09
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.99 +/- 0.34
Photon Flux (Free Index): 6.83e-08 +/- 3.25e-08
Energy Flux (Free Index): 4.28e-05 +/- 2.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/665568/cmap_HighResolution_454464001_454723201_4FGL_J1543.0+6130_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.22e-08', energy_flux2='4.28e-05', photon_flux_error='2.31e-08', dlogl='3.93e-02', energy_flux='4.74e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-12 11:12:28.539018', photon_index_error2='0.34', photon_index2='1.99', ts='28.10', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='0.83', time_epoch_completed='1631470348.54', return_code='0', job_id='665568', GAL2='0.85', EG2='0.82', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='3.25e-08', ts2='28.09', photon_index='1.90' WHERE bin_id='830' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:12:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 665568: <4FGL_J1543.0+6130_daily_bin830> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin830> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 10:56:39 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:58:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 10:58:44 2021
Terminated at Sun Sep 12 11:12:29 2021
Results reported at Sun Sep 12 11:12:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin830 235.755 61.5033 454464001 454723201 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 :                                   807.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            950 sec.

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

