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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin1084
RA = 235.755, Dec = 61.5033
tmin = 520300801, tmax = 520560001
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='666872', job_status='RUN', time_executed='2021-09-12 11:05:58.102933', time_epoch_executed='1631469958.1' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666872/ft1_4FGL_J1543.0+6130_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666872/ft2_4FGL_J1543.0+6130_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666872/ft1_4FGL_J1543.0+6130_daily_bin1084.fits outfile=/scratch/kocevski/666872/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1084.fits ra=235.755 dec=61.5033 rad=12.0 tmin=520300801.0 tmax=520560001.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.13
user 5.88
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666872/ft2_4FGL_J1543.0+6130_daily_bin1084.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/666872/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/666872/ft1_filtered_4FGL_J1543.0+6130_daily_bin1084.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/666872/ft1_filtered_4FGL_J1543.0+6130_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/666872/ft2_4FGL_J1543.0+6130_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/666872/ltcube_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.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/666872/ft2_4FGL_J1543.0+6130_daily_bin1084.fits
.....................!
real 14.20
user 13.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666872/ft1_filtered_4FGL_J1543.0+6130_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/666872/ft2_4FGL_J1543.0+6130_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/666872/ltcube_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.fits outfile=/scratch/kocevski/666872/expmap_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.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/666872/ltcube_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.fits
.....................!
real 190.87
user 185.78
sys 4.66

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/666872/ft1_filtered_4FGL_J1543.0+6130_daily_bin1084.fits scfile=/scratch/kocevski/666872/ft2_4FGL_J1543.0+6130_daily_bin1084.fits outfile=/scratch/kocevski/666872/cmap_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666872/ft1_filtered_4FGL_J1543.0+6130_daily_bin1084.fits scfile=/scratch/kocevski/666872/ft2_4FGL_J1543.0+6130_daily_bin1084.fits outfile=/scratch/kocevski/666872/cmap_HighResolution_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11417E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.873       1.0000         .10000E-03   10000.    
    14 'norm      '    10.401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33296E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    32.462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .96987       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0900       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1565       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76387       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=   1167.668     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3213 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.236       -.41824E-07** at limit **
   2  Prefactor     .10055E-03    1277.7       -.14877E-04** at limit **
   3  Prefactor     .10000E-03    64.709        .46328E-06** at limit **
   4  Prefactor     .10000E-03    84.396        .85612E-06** at limit **
   5  Prefactor     .10000E-03    52.302       -.36070E-07** at limit **
   6  Prefactor     .10000E-03    39.304        .13526E-06** at limit **
   7  Prefactor     43.393        68.840        .33331E-05    .22443E-04
   8  Prefactor     .10000E-03    28.190        .85806E-06** at limit **
   9  Prefactor     4.1198        94.322        .45155E-05    .62139E-05
  10  Prefactor     .10000E-03    67.472        .60440E-06** at limit **
  11  norm          7.3959        8.6805        .87066E-07   -.43563E-04
  12  Prefactor     .10000E-03    114.49        .16951E-06** at limit **
  13  Prefactor     51.912        65.369        .43585E-06    .52099E-04
  14  norm          10.369        58.903        .22366E-05   -.62686E-05
  15  Prefactor     .10000E-03    118.60       -.15964E-05** at limit **
  16  Prefactor     .10008E-03    40.059       -.25654E-05** at limit **
  17  norm          32.418        56.750        .22387E-05   -.67448E-05
  18  Prefactor     .10000E-03    8.5677       -.15916E-06** at limit **
  19  Prefactor     .10000E-03    46.782       -.45356E-06** at limit **
  20  norm          .10000E-03    11.138       -.50344E-06** at limit **
  21  Prefactor     .10000E-03    89.195       -.47672E-06** at limit **
  22  norm          .96882        1.5733       -.16593E-05   -.10254E-02
  23  Prefactor     3.0957        34.198        .25754E-04   -.19117E-04
  24  Prefactor     .10000E-03    34.850       -.36678E-06** at limit **
  25  Prefactor     .10000E-03    21.624       -.54130E-06** at limit **
  26  Normalizat    1.1554        .45866       -.13740E-04    .15567E-03
  27  Prefactor     .76475        .39819        .11683E-04   -.14693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3934
  Prefactor  = 0.0001
  Prefactor  = 4.11978
  Prefactor  = 0.0001
  norm       = 7.39588
  Prefactor  = 0.0001
  Prefactor  = 51.9122
  norm       = 10.3689
  Prefactor  = 0.0001
  Prefactor  = 0.000100083
  norm       = 32.4181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.968823
  Prefactor  = 3.09567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1554
  Prefactor  = 0.764748
 **********
 **   18 **HESSE 
 **********

 FCN=   1167.668     FROM HESSE     STATUS=OK           474 CALLS     3687 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10055E-03    1288.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    84.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    52.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.393        69.633        .60892E-04   -1.4390    
   8  Prefactor     .10000E-03    28.193        .17726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1198        94.737        .19960E-03   -1.5302    
  10  Prefactor     .10000E-03    67.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3959        8.6767        .10588E-03   -1.5164    
  12  Prefactor     .10000E-03    114.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.912        64.755        .55685E-04   -1.4266    
  14  norm          10.369        58.053        .12424E-03   -1.5064    
  15  Prefactor     .10000E-03    118.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10008E-03    126.64        .40502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          32.418        55.966        .70328E-04   -1.4569    
  18  Prefactor     .10000E-03    8.5785        .97704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.163        .11146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    89.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .96882        1.5528        .48216E-04   -1.5511    
  23  Prefactor     3.0957        34.522        .11536E-02   -1.5356    
  24  Prefactor     .10000E-03    34.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.789        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1554        .53497        .22960E-03   -.87992    
  27  Prefactor     .76475        .46588        .26035E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74177e-09
Minuit parameter uncertainties:
  1  4.50182e-05
  2  0.0546911
  3  5.70833e-05
  4  0.000262061
  5  0.000182536
  6  0.000127079
  7  69.7637
  8  6.64396e-05
  9  39.5822
  10  5.49736e-05
  11  8.67816
  12  0.000195104
  13  64.8432
  14  49.142
  15  7.60075e-05
  16  0.00648103
  17  56.0569
  18  6.62842e-06
  19  0.000196073
  20  7.91067e-05
  21  0.000226931
  22  1.55289
  23  20.6901
  24  2.7096e-05
  25  5.83914e-05
  26  0.537522
  27  0.468297
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  7.396e+00  8.678e+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.647e-01  4.683e-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.155e+00  5.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 6.57e-08
Energy Flux (Fixed Index): 4.27e-05 +/- 5.01e-05

TS (Fixed Index): 1.30
Ra Dec: 235.755 61.503
Photon Flux Upper Limit: 2.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666872/likelihoodResults_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1167.66841511
delta logL = 1.41351642924e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1167.6684151
delta logL = 1.41668419928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3959       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8981       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76481       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=   1167.668     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      194 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4048        505.96        .36870E-02   -.16448E-04
   2  alpha         1.8976        4.0007        .27849       -.74088E-05
   3  Normalizat    1.1555        .28261        .51931E-01   -.53059E-05
   4  Prefactor     .76468        .27582        .43257E-01   -.18100E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.4048
  alpha      = 1.89765
  Normalizat = 1.15547
  Prefactor  = 0.764684
 **********
 **   18 **HESSE 
 **********

 FCN=   1167.668     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4048        10.014        .10593E-03   -1.5164    
   2  alpha         1.8976        1.0102        .11084E-01   -.24334    
   3  Normalizat    1.1555        .47518        .22961E-03   -.87990    
   4  Prefactor     .76468        .44905        .26035E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88335e-11
Minuit parameter uncertainties:
  1  10.0161
  2  1.04195
  3  0.47696
  4  0.451215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666872': 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) = 1167.66841467
delta logL = 1.85242879525e-06

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  7.405e+00  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.898e+00  1.042e+00  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.647e-01  4.512e-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.155e+00  4.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.90 +/- 1.04
Photon Flux (Free Index): 5.60e-08 +/- 7.19e-08
Energy Flux (Free Index): 4.28e-05 +/- 9.05e-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/666872/cmap_HighResolution_520300801_520560001_4FGL_J1543.0+6130_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-04', comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='4.28e-05', photon_flux_error='6.57e-08', dlogl='1.85e-06', energy_flux='4.27e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-12 11:13:44.258762', photon_index_error2='1.04', photon_index2='1.90', ts='1.30', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='2.55e-07', energy_flux_error2='9.05e-05', EG='1.16', time_epoch_completed='1631470424.26', return_code='0', job_id='666872', GAL2='0.76', EG2='1.16', return_code2='0', energy_flux_error='5.01e-05', photon_flux_error2='7.19e-08', ts2='1.30', photon_index='1.90' WHERE bin_id='1084' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 666872: <4FGL_J1543.0+6130_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin1084> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 11:00:39 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:02:03 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:02:03 2021
Terminated at Sun Sep 12 11:13:45 2021
Results reported at Sun Sep 12 11:13:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin1084 235.755 61.5033 520300801 520560001 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 :                                   452.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             221.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            786 sec.

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

