/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 3 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 = 7394
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1543.0+6130_daily_bin447
RA = 235.755, Dec = 61.5033
tmin = 355190401, tmax = 355449601
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='663524', job_status='RUN', time_executed='2021-09-12 10:53:06.695661', time_epoch_executed='1631469186.7' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/663524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/663524/ft1_4FGL_J1543.0+6130_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/663524/ft1_4FGL_J1543.0+6130_daily_bin447.fits outfile=/scratch/kocevski/663524/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin447.fits ra=235.755 dec=61.5033 rad=12.0 tmin=355190401.0 tmax=355449601.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.40
user 3.15
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.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/663524/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.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.55
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/663524/ltcube_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.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/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits
.....................!
real 13.91
user 13.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/663524/ltcube_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.fits outfile=/scratch/kocevski/663524/expmap_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.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/663524/ltcube_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.fits
.....................!
real 191.69
user 185.89
sys 5.06

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

Setting source of interest to:
4FGL J1543.0+6130 @ 235.755 61.5033

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits scfile=/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits outfile=/scratch/kocevski/663524/cmap_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.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.755 yref=61.5033 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/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits scfile=/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits outfile=/scratch/kocevski/663524/cmap_HighResolution_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.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.755 yref=61.5033 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/663524/Model_4FGL_J1543.0+6130_daily_bin447.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/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits.....................!
real 56.19
user 54.78
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits', '/scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits', expMap='/scratch/kocevski/663524/expmap_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.fits', expCube='/scratch/kocevski/663524/ltcube_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/663524/Model_4FGL_J1543.0+6130_daily_bin447.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.0+6130'

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  6.436e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  5.950e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/663524/ft1_filtered_4FGL_J1543.0+6130_daily_bin447.fits
Spacecraft file(s): /scratch/kocevski/663524/ft2_4FGL_J1543.0+6130_daily_bin447.fits
Exposure map: /scratch/kocevski/663524/expmap_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.fits
Exposure cube: /scratch/kocevski/663524/ltcube_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/663524/Model_4FGL_J1543.0+6130_daily_bin447.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) = 6724.84556794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6430       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8985       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4230       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.389       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4562       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
    22 'norm      '    .68172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1202       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.8182       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99853       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6724.833     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3296 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.590        .33048E-05** at limit **
   2  Prefactor     .10000E-03    162.54        .69244E-07** at limit **
   3  Prefactor     .10000E-03    9.3731       -.96788E-07** at limit **
   4  Prefactor     .10000E-03    11.472       -.16827E-05** at limit **
   5  Prefactor     9.8401        12.728       -.10089E-06    .49191E-06
   6  Prefactor     .10000E-03    38.122        .97589E-07** at limit **
   7  Prefactor     3.6424        9.5261       -.50127E-07   -.18485E-04
   8  Prefactor     6.9509        9.0478       -.28681E-06   -.11629E-04
   9  Prefactor     7.4333        13.055       -.10208E-06    .11081E-04
  10  Prefactor     .10000E-03    15.177       -.27394E-05** at limit **
  11  norm          7.8048        3.1349        .28623E-06    .39419E-04
  12  Prefactor     35.615        69.374       -.15525E-04   -.14716E-04
  13  Prefactor     2.8981        4.2280        .60190E-07   -.99740E-03
  14  norm          1.4238        4.0302       -.86104E-07   -.91728E-04
  15  Prefactor     27.387        30.163       -.71333E-07    .22234E-05
  16  Prefactor     .10000E-03    4.0507       -.17170E-07** at limit **
  17  norm          12.292        12.951        .86250E-07    .18082E-05
  18  Prefactor     4.1152        4.3613        .21188E-06   -.12366E-02
  19  Prefactor     6.4600        35.687        .72709E-06   -.10573E-05
  20  norm          4.9823        6.5267        .37053E-06   -.10899E-04
  21  Prefactor     11.819        9.9561       -.37895E-07   -.87213E-06
  22  norm          .68145        .63184       -.28622E-07   -.14212E-03
  23  Prefactor     7.1224        8.1997       -.29453E-07   -.51116E-03
  24  Prefactor     .10000E-03    10.750        .11743E-05** at limit **
  25  Prefactor     7.8181        6.8355        .31910E-07   -.29618E-03
  26  Normalizat    .99866        .16889        .82243E-06   -.31435E-04
  27  Prefactor     .96570        .16861       -.24602E-06    .45719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.84011
  Prefactor  = 0.0001
  Prefactor  = 3.64236
  Prefactor  = 6.95091
  Prefactor  = 7.43329
  Prefactor  = 0.0001
  norm       = 7.80477
  Prefactor  = 35.6154
  Prefactor  = 2.89806
  norm       = 1.42376
  Prefactor  = 27.3872
  Prefactor  = 0.0001
  norm       = 12.2923
  Prefactor  = 4.11524
  Prefactor  = 6.46003
  norm       = 4.98232
  Prefactor  = 11.8187
  norm       = 0.681445
  Prefactor  = 7.12244
  Prefactor  = 0.0001
  Prefactor  = 7.81808
  Normalizat = 0.998657
  Prefactor  = 0.965699
 **********
 **   18 **HESSE 
 **********

 FCN=   6724.833     FROM HESSE     STATUS=OK           498 CALLS     3794 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    162.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8401        12.731        .12774E-03   -1.5080    
   6  Prefactor     .10000E-03    38.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6424        9.4088        .21165E-03   -1.5326    
   8  Prefactor     6.9509        9.0267        .15216E-03   -1.5181    
   9  Prefactor     7.4333        13.088        .14709E-03   -1.5163    
  10  Prefactor     .10000E-03    15.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8048        3.1360        .87586E-04   -1.5149    
  12  Prefactor     35.615        69.545        .67139E-04   -1.4514    
  13  Prefactor     2.8981        4.9721        .11315E-02   -1.5367    
  14  norm          1.4238        3.9669        .25923E-03   -1.5469    
  15  Prefactor     27.387        30.144        .76549E-04   -1.4661    
  16  Prefactor     .10000E-03    4.1878        .32220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.292        12.952        .11426E-03   -1.5007    
  18  Prefactor     4.1152        6.1632        .99350E-03   -1.5302    
  19  Prefactor     6.4600        35.348        .15795E-03   -1.5200    
  20  norm          4.9823        6.5158        .18016E-03   -1.5262    
  21  Prefactor     11.819        9.9600        .11653E-03   -1.5020    
  22  norm          .68145        .61609        .57186E-04   -1.5543    
  23  Prefactor     7.1224        8.5710        .75166E-03   -1.5174    
  24  Prefactor     .10000E-03    10.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.8181        6.8895        .71704E-03   -1.5149    
  26  Normalizat    .99866        .20477        .23685E-03   -.93075    
  27  Prefactor     .96570        .20149        .24559E-03   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52954e-09
Minuit parameter uncertainties:
  1  1.5893e-05
  2  2.34054e-06
  3  2.43689e-06
  4  8.9963e-06
  5  12.7341
  6  2.21027e-05
  7  9.41264
  8  9.02847
  9  13.0935
  10  6.86267e-06
  11  3.13611
  12  69.7038
  13  4.97279
  14  3.96766
  15  30.1608
  16  4.73752e-06
  17  12.9547
  18  6.16414
  19  30.2497
  20  6.51672
  21  9.96136
  22  0.616092
  23  8.57244
  24  3.29076e-06
  25  6.89021
  26  0.204931
  27  0.201649
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  7.805e+00  3.136e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  5.950e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.657e-01  2.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  9.987e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.56
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.91e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 4.51e-05 +/- 1.81e-05

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) = 6724.80828459
delta logL = 0.0248379330214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6724.80798911
delta logL = 0.0251334078621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8053       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8182       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6724.808     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8343        4.7374        .35882E-02   -.36257E-04
   2  alpha         1.8184        .48670        .26637        .11700E-05
   3  Normalizat    1.0049        .16484        .46229E-01    .11594E-04
   4  Prefactor     .96224        .16631        .45793E-01    .11993E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.83431
  alpha      = 1.81842
  Normalizat = 1.00486
  Prefactor  = 0.962243
 **********
 **   18 **HESSE 
 **********

 FCN=   6724.808     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .13E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8343        3.1338        .89113E-04   -1.5148    
   2  alpha         1.8184        .35878        .10498E-01   -.27613    
   3  Normalizat    1.0049        .19284        .23623E-03   -.92868    
   4  Prefactor     .96224        .19624        .24600E-03   -.93999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26239e-14
Minuit parameter uncertainties:
  1  3.1339
  2  0.360127
  3  0.192971
  4  0.196382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/663524': 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) = 6724.80794617
delta logL = 0.0251763483066

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  7.834e+00  3.134e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.818e+00  3.601e-01  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  5.950e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  9.986e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  9.622e-01  1.964e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.005e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.61
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.82 +/- 0.36
Photon Flux (Free Index): 5.42e-08 +/- 3.01e-08
Energy Flux (Free Index): 4.97e-05 +/- 3.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/663524/cmap_HighResolution_355190401_355449601_4FGL_J1543.0+6130_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.91e-08', energy_flux2='4.97e-05', photon_flux_error='2.38e-08', dlogl='2.52e-02', energy_flux='4.51e-05', photon_flux2='5.42e-08', job_status='DONE', time_completed='2021-09-12 11:07:01.778043', photon_index_error2='0.36', photon_index2='1.82', ts='27.56', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='1.00', time_epoch_completed='1631470021.78', return_code='0', job_id='663524', GAL2='0.96', EG2='1.00', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='3.01e-08', ts2='27.61', photon_index='1.90' WHERE bin_id='447' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:07:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 663524: <4FGL_J1543.0+6130_daily_bin447> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin447> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 10:50:45 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:52:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 10:52:54 2021
Terminated at Sun Sep 12 11:07:02 2021
Results reported at Sun Sep 12 11:07:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin447 235.755 61.5033 355190401 355449601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1543.0+6130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   825.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            977 sec.

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

