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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin987
RA = 235.755, Dec = 61.5033
tmin = 495158401, tmax = 495417601
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='666729', job_status='RUN', time_executed='2021-09-12 11:01:20.249071', time_epoch_executed='1631469680.25' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='987'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666729/ft1_4FGL_J1543.0+6130_daily_bin987.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666729/ft2_4FGL_J1543.0+6130_daily_bin987.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666729/ft1_4FGL_J1543.0+6130_daily_bin987.fits outfile=/scratch/kocevski/666729/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin987.fits ra=235.755 dec=61.5033 rad=12.0 tmin=495158401.0 tmax=495417601.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.09
user 3.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666729/ft1_filtered_4FGL_J1543.0+6130_daily_bin987.fits" evtable="EVENTS" scfile=/scratch/kocevski/666729/ft2_4FGL_J1543.0+6130_daily_bin987.fits sctable="SC_DATA" outfile=/scratch/kocevski/666729/ltcube_495158401_495417601_4FGL_J1543.0+6130_daily_bin987.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/666729/ft2_4FGL_J1543.0+6130_daily_bin987.fits
.....................!
real 16.43
user 16.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666729/ft1_filtered_4FGL_J1543.0+6130_daily_bin987.fits evtable="EVENTS" scfile=/scratch/kocevski/666729/ft2_4FGL_J1543.0+6130_daily_bin987.fits sctable="SC_DATA" expcube=/scratch/kocevski/666729/ltcube_495158401_495417601_4FGL_J1543.0+6130_daily_bin987.fits outfile=/scratch/kocevski/666729/expmap_495158401_495417601_4FGL_J1543.0+6130_daily_bin987.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/666729/ltcube_495158401_495417601_4FGL_J1543.0+6130_daily_bin987.fits
.....................!
real 194.57
user 188.21
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/666729/ft1_filtered_4FGL_J1543.0+6130_daily_bin987.fits scfile=/scratch/kocevski/666729/ft2_4FGL_J1543.0+6130_daily_bin987.fits outfile=/scratch/kocevski/666729/cmap_495158401_495417601_4FGL_J1543.0+6130_daily_bin987.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666729/ft1_filtered_4FGL_J1543.0+6130_daily_bin987.fits scfile=/scratch/kocevski/666729/ft2_4FGL_J1543.0+6130_daily_bin987.fits outfile=/scratch/kocevski/666729/cmap_HighResolution_495158401_495417601_4FGL_J1543.0+6130_daily_bin987.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.368       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.369       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19774E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22354E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3855       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13115E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.193       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .94831E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.190       1.0000         .10000E-03   10000.    
    20 'norm      '    13.924       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .84966       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.099       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81759       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=   7454.720     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3343 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.369        .37087E-06** at limit **
   2  Prefactor     .10000E-03    114.34       -.26783E-06** at limit **
   3  Prefactor     8.8470        23.424        .70538E-06   -.28565E-04
   4  Prefactor     24.368        23.526        .85882E-07   -.15601E-04
   5  Prefactor     .10000E-03    6.9758        .13823E-06** at limit **
   6  Prefactor     42.370        25.359        .89098E-07   -.10009E-04
   7  Prefactor     .10004E-03    12.027       -.18735E-05** at limit **
   8  Prefactor     1.8577        3.7216       -.63555E-07   -.35131E-03
   9  Prefactor     5.8114        12.232        .12504E-06   -.64771E-04
  10  Prefactor     .10000E-03    9.6102        .38478E-06** at limit **
  11  norm          4.9616        3.1220        .10721E-06   -.10929E-03
  12  Prefactor     16.217        87.066       -.26832E-05   -.23872E-04
  13  Prefactor     .10003E-03    9.8933        .26046E-05** at limit **
  14  norm          4.3881        6.3926       -.67883E-06   -.58881E-03
  15  Prefactor     .10000E-03    10.820       -.13902E-06** at limit **
  16  Prefactor     .10002E-03    6.8075        .72167E-06** at limit **
  17  norm          11.191        12.969       -.26365E-06   -.19333E-03
  18  Prefactor     .10837        29.798       -.47930E-05    .47166E-03
  19  Prefactor     16.190        18.594       -.42644E-07    .69789E-06
  20  norm          13.924        7.7455       -.33007E-06   -.63069E-03
  21  Prefactor     .10000E-03    4.1484        .36781E-07** at limit **
  22  norm          .84987        .62461        .97010E-08    .14877E-03
  23  Prefactor     19.097        7.8990        .77916E-07   -.33603E-04
  24  Prefactor     .10000E-03    8.5707       -.89146E-07** at limit **
  25  Prefactor     .10000E-03    6.1238        .18978E-06** at limit **
  26  Normalizat    1.0393        .17020       -.27736E-05   -.66574E-03
  27  Prefactor     .81731        .17080        .24031E-05   -.51960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.84703
  Prefactor  = 24.368
  Prefactor  = 0.0001
  Prefactor  = 42.3696
  Prefactor  = 0.000100042
  Prefactor  = 1.85772
  Prefactor  = 5.81141
  Prefactor  = 0.0001
  norm       = 4.9616
  Prefactor  = 16.217
  Prefactor  = 0.000100032
  norm       = 4.38812
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 11.191
  Prefactor  = 0.108375
  Prefactor  = 16.1904
  norm       = 13.9236
  Prefactor  = 0.0001
  norm       = 0.849868
  Prefactor  = 19.0973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03926
  Prefactor  = 0.817306
 **********
 **   18 **HESSE 
 **********

 FCN=   7454.720     FROM HESSE     STATUS=OK           498 CALLS     3841 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    114.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8470        23.517        .13465E-03   -1.5113    
   4  Prefactor     24.368        23.501        .81146E-04   -1.4720    
   5  Prefactor     .10000E-03    6.9929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.370        25.375        .61587E-04   -1.4405    
   7  Prefactor     .10004E-03    28.357        .33773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8577        3.6644        .22572E-03   -1.5435    
   9  Prefactor     5.8114        12.253        .16660E-03   -1.5226    
  10  Prefactor     .10000E-03    9.6167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9616        3.1170        .10925E-03   -1.5262    
  12  Prefactor     16.217        87.048        .99252E-04   -1.4902    
  13  Prefactor     .10003E-03    37.539        .33987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3881        6.0463        .19232E-03   -1.5289    
  15  Prefactor     .10000E-03    10.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    14.473        .34509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.191        12.913        .11975E-03   -1.5039    
  18  Prefactor     .10837        64.145        .27020E-02   -1.5642    
  19  Prefactor     16.190        18.574        .99540E-04   -1.4903    
  20  norm          13.924        7.8178        .53670E-03   -1.4962    
  21  Prefactor     .10000E-03    4.1570        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .84987        .60003        .54909E-03   -1.5524    
  23  Prefactor     19.097        7.8601        .91648E-04   -1.4834    
  24  Prefactor     .10000E-03    8.5890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.3039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0393        .18910        .22128E-03   -.91726    
  27  Prefactor     .81731        .18163        .25120E-03   -.99094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1879e-08
Minuit parameter uncertainties:
  1  2.46267e-05
  2  3.99442e-05
  3  23.5416
  4  23.51
  5  9.1926e-06
  6  25.3817
  7  0.00218361
  8  3.66479
  9  12.2585
  10  2.45644e-05
  11  3.11711
  12  75.3147
  13  0.00218223
  14  6.04713
  15  1.55208e-05
  16  0.00100875
  17  12.9162
  18  5.27646
  19  18.5807
  20  7.81838
  21  4.71706e-06
  22  0.600037
  23  7.86056
  24  8.22736e-07
  25  1.3078e-05
  26  0.189221
  27  0.181767
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  4.962e+00  3.117e+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.173e-01  1.818e-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.039e+00  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 1.80e-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) = 7453.84802693
delta logL = 0.871760663351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7453.83671818
delta logL = 0.883069411089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8033       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4396       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83283       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7453.837     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8034        2.7075        .81073E-04   -.41325E-03
   2  alpha         2.4395        .44539        .94105E-02   -.47574E-04
   3  Normalizat    1.0111        .17491        .22386E-03   -.29456E-04
   4  Prefactor     .83292        .17746        .24892E-03   -.18639E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.8034
  alpha      = 2.43955
  Normalizat = 1.01111
  Prefactor  = 0.832916
 **********
 **   18 **HESSE 
 **********

 FCN=   7453.837     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8034        2.5872        .32429E-05   -1.5318    
   2  alpha         2.4395        .42557        .37642E-03   -.24183E-01
   3  Normalizat    1.0111        .17503        .89542E-05   -.92659    
   4  Prefactor     .83292        .17757        .99566E-05   -.98526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77034e-10
Minuit parameter uncertainties:
  1  2.58727
  2  0.427657
  3  0.17513
  4  0.177692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666729': 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) = 7453.83671803
delta logL = 0.883069563968

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  3.803e+00  2.587e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.440e+00  4.277e-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.329e-01  1.777e-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.011e+00  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 235.755 61.503
Photon Index (Free Index): 2.44 +/- 0.43
Photon Flux (Free Index): 6.07e-08 +/- 3.30e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.10e-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/666729/cmap_HighResolution_495158401_495417601_4FGL_J1543.0+6130_daily_bin987.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='1.94e-05', photon_flux_error='2.36e-08', dlogl='8.83e-01', energy_flux='2.86e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-09-12 11:16:32.792028', photon_index_error2='0.43', photon_index2='2.44', ts='4.43', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.04', time_epoch_completed='1631470592.79', return_code='0', job_id='666729', GAL2='0.83', EG2='1.01', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='3.30e-08', ts2='6.18', photon_index='1.90' WHERE bin_id='987' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:16:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 666729: <4FGL_J1543.0+6130_daily_bin987> in cluster <slac> Done

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

Your job looked like:

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

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

