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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin675
RA = 235.755, Dec = 61.5033
tmin = 414288001, tmax = 414547201
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='665330', job_status='RUN', time_executed='2021-09-12 11:00:38.291926', time_epoch_executed='1631469638.29' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665330/ft1_4FGL_J1543.0+6130_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665330/ft2_4FGL_J1543.0+6130_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665330/ft1_4FGL_J1543.0+6130_daily_bin675.fits outfile=/scratch/kocevski/665330/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin675.fits ra=235.755 dec=61.5033 rad=12.0 tmin=414288001.0 tmax=414547201.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 5.50
user 5.23
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665330/ft1_filtered_4FGL_J1543.0+6130_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/665330/ft2_4FGL_J1543.0+6130_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/665330/ltcube_414288001_414547201_4FGL_J1543.0+6130_daily_bin675.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/665330/ft2_4FGL_J1543.0+6130_daily_bin675.fits
.....................!
real 13.46
user 13.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665330/ft1_filtered_4FGL_J1543.0+6130_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/665330/ft2_4FGL_J1543.0+6130_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/665330/ltcube_414288001_414547201_4FGL_J1543.0+6130_daily_bin675.fits outfile=/scratch/kocevski/665330/expmap_414288001_414547201_4FGL_J1543.0+6130_daily_bin675.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/665330/ltcube_414288001_414547201_4FGL_J1543.0+6130_daily_bin675.fits
.....................!
real 191.65
user 185.77
sys 5.52

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/665330/ft1_filtered_4FGL_J1543.0+6130_daily_bin675.fits scfile=/scratch/kocevski/665330/ft2_4FGL_J1543.0+6130_daily_bin675.fits outfile=/scratch/kocevski/665330/cmap_414288001_414547201_4FGL_J1543.0+6130_daily_bin675.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665330/ft1_filtered_4FGL_J1543.0+6130_daily_bin675.fits scfile=/scratch/kocevski/665330/ft2_4FGL_J1543.0+6130_daily_bin675.fits outfile=/scratch/kocevski/665330/cmap_HighResolution_414288001_414547201_4FGL_J1543.0+6130_daily_bin675.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-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 '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.908       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.316       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    51.610       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    47.917       1.0000         .10000E-03   10000.    
    21 'Prefactor '    126.34       1.0000         .10000E-03   10000.    
    22 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.821       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .58826E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3256       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1128       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .63600       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=   3809.073     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3317 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.344        31.323       -.50771E-06    .14473E-04
   2  Prefactor     .10001E-03    1165.3       -.14364E-02** at limit **
   3  Prefactor     .10000E-03    7.5770        .12597E-06** at limit **
   4  Prefactor     .10000E-03    12.353       -.68572E-05** at limit **
   5  Prefactor     .10000E-03    6.6620       -.33934E-07** at limit **
   6  Prefactor     .10000E-03    28.128        .10464E-04** at limit **
   7  Prefactor     .10000E-03    19.311       -.99953E-05** at limit **
   8  Prefactor     15.908        10.568       -.32629E-08    .32590E-03
   9  Prefactor     .10000E-03    5.4096        .21506E-07** at limit **
  10  Prefactor     26.317        23.881       -.60140E-06    .24434E-05
  11  norm          4.7930        2.9829       -.62651E-08    .57910E-04
  12  Prefactor     .10000E-03    37.930       -.19611E-04** at limit **
  13  Prefactor     .10000E-03    3.8269       -.19782E-07** at limit **
  14  norm          .10000E-03    3.9648        .12831E-08** at limit **
  15  Prefactor     .10000E-03    21.885        .75575E-05** at limit **
  16  Prefactor     .10000E-03    12.751        .82799E-05** at limit **
  17  norm          51.612        64.832        .10674E-05   -.50340E-04
  18  Prefactor     9.6654        22.925       -.76801E-06   -.41402E-04
  19  Prefactor     .10000E-03    45.520        .69795E-05** at limit **
  20  norm          47.914        28.894        .27443E-06   -.73707E-04
  21  Prefactor     126.35        114.66        .12453E-04   -.12520E-04
  22  norm          .10000E-03    .60641       -.16611E-06** at limit **
  23  Prefactor     22.825        14.570       -.58700E-06   -.41341E-03
  24  Prefactor     .10158E-03    26.816        .39552E-05** at limit **
  25  Prefactor     8.2885        37.106       -.91784E-05   -.53140E-04
  26  Normalizat    1.1129        .19641        .10816E-06    .13222E-03
  27  Prefactor     .63589        .18730        .72592E-09    .74720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.344
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9076
  Prefactor  = 0.0001
  Prefactor  = 26.3166
  norm       = 4.79304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 51.6115
  Prefactor  = 9.66541
  Prefactor  = 0.0001
  norm       = 47.9138
  Prefactor  = 126.35
  norm       = 0.0001
  Prefactor  = 22.8255
  Prefactor  = 0.000101577
  Prefactor  = 8.28855
  Normalizat = 1.11285
  Prefactor  = 0.635894
 **********
 **   18 **HESSE 
 **********

 FCN=   3809.073     FROM HESSE     STATUS=OK           480 CALLS     3797 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.344        31.345        .69394E-04   -1.4552    
   2  Prefactor     .10001E-03    1165.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5801        .16593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6660        .15559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.908        10.585        .10042E-03   -1.4910    
   9  Prefactor     .10000E-03    5.4208        .14017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.317        23.883        .78091E-04   -1.4682    
  11  norm          4.7930        2.9834        .81857E-04   -1.5270    
  12  Prefactor     .10000E-03    37.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8285        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9684        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          51.612        64.778        .55826E-04   -1.4270    
  18  Prefactor     9.6654        22.919        .12888E-03   -1.5086    
  19  Prefactor     .10000E-03    45.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          47.914        28.875        .57927E-04   -1.4322    
  21  Prefactor     126.35        114.04        .35814E-04   -1.3455    
  22  norm          .10000E-03    1.1472        .87071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.825        13.909        .83848E-04   -1.4752    
  24  Prefactor     .10158E-03    199.63        .56878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.2885        36.650        .13894E-03   -1.5132    
  26  Normalizat    1.1129        .22649        .21057E-03   -.89340    
  27  Prefactor     .63589        .21470        .26512E-03   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66039e-09
Minuit parameter uncertainties:
  1  31.3608
  2  0.0059286
  3  2.09919e-06
  4  1.94718e-06
  5  7.84758e-07
  6  4.67749e-05
  7  6.61984e-05
  8  10.5867
  9  7.53001e-07
  10  23.8921
  11  2.98353
  12  4.20074e-06
  13  1.31233e-06
  14  2.47935e-06
  15  8.1477e-06
  16  3.04248e-05
  17  64.8667
  18  22.9401
  19  4.66172e-05
  20  28.8833
  21  114.234
  22  1.70533e-05
  23  13.9105
  24  0.0356044
  25  34.8937
  26  0.22669
  27  0.214974
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  4.793e+00  2.984e+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:  6.359e-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:  1.113e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.90
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.72e-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) = 3807.92573491
delta logL = 1.14740502622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3807.91584819
delta logL = 1.15729175296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2985       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2652       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62516       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=   3807.916     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2985        3.1011        .43652E-02    .17296E-02
   2  alpha         1.2652        .32518        .21272       -.20669E-04
   3  Normalizat    1.1257        .19004        .37041E-01   -.24509E-04
   4  Prefactor     .62517        .18643        .60354E-01    .39766E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.29846
  alpha      = 1.26516
  Normalizat = 1.12566
  Prefactor  = 0.625165
 **********
 **   18 **HESSE 
 **********

 FCN=   3807.916     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2985        3.3066        .81089E-04   -1.5248    
   2  alpha         1.2652        .36073        .90463E-02   -.51661    
   3  Normalizat    1.1257        .21733        .20937E-03   -.88932    
   4  Prefactor     .62517        .21288        .26698E-03   -1.0654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1853e-10
Minuit parameter uncertainties:
  1  3.30675
  2  0.362402
  3  0.217498
  4  0.213154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665330': 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) = 3807.91584818
delta logL = 1.15729176199

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  5.298e+00  3.307e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.265e+00  3.624e-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:  6.252e-01  2.132e-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.126e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.22
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.27 +/- 0.36
Photon Flux (Free Index): 2.59e-08 +/- 1.64e-08
Energy Flux (Free Index): 1.09e-04 +/- 1.08e-04

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/665330/cmap_HighResolution_414288001_414547201_4FGL_J1543.0+6130_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='1.09e-04', photon_flux_error='2.26e-08', dlogl='1.16e+00', energy_flux='2.77e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-09-12 11:11:03.940411', photon_index_error2='0.36', photon_index2='1.27', ts='7.90', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.08e-04', EG='1.11', time_epoch_completed='1631470263.94', return_code='0', job_id='665330', GAL2='0.63', EG2='1.13', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='1.64e-08', ts2='10.22', photon_index='1.90' WHERE bin_id='675' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 665330: <4FGL_J1543.0+6130_daily_bin675> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin675 235.755 61.5033 414288001 414547201 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 :                                   623.49 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             273.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            880 sec.

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

