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


Performing analysis on: 4FGL_J0543.9-5531_daily_bin635
RA = 85.9814, Dec = -55.5327
tmin = 403920001, tmax = 404179201
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='823501', job_status='RUN', time_executed='2021-08-23 20:56:33.365434', time_epoch_executed='1629777393.37' WHERE source_name='4FGL J0543.9-5531' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823501

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823501/ft1_4FGL_J0543.9-5531_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823501/ft1_4FGL_J0543.9-5531_daily_bin635.fits outfile=/scratch/kocevski/823501/ft1_filteredMKT_4FGL_J0543.9-5531_daily_bin635.fits ra=85.9814 dec=-55.5327 rad=12.0 tmin=403920001.0 tmax=404179201.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 13.50
user 9.71
sys 3.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.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/823501/ft1_filteredMKT_4FGL_J0543.9-5531_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.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 3.35
user 0.31
sys 2.99

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/823501/ltcube_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.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/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits
.....................!
real 14.12
user 8.85
sys 3.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/823501/ltcube_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.fits outfile=/scratch/kocevski/823501/expmap_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.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/823501/ltcube_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.fits
.....................!
real 195.03
user 184.99
sys 9.17

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
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 211 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0543.9-5531 @ 85.9814 -55.5327

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits scfile=/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits outfile=/scratch/kocevski/823501/cmap_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.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=85.9814 yref=-55.5327 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 3.35
user 0.39
sys 2.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits scfile=/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits outfile=/scratch/kocevski/823501/cmap_HighResolution_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.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=85.9814 yref=-55.5327 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 3.33
user 0.37
sys 2.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/823501/Model_4FGL_J0543.9-5531_daily_bin635.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits........................!
real 444.66
user 438.02
sys 5.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits', '/scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits', expMap='/scratch/kocevski/823501/expmap_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.fits', expCube='/scratch/kocevski/823501/ltcube_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823501/Model_4FGL_J0543.9-5531_daily_bin635.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0543.9-5531'

4FGL J0543.9-5531
   Spectrum: LogParabola
355         norm:  3.185e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        alpha:  1.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
357         beta:  6.954e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
358           Eb:  2.273e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/823501/ft1_filtered_4FGL_J0543.9-5531_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/823501/ft2_4FGL_J0543.9-5531_daily_bin635.fits
Exposure map: /scratch/kocevski/823501/expmap_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.fits
Exposure cube: /scratch/kocevski/823501/ltcube_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823501/Model_4FGL_J0543.9-5531_daily_bin635.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) = 754.882250414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    25.507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    31.645       1.0000         .10000E-03   10000.    
    13 'norm      '    .20245E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.957       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10427E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74428       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   754.4233     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     3479 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.9941        .52861E-07** at limit **
   2  norm          3.9375        55.290       -.43011E-05   -.10477E-03
   3  Prefactor     .10000E-03    280.96        .37890E-04** at limit **
   4  Prefactor     .10000E-03    186.58        .10059E-03** at limit **
   5  Prefactor     .10000E-03    44.104        .69335E-05** at limit **
   6  norm          25.514        26.331       -.86620E-06   -.22017E-04
   7  Prefactor     .10000E-03    83.352       -.44352E-04** at limit **
   8  Prefactor     10.387        64.197        .41583E-04   -.96099E-05
   9  Prefactor     .10000E-03    109.95       -.35043E-04** at limit **
  10  Prefactor     .10000E-03    4.3305        .18067E-06** at limit **
  11  norm          .10000E-03    6.6122       -.34793E-06** at limit **
  12  norm          31.597        24.749       -.14291E-05   -.38764E-03
  13  norm          .10000E-03    21.081        .25237E-05** at limit **
  14  norm          .10000E-03    .73536        .13495E-08** at limit **
  15  Prefactor     .10000E-03    18.550        .55973E-05** at limit **
  16  norm          .10000E-03    14.047       -.36514E-05** at limit **
  17  norm          .10000E-03    38.170       -.32241E-04** at limit **
  18  Prefactor     .10000E-03    29.038        .12023E-04** at limit **
  19  Prefactor     .10000E-03    52.764        .40018E-04** at limit **
  20  Prefactor     .10000E-03    13.964        .33713E-05** at limit **
  21  Prefactor     .10000E-03    133.76        .18713E-04** at limit **
  22  Prefactor     .10000E-03    19.965       -.41622E-05** at limit **
  23  Prefactor     23.953        30.965        .96716E-06    .23246E-04
  24  Prefactor     .10000E-03    1295.0       -.11481E-02** at limit **
  25  Prefactor     .10000E-03    20.125       -.36057E-05** at limit **
  26  Prefactor     .10001E-03    489.89       -.47843E-04** at limit **
  27  Normalizat    .74414        .51264       -.10816E-04    .20565E-04
  28  Prefactor     .85124        .32521        .41507E-05    .63006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.93753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.5142
  Prefactor  = 0.0001
  Prefactor  = 10.3869
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 31.5975
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9533
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.744144
  Prefactor  = 0.851242
 **********
 **   18 **HESSE 
 **********

 FCN=   754.4233     FROM HESSE     STATUS=OK           499 CALLS     3978 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.000        .84836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9375        56.610        .20349E-03   -1.5311    
   3  Prefactor     .10000E-03    281.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    186.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.113        .17832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.514        26.384        .79318E-04   -1.4697    
   7  Prefactor     .10000E-03    83.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.387        64.921        .12470E-03   -1.5063    
   9  Prefactor     .10000E-03    110.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3487        .55796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6138        .68979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.597        22.794        .71228E-04   -1.4583    
  13  norm          .10000E-03    82.662        .22212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .73651        .23008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.869        .11547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.048        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    38.213        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.042        .14466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.966        .10029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    133.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.024        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.953        30.963        .40919E-03   -1.4729    
  24  Prefactor     .10000E-03    1294.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.126        .12041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    507.14        .41469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .74414        .60717        .28547E-03   -1.0218    
  28  Prefactor     .85124        .38481        .18299E-03   -.97866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55489e-10
Minuit parameter uncertainties:
  1  5.09762e-06
  2  29.8936
  3  0.000229295
  4  0.000199254
  5  5.1422e-05
  6  26.3964
  7  0.000101409
  8  52.0192
  9  0.000475555
  10  2.40111e-05
  11  8.35247e-05
  12  22.8006
  13  0.000402706
  14  1.12394e-06
  15  1.38343e-05
  16  2.72664e-06
  17  3.83314e-05
  18  4.41941e-06
  19  6.32775e-05
  20  1.83433e-06
  21  1.93877e-05
  22  4.53075e-06
  23  30.9835
  24  0.0036967
  25  8.88653e-06
  26  0.00372519
  27  0.612798
  28  0.386036
Done.

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

Extracting fit parameters...

4FGL J0543.9-5531
   Spectrum: LogParabola
355         norm:  1.000e-04  2.727e-06  1.000e-04  1.000e+04 ( 1.000e-13)
356        alpha:  1.635e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
357         beta:  6.954e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
358           Eb:  2.273e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  8.512e-01  3.860e-01  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  7.441e-01  6.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 85.981 -55.533
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823501/likelihoodResults_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.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) = 754.423634642
delta logL = -0.000301361404695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 754.423338522
delta logL = -5.24151812442e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4339       1.0000          .0000       5.0000    
     3 'Normalizat'    .74412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+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=   754.4233     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      289 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1021.8        .66025E-02** at limit **
   2  alpha         1.3148        3.5879        .16468       -.67741E-08
   3  Normalizat    .74415        .11097        .28548E-03    .83268E-04
   4  Prefactor     .85124        .76257E-01    .18299E-03    .13152E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.31482
  Normalizat = 0.744147
  Prefactor  = 0.851242
 **********
 **   18 **HESSE 
 **********

 FCN=   754.4233     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.521        .10567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3148        2.5455        .65872E-02   -.49391    
   3  Normalizat    .74415        .53655        .57096E-04   -1.0218    
   4  Prefactor     .85124        .37021        .36597E-04   -.97866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7265e-11
Minuit parameter uncertainties:
  1  2.22419e-05
  2  387.35
  3  0.540415
  4  0.371308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823501': 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) = 754.423332947
delta logL = 3.33399384544e-07

Extracting fit parameters...

4FGL J0543.9-5531
   Spectrum: LogParabola
355         norm:  1.000e-04  2.224e-05  1.000e-04  1.000e+04 ( 1.000e-13)
356        alpha:  1.315e+00  3.874e+02  0.000e+00  5.000e+00 ( 1.000e+00)
357         beta:  6.954e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
358           Eb:  2.273e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  8.512e-01  3.713e-01  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  7.441e-01  5.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 85.981 -55.533

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/823501/cmap_HighResolution_403920001_404179201_4FGL_J0543.9-5531_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-04', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-08-23 21:11:48.883775', job_id='823501', GAL2='0.85', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1629778308.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.63' WHERE bin_id='635' AND source_name='4FGL J0543.9-5531' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 21:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 823501: <4FGL_J0543.9-5531_daily_bin635> in cluster <slac> Done

Job <4FGL_J0543.9-5531_daily_bin635> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 23 20:55:30 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 20:55:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 20:55:31 2021
Terminated at Mon Aug 23 21:11:49 2021
Results reported at Mon Aug 23 21:11:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0543.9-5531_daily_bin635 85.9814 -55.5327 403920001 404179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0543.9-5531 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   952.48 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             414.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

