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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin635
RA = 235.755, Dec = 61.5033
tmin = 403920001, tmax = 404179201
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='665069', job_status='RUN', time_executed='2021-09-12 10:57:21.598365', time_epoch_executed='1631469441.6' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665069

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665069/ft1_4FGL_J1543.0+6130_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665069/ft2_4FGL_J1543.0+6130_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665069/ft1_4FGL_J1543.0+6130_daily_bin635.fits outfile=/scratch/kocevski/665069/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin635.fits ra=235.755 dec=61.5033 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.07
user 9.74
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665069/ft1_filtered_4FGL_J1543.0+6130_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/665069/ft2_4FGL_J1543.0+6130_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/665069/ltcube_403920001_404179201_4FGL_J1543.0+6130_daily_bin635.fits outfile=/scratch/kocevski/665069/expmap_403920001_404179201_4FGL_J1543.0+6130_daily_bin635.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/665069/ltcube_403920001_404179201_4FGL_J1543.0+6130_daily_bin635.fits
.....................!
real 192.63
user 186.90
sys 4.63

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/665069/ft1_filtered_4FGL_J1543.0+6130_daily_bin635.fits scfile=/scratch/kocevski/665069/ft2_4FGL_J1543.0+6130_daily_bin635.fits outfile=/scratch/kocevski/665069/cmap_403920001_404179201_4FGL_J1543.0+6130_daily_bin635.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/665069/ft1_filtered_4FGL_J1543.0+6130_daily_bin635.fits scfile=/scratch/kocevski/665069/ft2_4FGL_J1543.0+6130_daily_bin635.fits outfile=/scratch/kocevski/665069/cmap_HighResolution_403920001_404179201_4FGL_J1543.0+6130_daily_bin635.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/665069/ft1_filtered_4FGL_J1543.0+6130_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/665069/ft2_4FGL_J1543.0+6130_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665069/Model_4FGL_J1543.0+6130_daily_bin635.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/665069/ft1_filtered_4FGL_J1543.0+6130_daily_bin635.fits.....................!
real 42.86
user 41.48
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10922E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7772       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.497       1.0000         .10000E-03   10000.    
    11 'norm      '    .62727       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.255       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.4223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.958       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3554       1.0000         .10000E-03   10000.    
    17 'norm      '    .89022E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .30869       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7297       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91502       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88435       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=   4359.437     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3733 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.144       -.72526E-06** at limit **
   2  Prefactor     .10000E-03    240.60       -.60183E-05** at limit **
   3  Prefactor     .10000E-03    9.2705        .31053E-06** at limit **
   4  Prefactor     .10000E-03    10.374        .50024E-05** at limit **
   5  Prefactor     .10000E-03    12.390        .33931E-05** at limit **
   6  Prefactor     .10000E-03    10.097       -.49294E-05** at limit **
   7  Prefactor     2.6751        6.4825        .26288E-05   -.44466E-03
   8  Prefactor     .10000E-03    3.9289       -.10441E-06** at limit **
   9  Prefactor     9.7775        12.740        .24173E-06   -.17771E-04
  10  Prefactor     41.492        38.122        .95675E-07   -.11821E-04
  11  norm          .62546        6.1617        .12130E-04    .48915E-03
  12  Prefactor     11.193        366.35       -.16231E-03   -.66807E-04
  13  Prefactor     .10000E-03    5.9502        .79792E-07** at limit **
  14  norm          9.4234        9.7374       -.12899E-05   -.85648E-04
  15  Prefactor     30.960        34.188        .52591E-06   -.47021E-04
  16  Prefactor     4.3606        7.3895       -.11814E-05   -.21488E-03
  17  norm          .10001E-03    15.104        .58911E-06** at limit **
  18  Prefactor     4.2606        6.3388       -.30449E-05   -.94469E-04
  19  Prefactor     .10000E-03    14.043       -.89884E-05** at limit **
  20  norm          3.4308        9.9041       -.10020E-06   -.16314E-03
  21  Prefactor     .10000E-03    12.601       -.20267E-05** at limit **
  22  norm          .30868        .51713       -.52226E-07   -.70652E-03
  23  Prefactor     5.7289        9.0210       -.56899E-06   -.16051E-03
  24  Prefactor     .10000E-03    14.800        .75917E-05** at limit **
  25  Prefactor     .10000E-03    4.7836       -.34087E-08** at limit **
  26  Normalizat    .91492        .18718        .54069E-05   -.57838E-03
  27  Prefactor     .88451        .18415       -.19555E-05   -.10558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67515
  Prefactor  = 0.0001
  Prefactor  = 9.77747
  Prefactor  = 41.4922
  norm       = 0.625456
  Prefactor  = 11.1927
  Prefactor  = 0.0001
  norm       = 9.42338
  Prefactor  = 30.9599
  Prefactor  = 4.36055
  norm       = 0.000100013
  Prefactor  = 4.26062
  Prefactor  = 0.000100001
  norm       = 3.43078
  Prefactor  = 0.0001
  norm       = 0.308675
  Prefactor  = 5.72893
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.914915
  Prefactor  = 0.884511
 **********
 **   18 **HESSE 
 **********

 FCN=   4359.437     FROM HESSE     STATUS=OK           484 CALLS     4217 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    240.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6751        6.4304        .24912E-03   -1.5381    
   8  Prefactor     .10000E-03    3.9500        .12777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7775        12.738        .12816E-03   -1.5082    
  10  Prefactor     41.492        38.118        .62228E-04   -1.4419    
  11  norm          .62546        5.4623        .24032E-03   -1.5550    
  12  Prefactor     11.193        341.71        .11942E-03   -1.5039    
  13  Prefactor     .10000E-03    5.9668        .15706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.4234        9.7359        .13056E-03   -1.5094    
  15  Prefactor     30.960        34.175        .72011E-04   -1.4595    
  16  Prefactor     4.3606        7.3186        .19300E-03   -1.5290    
  17  norm          .10001E-03    99.245        .49324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2606        6.3305        .19375E-03   -1.5295    
  19  Prefactor     .10000E-03    13.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4308        9.8734        .21833E-03   -1.5338    
  21  Prefactor     .10000E-03    12.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .30868        .45829        .58049E-03   -1.5597    
  23  Prefactor     5.7289        8.8789        .16780E-03   -1.5229    
  24  Prefactor     .10000E-03    14.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.8157        .14102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91492        .22127        .22303E-03   -.95938    
  27  Prefactor     .88451        .21761        .23041E-03   -.96684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35672e-09
Minuit parameter uncertainties:
  1  4.58461e-06
  2  0.000590701
  3  2.14578e-05
  4  0.000113903
  5  9.68852e-05
  6  9.85073e-05
  7  6.43202
  8  2.48753e-05
  9  12.7414
  10  38.14
  11  3.69687
  12  124.473
  13  1.55428e-05
  14  9.73757
  15  34.1966
  16  7.32006
  17  0.002294
  18  6.33151
  19  0.000225945
  20  9.87813
  21  6.10346e-05
  22  0.458296
  23  8.88095
  24  0.000203982
  25  2.58075e-06
  26  0.221495
  27  0.217823
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  6.255e-01  3.697e+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.845e-01  2.178e-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.149e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 235.755 61.503
Photon Flux Upper Limit: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/665069/likelihoodResults_403920001_404179201_4FGL_J1543.0+6130_daily_bin635.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4358.67141909
delta logL = 0.765912825406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4358.66798594
delta logL = 0.769345981603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72069       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3813       1.0000          .0000       5.0000    
     3 'Normalizat'    .84781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92002       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=   4358.668     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72038        10.542        .10610E-01    .28343E-02
   2  alpha         3.3802        4.0904        .30044        .12737E-03
   3  Normalizat    .84766        .43027E-01    .44231E-01    .12675E-03
   4  Prefactor     .92036        .43631E-01    .45260E-01   -.23380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.720375
  alpha      = 3.38024
  Normalizat = 0.847662
  Prefactor  = 0.920362
 **********
 **   18 **HESSE 
 **********

 FCN=   4358.668     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72038        2.1864        .48052E-04   -1.5538    
   2  alpha         3.3802        1.5768        .11304E-01    .35981    
   3  Normalizat    .84766        .21801        .23052E-03   -.98324    
   4  Prefactor     .92036        .21711        .22611E-03   -.95433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63758e-10
Minuit parameter uncertainties:
  1  2.18668
  2  1.73027
  3  0.218235
  4  0.217318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665069': 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) = 4358.66798045
delta logL = 0.769351467721

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  7.204e-01  2.187e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  3.380e+00  1.730e+00  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  5.950e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.204e-01  2.173e-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:  8.477e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 235.755 61.503
Photon Index (Free Index): 3.38 +/- 1.73
Photon Flux (Free Index): 5.82e-08 +/- 5.54e-08
Energy Flux (Free Index): 1.05e-05 +/- 9.86e-06

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/665069/cmap_HighResolution_403920001_404179201_4FGL_J1543.0+6130_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-05', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='7.69e-01', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-12 11:10:24.257068', photon_index_error2='1.73', photon_index2='3.38', ts='0.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='6.70e-08', energy_flux_error2='9.86e-06', EG='0.91', time_epoch_completed='1631470224.26', return_code='0', job_id='665069', GAL2='0.92', EG2='0.85', return_code2='0', photon_flux_error2='5.54e-08', ts2='1.66', photon_index='1.90' WHERE bin_id='635' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:10:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 665069: <4FGL_J1543.0+6130_daily_bin635> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin635> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 10:55:30 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:57: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 10:57:10 2021
Terminated at Sun Sep 12 11:10:24 2021
Results reported at Sun Sep 12 11:10:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin635 235.755 61.5033 403920001 404179201 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 :                                   775.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            894 sec.

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

