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


Performing analysis on: 4FGL_J1543.0+6130_monthly_bin118
RA = 235.755, Dec = 61.5033
tmin = 542851201, tmax = 545443201
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='327045', job_status='RUN', time_executed='2021-10-27 15:10:53.628346', time_epoch_executed='1635372653.63' WHERE source_name='4FGL J1543.0+6130' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327045

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327045/ft1_4FGL_J1543.0+6130_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327045/ft2_4FGL_J1543.0+6130_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327045/ft1_4FGL_J1543.0+6130_monthly_bin118.fits outfile=/scratch/kocevski/327045/ft1_filteredMKT_4FGL_J1543.0+6130_monthly_bin118.fits ra=235.755 dec=61.5033 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.77
user 17.96
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327045/ft1_filtered_4FGL_J1543.0+6130_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/327045/ft2_4FGL_J1543.0+6130_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/327045/ltcube_542851201_545443201_4FGL_J1543.0+6130_monthly_bin118.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/327045/ft2_4FGL_J1543.0+6130_monthly_bin118.fits
.....................!
real 40.70
user 40.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327045/ft1_filtered_4FGL_J1543.0+6130_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/327045/ft2_4FGL_J1543.0+6130_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/327045/ltcube_542851201_545443201_4FGL_J1543.0+6130_monthly_bin118.fits outfile=/scratch/kocevski/327045/expmap_542851201_545443201_4FGL_J1543.0+6130_monthly_bin118.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/327045/ltcube_542851201_545443201_4FGL_J1543.0+6130_monthly_bin118.fits
.....................!
real 191.84
user 186.43
sys 4.39

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/327045/ft1_filtered_4FGL_J1543.0+6130_monthly_bin118.fits scfile=/scratch/kocevski/327045/ft2_4FGL_J1543.0+6130_monthly_bin118.fits outfile=/scratch/kocevski/327045/cmap_542851201_545443201_4FGL_J1543.0+6130_monthly_bin118.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.66
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327045/ft1_filtered_4FGL_J1543.0+6130_monthly_bin118.fits scfile=/scratch/kocevski/327045/ft2_4FGL_J1543.0+6130_monthly_bin118.fits outfile=/scratch/kocevski/327045/cmap_HighResolution_542851201_545443201_4FGL_J1543.0+6130_monthly_bin118.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.67
user 0.46
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9992.8       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7112.2       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86228E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65093E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2550       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11526E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .52342E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.893       1.0000         .10000E-03   10000.    
    12 'Prefactor '    136.90       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.376       1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    80.796       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   383.5244     FROM MIGRAD    STATUS=CONVERGED    258 CALLS     2766 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6293.6        .69555E-03    .13848E-02
   2  Prefactor     7110.1        44.498       -.90400E-05    .74104E-01
   3  Prefactor     .11353E-03    771.47       -.43659E-03** at limit **
   4  Prefactor     .10005E-03    243.75       -.10270E-03** at limit **
   5  Prefactor     .10000E-03    105.83        .60253E-05** at limit **
   6  Prefactor     .10028E-03    316.81        .86022E-04** at limit **
   7  Prefactor     .10000E-03    71.196        .53941E-04** at limit **
   8  Prefactor     16.304        36.056       -.71118E-04    .63709E-03
   9  Prefactor     .10025E-03    234.90       -.57019E-03** at limit **
  10  Prefactor     .10000E-03    87.174        .53072E-06** at limit **
  11  norm          17.697        15.019       -.34434E-05    .31680E-04
  12  Prefactor     141.63        87.690        .53632E-04   -.10238E-01
  13  Prefactor     .10000E-03    23.668        .36827E-05** at limit **
  14  norm          .10000E-03    25.551        .75961E-05** at limit **
  15  Prefactor     93.205        124.30       -.60466E-04   -.29137E-03
  16  Prefactor     43.370        30.136       -.25127E-04   -.73954E-03
  17  norm          .10000E-03    30.218        .69355E-05** at limit **
  18  Prefactor     .10000E-03    12.586        .12982E-05** at limit **
  19  Prefactor     .10000E-03    66.497       -.37512E-05** at limit **
  20  norm          14.892        24.011        .86474E-05   -.19313E-04
  21  Prefactor     77.414        81.205       -.89145E-04   -.97366E-03
  22  norm          .10000E-03    1.1045        .31191E-06** at limit **
  23  Prefactor     .10000E-03    9.6212        .10170E-05** at limit **
  24  Prefactor     .10000E-03    37.270        .32496E-05** at limit **
  25  Prefactor     .10000E-03    32.967       -.13894E-05** at limit **
  26  Normalizat    .10000E-01    .47182        .17434E-03** at limit **
  27  Prefactor     .88526        .28490       -.14665E-04   -.27833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9999.99
  Prefactor  = 7110.07
  Prefactor  = 0.00011353
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.000100278
  Prefactor  = 0.0001
  Prefactor  = 16.3039
  Prefactor  = 0.000100246
  Prefactor  = 0.0001
  norm       = 17.6972
  Prefactor  = 141.633
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 93.205
  Prefactor  = 43.3697
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8919
  Prefactor  = 77.4136
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.885265
 **********
 **   18 **HESSE 
 **********

 FCN=   383.5244     FROM HESSE     STATUS=OK           526 CALLS     3292 TOTAL
                     EDM=   .14E+00    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6368.3        .37317E-02    1.5725    
   2  Prefactor     7110.1        6443.7        .22065E-03    .43567    
   3  Prefactor     .11353E-03    771.49        .94454E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    244.14        .94076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    105.88        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10028E-03    316.53        .56120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    71.038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.304        36.549        .24660E-02   -1.4900    
   9  Prefactor     .10025E-03    230.76        .10567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.697        16.322        .23671E-02   -1.4866    
  12  Prefactor     141.63        352.94        .86060E-03   -1.3322    
  13  Prefactor     .10000E-03    23.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     93.205        124.86        .11068E-02   -1.3774    
  16  Prefactor     43.370        30.187        .15218E-02   -1.4390    
  17  norm          .10000E-03    30.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    66.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.892        24.027        .26056E-02   -1.4936    
  21  Prefactor     77.414        81.204        .11171E-02   -1.3946    
  22  norm          .10000E-03    1.1059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.6252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    37.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.838        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .40765        .18784       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .88526        .31180        .44810E-01   -.96658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.143774
Minuit parameter uncertainties:
  1  9.28399
  2  23194
  3  0.207055
  4  0.00673304
  5  4.97418e-05
  6  0.0188652
  7  0.000254161
  8  36.5987
  9  0.0151261
  10  7.1616e-05
  11  16.3264
  12  358.415
  13  1.31004e-05
  14  5.36315e-05
  15  125.209
  16  30.1974
  17  1.72508e-05
  18  1.6611e-05
  19  1.35691e-05
  20  24.0422
  21  81.3203
  22  1.0773e-07
  23  1.93529e-06
  24  2.97476e-06
  25  2.38092e-05
  26  3.03506e-06
  27  0.312429
Done.

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

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  1.770e+01  1.633e+01  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:  8.853e-01  3.124e-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.000e-02  3.035e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.18
Ra Dec: 235.755 61.503
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 1.24e-07
Energy Flux (Fixed Index): 1.02e-04 +/- 9.43e-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) = 382.374189515
delta logL = 1.15024745736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 381.867990575
delta logL = 1.65644639758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9804       1.0000         .10000E-03   10000.    
     2 'alpha     '    .47416       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93939       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=   381.8680     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9829        5.0782        .58793E-02   -.19206E-04
   2  alpha         .47476        .57299        .10115       -.11893E-05
   3  Normalizat    .10000E-01    .66201        .15300    ** at limit **
   4  Prefactor     .94037        .30892        .45505E-01    .14175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98285
  alpha      = 0.474757
  Normalizat = 0.01
  Prefactor  = 0.940365
 **********
 **   18 **HESSE 
 **********

 FCN=   381.8680     FROM HESSE     STATUS=OK            29 CALLS      260 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9829        6.5807        .32860E-04   -1.5363    
   2  alpha         .47476        .72285        .44873E-03   -.94432    
   3  Normalizat    .10000E-01    .80839        .85064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94037        .26463        .17322E-03   -.94745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51743e-12
Minuit parameter uncertainties:
  1  6.58231
  2  0.755915
  3  1.26661e-06
  4  0.264992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327045': 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) = 381.867983091
delta logL = 1.65645388167

Extracting fit parameters...

4FGL J1543.0+6130
   Spectrum: LogParabola
327         norm:  2.983e+00  6.582e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  4.748e-01  7.559e-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.404e-01  2.650e-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.000e-02  1.267e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.45
Ra Dec: 235.755 61.503
Photon Index (Free Index): 0.47 +/- 0.76
Photon Flux (Free Index): 3.56e-08 +/- 3.63e-08
Energy Flux (Free Index): 8.78e-04 +/- 1.16e-03

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/327045/cmap_HighResolution_542851201_545443201_4FGL_J1543.0+6130_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='8.78e-04', photon_flux_error='1.24e-07', dlogl='1.66e+00', energy_flux='1.02e-04', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-10-27 15:19:29.282449', photon_index_error2='0.76', photon_index2='0.47', ts='15.18', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.16e-03', EG='0.01', time_epoch_completed='1635373169.28', return_code='0', job_id='327045', GAL2='0.94', EG2='0.01', return_code2='0', energy_flux_error='9.43e-05', photon_flux_error2='3.63e-08', ts2='18.45', photon_index='1.90' WHERE bin_id='118' AND source_name='4FGL J1543.0+6130' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 27 15:19:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 327045: <4FGL_J1543.0+6130_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1543.0+6130_monthly_bin118> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Oct 27 15:10:22 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 27 15:10:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 27 15:10:24 2021
Terminated at Wed Oct 27 15:19:29 2021
Results reported at Wed Oct 27 15:19:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.0+6130_monthly_bin118 235.755 61.5033 542851201 545443201 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 :                                   485.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             257.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            547 sec.

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

