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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin999
RA = 235.755, Dec = 61.5033
tmin = 498268801, tmax = 498528001
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='666747', job_status='RUN', time_executed='2021-09-12 11:01:30.725288', time_epoch_executed='1631469690.73' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666747

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666747/ft1_4FGL_J1543.0+6130_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666747/ft2_4FGL_J1543.0+6130_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666747/ft1_4FGL_J1543.0+6130_daily_bin999.fits outfile=/scratch/kocevski/666747/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin999.fits ra=235.755 dec=61.5033 rad=12.0 tmin=498268801.0 tmax=498528001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.82
user 4.56
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666747/ft1_filtered_4FGL_J1543.0+6130_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/666747/ft2_4FGL_J1543.0+6130_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/666747/ltcube_498268801_498528001_4FGL_J1543.0+6130_daily_bin999.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/666747/ft2_4FGL_J1543.0+6130_daily_bin999.fits
.....................!
real 13.14
user 12.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666747/ft1_filtered_4FGL_J1543.0+6130_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/666747/ft2_4FGL_J1543.0+6130_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/666747/ltcube_498268801_498528001_4FGL_J1543.0+6130_daily_bin999.fits outfile=/scratch/kocevski/666747/expmap_498268801_498528001_4FGL_J1543.0+6130_daily_bin999.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/666747/ltcube_498268801_498528001_4FGL_J1543.0+6130_daily_bin999.fits
.....................!
real 191.68
user 185.86
sys 5.24

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/666747/ft1_filtered_4FGL_J1543.0+6130_daily_bin999.fits scfile=/scratch/kocevski/666747/ft2_4FGL_J1543.0+6130_daily_bin999.fits outfile=/scratch/kocevski/666747/cmap_498268801_498528001_4FGL_J1543.0+6130_daily_bin999.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666747/ft1_filtered_4FGL_J1543.0+6130_daily_bin999.fits scfile=/scratch/kocevski/666747/ft2_4FGL_J1543.0+6130_daily_bin999.fits outfile=/scratch/kocevski/666747/cmap_HighResolution_498268801_498528001_4FGL_J1543.0+6130_daily_bin999.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.693       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12997E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.956       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.229       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.7619       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45529E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .93808       1.0000         .10000E-03   10000.    
    14 'norm      '    22.995       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    40.811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1610       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.496       1.0000         .10000E-03   10000.    
    20 'norm      '    15.018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.471       1.0000         .10000E-03   10000.    
    22 'norm      '    .13493E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2251       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1023       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81104       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=   7672.172     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3328 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.697        32.663       -.19938E-06    .55617E-05
   2  Prefactor     .10000E-03    238.97       -.89122E-06** at limit **
   3  Prefactor     .10519E-03    17.906        .31923E-05** at limit **
   4  Prefactor     .10000E-03    44.650       -.14044E-06** at limit **
   5  Prefactor     20.957        15.341       -.94691E-07    .12881E-04
   6  Prefactor     23.232        22.830       -.18824E-06    .16815E-04
   7  Prefactor     .10000E-03    5.7462       -.51448E-06** at limit **
   8  Prefactor     6.8706        7.5833       -.27125E-06   -.26698E-04
   9  Prefactor     4.9009        13.764        .34119E-06    .28705E-04
  10  Prefactor     .10000E-03    17.679       -.68526E-07** at limit **
  11  norm          7.7565        2.9948        .65757E-06    .57627E-03
  12  Prefactor     .10002E-03    477.54        .26112E-04** at limit **
  13  Prefactor     .93388        7.4386        .12759E-07   -.38817E-05
  14  norm          23.002        9.4397       -.90655E-07    .62886E-04
  15  Prefactor     .10000E-03    18.531       -.45235E-07** at limit **
  16  Prefactor     .10000E-03    1.2308       -.11892E-07** at limit **
  17  norm          40.813        18.849       -.62005E-07    .11429E-04
  18  Prefactor     2.1610        3.8644       -.95118E-07    .68613E-05
  19  Prefactor     17.496        30.230       -.32860E-06    .19224E-04
  20  norm          15.018        7.8531       -.39609E-07    .54046E-04
  21  Prefactor     33.472        18.561       -.33863E-06    .29934E-04
  22  norm          .10000E-03    .27435       -.48840E-07** at limit **
  23  Prefactor     .10000E-03    3.2630       -.28663E-08** at limit **
  24  Prefactor     .10000E-03    8.5106       -.16622E-07** at limit **
  25  Prefactor     1.2274        12.899        .21865E-05    .25175E-03
  26  Normalizat    1.1021        .15930        .13648E-05    .13254E-03
  27  Prefactor     .81109        .15372        .22164E-06    .18776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6966
  Prefactor  = 0.0001
  Prefactor  = 0.000105187
  Prefactor  = 0.0001
  Prefactor  = 20.9568
  Prefactor  = 23.2318
  Prefactor  = 0.0001
  Prefactor  = 6.87059
  Prefactor  = 4.90088
  Prefactor  = 0.0001
  norm       = 7.75647
  Prefactor  = 0.000100017
  Prefactor  = 0.933885
  norm       = 23.002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.8125
  Prefactor  = 2.16097
  Prefactor  = 17.496
  norm       = 15.0182
  Prefactor  = 33.472
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22736
  Normalizat = 1.10211
  Prefactor  = 0.811086
 **********
 **   18 **HESSE 
 **********

 FCN=   7672.172     FROM HESSE     STATUS=OK           506 CALLS     3834 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.697        32.687        .67079E-04   -1.4512    
   2  Prefactor     .10000E-03    239.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10519E-03    13.938        .99777E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.957        15.347        .87495E-04   -1.4792    
   6  Prefactor     23.232        22.838        .83109E-04   -1.4744    
   7  Prefactor     .10000E-03    5.7841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.8706        7.6193        .15310E-03   -1.5184    
   9  Prefactor     4.9009        13.750        .18165E-03   -1.5265    
  10  Prefactor     .10000E-03    17.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.7565        2.9895        .90809E-04   -1.5151    
  12  Prefactor     .10002E-03    475.49        .19329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .93388        6.9526        .42138E-03   -1.5515    
  14  norm          23.002        9.1943        .83531E-04   -1.4748    
  15  Prefactor     .10000E-03    18.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2327        .94896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          40.813        18.849        .62747E-04   -1.4429    
  18  Prefactor     2.1610        3.8383        .22153E-03   -1.5414    
  19  Prefactor     17.496        30.274        .95752E-04   -1.4871    
  20  norm          15.018        7.8522        .10335E-03   -1.4933    
  21  Prefactor     33.472        18.593        .69263E-04   -1.4550    
  22  norm          .10000E-03    .27601        .15864E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2968        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2274        13.110        .20347E-02   -1.5486    
  26  Normalizat    1.1021        .18243        .22753E-03   -.89684    
  27  Prefactor     .81109        .17647        .26383E-03   -.99321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76076e-09
Minuit parameter uncertainties:
  1  32.7032
  2  0.000423337
  3  0.0170089
  4  0.000175291
  5  15.3496
  6  22.8465
  7  2.83471e-05
  8  7.62038
  9  13.7584
  10  3.43839e-05
  11  2.98957
  12  0.00567937
  13  5.09679
  14  9.19488
  15  2.93541e-05
  16  1.43964e-06
  17  18.8521
  18  3.83872
  19  30.3003
  20  7.85269
  21  18.5963
  22  5.11117e-07
  23  8.64267e-06
  24  8.29317e-06
  25  8.02458
  26  0.182539
  27  0.176593
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  7.756e+00  2.990e+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.111e-01  1.766e-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.102e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.30
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 4.48e-05 +/- 1.73e-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) = 7672.13892918
delta logL = 0.0331542761542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7672.13843249
delta logL = 0.0336509599665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8029       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8054       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80789       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=   7672.138     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8029        13.662        .35887E-02   -.66876E-03
   2  alpha         1.8054        1.3012        .28687        .30820E-05
   3  Normalizat    1.1086        .16898        .37661E-01    .50665E-05
   4  Prefactor     .80790        .15935        .43820E-01    .40007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.80285
  alpha      = 1.80535
  Normalizat = 1.10859
  Prefactor  = 0.807904
 **********
 **   18 **HESSE 
 **********

 FCN=   7672.138     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8029        3.0717        .93256E-04   -1.5149    
   2  alpha         1.8054        .36225        .10699E-01   -.28156    
   3  Normalizat    1.1086        .17158        .22699E-03   -.89476    
   4  Prefactor     .80790        .17234        .26433E-03   -.99438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64227e-11
Minuit parameter uncertainties:
  1  3.07179
  2  0.363637
  3  0.171662
  4  0.172455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666747': 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) = 7672.13843247
delta logL = 0.0336509806402

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  7.803e+00  3.072e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.805e+00  3.636e-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.079e-01  1.725e-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.109e+00  1.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.30
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.81 +/- 0.36
Photon Flux (Free Index): 5.33e-08 +/- 2.93e-08
Energy Flux (Free Index): 5.04e-05 +/- 3.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/666747/cmap_HighResolution_498268801_498528001_4FGL_J1543.0+6130_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='5.04e-05', photon_flux_error='2.26e-08', dlogl='3.37e-02', energy_flux='4.48e-05', photon_flux2='5.33e-08', job_status='DONE', time_completed='2021-09-12 11:16:53.446428', photon_index_error2='0.36', photon_index2='1.81', ts='25.30', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='1.10', time_epoch_completed='1631470613.45', return_code='0', job_id='666747', GAL2='0.81', EG2='1.11', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='2.93e-08', ts2='25.30', photon_index='1.90' WHERE bin_id='999' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:16:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 666747: <4FGL_J1543.0+6130_daily_bin999> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin999> 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) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:01:16 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:16 2021
Terminated at Sun Sep 12 11:16:54 2021
Results reported at Sun Sep 12 11:16:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin999 235.755 61.5033 498268801 498528001 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 :                                   910.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            983 sec.

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

