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


Performing analysis on: 4FGL_J1543.1+4209_daily_bin1202
RA = 235.799, Dec = 42.1549
tmin = 550886401, tmax = 551145601
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='678404', job_status='RUN', time_executed='2021-09-12 11:47:07.321555', time_epoch_executed='1631472427.32' WHERE source_name='4FGL J1543.1+4209' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678404/ft1_4FGL_J1543.1+4209_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678404/ft2_4FGL_J1543.1+4209_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678404/ft1_4FGL_J1543.1+4209_daily_bin1202.fits outfile=/scratch/kocevski/678404/ft1_filteredMKT_4FGL_J1543.1+4209_daily_bin1202.fits ra=235.799 dec=42.1549 rad=12.0 tmin=550886401.0 tmax=551145601.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.85
user 3.59
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/678404/ft2_4FGL_J1543.1+4209_daily_bin1202.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/678404/ft1_filteredMKT_4FGL_J1543.1+4209_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/678404/ft1_filtered_4FGL_J1543.1+4209_daily_bin1202.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678404/ft1_filtered_4FGL_J1543.1+4209_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/678404/ft2_4FGL_J1543.1+4209_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/678404/ltcube_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.fits outfile=/scratch/kocevski/678404/expmap_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.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/678404/ltcube_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.fits
.....................!
real 191.89
user 186.73
sys 4.71

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/678404/ft1_filtered_4FGL_J1543.1+4209_daily_bin1202.fits scfile=/scratch/kocevski/678404/ft2_4FGL_J1543.1+4209_daily_bin1202.fits outfile=/scratch/kocevski/678404/cmap_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678404/ft1_filtered_4FGL_J1543.1+4209_daily_bin1202.fits scfile=/scratch/kocevski/678404/ft2_4FGL_J1543.1+4209_daily_bin1202.fits outfile=/scratch/kocevski/678404/cmap_HighResolution_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678404/ft1_filtered_4FGL_J1543.1+4209_daily_bin1202.fits', '/scratch/kocevski/678404/ft2_4FGL_J1543.1+4209_daily_bin1202.fits', expMap='/scratch/kocevski/678404/expmap_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.fits', expCube='/scratch/kocevski/678404/ltcube_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678404/Model_4FGL_J1543.1+4209_daily_bin1202.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/678404/ft1_filtered_4FGL_J1543.1+4209_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/678404/ft2_4FGL_J1543.1+4209_daily_bin1202.fits
Exposure map: /scratch/kocevski/678404/expmap_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.fits
Exposure cube: /scratch/kocevski/678404/ltcube_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678404/Model_4FGL_J1543.1+4209_daily_bin1202.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) = 1878.60304231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.344       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85378       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12488E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-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 '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5307       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    67.299       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5673       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86104       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0850       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=   1878.597     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3870 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.368        33.060       -.12842E-06   -.15942E-04
   2  Prefactor     .10000E-03    20.816       -.33384E-06** at limit **
   3  Prefactor     .10000E-03    6.1508       -.21208E-06** at limit **
   4  Prefactor     .88948        49.280       -.26217E-04    .12386E-03
   5  norm          .10000E-03    1.7397       -.16889E-06** at limit **
   6  norm          .10000E-03    8.3108       -.37983E-08** at limit **
   7  Prefactor     .10000E-03    19.017        .93185E-06** at limit **
   8  Prefactor     .10001E-03    404.32        .20854E-05** at limit **
   9  Prefactor     .10000E-03    17.123       -.11619E-06** at limit **
  10  Prefactor     .10000E-03    9.7459        .40047E-06** at limit **
  11  norm          5.0988        2.7715       -.14323E-06   -.62431E-03
  12  Prefactor     .10000E-03    13.665        .29792E-06** at limit **
  13  Prefactor     .10000E-03    12.581        .17501E-06** at limit **
  14  norm          .10000E-03    8.3767        .31025E-06** at limit **
  15  Prefactor     .10000E-03    20.655        .20957E-06** at limit **
  16  Prefactor     .10000E-03    116.37       -.28925E-05** at limit **
  17  Prefactor     .10000E-03    2.5282        .20842E-06** at limit **
  18  Prefactor     .10000E-03    10.692       -.44218E-06** at limit **
  19  Prefactor     6.9155        27.347        .50449E-05    .37168E-03
  20  Prefactor     7.7273        13.400        .79795E-06    .27613E-03
  21  Prefactor     .10000E-03    1.7529        .69056E-07** at limit **
  22  norm          1.5306        .46652       -.88798E-07   -.42599E-02
  23  norm          .10000E-03    16.478       -.38611E-06** at limit **
  24  Prefactor     67.322        62.991        .45986E-06    .53518E-04
  25  Prefactor     2.5677        5.6804        .25509E-06    .33237E-03
  26  norm          .10000E-03    95.167        .18978E-05** at limit **
  27  Prefactor     .10000E-03    1.4157        .75139E-07** at limit **
  28  Prefactor     .10000E-03    1.2228        .64806E-07** at limit **
  29  Normalizat    .86081        .32237        .46247E-05   -.62413E-04
  30  Prefactor     1.0852        .31694       -.37431E-05   -.18687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.889483
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91553
  Prefactor  = 7.72733
  Prefactor  = 0.0001
  norm       = 1.53058
  norm       = 0.0001
  Prefactor  = 67.3219
  Prefactor  = 2.56771
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.860813
  Prefactor  = 1.08518
 **********
 **   18 **HESSE 
 **********

 FCN=   1878.597     FROM HESSE     STATUS=OK           568 CALLS     4438 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.368        33.149        .11895E-03   -1.5034    
   2  Prefactor     .10000E-03    20.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1578        .10500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88948        50.272        .28494E-02   -1.5519    
   5  norm          .10000E-03    1.7840        .11157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.5106        .24377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    407.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.138        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7590        .13220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0988        2.7720        .51605E-04   -1.5256    
  12  Prefactor     .10000E-03    13.709        .15646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.583        .15019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.3790        .12255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    116.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5385        .67330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.726        .13771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9155        28.233        .15257E-03   -1.5182    
  20  Prefactor     7.7273        13.487        .14428E-03   -1.5152    
  21  Prefactor     .10000E-03    1.7547        .56046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5306        .47301        .14500E-04   -1.5461    
  23  norm          .10000E-03    16.485        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     67.322        63.862        .48925E-04   -1.4065    
  25  Prefactor     2.5677        5.6594        .14904E-03   -1.5387    
  26  norm          .10000E-03    95.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.4586        .10043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.2409        .46740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .86081        .38175        .25886E-03   -.97851    
  30  Prefactor     1.0852        .38060        .24170E-03   -.89942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18354e-09
Minuit parameter uncertainties:
  1  33.2026
  2  1.26817e-05
  3  3.72027e-05
  4  13.3851
  5  1.6229e-05
  6  0.000140961
  7  0.000177277
  8  0.00297356
  9  5.53042e-05
  10  1.63119e-05
  11  2.77203
  12  1.0401e-05
  13  6.03544e-07
  14  7.62585e-06
  15  2.06636e-05
  16  0.000345987
  17  2.36116e-05
  18  3.01912e-05
  19  27.9686
  20  13.492
  21  6.34266e-06
  22  0.473016
  23  2.91054e-05
  24  63.9275
  25  5.66056
  26  0.000330649
  27  7.29471e-06
  28  5.64105e-06
  29  0.382957
  30  0.381555
Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.066e-05  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:  1.085e+00  3.816e-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:  8.608e-01  3.830e-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: 9.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/678404/likelihoodResults_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.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) = 1878.59733548
delta logL = -0.000227614918003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1878.59710865
delta logL = -7.91097818365e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1602       1.0000          .0000       10.000    
     3 'Normalizat'    .86076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0852       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1878.597     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    73.314        .17324E-02** at limit **
   2  Index         2.0976        8.4843        .50000        .19160E-04
   3  Normalizat    .86081        .15737E-01    .25885E-03   -.16845E-03
   4  Prefactor     1.0852        .16389E-01    .24170E-03   -.26090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101721
  Index      = 2.09758
  Normalizat = 0.860811
  Prefactor  = 1.08518
 **********
 **   18 **HESSE 
 **********

 FCN=   1878.597     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10172E-03    340.41        .34648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0976        5.2305        .50000       -.61932    
   3  Normalizat    .86081        .34636E-01    .51771E-04   -.97851    
   4  Prefactor     1.0852        .36070E-01    .48340E-04   -.89942    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.15171e-09
Minuit parameter uncertainties:
  1  0.0486925
  2  307.456
  3  0.0346371
  4  0.0360705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678404': 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) = 1878.59710838
delta logL = -5.13772420163e-07

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  1.017e-04  4.869e-02  1.000e-04  1.000e+04 ( 1.000e-14)
297        Index:  2.098e+00  3.075e+02  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:  1.085e+00  3.607e-02  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:  8.608e-01  3.464e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.799 42.155

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/678404/cmap_HighResolution_550886401_551145601_4FGL_J1543.1+4209_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', job_status='DONE', photon_flux_upper_limit='9.98e-08', time_completed='2021-09-12 11:55:47.351816', job_id='678404', GAL2='1.09', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631472947.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-5.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1202' AND source_name='4FGL J1543.1+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 678404: <4FGL_J1543.1+4209_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1543.1+4209_daily_bin1202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 11:40:19 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:43:13 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:43:13 2021
Terminated at Sun Sep 12 11:55:48 2021
Results reported at Sun Sep 12 11:55:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.1+4209_daily_bin1202 235.799 42.1549 550886401 551145601 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 :                                   516.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            929 sec.

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

