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


Performing analysis on: 4FGL_J1543.6+0452_daily_bin34
RA = 235.906, Dec = 4.8689
tmin = 248140801, tmax = 248400001
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='681234', job_status='RUN', time_executed='2021-09-12 11:54:37.728832', time_epoch_executed='1631472877.73' WHERE source_name='4FGL J1543.6+0452' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681234/ft1_4FGL_J1543.6+0452_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681234/ft1_4FGL_J1543.6+0452_daily_bin34.fits outfile=/scratch/kocevski/681234/ft1_filteredMKT_4FGL_J1543.6+0452_daily_bin34.fits ra=235.906 dec=4.8689 rad=12.0 tmin=248140801.0 tmax=248400001.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.41
user 1.23
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.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/681234/ft1_filteredMKT_4FGL_J1543.6+0452_daily_bin34.fits evtable="EVENTS" outfile="/scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/681234/ltcube_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.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/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits
.....................!
real 15.92
user 15.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/681234/ltcube_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.fits outfile=/scratch/kocevski/681234/expmap_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.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/681234/ltcube_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.fits
.....................!
real 192.29
user 187.23
sys 4.47

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

Setting source of interest to:
4FGL J1543.6+0452 @ 235.906 4.8689

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits scfile=/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits outfile=/scratch/kocevski/681234/cmap_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.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.906 yref=4.8689 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits scfile=/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits outfile=/scratch/kocevski/681234/cmap_HighResolution_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.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.906 yref=4.8689 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681234/Model_4FGL_J1543.6+0452_daily_bin34.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/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits.....................!
real 81.93
user 80.54
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits', '/scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits', expMap='/scratch/kocevski/681234/expmap_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.fits', expCube='/scratch/kocevski/681234/ltcube_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681234/Model_4FGL_J1543.6+0452_daily_bin34.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.6+0452'

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  3.372e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681234/ft1_filtered_4FGL_J1543.6+0452_daily_bin34.fits
Spacecraft file(s): /scratch/kocevski/681234/ft2_4FGL_J1543.6+0452_daily_bin34.fits
Exposure map: /scratch/kocevski/681234/expmap_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.fits
Exposure cube: /scratch/kocevski/681234/ltcube_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681234/Model_4FGL_J1543.6+0452_daily_bin34.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) = 10732.5273848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94170       1.0000         .10000E-03   10000.    
     2 'norm      '    .85163       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26964       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2561       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12049E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2620       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    27.385       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1997       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10737E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4863       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1055       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10732.50     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     1833 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94168        .25393        .40671E-07   -.96450E-04
   2  norm          .85238        2.1447        .73361E-06    .52716E-03
   3  norm          .10000E-03    1.8034        .11191E-07** at limit **
   4  norm          5.4109        4.4548        .59102E-06   -.23309E-03
   5  Prefactor     15.250        23.142       -.12495E-05    .25539E-04
   6  Prefactor     .37053E-01    18.402       -.24016E-05    .10654E-03
   7  Prefactor     2.2550        4.4177        .58081E-05   -.16967E-03
   8  Prefactor     17.701        18.501       -.42782E-06    .20212E-05
   9  Prefactor     .10000E-03    12.805        .13589E-07** at limit **
  10  norm          4.2619        2.6622        .59672E-07   -.39016E-04
  11  Prefactor     .10000E-03    3.6036        .29731E-06** at limit **
  12  norm          5.1644        3.6160        .42348E-06   -.11779E-03
  13  Prefactor     .10000E-03    25.778       -.14130E-07** at limit **
  14  norm          27.374        11.204        .34678E-06   -.26732E-04
  15  norm          9.2004        2.5183        .29912E-07   -.45203E-07
  16  norm          .10000E-03    5.1684       -.32232E-07** at limit **
  17  norm          .10003E-03    578.00       -.15630E-05** at limit **
  18  Prefactor     2.3518        390.30        .12147E-05   -.46761E-04
  19  Normalizat    1.1057        .23690       -.48991E-05   -.27098E-03
  20  Prefactor     1.1552        .92390E-01    .53284E-06   -.35306E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.941675
  norm       = 0.85238
  norm       = 0.0001
  norm       = 5.41085
  Prefactor  = 15.2498
  Prefactor  = 0.0370531
  Prefactor  = 2.25501
  Prefactor  = 17.7007
  Prefactor  = 0.0001
  norm       = 4.26189
  Prefactor  = 0.0001
  norm       = 5.16435
  Prefactor  = 0.0001
  norm       = 27.3739
  norm       = 9.20039
  norm       = 0.0001
  norm       = 0.000100025
  Prefactor  = 2.35176
  Normalizat = 1.1057
  Prefactor  = 1.15518
 **********
 **   18 **HESSE 
 **********

 FCN=   10732.50     FROM HESSE     STATUS=OK           307 CALLS     2140 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94168        .25417        .25899E-04   -1.5514    
   2  norm          .85238        2.1206        .22058E-03   -1.5523    
   3  norm          .10000E-03    1.8038        .13586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4109        4.3958        .86372E-03   -1.5243    
   5  Prefactor     15.250        23.176        .10252E-03   -1.4927    
   6  Prefactor     .37053E-01    19.515        .13692       -1.5670    
   7  Prefactor     2.2550        4.4341        .13676E-02   -1.5408    
   8  Prefactor     17.701        18.497        .95240E-04   -1.4866    
   9  Prefactor     .10000E-03    12.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2619        2.6596        .12873E-03   -1.5295    
  11  Prefactor     .10000E-03    3.7490        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1644        3.6115        .79150E-03   -1.5253    
  13  Prefactor     .10000E-03    25.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.374        11.216        .76554E-04   -1.4661    
  15  norm          9.2004        2.5186        .82369E-04   -1.5101    
  16  norm          .10000E-03    5.1980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10003E-03    583.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3518        398.82        .25925E-03   -1.5401    
  19  Normalizat    1.1057        .26346        .43123E-03   -.89569    
  20  Prefactor     1.1552        .10361        .17555E-03   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16648e-09
Minuit parameter uncertainties:
  1  0.254172
  2  2.12077
  3  1.09988e-06
  4  4.39603
  5  23.1901
  6  1.69897
  7  4.4347
  8  18.5033
  9  4.08912e-06
  10  2.65967
  11  4.01246e-05
  12  3.61165
  13  1.97678e-06
  14  11.2169
  15  2.51866
  16  4.3507e-06
  17  0.00772926
  18  61.6719
  19  0.263769
  20  0.103625
Done.

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

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  1.770e+01  1.850e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.155e+00  1.036e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.106e+00  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 235.906 4.869
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.86e-05

TS (Fixed Index): 1.60
Ra Dec: 235.906 4.869
Photon Flux Upper Limit: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681234/likelihoodResults_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.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) = 10732.4924874
delta logL = 0.00724523118879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10732.4863413
delta logL = 0.0133913492591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.109       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9926       1.0000          .0000       10.000    
     3 'Normalizat'    1.1027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+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=   10732.49     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      266 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.104        26.076        .10304E-03    .15535E-03
   2  Index         1.9927        .84257        .10094E-01    .77296E-04
   3  Normalizat    1.1027        .24556        .43176E-03    .12012E-03
   4  Prefactor     1.1557        .10228        .17551E-03    .17922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1042
  Index      = 1.9927
  Normalizat = 1.10267
  Prefactor  = 1.15574
 **********
 **   18 **HESSE 
 **********

 FCN=   10732.49     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.104        22.837        .41217E-05   -1.4930    
   2  Index         1.9927        .73909        .40375E-03   -.64533    
   3  Normalizat    1.1027        .24528        .17270E-04   -.89666    
   4  Prefactor     1.1557        .10227        .35103E-04   -.87704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89708e-11
Minuit parameter uncertainties:
  1  22.8507
  2  0.743377
  3  0.24553
  4  0.102291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681234': 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) = 10732.4863413
delta logL = 0.0133913693135

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  1.510e+01  2.285e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.993e+00  7.434e-01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.156e+00  1.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.103e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 235.906 4.869
Photon Index (Free Index): 1.99 +/- 0.74
Photon Flux (Free Index): 2.13e-08 +/- 2.86e-08
Energy Flux (Free Index): 1.50e-05 +/- 2.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/681234/cmap_HighResolution_248140801_248400001_4FGL_J1543.6+0452_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='1.50e-05', photon_flux_error='1.93e-08', dlogl='1.34e-02', energy_flux='1.78e-05', photon_flux2='2.13e-08', job_status='DONE', time_completed='2021-09-12 12:06:43.372498', photon_index_error2='0.74', photon_index2='1.99', ts='1.60', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='2.15e-05', EG='1.11', time_epoch_completed='1631473603.37', return_code='0', job_id='681234', GAL2='1.16', EG2='1.10', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='2.86e-08', ts2='1.62', photon_index='1.87' WHERE bin_id='34' AND source_name='4FGL J1543.6+0452' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 12:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 681234: <4FGL_J1543.6+0452_daily_bin34> in cluster <slac> Done

Job <4FGL_J1543.6+0452_daily_bin34> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 11:50:18 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:53:27 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:53:27 2021
Terminated at Sun Sep 12 12:06:44 2021
Results reported at Sun Sep 12 12:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.6+0452_daily_bin34 235.906 4.8689 248140801 248400001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1543.6+0452 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   723.42 sec.
    Max Memory :                                 1133 MB
    Average Memory :                             355.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            986 sec.

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

