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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1117
RA = 197.129, Dec = 35.7918
tmin = 528854401, tmax = 529113601
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='272249', job_status='RUN', time_executed='2021-09-07 00:39:22.915606', time_epoch_executed='1631000362.92' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272249

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272249/ft1_4FGL_J1308.5+3547_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272249/ft1_4FGL_J1308.5+3547_daily_bin1117.fits outfile=/scratch/kocevski/272249/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1117.fits ra=197.129 dec=35.7918 rad=12.0 tmin=528854401.0 tmax=529113601.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.54
user 3.23
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.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/272249/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1117.fits evtable="EVENTS" outfile="/scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.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.50
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/272249/ltcube_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.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/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits
.....................!
real 16.05
user 15.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/272249/ltcube_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.fits outfile=/scratch/kocevski/272249/expmap_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.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/272249/ltcube_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.fits
.....................!
real 192.15
user 186.08
sys 5.21

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

Setting source of interest to:
4FGL J1308.5+3547 @ 197.129 35.7918

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits scfile=/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits outfile=/scratch/kocevski/272249/cmap_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.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=197.129 yref=35.7918 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits scfile=/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits outfile=/scratch/kocevski/272249/cmap_HighResolution_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.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=197.129 yref=35.7918 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.55
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272249/Model_4FGL_J1308.5+3547_daily_bin1117.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/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits.....................!
real 46.04
user 44.77
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits', '/scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits', expMap='/scratch/kocevski/272249/expmap_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.fits', expCube='/scratch/kocevski/272249/ltcube_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272249/Model_4FGL_J1308.5+3547_daily_bin1117.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1308.5+3547'

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.918e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/272249/ft1_filtered_4FGL_J1308.5+3547_daily_bin1117.fits
Spacecraft file(s): /scratch/kocevski/272249/ft2_4FGL_J1308.5+3547_daily_bin1117.fits
Exposure map: /scratch/kocevski/272249/expmap_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.fits
Exposure cube: /scratch/kocevski/272249/ltcube_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272249/Model_4FGL_J1308.5+3547_daily_bin1117.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) = 5338.2674353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.002       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.411       1.0000         .10000E-03   10000.    
    12 'norm      '    9.6844       1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1687       1.0000         .10000E-03   10000.    
    15 'norm      '    .12875E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50360       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33702       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5204       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6891       1.0000         .10000E-03   10000.    
    24 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79448       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5338.250     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3239 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3846        7.5680       -.24969E-05    .60633E-06
   2  Prefactor     1.7605        1.7671        .47111E-08    .42283E-04
   3  Prefactor     6.2801        8.3198       -.10190E-06    .14265E-04
   4  Prefactor     .10000E-03    6.5660       -.80989E-08** at limit **
   5  Prefactor     .10000E-03    45.059        .32627E-07** at limit **
   6  Prefactor     13.002        7.5821       -.19706E-06    .18692E-04
   7  norm          .10000E-03    3.6746       -.22477E-06** at limit **
   8  Prefactor     .10000E-03    28.166       -.53140E-06** at limit **
   9  Prefactor     .10000E-03    14.248        .13757E-06** at limit **
  10  norm          2.6384        3.4128       -.21563E-06   -.11579E-04
  11  Prefactor     17.416        21.225        .13170E-05    .13377E-03
  12  norm          9.6887        7.3204       -.42847E-06    .17875E-05
  13  norm          .10000E-03    11.631       -.29968E-06** at limit **
  14  norm          1.1649        2.7738        .65126E-06    .18987E-03
  15  norm          .10000E-03    18.651        .29770E-05** at limit **
  16  Prefactor     .50497        4.0521        .12660E-06    .35019E-04
  17  Prefactor     .10000E-03    9.8191        .15874E-06** at limit **
  18  Prefactor     63.115        89.455       -.65785E-06    .29720E-04
  19  Prefactor     .10000E-03    9.0333        .23131E-06** at limit **
  20  Prefactor     20.823        21.209        .47887E-06    .60629E-04
  21  Prefactor     .10871        105.11       -.66094E-05    .89312E-04
  22  norm          6.5204        2.2404        .85332E-08    .13886E-03
  23  Prefactor     2.6890        3.2204       -.17736E-06   -.42025E-05
  24  norm          .10000E-03    19.302        .23285E-05** at limit **
  25  Normalizat    .79467        .17281       -.35183E-06    .27396E-03
  26  Prefactor     1.0845        .21681        .13124E-05    .84720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38458
  Prefactor  = 1.76049
  Prefactor  = 6.28013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63838
  Prefactor  = 17.4164
  norm       = 9.68867
  norm       = 0.0001
  norm       = 1.1649
  norm       = 0.000100001
  Prefactor  = 0.504967
  Prefactor  = 0.0001
  Prefactor  = 63.1149
  Prefactor  = 0.0001
  Prefactor  = 20.8229
  Prefactor  = 0.108711
  norm       = 6.52038
  Prefactor  = 2.68897
  norm       = 0.0001
  Normalizat = 0.794666
  Prefactor  = 1.08451
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.250     FROM HESSE     STATUS=OK           470 CALLS     3709 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3846        7.8507        .36954E-03   -1.5473    
   2  Prefactor     1.7605        1.7581        .94808E-04   -1.5443    
   3  Prefactor     6.2801        8.3158        .16016E-03   -1.5207    
   4  Prefactor     .10000E-03    6.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.002        7.5847        .11109E-03   -1.4987    
   7  norm          .10000E-03    3.7964        .27362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6384        3.4042        .14886E-03   -1.5383    
  11  Prefactor     17.416        21.485        .95987E-04   -1.4873    
  12  norm          9.6887        7.2585        .12877E-03   -1.5085    
  13  norm          .10000E-03    11.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1649        2.8064        .17880E-03   -1.5492    
  15  norm          .10000E-03    18.907        .29085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50497        5.7196        .21630E-02   -1.5566    
  17  Prefactor     .10000E-03    9.8519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     63.115        84.991        .50534E-04   -1.4117    
  19  Prefactor     .10000E-03    9.0832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.823        21.267        .87773E-04   -1.4795    
  21  Prefactor     .10871        67.966        .16011       -1.5642    
  22  norm          6.5204        2.2422        .61760E-04   -1.5197    
  23  Prefactor     2.6890        3.2174        .13833E-03   -1.5380    
  24  norm          .10000E-03    19.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79467        .20480        .23364E-03   -1.0027    
  26  Prefactor     1.0845        .25408        .26170E-03   -.89963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16194e-10
Minuit parameter uncertainties:
  1  6.595
  2  1.75812
  3  8.31731
  4  1.21833e-06
  5  1.26806e-05
  6  7.58522
  7  3.99463e-06
  8  5.58999e-05
  9  1.10527e-05
  10  3.40446
  11  21.4947
  12  7.25919
  13  2.28811e-05
  14  2.80668
  15  0.00021524
  16  3.39903
  17  2.40411e-07
  18  85.1553
  19  1.12889e-05
  20  21.2752
  21  5.44011
  22  2.24227
  23  3.2176
  24  8.98417e-05
  25  0.204999
  26  0.254365
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  9.689e+00  7.259e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.085e+00  2.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  7.947e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.31e-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) = 5337.45771879
delta logL = 0.792168901774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5337.4555549
delta logL = 0.794332793724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7541       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9600       1.0000          .0000       5.0000    
     3 'Normalizat'    .75510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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=   5337.456     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      274 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7544        5.8445        .98842E-04   -.72082E-03
   2  alpha         2.9600        .65948        .10831E-01   -.73684E-04
   3  Normalizat    .75503        .19899        .23880E-03    .99644E-04
   4  Prefactor     1.1151        .25440        .25829E-03    .13167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.75441
  alpha      = 2.96
  Normalizat = 0.75503
  Prefactor  = 1.11514
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.456     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7544        5.4830        .39537E-05   -1.5188    
   2  alpha         2.9600        .61914        .43324E-03    .18505    
   3  Normalizat    .75503        .19904        .95518E-05   -1.0176    
   4  Prefactor     1.1151        .25449        .51657E-04   -.88984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30217e-10
Minuit parameter uncertainties:
  1  5.48336
  2  0.625887
  3  0.199235
  4  0.254768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272249': 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) = 5337.45555455
delta logL = 0.794333148889

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  6.754e+00  5.483e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.960e+00  6.259e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.115e+00  2.548e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  7.550e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.56
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.96 +/- 0.63
Photon Flux (Free Index): 7.51e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.77e-05 +/- 9.73e-06

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/272249/cmap_HighResolution_528854401_529113601_4FGL_J1308.5+3547_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.77e-05', photon_flux_error='3.16e-08', dlogl='7.94e-01', energy_flux='1.74e-05', photon_flux2='7.51e-08', job_status='DONE', time_completed='2021-09-07 00:50:32.092606', photon_index_error2='0.63', photon_index2='2.96', ts='4.90', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='9.73e-06', EG='0.79', time_epoch_completed='1631001032.09', return_code='0', job_id='272249', GAL2='1.12', EG2='0.76', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.52e-08', ts2='6.56', photon_index='2.18' WHERE bin_id='1117' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 272249: <4FGL_J1308.5+3547_daily_bin1117> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1117> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:21 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:35:27 2021
Terminated at Tue Sep  7 00:50:32 2021
Results reported at Tue Sep  7 00:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1117 197.129 35.7918 528854401 529113601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1308.5+3547 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            911 sec.

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

