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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1231
RA = 197.129, Dec = 35.7918
tmin = 558403201, tmax = 558662401
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='272415', job_status='RUN', time_executed='2021-09-07 00:38:10.102312', time_epoch_executed='1631000290.1' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272415

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272415/ft1_4FGL_J1308.5+3547_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272415/ft1_4FGL_J1308.5+3547_daily_bin1231.fits outfile=/scratch/kocevski/272415/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1231.fits ra=197.129 dec=35.7918 rad=12.0 tmin=558403201.0 tmax=558662401.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.76
user 3.54
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.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/272415/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1231.fits evtable="EVENTS" outfile="/scratch/kocevski/272415/ft1_filtered_4FGL_J1308.5+3547_daily_bin1231.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272415/ft1_filtered_4FGL_J1308.5+3547_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/272415/ltcube_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.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/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits
.....................!
real 13.38
user 12.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272415/ft1_filtered_4FGL_J1308.5+3547_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/272415/ltcube_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.fits outfile=/scratch/kocevski/272415/expmap_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.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/272415/ltcube_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.fits
.....................!
real 191.65
user 185.51
sys 4.92

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/272415/ft1_filtered_4FGL_J1308.5+3547_daily_bin1231.fits scfile=/scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits outfile=/scratch/kocevski/272415/cmap_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272415/ft1_filtered_4FGL_J1308.5+3547_daily_bin1231.fits scfile=/scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits outfile=/scratch/kocevski/272415/cmap_HighResolution_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272415/ft1_filtered_4FGL_J1308.5+3547_daily_bin1231.fits', '/scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits', expMap='/scratch/kocevski/272415/expmap_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.fits', expCube='/scratch/kocevski/272415/ltcube_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272415/Model_4FGL_J1308.5+3547_daily_bin1231.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/272415/ft1_filtered_4FGL_J1308.5+3547_daily_bin1231.fits
Spacecraft file(s): /scratch/kocevski/272415/ft2_4FGL_J1308.5+3547_daily_bin1231.fits
Exposure map: /scratch/kocevski/272415/expmap_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.fits
Exposure cube: /scratch/kocevski/272415/ltcube_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272415/Model_4FGL_J1308.5+3547_daily_bin1231.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) = 7066.16012472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4633       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5967       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.440       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.600       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9444       1.0000         .10000E-03   10000.    
    13 'norm      '    17.357       1.0000         .10000E-03   10000.    
    14 'norm      '    .48880       1.0000         .10000E-03   10000.    
    15 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.214       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9823       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0425       1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99267       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1050       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=   7066.152     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3081 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7883        .54412E-06** at limit **
   2  Prefactor     3.4632        1.9753       -.42791E-07   -.61333E-04
   3  Prefactor     14.529        11.085        .79524E-06    .28583E-03
   4  Prefactor     .10000E-03    3.9482        .34811E-08** at limit **
   5  Prefactor     .10000E-03    50.089        .33983E-06** at limit **
   6  Prefactor     5.5969        4.3335       -.16379E-06   -.27319E-04
   7  norm          2.5638        3.5866        .42192E-07    .16089E-04
   8  Prefactor     15.415        40.263       -.11648E-05   -.39883E-04
   9  Prefactor     19.521        23.064        .13965E-05    .13184E-03
  10  norm          3.2154        4.0385        .36560E-06    .18009E-03
  11  Prefactor     .10000E-03    5.9689       -.29614E-06** at limit **
  12  norm          3.9440        3.7981        .12013E-06    .12119E-03
  13  norm          17.358        13.166        .45386E-07   -.40502E-04
  14  norm          .49342        2.7078        .12239E-05   -.10946E-02
  15  norm          .10000E-03    5.2848       -.92775E-08** at limit **
  16  Prefactor     .10000E-03    1.0496       -.39419E-06** at limit **
  17  Prefactor     14.023        15.933        .10519E-05    .28449E-03
  18  Prefactor     .10000E-03    48.483       -.50250E-06** at limit **
  19  Prefactor     .10000E-03    26.932        .96961E-06** at limit **
  20  Prefactor     .10000E-03    8.3771        .25036E-06** at limit **
  21  Prefactor     31.103        69.865       -.50642E-05   -.95068E-04
  22  norm          3.9823        1.4564       -.31507E-07   -.28912E-03
  23  Prefactor     2.0433        4.3637        .84033E-06    .33445E-03
  24  norm          .10000E-03    3.7785       -.36554E-06** at limit **
  25  Normalizat    .99274        .18424        .75326E-05    .16084E-03
  26  Prefactor     1.1049        .22262       -.82296E-05    .21470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.4632
  Prefactor  = 14.529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.59687
  norm       = 2.56384
  Prefactor  = 15.4149
  Prefactor  = 19.5215
  norm       = 3.21545
  Prefactor  = 0.0001
  norm       = 3.944
  norm       = 17.3579
  norm       = 0.49342
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1027
  norm       = 3.98226
  Prefactor  = 2.04329
  norm       = 0.0001
  Normalizat = 0.99274
  Prefactor  = 1.10488
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.152     FROM HESSE     STATUS=OK           462 CALLS     3543 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8382        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4632        1.9777        .86888E-04   -1.5336    
   3  Prefactor     14.529        11.113        .52538E-03   -1.4945    
   4  Prefactor     .10000E-03    3.9486        .16313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5969        4.3332        .14910E-03   -1.5235    
   7  norm          2.5638        3.5538        .17454E-03   -1.5388    
   8  Prefactor     15.415        40.313        .10193E-03   -1.4923    
   9  Prefactor     19.521        23.282        .90469E-04   -1.4824    
  10  norm          3.2154        4.0319        .18330E-03   -1.5349    
  11  Prefactor     .10000E-03    5.9866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9440        3.7890        .15492E-03   -1.5311    
  13  norm          17.358        13.167        .96134E-04   -1.4874    
  14  norm          .49342        7.0397        .21503E-02   -1.5567    
  15  norm          .10000E-03    5.3753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0636        .84353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.023        16.161        .10682E-03   -1.4959    
  18  Prefactor     .10000E-03    48.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.3907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.103        70.365        .71717E-04   -1.4592    
  22  norm          3.9823        1.4574        .59599E-04   -1.5309    
  23  Prefactor     2.0433        4.3715        .24525E-03   -1.5422    
  24  norm          .10000E-03    3.7839        .15963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99274        .19064        .23897E-03   -.93274    
  26  Prefactor     1.1049        .22821        .28407E-03   -.89311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15441e-09
Minuit parameter uncertainties:
  1  2.2295e-05
  2  1.97771
  3  11.1144
  4  2.47164e-06
  5  7.95923e-05
  6  4.33346
  7  3.55408
  8  40.3845
  9  23.2926
  10  4.0322
  11  4.14293e-05
  12  3.78921
  13  13.1687
  14  3.72763
  15  5.23815e-05
  16  2.0849e-05
  17  16.1661
  18  9.28479e-05
  19  2.24662e-05
  20  1.3137e-05
  21  70.5538
  22  1.45737
  23  4.37218
  24  1.9081e-05
  25  0.190775
  26  0.228415
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.944e+00  3.789e+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.105e+00  2.284e-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:  9.927e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 7.10e-06 +/- 6.82e-06

TS (Fixed Index): 1.81
Ra Dec: 197.129 35.792
Photon Flux Upper Limit: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272415/likelihoodResults_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7066.03912915
delta logL = 0.112795214974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7066.03813728
delta logL = 0.113787086617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9411       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6892       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0987       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.

 FCN=   7066.038     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9315        4.2873        .50800E-02    .17832E-03
   2  alpha         1.6882        .93602        .44290       -.26082E-04
   3  Normalizat    1.0005        .15285        .46176E-01   -.74585E-05
   4  Prefactor     1.0989        .19082        .64368E-01    .24512E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.93146
  alpha      = 1.68823
  Normalizat = 1.00055
  Prefactor  = 1.09894
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.038     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9315        3.9054        .15529E-03   -1.5311    
   2  alpha         1.6882        .95110        .29094E-01   -.33070    
   3  Normalizat    1.0005        .18026        .23815E-03   -.93012    
   4  Prefactor     1.0989        .22539        .28472E-03   -.89500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12439e-11
Minuit parameter uncertainties:
  1  3.90561
  2  0.97882
  3  0.180372
  4  0.225582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272415': 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) = 7066.03813374
delta logL = 0.113790622794

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.931e+00  3.906e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.688e+00  9.788e-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.099e+00  2.256e-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:  1.001e+00  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.69 +/- 0.98
Photon Flux (Free Index): 1.14e-08 +/- 1.48e-08
Energy Flux (Free Index): 8.49e-06 +/- 9.15e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/272415/cmap_HighResolution_558403201_558662401_4FGL_J1308.5+3547_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='8.49e-06', photon_flux_error='1.65e-08', dlogl='1.14e-01', energy_flux='7.10e-06', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-09-07 00:51:54.234509', photon_index_error2='0.98', photon_index2='1.69', ts='1.81', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='5.86e-08', energy_flux_error2='9.15e-06', EG='0.99', time_epoch_completed='1631001114.23', return_code='0', job_id='272415', GAL2='1.10', EG2='1.00', return_code2='0', energy_flux_error='6.82e-06', photon_flux_error2='1.48e-08', ts2='2.04', photon_index='2.18' WHERE bin_id='1231' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 272415: <4FGL_J1308.5+3547_daily_bin1231> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1231> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:32 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:50 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:50 2021
Terminated at Tue Sep  7 00:51:55 2021
Results reported at Tue Sep  7 00:51:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1231 197.129 35.7918 558403201 558662401 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 :                                   811.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            983 sec.

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

