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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin1052
RA = 235.755, Dec = 61.5033
tmin = 512006401, tmax = 512265601
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='666823', job_status='RUN', time_executed='2021-09-12 11:02:04.673120', time_epoch_executed='1631469724.67' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666823/ft1_4FGL_J1543.0+6130_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666823/ft2_4FGL_J1543.0+6130_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666823/ft1_4FGL_J1543.0+6130_daily_bin1052.fits outfile=/scratch/kocevski/666823/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1052.fits ra=235.755 dec=61.5033 rad=12.0 tmin=512006401.0 tmax=512265601.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.55
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666823/ft1_filtered_4FGL_J1543.0+6130_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/666823/ft2_4FGL_J1543.0+6130_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/666823/ltcube_512006401_512265601_4FGL_J1543.0+6130_daily_bin1052.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/666823/ft2_4FGL_J1543.0+6130_daily_bin1052.fits
.....................!
real 14.14
user 13.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666823/ft1_filtered_4FGL_J1543.0+6130_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/666823/ft2_4FGL_J1543.0+6130_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/666823/ltcube_512006401_512265601_4FGL_J1543.0+6130_daily_bin1052.fits outfile=/scratch/kocevski/666823/expmap_512006401_512265601_4FGL_J1543.0+6130_daily_bin1052.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/666823/ltcube_512006401_512265601_4FGL_J1543.0+6130_daily_bin1052.fits
.....................!
real 192.73
user 188.23
sys 4.00

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/666823/ft1_filtered_4FGL_J1543.0+6130_daily_bin1052.fits scfile=/scratch/kocevski/666823/ft2_4FGL_J1543.0+6130_daily_bin1052.fits outfile=/scratch/kocevski/666823/cmap_512006401_512265601_4FGL_J1543.0+6130_daily_bin1052.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666823/ft1_filtered_4FGL_J1543.0+6130_daily_bin1052.fits scfile=/scratch/kocevski/666823/ft2_4FGL_J1543.0+6130_daily_bin1052.fits outfile=/scratch/kocevski/666823/cmap_HighResolution_512006401_512265601_4FGL_J1543.0+6130_daily_bin1052.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47753E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.758       1.0000         .10000E-03   10000.    
    11 'norm      '    9.8002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.508       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4852       1.0000         .10000E-03   10000.    
    17 'norm      '    17.775       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.969       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .54635E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1831       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0599       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95597       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=   7723.542     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3304 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    18.872        .36590E-05** at limit **
   2  Prefactor     .10000E-03    302.18        .51209E-05** at limit **
   3  Prefactor     .10000E-03    5.9039       -.67877E-07** at limit **
   4  Prefactor     .10000E-03    11.858       -.13609E-06** at limit **
   5  Prefactor     .10000E-03    14.278       -.25587E-06** at limit **
   6  Prefactor     24.862        29.102        .67424E-06    .29621E-04
   7  Prefactor     3.3878        9.6265        .41294E-05    .23928E-04
   8  Prefactor     .70205        4.4615       -.23591E-06   -.59494E-05
   9  Prefactor     .10000E-03    4.2744        .18266E-06** at limit **
  10  Prefactor     16.759        16.238        .28652E-06    .35912E-04
  11  norm          9.8000        3.5044        .24229E-06    .47522E-03
  12  Prefactor     17.687        78.905       -.65209E-05   -.38861E-05
  13  Prefactor     .10000E-03    5.6455       -.17370E-06** at limit **
  14  norm          16.509        8.0768        .26886E-06    .20179E-03
  15  Prefactor     7.3267        29.047        .64596E-06    .28879E-04
  16  Prefactor     1.4850        3.7059        .25818E-06   -.69257E-04
  17  norm          17.775        15.521        .96462E-07    .20968E-04
  18  Prefactor     .10000E-03    2.5278       -.21232E-06** at limit **
  19  Prefactor     43.970        31.460       -.45306E-07    .35289E-04
  20  norm          1.4956        8.0007        .13440E-04   -.65892E-04
  21  Prefactor     .10000E-03    6.4647       -.17881E-06** at limit **
  22  norm          .54265E-01    .31815       -.55078E-07   -.44516E-03
  23  Prefactor     5.1832        5.5994        .32932E-07    .39489E-04
  24  Prefactor     .10000E-03    5.1734       -.35425E-07** at limit **
  25  Prefactor     .10000E-03    5.5296       -.36535E-06** at limit **
  26  Normalizat    1.0597        .16248       -.35763E-05    .73258E-04
  27  Prefactor     .95610        .15671        .21742E-05    .43623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8618
  Prefactor  = 3.38782
  Prefactor  = 0.702052
  Prefactor  = 0.0001
  Prefactor  = 16.7588
  norm       = 9.80005
  Prefactor  = 17.6874
  Prefactor  = 0.0001
  norm       = 16.5091
  Prefactor  = 7.32667
  Prefactor  = 1.48501
  norm       = 17.7754
  Prefactor  = 0.0001
  Prefactor  = 43.9699
  norm       = 1.49561
  Prefactor  = 0.0001
  norm       = 0.0542646
  Prefactor  = 5.18318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05972
  Prefactor  = 0.956103
 **********
 **   18 **HESSE 
 **********

 FCN=   7723.542     FROM HESSE     STATUS=OK           494 CALLS     3798 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    119.65        .73405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    302.08        .21432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.862        29.111        .80343E-04   -1.4710    
   7  Prefactor     3.3878        9.5645        .10992E-02   -1.5340    
   8  Prefactor     .70205        19.581        .30888E-02   -1.5540    
   9  Prefactor     .10000E-03    4.2809        .17745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.759        16.240        .97838E-04   -1.4889    
  11  norm          9.8000        3.5049        .92156E-04   -1.5082    
  12  Prefactor     17.687        78.950        .95388E-04   -1.4867    
  13  Prefactor     .10000E-03    5.6963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.509        8.0634        .98576E-04   -1.4895    
  15  Prefactor     7.3267        28.992        .14817E-03   -1.5167    
  16  Prefactor     1.4850        3.6646        .25757E-03   -1.5464    
  17  norm          17.775        15.507        .94997E-04   -1.4864    
  18  Prefactor     .10000E-03    2.5541        .13643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.970        31.382        .60460E-04   -1.4381    
  20  norm          1.4956        8.0573        .17516E-02   -1.5463    
  21  Prefactor     .10000E-03    6.4776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .54265E-01    .71648        .92721E-03   -1.5661    
  23  Prefactor     5.1832        5.5620        .88288E-03   -1.5253    
  24  Prefactor     .10000E-03    5.1761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.5943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0597        .18871        .23255E-03   -.91056    
  27  Prefactor     .95610        .18549        .24856E-03   -.94207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52594e-08
Minuit parameter uncertainties:
  1  0.00270482
  2  0.00121335
  3  1.67411e-05
  4  2.77577e-05
  5  7.62243e-05
  6  29.1277
  7  9.56881
  8  7.4175
  9  2.80168e-05
  10  16.2442
  11  3.505
  12  74.9029
  13  2.69913e-05
  14  8.06392
  15  29.0475
  16  3.66519
  17  15.5107
  18  2.40557e-05
  19  31.3936
  20  6.94404
  21  3.71107e-05
  22  0.394001
  23  5.56255
  24  1.01713e-05
  25  5.78747e-05
  26  0.188825
  27  0.185613
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  9.800e+00  3.505e+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.561e-01  1.856e-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.060e+00  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.93
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 5.66e-05 +/- 2.02e-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) = 7723.05886498
delta logL = 0.483159091102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7723.04299918
delta logL = 0.499024896581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1020       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5798       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94457       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=   7723.043     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      198 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1020        3.4373        .33212E-02    .21412E-02
   2  alpha         1.5798        .26670        .23896       -.41840E-04
   3  Normalizat    1.0858        .15293        .38608E-01   -.16248E-03
   4  Prefactor     .94456        .15580        .45571E-01   -.18345E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.10196
  alpha      = 1.57978
  Normalizat = 1.08583
  Prefactor  = 0.944563
 **********
 **   18 **HESSE 
 **********

 FCN=   7723.043     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1020        3.8561        .96716E-04   -1.5104    
   2  alpha         1.5798        .32484        .96943E-02   -.37695    
   3  Normalizat    1.0858        .17896        .23026E-03   -.90208    
   4  Prefactor     .94456        .18193        .25007E-03   -.94601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1148e-10
Minuit parameter uncertainties:
  1  3.85623
  2  0.325904
  3  0.179056
  4  0.182051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666823': 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) = 7723.04299917
delta logL = 0.499024900551

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  9.102e+00  3.856e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.580e+00  3.259e-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.446e-01  1.821e-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.086e+00  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.91
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.58 +/- 0.33
Photon Flux (Free Index): 5.07e-08 +/- 2.91e-08
Energy Flux (Free Index): 8.62e-05 +/- 5.19e-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/666823/cmap_HighResolution_512006401_512265601_4FGL_J1543.0+6130_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='8.62e-05', photon_flux_error='2.65e-08', dlogl='4.99e-01', energy_flux='5.66e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-12 11:17:10.742746', photon_index_error2='0.33', photon_index2='1.58', ts='36.93', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='5.19e-05', EG='1.06', time_epoch_completed='1631470630.74', return_code='0', job_id='666823', GAL2='0.94', EG2='1.09', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='2.91e-08', ts2='37.91', photon_index='1.90' WHERE bin_id='1052' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:17:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 666823: <4FGL_J1543.0+6130_daily_bin1052> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin1052 235.755 61.5033 512006401 512265601 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 :                                   897.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            995 sec.

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

