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


Performing analysis on: 4FGL_J1543.1+4209_daily_bin90
RA = 235.799, Dec = 42.1549
tmin = 262656001, tmax = 262915201
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='671080', job_status='RUN', time_executed='2021-09-12 11:18:31.443414', time_epoch_executed='1631470711.44' WHERE source_name='4FGL J1543.1+4209' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671080/ft1_4FGL_J1543.1+4209_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671080/ft2_4FGL_J1543.1+4209_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671080/ft1_4FGL_J1543.1+4209_daily_bin90.fits outfile=/scratch/kocevski/671080/ft1_filteredMKT_4FGL_J1543.1+4209_daily_bin90.fits ra=235.799 dec=42.1549 rad=12.0 tmin=262656001.0 tmax=262915201.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.20
user 1.03
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671080/ft2_4FGL_J1543.1+4209_daily_bin90.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/671080/ft1_filteredMKT_4FGL_J1543.1+4209_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/671080/ft1_filtered_4FGL_J1543.1+4209_daily_bin90.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671080/ft1_filtered_4FGL_J1543.1+4209_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/671080/ft2_4FGL_J1543.1+4209_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/671080/ltcube_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.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/671080/ft2_4FGL_J1543.1+4209_daily_bin90.fits
.....................!
real 14.54
user 14.22
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671080/ft1_filtered_4FGL_J1543.1+4209_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/671080/ft2_4FGL_J1543.1+4209_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/671080/ltcube_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.fits outfile=/scratch/kocevski/671080/expmap_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.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/671080/ltcube_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.fits
.....................!
real 158.35
user 153.05
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/671080/ft1_filtered_4FGL_J1543.1+4209_daily_bin90.fits scfile=/scratch/kocevski/671080/ft2_4FGL_J1543.1+4209_daily_bin90.fits outfile=/scratch/kocevski/671080/cmap_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.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.47
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671080/ft1_filtered_4FGL_J1543.1+4209_daily_bin90.fits scfile=/scratch/kocevski/671080/ft2_4FGL_J1543.1+4209_daily_bin90.fits outfile=/scratch/kocevski/671080/cmap_HighResolution_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5548       1.0000         .10000E-03   10000.    
     6 'norm      '    .10628       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2980       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-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 '    3.2955       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24122E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.936       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .43741       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.398       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5518       1.0000         .10000E-03   10000.    
    26 'norm      '    14.891       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3634       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1293       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71491       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=   5195.740     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3365 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.029        .90712E-02** at limit **
   2  Prefactor     .10000E-03    18.538        .90712E-02** at limit **
   3  Prefactor     .10000E-03    4.1459        .90712E-02** at limit **
   4  Prefactor     .10000E-03    2.1924        .90712E-02** at limit **
   5  norm          1.5554        1.5255        .85360E-02    .26925E-03
   6  norm          .12536        2.4202        .59132E-01    .61177E-03
   7  Prefactor     5.2821        7.0911        .43654E-02    .12968E-02
   8  Prefactor     .10000E-03    42.917        .90712E-02** at limit **
   9  Prefactor     .10003E-03    24.597        .90712E-02** at limit **
  10  Prefactor     .10000E-03    6.8151        .90712E-02** at limit **
  11  norm          11.414        2.3290        .29645E-02   -.26682E-04
  12  Prefactor     .10000E-03    4.5850        .90712E-02** at limit **
  13  Prefactor     .10006E-03    23.050        .90712E-02** at limit **
  14  norm          .10000E-03    9.4984        .90712E-02** at limit **
  15  Prefactor     3.2960        21.049        .55757E-02    .76162E-04
  16  Prefactor     .10000E-03    116.28        .90712E-02** at limit **
  17  Prefactor     3.7097        3.8896        .52424E-02    .44768E-03
  18  Prefactor     .10000E-03    5.5541        .90712E-02** at limit **
  19  Prefactor     .10000E-03    24.308        .90712E-02** at limit **
  20  Prefactor     20.905        10.927        .21884E-02    .11952E-03
  21  Prefactor     .10000E-03    1.6572        .90712E-02** at limit **
  22  norm          .43742        .18530        .39846E-02    .13906E-04
  23  norm          .10000E-03    5.1474        .90712E-02** at limit **
  24  Prefactor     12.401        23.039        .28441E-02    .39721E-04
  25  Prefactor     4.5523        4.3852        .47171E-02    .31418E-03
  26  norm          14.891        36.358        .25948E-02    .11983E-04
  27  Prefactor     .10000E-03    .77593        .23483E-01** at limit **
  28  Prefactor     3.3641        1.5968        .55164E-02   -.21512E-03
  29  Normalizat    1.1293        .19923        .36916E-01    .17401E-03
  30  Prefactor     .71477        .18974        .63232E-01    .14169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55541
  norm       = 0.125356
  Prefactor  = 5.28208
  Prefactor  = 0.000100002
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 11.414
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  norm       = 0.0001
  Prefactor  = 3.29599
  Prefactor  = 0.000100001
  Prefactor  = 3.70969
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 20.9051
  Prefactor  = 0.0001
  norm       = 0.437417
  norm       = 0.0001
  Prefactor  = 12.401
  Prefactor  = 4.55234
  norm       = 14.8911
  Prefactor  = 0.0001
  Prefactor  = 3.36407
  Normalizat = 1.12932
  Prefactor  = 0.714774
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.740     FROM HESSE     STATUS=OK           586 CALLS     3951 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1711        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1983        .10423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5554        1.5111        .84460E-04   -1.5459    
   6  norm          .12536        23.863        .20201E-02   -1.5637    
   7  Prefactor     5.2821        7.7750        .17462E-03   -1.5248    
   8  Prefactor     .10000E-03    42.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    24.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.414        2.3294        .47857E-04   -1.5032    
  12  Prefactor     .10000E-03    4.5926        .15066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    23.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.5400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2960        21.030        .22303E-03   -1.5345    
  16  Prefactor     .10000E-03    116.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7097        3.8798        .13834E-03   -1.5323    
  18  Prefactor     .10000E-03    5.6918        .33162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.905        10.959        .87537E-04   -1.4793    
  21  Prefactor     .10000E-03    1.6833        .90527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .43742        .18495        .17659E-04   -1.5576    
  23  norm          .10000E-03    5.1483        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.401        23.166        .11376E-03   -1.5004    
  25  Prefactor     4.5523        4.3785        .14270E-03   -1.5281    
  26  norm          14.891        36.230        .10379E-03   -1.4936    
  27  Prefactor     .10000E-03    1.0592        .11452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3641        1.5280        .55115E-04   -1.5341    
  29  Normalizat    1.1293        .23532        .23295E-03   -.88816    
  30  Prefactor     .71477        .22398        .27972E-03   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46391e-09
Minuit parameter uncertainties:
  1  0.000189599
  2  0.00026405
  3  2.38124e-06
  4  4.61254e-07
  5  1.51117
  6  3.45912
  7  7.77653
  8  0.000612093
  9  0.0018672
  10  2.97364e-05
  11  2.32944
  12  4.13413e-06
  13  0.00235094
  14  1.40328e-05
  15  16.6596
  16  0.000616364
  17  3.88011
  18  2.67245e-05
  19  0.000681149
  20  10.9597
  21  3.52943e-06
  22  0.184949
  23  5.31062e-06
  24  23.1825
  25  4.37883
  26  36.2834
  27  1.49201e-06
  28  1.52804
  29  0.235539
  30  0.224263
Done.

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

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  3.296e+00  1.666e+01  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:  7.148e-01  2.243e-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.129e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/671080/likelihoodResults_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.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): 0
logL (Free Index) = 5195.71641262
delta logL = 0.0238454531054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5195.713736
delta logL = 0.0265220773626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4498       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3699       1.0000          .0000       10.000    
     3 'Normalizat'    1.1270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71461       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=   5195.714     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      264 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4521        28.736        .26135E-03    .11875E-03
   2  Index         2.3694        2.2558        .12561E-01    .51656E-04
   3  Normalizat    1.1267        .22767        .23320E-03    .40334E-03
   4  Prefactor     .71488        .22285        .27969E-03    .34640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.45212
  Index      = 2.36937
  Normalizat = 1.1267
  Prefactor  = 0.714882
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.714     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4521        14.133        .10454E-04   -1.5395    
   2  Index         2.3694        1.6277        .50245E-03   -.55404    
   3  Normalizat    1.1267        .22750        .46639E-04   -.88899    
   4  Prefactor     .71488        .22265        .55938E-04   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79737e-10
Minuit parameter uncertainties:
  1  11.778
  2  1.67033
  3  0.227697
  4  0.222929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671080': 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) = 5195.7137351
delta logL = 0.0265229763309

Extracting fit parameters...

4FGL J1543.1+4209
   Spectrum: PowerLaw
296    Prefactor:  2.452e+00  1.178e+01  1.000e-04  1.000e+04 ( 1.000e-14)
297        Index:  2.369e+00  1.670e+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.149e-01  2.229e-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.127e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/671080/cmap_HighResolution_262656001_262915201_4FGL_J1543.1+4209_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-12 11:29:19.378124', job_id='671080', GAL2='0.71', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631471359.38', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.65e-02', ts2='0.10', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='90' AND source_name='4FGL J1543.1+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:29:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 671080: <4FGL_J1543.1+4209_daily_bin90> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.1+4209_daily_bin90 235.799 42.1549 262656001 262915201 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 :                                   646.43 sec.
    Max Memory :                                 1154 MB
    Average Memory :                             291.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            829 sec.

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

