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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin1010
RA = 235.755, Dec = 61.5033
tmin = 501120001, tmax = 501379201
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='666763', job_status='RUN', time_executed='2021-09-12 11:03:56.875012', time_epoch_executed='1631469836.88' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666763/ft1_4FGL_J1543.0+6130_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666763/ft2_4FGL_J1543.0+6130_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666763/ft1_4FGL_J1543.0+6130_daily_bin1010.fits outfile=/scratch/kocevski/666763/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1010.fits ra=235.755 dec=61.5033 rad=12.0 tmin=501120001.0 tmax=501379201.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.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666763/ft2_4FGL_J1543.0+6130_daily_bin1010.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/666763/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/666763/ft1_filtered_4FGL_J1543.0+6130_daily_bin1010.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666763/ft1_filtered_4FGL_J1543.0+6130_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/666763/ft2_4FGL_J1543.0+6130_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/666763/ltcube_501120001_501379201_4FGL_J1543.0+6130_daily_bin1010.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/666763/ft2_4FGL_J1543.0+6130_daily_bin1010.fits
.....................!
real 14.85
user 14.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666763/ft1_filtered_4FGL_J1543.0+6130_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/666763/ft2_4FGL_J1543.0+6130_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/666763/ltcube_501120001_501379201_4FGL_J1543.0+6130_daily_bin1010.fits outfile=/scratch/kocevski/666763/expmap_501120001_501379201_4FGL_J1543.0+6130_daily_bin1010.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/666763/ltcube_501120001_501379201_4FGL_J1543.0+6130_daily_bin1010.fits
.....................!
real 193.02
user 187.64
sys 4.90

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/666763/ft1_filtered_4FGL_J1543.0+6130_daily_bin1010.fits scfile=/scratch/kocevski/666763/ft2_4FGL_J1543.0+6130_daily_bin1010.fits outfile=/scratch/kocevski/666763/cmap_501120001_501379201_4FGL_J1543.0+6130_daily_bin1010.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666763/ft1_filtered_4FGL_J1543.0+6130_daily_bin1010.fits scfile=/scratch/kocevski/666763/ft2_4FGL_J1543.0+6130_daily_bin1010.fits outfile=/scratch/kocevski/666763/cmap_HighResolution_501120001_501379201_4FGL_J1543.0+6130_daily_bin1010.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14516E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    254.39       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8148       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.743       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.736       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.583       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8407       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.8819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5188       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.866       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .62242       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15737E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.420       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .79341E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97014       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95916       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=   6148.353     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3319 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    255.51        .28945E-04** at limit **
   2  Prefactor     254.45        263.35        .37846E-04   -.34165E-06
   3  Prefactor     9.8176        20.361       -.13424E-04   -.26799E-04
   4  Prefactor     .10000E-03    10.593        .51557E-06** at limit **
   5  Prefactor     .10000E-03    6.0193       -.55091E-07** at limit **
   6  Prefactor     70.751        33.379        .28122E-05   -.19319E-04
   7  Prefactor     10.736        11.350       -.73959E-05   -.12828E-03
   8  Prefactor     5.4495        7.9826        .76360E-05   -.93741E-04
   9  Prefactor     .10000E-03    10.736       -.20747E-06** at limit **
  10  Prefactor     20.586        20.018        .12098E-04   -.30185E-05
  11  norm          6.8412        3.2045       -.29012E-06   -.93435E-04
  12  Prefactor     41.017        68.244        .11390E-04   -.15909E-04
  13  Prefactor     .10000E-03    6.7728       -.36156E-06** at limit **
  14  norm          9.8845        9.0457       -.31317E-06   -.78281E-04
  15  Prefactor     .10000E-03    17.774       -.20869E-05** at limit **
  16  Prefactor     .10000E-03    5.6082       -.11344E-06** at limit **
  17  norm          4.6879        11.546        .30297E-05   -.62517E-04
  18  Prefactor     2.5185        7.8404       -.28075E-05   -.48354E-03
  19  Prefactor     .10000E-03    13.139       -.28183E-05** at limit **
  20  norm          16.862        10.191       -.21392E-06   -.48173E-03
  21  Prefactor     .10000E-03    13.958        .32034E-05** at limit **
  22  norm          .62248        .84052        .17018E-05    .11602E-02
  23  Prefactor     .10000E-03    5.9434        .23803E-05** at limit **
  24  Prefactor     18.412        25.478       -.21002E-04   -.38022E-03
  25  Prefactor     .61337E-01    7.7281        .63984E-06   -.16942E-03
  26  Normalizat    .96991        .17359        .55695E-06   -.56803E-03
  27  Prefactor     .95914        .16758       -.20500E-06   -.43912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 254.455
  Prefactor  = 9.81761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.751
  Prefactor  = 10.7359
  Prefactor  = 5.44945
  Prefactor  = 0.0001
  Prefactor  = 20.5856
  norm       = 6.84122
  Prefactor  = 41.0166
  Prefactor  = 0.0001
  norm       = 9.88453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.68789
  Prefactor  = 2.51854
  Prefactor  = 0.0001
  norm       = 16.8616
  Prefactor  = 0.0001
  norm       = 0.622476
  Prefactor  = 0.0001
  Prefactor  = 18.4123
  Prefactor  = 0.0613371
  Normalizat = 0.969911
  Prefactor  = 0.959144
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.353     FROM HESSE     STATUS=OK           494 CALLS     3813 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    265.29        .40993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     254.45        262.93        .12702E-03   -1.2504    
   3  Prefactor     9.8176        20.362        .12791E-03   -1.5081    
   4  Prefactor     .10000E-03    10.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     70.751        33.410        .47728E-04   -1.4024    
   7  Prefactor     10.736        11.301        .12228E-03   -1.5053    
   8  Prefactor     5.4495        7.9451        .17219E-03   -1.5241    
   9  Prefactor     .10000E-03    10.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.586        19.977        .88284E-04   -1.4800    
  11  norm          6.8412        3.2030        .91866E-04   -1.5185    
  12  Prefactor     41.017        68.264        .62595E-04   -1.4426    
  13  Prefactor     .10000E-03    6.8007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.8845        9.0255        .12747E-03   -1.5079    
  15  Prefactor     .10000E-03    17.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7123        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6879        11.529        .18588E-03   -1.5275    
  18  Prefactor     2.5185        7.8522        .25742E-03   -1.5391    
  19  Prefactor     .10000E-03    13.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.862        10.120        .97525E-04   -1.4886    
  21  Prefactor     .10000E-03    14.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .62248        .78386        .69393E-03   -1.5550    
  23  Prefactor     .10000E-03    20.515        .35411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.412        25.028        .93321E-04   -1.4850    
  25  Prefactor     .61337E-01    13.163        .64563E-01   -1.5658    
  26  Normalizat    .96991        .20344        .23835E-03   -.94045    
  27  Prefactor     .95914        .19587        .24445E-03   -.94104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84283e-08
Minuit parameter uncertainties:
  1  0.00288733
  2  264.163
  3  20.3764
  4  5.93996e-05
  5  9.70838e-06
  6  33.4193
  7  11.3036
  8  7.94662
  9  0.000138557
  10  19.9836
  11  3.20305
  12  68.3942
  13  3.92248e-06
  14  9.02676
  15  2.76448e-06
  16  5.92373e-06
  17  11.5347
  18  7.85545
  19  3.90045e-06
  20  10.121
  21  2.20576e-05
  22  0.783876
  23  0.000190152
  24  25.0424
  25  1.796
  26  0.203602
  27  0.196017
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  6.841e+00  3.203e+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:  9.591e-01  1.960e-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:  9.699e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.49
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.18e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 1.85e-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) = 6147.8468523
delta logL = 0.506261216383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6147.84597999
delta logL = 0.507133527357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9830       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5189       1.0000          .0000       5.0000    
     3 'Normalizat'    .98517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95091       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=   6147.846     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      204 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9830        3.2546        .37954E-02    .10831E-02
   2  alpha         1.5189        .31744        .25021       -.35857E-04
   3  Normalizat    .98517        .16175        .45981E-01    .10639E-04
   4  Prefactor     .95092        .16558        .45651E-01    .10004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.98302
  alpha      = 1.51891
  Normalizat = 0.985168
  Prefactor  = 0.950915
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.846     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9830        3.2764        .91751E-04   -1.5179    
   2  alpha         1.5189        .34278        .10299E-01   -.40328    
   3  Normalizat    .98517        .18741        .23663E-03   -.93529    
   4  Prefactor     .95092        .19199        .24533E-03   -.94384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09052e-10
Minuit parameter uncertainties:
  1  3.27648
  2  0.344061
  3  0.187539
  4  0.192125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666763': 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) = 6147.84597999
delta logL = 0.507133533592

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  6.983e+00  3.276e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.519e+00  3.441e-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:  9.509e-01  1.921e-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:  9.852e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.51
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.52 +/- 0.34
Photon Flux (Free Index): 3.73e-08 +/- 2.10e-08
Energy Flux (Free Index): 7.53e-05 +/- 5.95e-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/666763/cmap_HighResolution_501120001_501379201_4FGL_J1543.0+6130_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.18e-08', energy_flux2='7.53e-05', photon_flux_error='2.43e-08', dlogl='5.07e-01', energy_flux='3.95e-05', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-09-12 11:17:06.888085', photon_index_error2='0.34', photon_index2='1.52', ts='13.49', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='5.95e-05', EG='0.97', time_epoch_completed='1631470626.89', return_code='0', job_id='666763', GAL2='0.95', EG2='0.99', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='2.10e-08', ts2='14.51', photon_index='1.90' WHERE bin_id='1010' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:17:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 666763: <4FGL_J1543.0+6130_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin1010> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 11:00:32 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:01:24 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:24 2021
Terminated at Sun Sep 12 11:17:07 2021
Results reported at Sun Sep 12 11:17:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin1010 235.755 61.5033 501120001 501379201 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 :                                   786.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             323.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            995 sec.

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

