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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1157
RA = 197.129, Dec = 35.7918
tmin = 539222401, tmax = 539481601
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='272305', job_status='RUN', time_executed='2021-09-07 00:39:45.330187', time_epoch_executed='1631000385.33' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272305

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272305/ft1_4FGL_J1308.5+3547_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272305/ft2_4FGL_J1308.5+3547_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272305/ft1_4FGL_J1308.5+3547_daily_bin1157.fits outfile=/scratch/kocevski/272305/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1157.fits ra=197.129 dec=35.7918 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.69
user 5.32
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272305/ft2_4FGL_J1308.5+3547_daily_bin1157.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/272305/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/272305/ft1_filtered_4FGL_J1308.5+3547_daily_bin1157.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.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272305/ft1_filtered_4FGL_J1308.5+3547_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/272305/ft2_4FGL_J1308.5+3547_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/272305/ltcube_539222401_539481601_4FGL_J1308.5+3547_daily_bin1157.fits outfile=/scratch/kocevski/272305/expmap_539222401_539481601_4FGL_J1308.5+3547_daily_bin1157.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/272305/ltcube_539222401_539481601_4FGL_J1308.5+3547_daily_bin1157.fits
.....................!
real 192.18
user 186.16
sys 3.91

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/272305/ft1_filtered_4FGL_J1308.5+3547_daily_bin1157.fits scfile=/scratch/kocevski/272305/ft2_4FGL_J1308.5+3547_daily_bin1157.fits outfile=/scratch/kocevski/272305/cmap_539222401_539481601_4FGL_J1308.5+3547_daily_bin1157.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272305/ft1_filtered_4FGL_J1308.5+3547_daily_bin1157.fits scfile=/scratch/kocevski/272305/ft2_4FGL_J1308.5+3547_daily_bin1157.fits outfile=/scratch/kocevski/272305/cmap_HighResolution_539222401_539481601_4FGL_J1308.5+3547_daily_bin1157.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/272305/ft1_filtered_4FGL_J1308.5+3547_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/272305/ft2_4FGL_J1308.5+3547_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272305/Model_4FGL_J1308.5+3547_daily_bin1157.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/272305/ft1_filtered_4FGL_J1308.5+3547_daily_bin1157.fits.....................!
real 21.93
user 20.37
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    186.38       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2247       1.0000         .10000E-03   10000.    
    10 'norm      '    .67546E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.752       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6040       1.0000         .10000E-03   10000.    
    14 'norm      '    .18876E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3242       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.672       1.0000         .10000E-03   10000.    
    21 'Prefactor '    110.09       1.0000         .10000E-03   10000.    
    22 'norm      '    .88256       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7698       1.0000         .10000E-03   10000.    
    24 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .40971       1.0000         .10000E-01   10.000    
    26 'Prefactor '    2.0082       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=   1394.945     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3105 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.523        33.140       -.29278E-06   -.62683E-05
   2  Prefactor     2.3757        7.8527        .90278E-09   -.80372E-05
   3  Prefactor     .10000E-03    22.443       -.30026E-06** at limit **
   4  Prefactor     .10000E-03    32.441       -.22800E-06** at limit **
   5  Prefactor     186.53        213.43       -.25751E-06   -.19534E-04
   6  Prefactor     .10000E-03    7.0755       -.41882E-07** at limit **
   7  norm          .10000E-03    6.5398        .35798E-06** at limit **
   8  Prefactor     .10000E-03    54.744       -.36720E-06** at limit **
   9  Prefactor     2.2481        470.67       -.13518E-04   -.90232E-04
  10  norm          .10047E-03    24.349       -.12592E-05** at limit **
  11  Prefactor     .10000E-03    15.179        .62055E-08** at limit **
  12  norm          17.748        17.762        .43228E-07   -.27934E-03
  13  norm          7.5838        40.189       -.14234E-05    .63666E-05
  14  norm          .10007E-03    17.130        .51827E-05** at limit **
  15  norm          3.3121        20.173       -.31459E-05   -.49808E-03
  16  Prefactor     .10000E-03    6.9915        .36064E-06** at limit **
  17  Prefactor     .10000E-03    28.968        .57007E-07** at limit **
  18  Prefactor     .10000E-03    60.811        .23313E-06** at limit **
  19  Prefactor     .10000E-03    18.897       -.22802E-06** at limit **
  20  Prefactor     33.650        58.642       -.86103E-06   -.11824E-04
  21  Prefactor     110.30        153.63       -.14307E-06    .16622E-04
  22  norm          .88299        2.7547        .24521E-06    .21139E-04
  23  Prefactor     1.7695        6.3488        .13530E-06    .20347E-05
  24  norm          .10000E-03    15.175        .39108E-06** at limit **
  25  Normalizat    .40853        .47463       -.46963E-05   -.10763E-03
  26  Prefactor     2.0103        .59374        .49088E-05   -.18811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5226
  Prefactor  = 2.37573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 186.528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24812
  norm       = 0.000100467
  Prefactor  = 0.0001
  norm       = 17.7475
  norm       = 7.58378
  norm       = 0.000100067
  norm       = 3.31209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6504
  Prefactor  = 110.302
  norm       = 0.882989
  Prefactor  = 1.7695
  norm       = 0.0001
  Normalizat = 0.408528
  Prefactor  = 2.01033
 **********
 **   18 **HESSE 
 **********

 FCN=   1394.945     FROM HESSE     STATUS=OK           462 CALLS     3567 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.523        33.072        .68200E-04   -1.4532    
   2  Prefactor     2.3757        7.8246        .18481E-03   -1.5400    
   3  Prefactor     .10000E-03    22.452        .17283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     186.53        213.12        .14788E-03   -1.2968    
   6  Prefactor     .10000E-03    7.0764        .97037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.5422        .93234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2481        490.83        .27567E-03   -1.5408    
  10  norm          .10047E-03    28.578        .50530E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.181        .14216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.748        17.616        .95061E-04   -1.4865    
  13  norm          7.5838        39.768        .14543E-03   -1.5157    
  14  norm          .10007E-03    29.678        .22333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3121        21.879        .22202E-03   -1.5344    
  16  Prefactor     .10000E-03    7.0311        .96337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.903        .15860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.650        58.434        .69057E-04   -1.4547    
  21  Prefactor     110.30        153.54        .19167E-03   -1.3604    
  22  norm          .88299        2.6766        .10255E-03   -1.5520    
  23  Prefactor     1.7695        6.3064        .16931E-03   -1.5442    
  24  norm          .10000E-03    15.173        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .40853        .50794        .38230E-03   -1.1686    
  26  Prefactor     2.0103        .63944        .24812E-03   -.64092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78091e-09
Minuit parameter uncertainties:
  1  33.0898
  2  7.82794
  3  1.87876e-05
  4  2.36878e-05
  5  214.011
  6  3.83541e-07
  7  6.60084e-07
  8  9.18682e-05
  9  66.9982
  10  0.00731371
  11  4.78066e-07
  12  17.6215
  13  34.7689
  14  0.00281917
  15  17.0341
  16  6.53329e-06
  17  9.30835e-06
  18  9.63559e-05
  19  8.70413e-07
  20  58.5335
  21  154.094
  22  2.67696
  23  6.30873
  24  5.16882e-06
  25  0.513839
  26  0.642186
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.775e+01  1.762e+01  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:  2.010e+00  6.422e-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:  4.085e-01  5.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 7.68e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 3.17e-05

TS (Fixed Index): 1.83
Ra Dec: 197.129 35.792
Photon Flux Upper Limit: 2.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272305/likelihoodResults_539222401_539481601_4FGL_J1308.5+3547_daily_bin1157.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) = 1394.90850516
delta logL = 0.0362791864995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1394.90635026
delta logL = 0.0384340884586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.623       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4146       1.0000          .0000       5.0000    
     3 'Normalizat'    .39648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.0206       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=   1394.906     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      254 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.634        629.49        .25333E-02    .42590E-03
   2  alpha         2.4153        3.3313        .23354        .91757E-04
   3  Normalizat    .39650        .27756        .87574E-01    .33253E-03
   4  Prefactor     2.0205        .38247        .56012E-01    .49273E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6343
  alpha      = 2.41526
  Normalizat = 0.396497
  Prefactor  = 2.0205
 **********
 **   18 **HESSE 
 **********

 FCN=   1394.906     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.634        17.709        .10133E-03   -1.4917    
   2  alpha         2.4153        .85742        .98211E-02   -.33902E-01
   3  Normalizat    .39650        .45804        .38793E-03   -1.1748    
   4  Prefactor     2.0205        .61288        .24760E-03   -.63839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56388e-09
Minuit parameter uncertainties:
  1  17.7146
  2  0.875204
  3  0.462471
  4  0.615285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272305': 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) = 1394.90634923
delta logL = 0.0384351209041

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.563e+01  1.771e+01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.415e+00  8.752e-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:  2.020e+00  6.153e-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:  3.965e-01  4.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.42 +/- 0.88
Photon Flux (Free Index): 8.76e-08 +/- 8.71e-08
Energy Flux (Free Index): 2.93e-05 +/- 2.93e-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/272305/cmap_HighResolution_539222401_539481601_4FGL_J1308.5+3547_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-04', comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='2.93e-05', photon_flux_error='7.68e-08', dlogl='3.84e-02', energy_flux='3.19e-05', photon_flux2='8.76e-08', job_status='DONE', time_completed='2021-09-07 00:47:14.470791', photon_index_error2='0.88', photon_index2='2.42', ts='1.83', fit_tolerance='1e-08', GAL='2.01', photon_index_error='0.00', photon_flux_upper_limit='2.61e-07', energy_flux_error2='2.93e-05', EG='0.41', time_epoch_completed='1631000834.47', return_code='0', job_id='272305', GAL2='2.02', EG2='0.40', return_code2='0', energy_flux_error='3.17e-05', photon_flux_error2='8.71e-08', ts2='1.90', photon_index='2.18' WHERE bin_id='1157' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:47:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 272305: <4FGL_J1308.5+3547_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1157> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:25 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:36 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:36 2021
Terminated at Tue Sep  7 00:47:15 2021
Results reported at Tue Sep  7 00:47:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1157 197.129 35.7918 539222401 539481601 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 :                                   431.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            710 sec.

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

