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


Performing analysis on: 4FGL_J1543.0+6130_daily_bin552
RA = 235.755, Dec = 61.5033
tmin = 382406401, tmax = 382665601
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='664900', job_status='RUN', time_executed='2021-09-12 10:58:40.742881', time_epoch_executed='1631469520.74' WHERE source_name='4FGL J1543.0+6130' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664900/ft1_4FGL_J1543.0+6130_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664900/ft1_4FGL_J1543.0+6130_daily_bin552.fits outfile=/scratch/kocevski/664900/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin552.fits ra=235.755 dec=61.5033 rad=12.0 tmin=382406401.0 tmax=382665601.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 4.76
user 4.46
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.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/664900/ft1_filteredMKT_4FGL_J1543.0+6130_daily_bin552.fits evtable="EVENTS" outfile="/scratch/kocevski/664900/ft1_filtered_4FGL_J1543.0+6130_daily_bin552.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664900/ft1_filtered_4FGL_J1543.0+6130_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/664900/ltcube_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.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/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits
.....................!
real 13.11
user 12.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664900/ft1_filtered_4FGL_J1543.0+6130_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/664900/ltcube_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.fits outfile=/scratch/kocevski/664900/expmap_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.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/664900/ltcube_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.fits
.....................!
real 192.03
user 186.69
sys 4.93

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/664900/ft1_filtered_4FGL_J1543.0+6130_daily_bin552.fits scfile=/scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits outfile=/scratch/kocevski/664900/cmap_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664900/ft1_filtered_4FGL_J1543.0+6130_daily_bin552.fits scfile=/scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits outfile=/scratch/kocevski/664900/cmap_HighResolution_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/664900/ft1_filtered_4FGL_J1543.0+6130_daily_bin552.fits', '/scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits', expMap='/scratch/kocevski/664900/expmap_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.fits', expCube='/scratch/kocevski/664900/ltcube_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/664900/Model_4FGL_J1543.0+6130_daily_bin552.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/664900/ft1_filtered_4FGL_J1543.0+6130_daily_bin552.fits
Spacecraft file(s): /scratch/kocevski/664900/ft2_4FGL_J1543.0+6130_daily_bin552.fits
Exposure map: /scratch/kocevski/664900/expmap_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.fits
Exposure cube: /scratch/kocevski/664900/ltcube_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/664900/Model_4FGL_J1543.0+6130_daily_bin552.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) = 5557.28942981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29950E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.926       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.040       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4914       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23796E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2085       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0306       1.0000         .10000E-03   10000.    
    17 'norm      '    9.8291       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14654E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.056       1.0000         .10000E-03   10000.    
    22 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15517E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.461       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6296       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3290       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .60278       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=   5557.275     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3296 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.593        46.715        .73948E-06    .84215E-06
   2  Prefactor     .10000E-03    869.63        .21064E-04** at limit **
   3  Prefactor     9.4351        33.138        .86853E-05    .10367E-04
   4  Prefactor     14.935        46.702       -.39978E-05   -.21432E-04
   5  Prefactor     .10000E-03    45.363       -.18529E-05** at limit **
   6  Prefactor     .10000E-03    16.849        .51550E-06** at limit **
   7  Prefactor     .10000E-03    5.1149        .88971E-07** at limit **
   8  Prefactor     .10000E-03    6.3923       -.14747E-06** at limit **
   9  Prefactor     .10000E-03    4.6340       -.18373E-07** at limit **
  10  Prefactor     24.037        30.743        .50095E-06    .45700E-05
  11  norm          5.4912        3.0359        .30317E-07   -.16505E-04
  12  Prefactor     .10000E-03    25.104        .74831E-06** at limit **
  13  Prefactor     .10014E-03    5.6796        .12033E-05** at limit **
  14  norm          5.2062        5.6520        .14156E-07   -.16690E-03
  15  Prefactor     .10000E-03    14.673       -.98144E-06** at limit **
  16  Prefactor     3.0301        7.1696        .36903E-05    .12415E-03
  17  norm          9.8298        13.427       -.25530E-06    .12491E-05
  18  Prefactor     .10001E-03    3.3591       -.45788E-06** at limit **
  19  Prefactor     .10000E-03    11.213        .29760E-06** at limit **
  20  norm          .10000E-03    4.8973       -.18872E-06** at limit **
  21  Prefactor     26.058        18.758        .84438E-07    .20302E-04
  22  norm          .10000E-03    .26612        .24508E-06** at limit **
  23  Prefactor     .10012E-03    7.3936       -.83914E-06** at limit **
  24  Prefactor     22.482        23.388       -.10668E-05   -.29332E-04
  25  Prefactor     9.6302        7.9379        .52578E-07    .17033E-04
  26  Normalizat    1.3292        .17435       -.65737E-06    .38241E-04
  27  Prefactor     .60261        .16481       -.23250E-06   -.41342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.5927
  Prefactor  = 0.0001
  Prefactor  = 9.4351
  Prefactor  = 14.9348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.037
  norm       = 5.49123
  Prefactor  = 0.0001
  Prefactor  = 0.000100138
  norm       = 5.20623
  Prefactor  = 0.0001
  Prefactor  = 3.03011
  norm       = 9.82977
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.0583
  norm       = 0.0001
  Prefactor  = 0.000100124
  Prefactor  = 22.4815
  Prefactor  = 9.63018
  Normalizat = 1.32923
  Prefactor  = 0.602614
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.275     FROM HESSE     STATUS=OK           494 CALLS     3790 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.593        46.720        .55302E-04   -1.4256    
   2  Prefactor     .10000E-03    868.70        .21390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4351        33.084        .13010E-03   -1.5094    
   4  Prefactor     14.935        46.590        .10367E-03   -1.4935    
   5  Prefactor     .10000E-03    46.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1332        .16463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6414        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.037        30.731        .81699E-04   -1.4727    
  11  norm          5.4912        3.0355        .93665E-04   -1.5239    
  12  Prefactor     .10000E-03    25.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10014E-03    47.903        .32469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2062        5.5180        .17394E-03   -1.5252    
  15  Prefactor     .10000E-03    14.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0301        7.1826        .11655E-02   -1.5360    
  17  norm          9.8298        13.423        .12782E-03   -1.5081    
  18  Prefactor     .10001E-03    22.045        .25922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.0140        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.058        18.703        .78479E-04   -1.4687    
  22  norm          .10000E-03    .36092        .72316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10012E-03    52.572        .35981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.482        22.057        .84516E-04   -1.4759    
  25  Prefactor     9.6302        7.9301        .12914E-03   -1.5087    
  26  Normalizat    1.3292        .19553        .20266E-03   -.82698    
  27  Prefactor     .60261        .18512        .28082E-03   -1.0748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33462e-09
Minuit parameter uncertainties:
  1  46.7521
  2  0.00040346
  3  33.1487
  4  46.7038
  5  8.58633e-05
  6  5.26213e-06
  7  4.38532e-06
  8  7.06556e-06
  9  1.08334e-06
  10  30.7517
  11  3.03556
  12  5.83072e-06
  13  0.00513712
  14  5.51851
  15  3.47192e-06
  16  7.18465
  17  13.427
  18  0.000820783
  19  5.49219e-06
  20  5.41245e-06
  21  18.7068
  22  5.72951e-06
  23  0.00510094
  24  22.0654
  25  7.931
  26  0.195642
  27  0.185308
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  5.491e+00  3.036e+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:  6.026e-01  1.853e-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.329e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.75
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 1.75e-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) = 5556.74598239
delta logL = 0.528755866992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5556.74596196
delta logL = 0.528776302841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5052       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5096       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59782       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=   5556.746     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4813        3.1529        .42810E-02   -.29331E-04
   2  alpha         1.5087        .33628        .25243        .66532E-05
   3  Normalizat    1.3402        .16806        .32122E-01    .35989E-04
   4  Prefactor     .59790        .16378        .63706E-01    .77391E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.48128
  alpha      = 1.50871
  Normalizat = 1.34016
  Prefactor  = 0.5979
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.746     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4813        3.2298        .96263E-04   -1.5240    
   2  alpha         1.5087        .36521        .10519E-01   -.40772    
   3  Normalizat    1.3402        .18923        .20196E-03   -.82375    
   4  Prefactor     .59790        .18417        .28187E-03   -1.0767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21707e-11
Minuit parameter uncertainties:
  1  3.22992
  2  0.366767
  3  0.189331
  4  0.184355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664900': 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) = 5556.74593479
delta logL = 0.528803473657

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  5.481e+00  3.230e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.509e+00  3.668e-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:  5.979e-01  1.844e-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.340e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.81
Ra Dec: 235.755 61.503
Photon Index (Free Index): 1.51 +/- 0.37
Photon Flux (Free Index): 2.91e-08 +/- 1.99e-08
Energy Flux (Free Index): 6.05e-05 +/- 5.27e-05

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/664900/cmap_HighResolution_382406401_382665601_4FGL_J1543.0+6130_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='6.05e-05', photon_flux_error='2.30e-08', dlogl='5.29e-01', energy_flux='3.17e-05', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-09-12 11:11:14.401467', photon_index_error2='0.37', photon_index2='1.51', ts='13.75', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='5.27e-05', EG='1.33', time_epoch_completed='1631470274.4', return_code='0', job_id='664900', GAL2='0.60', EG2='1.34', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='1.99e-08', ts2='14.81', photon_index='1.90' WHERE bin_id='552' AND source_name='4FGL J1543.0+6130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 11:11:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 664900: <4FGL_J1543.0+6130_daily_bin552> in cluster <slac> Done

Job <4FGL_J1543.0+6130_daily_bin552> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 10:55:22 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:56:37 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:56:37 2021
Terminated at Sun Sep 12 11:11:15 2021
Results reported at Sun Sep 12 11:11:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_daily_bin552 235.755 61.5033 382406401 382665601 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 :                                   748.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            953 sec.

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

