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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin1007
RA = 235.755, Dec = 61.5033
tmin = 500342401, tmax = 500601601
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='666759', job_status='RUN', time_executed='2021-09-12 11:04:02.941091', time_epoch_executed='1631469842.94' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666759

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666759/ft1_4FGL_J1543.0+6130_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666759/ft2_4FGL_J1543.0+6130_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666759/ft1_4FGL_J1543.0+6130_daily_bin1007.fits outfile=/scratch/kocevski/666759/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin1007.fits ra=235.755 dec=61.5033 rad=12.0 tmin=500342401.0 tmax=500601601.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.71
user 4.46
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666759/ft1_filtered_4FGL_J1543.0+6130_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/666759/ft2_4FGL_J1543.0+6130_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/666759/ltcube_500342401_500601601_4FGL_J1543.0+6130_daily_bin1007.fits outfile=/scratch/kocevski/666759/expmap_500342401_500601601_4FGL_J1543.0+6130_daily_bin1007.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/666759/ltcube_500342401_500601601_4FGL_J1543.0+6130_daily_bin1007.fits
.....................!
real 191.41
user 185.41
sys 5.57

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/666759/ft1_filtered_4FGL_J1543.0+6130_daily_bin1007.fits scfile=/scratch/kocevski/666759/ft2_4FGL_J1543.0+6130_daily_bin1007.fits outfile=/scratch/kocevski/666759/cmap_500342401_500601601_4FGL_J1543.0+6130_daily_bin1007.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666759/ft1_filtered_4FGL_J1543.0+6130_daily_bin1007.fits scfile=/scratch/kocevski/666759/ft2_4FGL_J1543.0+6130_daily_bin1007.fits outfile=/scratch/kocevski/666759/cmap_HighResolution_500342401_500601601_4FGL_J1543.0+6130_daily_bin1007.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/666759/ft1_filtered_4FGL_J1543.0+6130_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/666759/ft2_4FGL_J1543.0+6130_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666759/Model_4FGL_J1543.0+6130_daily_bin1007.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/666759/ft1_filtered_4FGL_J1543.0+6130_daily_bin1007.fits.....................!
real 47.82
user 46.53
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.396       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5657       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.478       1.0000         .10000E-03   10000.    
     6 'Prefactor '    120.62       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1523       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.8072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.006       1.0000         .10000E-03   10000.    
    14 'norm      '    12.359       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2579       1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8701       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0241       1.0000         .10000E-03   10000.    
    20 'norm      '    24.834       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.091       1.0000         .10000E-03   10000.    
    22 'norm      '    .49666       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.336       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .46254       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21963E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94352       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84174       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=   5301.706     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3818 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.398        38.671        .15242E-06   -.20552E-04
   2  Prefactor     .10000E-03    249.27        .32168E-06** at limit **
   3  Prefactor     .10000E-03    19.542        .84055E-08** at limit **
   4  Prefactor     1.6125        71.143        .10116E-05    .24418E-05
   5  Prefactor     19.475        24.295       -.46468E-07   -.11329E-04
   6  Prefactor     120.64        42.915        .47191E-06   -.13502E-03
   7  Prefactor     .10000E-03    2.1051        .20074E-07** at limit **
   8  Prefactor     .10000E-03    1.9473        .31263E-07** at limit **
   9  Prefactor     2.1514        10.164        .56118E-05   -.28500E-04
  10  Prefactor     .10000E-03    10.422        .15007E-07** at limit **
  11  norm          8.8071        3.6196        .72895E-08   -.15059E-04
  12  Prefactor     .10000E-03    31.037       -.10303E-07** at limit **
  13  Prefactor     14.005        9.1069        .22839E-07   -.65159E-05
  14  norm          12.359        8.7603        .34375E-07   -.38222E-05
  15  Prefactor     .10000E-03    15.763        .40370E-07** at limit **
  16  Prefactor     4.2571        5.3192        .51710E-06   -.22452E-04
  17  norm          .10000E-03    23.586        .12884E-06** at limit **
  18  Prefactor     8.8696        7.0826        .43792E-07   -.63737E-05
  19  Prefactor     6.9590        82.491        .26386E-05    .43301E-04
  20  norm          24.832        13.546        .15659E-07    .82038E-04
  21  Prefactor     12.090        15.784        .93470E-07   -.48370E-05
  22  norm          .50726        1.0396        .32104E-06    .17244E-03
  23  Prefactor     10.352        11.180        .43736E-06    .35711E-03
  24  Prefactor     .11880        43.780       -.27437E-05    .58090E-07
  25  Prefactor     .10000E-03    5.4820       -.84919E-07** at limit **
  26  Normalizat    .94363        .18196       -.38004E-06    .11863E-03
  27  Prefactor     .84166        .18383       -.38750E-06    .89378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.3982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.61249
  Prefactor  = 19.4748
  Prefactor  = 120.636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15142
  Prefactor  = 0.0001
  norm       = 8.80707
  Prefactor  = 0.0001
  Prefactor  = 14.005
  norm       = 12.3588
  Prefactor  = 0.0001
  Prefactor  = 4.25715
  norm       = 0.0001
  Prefactor  = 8.86957
  Prefactor  = 6.95904
  norm       = 24.8322
  Prefactor  = 12.0902
  norm       = 0.507257
  Prefactor  = 10.3516
  Prefactor  = 0.118796
  Prefactor  = 0.0001
  Normalizat = 0.94363
  Prefactor  = 0.841657
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.706     FROM HESSE     STATUS=OK           504 CALLS     4322 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.398        38.669        .57058E-04   -1.4301    
   2  Prefactor     .10000E-03    249.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6125        71.902        .33989E-03   -1.5454    
   5  Prefactor     19.475        24.308        .90753E-04   -1.4825    
   6  Prefactor     120.64        42.769        .18321E-03   -1.3507    
   7  Prefactor     .10000E-03    2.1071        .10317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9536        .99226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1514        10.160        .14042E-02   -1.5415    
  10  Prefactor     .10000E-03    10.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.8071        3.6209        .85912E-04   -1.5114    
  12  Prefactor     .10000E-03    31.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.005        9.1079        .10703E-03   -1.4959    
  14  norm          12.359        8.7595        .11394E-03   -1.5005    
  15  Prefactor     .10000E-03    15.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2571        5.3132        .90772E-03   -1.5295    
  17  norm          .10000E-03    23.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8696        7.0845        .13458E-03   -1.5112    
  19  Prefactor     6.9590        83.226        .15137E-03   -1.5180    
  20  norm          24.832        13.530        .80383E-04   -1.4711    
  21  Prefactor     12.090        15.754        .11520E-03   -1.5012    
  22  norm          .50726        1.4719        .84453E-04   -1.5566    
  23  Prefactor     10.352        11.154        .12463E-03   -1.5064    
  24  Prefactor     .11880        97.929        .10012       -1.5639    
  25  Prefactor     .10000E-03    38.818        .33057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .94363        .21306        .23569E-03   -.94944    
  27  Prefactor     .84166        .21480        .25317E-03   -.98211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52081e-10
Minuit parameter uncertainties:
  1  38.689
  2  0.000149116
  3  7.58824e-06
  4  21.5621
  5  24.3205
  6  42.7804
  7  2.37549e-06
  8  4.30582e-06
  9  9.35284
  10  1.94475e-06
  11  3.62096
  12  1.65391e-05
  13  9.10878
  14  8.76042
  15  1.31519e-05
  16  5.31379
  17  3.25682e-05
  18  7.08521
  19  48.2157
  20  13.532
  21  15.7598
  22  1.47201
  23  11.1565
  24  6.82997
  25  7.24919e-05
  26  0.21325
  27  0.215019
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  8.807e+00  3.621e+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.417e-01  2.150e-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.436e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.60
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 5.08e-05 +/- 2.09e-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) = 5301.5360964
delta logL = 0.169653521216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5301.5316321
delta logL = 0.174117826816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8986       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6992       1.0000          .0000       5.0000    
     3 'Normalizat'    .95705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83519       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=   5301.532     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      195 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8986        4.3071        .33591E-02   -.16511E-02
   2  alpha         1.6992        .35343        .22614       -.20641E-05
   3  Normalizat    .95706        .17752        .45626E-01    .99294E-05
   4  Prefactor     .83521        .18099        .44173E-01    .12456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.89863
  alpha      = 1.69918
  Normalizat = 0.957063
  Prefactor  = 0.835208
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.532     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8986        3.8285        .90044E-04   -1.5111    
   2  alpha         1.6992        .33813        .92707E-02   -.32608    
   3  Normalizat    .95706        .20751        .23430E-03   -.94483    
   4  Prefactor     .83521        .21156        .25413E-03   -.98443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3668e-10
Minuit parameter uncertainties:
  1  3.82863
  2  0.339293
  3  0.207683
  4  0.211765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666759': 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) = 5301.53163203
delta logL = 0.174117892352

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  8.899e+00  3.829e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.699e+00  3.393e-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.352e-01  2.118e-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.571e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.89
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.70 +/- 0.34
Photon Flux (Free Index): 5.47e-08 +/- 3.06e-08
Energy Flux (Free Index): 6.75e-05 +/- 4.54e-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/666759/cmap_HighResolution_500342401_500601601_4FGL_J1543.0+6130_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='6.75e-05', photon_flux_error='2.74e-08', dlogl='1.74e-01', energy_flux='5.08e-05', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-09-12 11:17:03.116737', photon_index_error2='0.34', photon_index2='1.70', ts='22.60', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.54e-05', EG='0.94', time_epoch_completed='1631470623.12', return_code='0', job_id='666759', GAL2='0.84', EG2='0.96', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='3.06e-08', ts2='22.89', photon_index='1.90' WHERE bin_id='1007' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:17:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 666759: <4FGL_J1543.0+6130_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin1007 235.755 61.5033 500342401 500601601 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 :                                   777.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            992 sec.

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

