/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 8 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1543.1+4209_daily_bin73
RA = 235.799, Dec = 42.1549
tmin = 258249601, tmax = 258508801
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='671053', job_status='RUN', time_executed='2021-09-12 11:16:14.001410', time_epoch_executed='1631470574.0' WHERE source_name='4FGL J1543.1+4209' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671053

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671053/ft1_4FGL_J1543.1+4209_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671053/ft1_4FGL_J1543.1+4209_daily_bin73.fits outfile=/scratch/kocevski/671053/ft1_filteredMKT_4FGL_J1543.1+4209_daily_bin73.fits ra=235.799 dec=42.1549 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.19
user 1.01
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.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/671053/ft1_filteredMKT_4FGL_J1543.1+4209_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/671053/ltcube_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.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/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits
.....................!
real 12.28
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/671053/ltcube_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.fits outfile=/scratch/kocevski/671053/expmap_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.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/671053/ltcube_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.fits
.....................!
real 191.11
user 186.03
sys 4.72

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 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1543.1+4209 @ 235.799 42.1549

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits scfile=/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits outfile=/scratch/kocevski/671053/cmap_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.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.799 yref=42.1549 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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits scfile=/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits outfile=/scratch/kocevski/671053/cmap_HighResolution_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.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.799 yref=42.1549 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671053/Model_4FGL_J1543.1+4209_daily_bin73.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/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits.....................!
real 37.37
user 36.11
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits', '/scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits', expMap='/scratch/kocevski/671053/expmap_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.fits', expCube='/scratch/kocevski/671053/ltcube_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/671053/Model_4FGL_J1543.1+4209_daily_bin73.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.1+4209'

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
297        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/671053/ft1_filtered_4FGL_J1543.1+4209_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/671053/ft2_4FGL_J1543.1+4209_daily_bin73.fits
Exposure map: /scratch/kocevski/671053/expmap_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.fits
Exposure cube: /scratch/kocevski/671053/ltcube_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/671053/Model_4FGL_J1543.1+4209_daily_bin73.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) = 4079.53754462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.580       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    11 'norm      '    13.278       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11750E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.560       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1083       1.0000         .10000E-03   10000.    
    22 'norm      '    .30874       1.0000         .10000E-03   10000.    
    23 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.396       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    30.805       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17504E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4755       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0925       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4079.515     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3942 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.573        36.088        .24327E-06   -.16914E-03
   2  Prefactor     10.204        20.722        .74271E-06   -.76171E-04
   3  Prefactor     23.378        14.861       -.29943E-06   -.50952E-03
   4  Prefactor     .10000E-03    2.4175        .38856E-08** at limit **
   5  norm          .10000E-03    1.7047        .87084E-06** at limit **
   6  norm          .10000E-03    1.6613        .49517E-06** at limit **
   7  Prefactor     .10001E-03    15.497        .44630E-05** at limit **
   8  Prefactor     .10001E-03    37.550       -.10923E-05** at limit **
   9  Prefactor     .10000E-03    17.399        .15298E-05** at limit **
  10  Prefactor     15.741        19.020       -.65885E-06   -.11177E-03
  11  norm          13.278        2.7092        .31570E-07    .16229E-04
  12  Prefactor     .10000E-03    5.0303       -.11927E-06** at limit **
  13  Prefactor     .10000E-03    17.921        .15799E-06** at limit **
  14  norm          1.3322        32.763        .19837E-04   -.15587E-03
  15  Prefactor     .10000E-03    45.965        .10013E-05** at limit **
  16  Prefactor     .10000E-03    19.680        .40168E-07** at limit **
  17  Prefactor     .10000E-03    4.2670       -.57058E-06** at limit **
  18  Prefactor     5.5397        7.7215       -.11921E-06   -.28931E-04
  19  Prefactor     18.552        35.960        .14056E-05   -.12709E-03
  20  Prefactor     .10000E-03    6.6846       -.29085E-06** at limit **
  21  Prefactor     4.1135        5.0870        .31766E-06   -.15406E-03
  22  norm          .30880        .19020        .71183E-08   -.45553E-03
  23  norm          .10000E-03    14.037       -.36444E-06** at limit **
  24  Prefactor     50.410        32.949       -.14801E-06    .26186E-03
  25  Prefactor     .10000E-03    4.9639       -.51841E-06** at limit **
  26  norm          30.806        53.278        .27773E-06    .89656E-05
  27  Prefactor     .10000E-03    1.1422        .73976E-07** at limit **
  28  Prefactor     3.4822        2.1708        .30214E-07   -.22312E-03
  29  Normalizat    1.0913        .24460       -.46026E-05   -.47749E-03
  30  Prefactor     .69622        .21887        .31019E-05   -.19904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.5731
  Prefactor  = 10.2037
  Prefactor  = 23.3782
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 15.7408
  norm       = 13.2776
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.33221
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53973
  Prefactor  = 18.5516
  Prefactor  = 0.0001
  Prefactor  = 4.1135
  norm       = 0.308798
  norm       = 0.000100001
  Prefactor  = 50.4096
  Prefactor  = 0.000100001
  norm       = 30.8061
  Prefactor  = 0.0001
  Prefactor  = 3.48219
  Normalizat = 1.09134
  Prefactor  = 0.696223
 **********
 **   18 **HESSE 
 **********

 FCN=   4079.515     FROM HESSE     STATUS=OK           584 CALLS     4526 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.573        36.063        .53806E-04   -1.4216    
   2  Prefactor     10.204        20.715        .12539E-03   -1.5069    
   3  Prefactor     23.378        13.757        .82785E-04   -1.4741    
   4  Prefactor     .10000E-03    2.4199        .96981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.6772        .14566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6759        .80542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    16.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    37.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.741        19.397        .10107E-03   -1.4914    
  11  norm          13.278        2.7086        .45998E-04   -1.4979    
  12  Prefactor     .10000E-03    5.0408        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3322        33.634        .18990E-02   -1.5477    
  15  Prefactor     .10000E-03    46.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6177        .25028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5397        7.7189        .17072E-03   -1.5237    
  19  Prefactor     18.552        36.123        .92968E-04   -1.4846    
  20  Prefactor     .10000E-03    6.8081        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1135        5.0504        .14532E-03   -1.5302    
  22  norm          .30880        .18955        .19339E-04   -1.5597    
  23  norm          .10000E-03    14.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     50.410        32.929        .56491E-04   -1.4287    
  25  Prefactor     .10000E-03    5.1165        .27782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          30.806        53.200        .72190E-04   -1.4597    
  27  Prefactor     .10000E-03    11.044        .11110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.4822        1.9068        .59750E-04   -1.5335    
  29  Normalizat    1.0913        .29148        .23879E-03   -.90030    
  30  Prefactor     .69622        .26328        .28654E-03   -1.0368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6205e-09
Minuit parameter uncertainties:
  1  36.0769
  2  20.7292
  3  13.7588
  4  1.33363e-06
  5  5.27549e-05
  6  3.56945e-05
  7  0.000938458
  8  0.00096583
  9  0.000228376
  10  19.4047
  11  2.70863
  12  2.86225e-05
  13  0.00019534
  14  13.3957
  15  0.00065233
  16  7.1969e-05
  17  5.07249e-05
  18  7.72024
  19  36.1656
  20  2.92445e-05
  21  5.05091
  22  0.189548
  23  0.000187255
  24  32.9406
  25  0.000114001
  26  53.2824
  27  3.0457e-05
  28  1.90684
  29  0.291913
  30  0.263755
Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  6.523e-04  1.000e-04  1.000e+04 ( 1.000e-14)
297        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  6.962e-01  2.638e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.091e+00  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 235.799 42.155
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671053/likelihoodResults_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.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) = 4079.51534723
delta logL = -0.000102596811303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4077.67668058
delta logL = 1.8385640507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29502E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4114       1.0000          .0000       10.000    
     3 'Normalizat'    .93674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4077.677     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      334 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28702E-02    .34704E-01    .53031E-03   -.18846E-01
   2  Index         5.4200        1.8463        .54215E-01   -.44891E-04
   3  Normalizat    .93733        .67112E-01    .45369E-01   -.29735E-04
   4  Prefactor     .79359        .65509E-01    .43641E-01   -.87124E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00287015
  Index      = 5.41995
  Normalizat = 0.937329
  Prefactor  = 0.793593
 **********
 **   18 **HESSE 
 **********

 FCN=   4077.677     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      367 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28702E-02    .62479E-01    .21961E-05   -1.5697    
   2  Index         5.4200        2.6672        .22361E-02    .84090E-01
   3  Normalizat    .93733        .23392        .25489E-03   -.95161    
   4  Prefactor     .79359        .22626        .26959E-03   -.99965    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34231e-10
Minuit parameter uncertainties:
  1  0.0263117
  2  2.81456
  3  0.234177
  4  0.226521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671053': 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): 102
logL (Free Index) = 4077.67667041
delta logL = 1.83857422728

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  2.870e-03  2.631e-02  1.000e-04  1.000e+04 ( 1.000e-14)
297        Index:  5.420e+00  2.815e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  3.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  7.936e-01  2.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  9.373e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 235.799 42.155
Photon Index (Free Index): 5.42 +/- 2.81
Photon Flux (Free Index): 1.05e-07 +/- 6.74e-08
Energy Flux (Free Index): 1.36e-05 +/- 8.94e-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/671053/cmap_HighResolution_258249601_258508801_4FGL_J1543.1+4209_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='1.84e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-12 11:28:04.811487', photon_index_error2='2.81', photon_index2='5.42', ts='-0.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='8.94e-06', EG='1.09', time_epoch_completed='1631471284.81', return_code='0', job_id='671053', GAL2='0.79', EG2='0.94', return_code2='102', photon_flux_error2='6.74e-08', ts2='3.92', photon_index='1.98' WHERE bin_id='73' AND source_name='4FGL J1543.1+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:28:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 671053: <4FGL_J1543.1+4209_daily_bin73> in cluster <slac> Done

Job <4FGL_J1543.1+4209_daily_bin73> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 11:15:28 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:15:57 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:15:57 2021
Terminated at Sun Sep 12 11:28:05 2021
Results reported at Sun Sep 12 11:28:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.1+4209_daily_bin73 235.799 42.1549 258249601 258508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1543.1+4209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            757 sec.

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

