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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin640
RA = 235.755, Dec = 61.5033
tmin = 405216001, tmax = 405475201
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='665077', job_status='RUN', time_executed='2021-09-12 10:57:20.174369', time_epoch_executed='1631469440.17' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665077/ft1_4FGL_J1543.0+6130_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665077/ft2_4FGL_J1543.0+6130_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665077/ft1_4FGL_J1543.0+6130_daily_bin640.fits outfile=/scratch/kocevski/665077/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin640.fits ra=235.755 dec=61.5033 rad=12.0 tmin=405216001.0 tmax=405475201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.41
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665077/ft1_filtered_4FGL_J1543.0+6130_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/665077/ft2_4FGL_J1543.0+6130_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/665077/ltcube_405216001_405475201_4FGL_J1543.0+6130_daily_bin640.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/665077/ft2_4FGL_J1543.0+6130_daily_bin640.fits
.....................!
real 14.16
user 13.74
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665077/ft1_filtered_4FGL_J1543.0+6130_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/665077/ft2_4FGL_J1543.0+6130_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/665077/ltcube_405216001_405475201_4FGL_J1543.0+6130_daily_bin640.fits outfile=/scratch/kocevski/665077/expmap_405216001_405475201_4FGL_J1543.0+6130_daily_bin640.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/665077/ltcube_405216001_405475201_4FGL_J1543.0+6130_daily_bin640.fits
.....................!
real 191.42
user 186.06
sys 4.92

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/665077/ft1_filtered_4FGL_J1543.0+6130_daily_bin640.fits scfile=/scratch/kocevski/665077/ft2_4FGL_J1543.0+6130_daily_bin640.fits outfile=/scratch/kocevski/665077/cmap_405216001_405475201_4FGL_J1543.0+6130_daily_bin640.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665077/ft1_filtered_4FGL_J1543.0+6130_daily_bin640.fits scfile=/scratch/kocevski/665077/ft2_4FGL_J1543.0+6130_daily_bin640.fits outfile=/scratch/kocevski/665077/cmap_HighResolution_405216001_405475201_4FGL_J1543.0+6130_daily_bin640.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.435       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.026       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5725       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.898       1.0000         .10000E-03   10000.    
    11 'norm      '    10.479       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11841E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7098       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9206       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5706       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .18553       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.830       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1751       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75010       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=   5741.530     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3265 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.782        .29499E-05** at limit **
   2  Prefactor     .10000E-03    156.81       -.37946E-05** at limit **
   3  Prefactor     .10000E-03    8.9870        .59163E-06** at limit **
   4  Prefactor     35.431        30.389       -.35287E-06   -.21704E-05
   5  Prefactor     .10000E-03    4.9026        .13192E-07** at limit **
   6  Prefactor     .10000E-03    20.332       -.18436E-05** at limit **
   7  Prefactor     16.016        16.278        .14005E-06   -.63779E-05
   8  Prefactor     6.5711        12.156       -.13105E-06   -.18554E-04
   9  Prefactor     .10000E-03    8.3633       -.32834E-06** at limit **
  10  Prefactor     22.897        22.121        .15839E-06    .37850E-05
  11  norm          10.479        3.9808        .24766E-08    .36890E-04
  12  Prefactor     .10000E-03    35.814       -.54853E-05** at limit **
  13  Prefactor     .10004E-03    6.1319        .47216E-06** at limit **
  14  norm          3.7253        7.2002       -.15083E-06   -.14149E-03
  15  Prefactor     .10000E-03    18.868       -.24831E-05** at limit **
  16  Prefactor     3.9194        5.9644        .78336E-07   -.55838E-03
  17  norm          .10000E-03    9.9034       -.42097E-06** at limit **
  18  Prefactor     2.5716        3.6232        .11984E-06   -.90099E-03
  19  Prefactor     .10000E-03    36.326       -.84254E-05** at limit **
  20  norm          .10000E-03    3.1277       -.41018E-07** at limit **
  21  Prefactor     .10000E-03    31.626        .11893E-04** at limit **
  22  norm          .18556        .28135        .57084E-08    .15886E-03
  23  Prefactor     .10000E-03    5.7769        .38429E-07** at limit **
  24  Prefactor     .10000E-03    6.7098       -.83750E-08** at limit **
  25  Prefactor     14.833        8.8892       -.10850E-06   -.17652E-03
  26  Normalizat    1.1753        .17497       -.12678E-07   -.12192E-03
  27  Prefactor     .75005        .16588       -.10106E-06   -.72774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0162
  Prefactor  = 6.57105
  Prefactor  = 0.0001
  Prefactor  = 22.8966
  norm       = 10.4789
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  norm       = 3.72532
  Prefactor  = 0.0001
  Prefactor  = 3.91936
  norm       = 0.0001
  Prefactor  = 2.57156
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.18556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8327
  Normalizat = 1.17533
  Prefactor  = 0.75005
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.530     FROM HESSE     STATUS=OK           486 CALLS     3751 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    156.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.431        30.396        .67322E-04   -1.4517    
   5  Prefactor     .10000E-03    4.9036        .16386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.016        16.174        .10005E-03   -1.4907    
   8  Prefactor     6.5711        12.127        .15653E-03   -1.5195    
   9  Prefactor     .10000E-03    8.4287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.897        22.125        .83707E-04   -1.4751    
  11  norm          10.479        3.9829        .45167E-03   -1.5060    
  12  Prefactor     .10000E-03    35.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    61.136        .33444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7253        6.7162        .20967E-03   -1.5322    
  15  Prefactor     .10000E-03    18.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9194        6.5402        .10187E-02   -1.5312    
  17  norm          .10000E-03    9.9214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5716        7.2301        .12729E-02   -1.5387    
  19  Prefactor     .10000E-03    36.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1427        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .18556        .23948        .48180E-03   -1.5622    
  23  Prefactor     .10000E-03    5.9701        .35542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.833        8.8950        .10401E-03   -1.4938    
  26  Normalizat    1.1753        .20694        .21551E-03   -.87369    
  27  Prefactor     .75005        .19117        .25851E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50639e-09
Minuit parameter uncertainties:
  1  5.88255e-06
  2  2.3576e-05
  3  1.65459e-06
  4  30.4093
  5  7.94372e-08
  6  1.45114e-07
  7  16.1787
  8  12.1314
  9  1.25912e-07
  10  22.1327
  11  3.98302
  12  1.54176e-05
  13  0.00331696
  14  6.7176
  15  4.69966e-06
  16  6.54141
  17  5.21726e-07
  18  7.23258
  19  1.1311e-05
  20  5.31627e-07
  21  0.000134007
  22  0.239481
  23  1.5221e-06
  24  7.12097e-07
  25  8.89578
  26  0.207084
  27  0.191336
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  1.048e+01  3.983e+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:  7.500e-01  1.913e-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.175e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.20
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 7.94e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 6.05e-05 +/- 2.30e-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) = 5741.49963752
delta logL = 0.0308260416423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5741.49570351
delta logL = 0.0347600503201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.173       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9897       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75387       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=   5741.496     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      193 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.173        74.829        .31406E-02    .14934E-02
   2  alpha         1.9898        3.3832        .21692        .10364E-03
   3  Normalizat    1.1686        .28195        .35711E-01   -.59347E-03
   4  Prefactor     .75387        .20225        .43114E-01   -.46712E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1734
  alpha      = 1.98978
  Normalizat = 1.16862
  Prefactor  = 0.753869
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.496     FROM HESSE     STATUS=OK            27 CALLS      220 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.173        4.1002        .87670E-04   -1.5070    
   2  alpha         1.9898        .34732        .89045E-02   -.20553    
   3  Normalizat    1.1686        .19345        .21600E-03   -.87578    
   4  Prefactor     .75387        .18881        .25789E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67607e-10
Minuit parameter uncertainties:
  1  4.10028
  2  0.348497
  3  0.193566
  4  0.188969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665077': 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) = 5741.49570351
delta logL = 0.0347600544992

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  1.017e+01  4.100e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.990e+00  3.485e-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:  7.539e-01  1.890e-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.169e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.23
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.99 +/- 0.35
Photon Flux (Free Index): 8.59e-08 +/- 4.04e-08
Energy Flux (Free Index): 5.42e-05 +/- 3.00e-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/665077/cmap_HighResolution_405216001_405475201_4FGL_J1543.0+6130_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.94e-08', energy_flux2='5.42e-05', photon_flux_error='3.02e-08', dlogl='3.48e-02', energy_flux='6.05e-05', photon_flux2='8.59e-08', job_status='DONE', time_completed='2021-09-12 11:09:53.336995', photon_index_error2='0.35', photon_index2='1.99', ts='25.20', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='3.00e-05', EG='1.18', time_epoch_completed='1631470193.34', return_code='0', job_id='665077', GAL2='0.75', EG2='1.17', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='4.04e-08', ts2='25.23', photon_index='1.90' WHERE bin_id='640' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:09:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 665077: <4FGL_J1543.0+6130_daily_bin640> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin640 235.755 61.5033 405216001 405475201 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 :                                   750.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            863 sec.

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

