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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin773
RA = 197.129, Dec = 35.7918
tmin = 439689601, tmax = 439948801
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='266633', job_status='RUN', time_executed='2021-09-07 00:21:05.973451', time_epoch_executed='1630999265.97' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266633

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266633/ft1_4FGL_J1308.5+3547_daily_bin773.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266633/ft2_4FGL_J1308.5+3547_daily_bin773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266633/ft1_4FGL_J1308.5+3547_daily_bin773.fits outfile=/scratch/kocevski/266633/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin773.fits ra=197.129 dec=35.7918 rad=12.0 tmin=439689601.0 tmax=439948801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.44
user 4.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266633/ft2_4FGL_J1308.5+3547_daily_bin773.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/266633/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin773.fits evtable="EVENTS" outfile="/scratch/kocevski/266633/ft1_filtered_4FGL_J1308.5+3547_daily_bin773.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.56
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266633/ft1_filtered_4FGL_J1308.5+3547_daily_bin773.fits" evtable="EVENTS" scfile=/scratch/kocevski/266633/ft2_4FGL_J1308.5+3547_daily_bin773.fits sctable="SC_DATA" outfile=/scratch/kocevski/266633/ltcube_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.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/266633/ft2_4FGL_J1308.5+3547_daily_bin773.fits
.....................!
real 14.63
user 14.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266633/ft1_filtered_4FGL_J1308.5+3547_daily_bin773.fits evtable="EVENTS" scfile=/scratch/kocevski/266633/ft2_4FGL_J1308.5+3547_daily_bin773.fits sctable="SC_DATA" expcube=/scratch/kocevski/266633/ltcube_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.fits outfile=/scratch/kocevski/266633/expmap_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.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/266633/ltcube_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.fits
.....................!
real 199.36
user 194.05
sys 4.87

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/266633/ft1_filtered_4FGL_J1308.5+3547_daily_bin773.fits scfile=/scratch/kocevski/266633/ft2_4FGL_J1308.5+3547_daily_bin773.fits outfile=/scratch/kocevski/266633/cmap_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266633/ft1_filtered_4FGL_J1308.5+3547_daily_bin773.fits scfile=/scratch/kocevski/266633/ft2_4FGL_J1308.5+3547_daily_bin773.fits outfile=/scratch/kocevski/266633/cmap_HighResolution_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7233       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9907       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    34.043       1.0000         .10000E-03   10000.    
    14 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    86.176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14535E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9687       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.761       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2897       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70276       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=   6077.048     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3639 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7231        6.7443        .17828E-05    .51911E-03
   2  Prefactor     1.9907        1.9158       -.11483E-07    .41991E-05
   3  Prefactor     .10000E-03    18.176        .33354E-06** at limit **
   4  Prefactor     13.913        16.828        .89197E-08    .19857E-04
   5  Prefactor     .10000E-03    19.094        .14809E-06** at limit **
   6  Prefactor     .10000E-03    4.4753        .74636E-07** at limit **
   7  norm          .10000E-03    1.4361        .45663E-07** at limit **
   8  Prefactor     .10000E-03    27.065       -.20847E-06** at limit **
   9  Prefactor     .10000E-03    8.3227        .60557E-07** at limit **
  10  norm          .10000E-03    3.4429       -.22092E-06** at limit **
  11  Prefactor     .10000E-03    13.502        .17975E-07** at limit **
  12  norm          .10000E-03    3.1067        .35249E-07** at limit **
  13  norm          34.039        18.859        .22556E-06    .43695E-05
  14  norm          .10002E-03    3.3220       -.14944E-05** at limit **
  15  norm          11.371        7.4209        .46991E-06    .13988E-02
  16  Prefactor     7.8871        5.0458        .60614E-06    .14875E-02
  17  Prefactor     .15473E-02    12.333       -.17414E-06** at limit **
  18  Prefactor     86.309        76.722        .26110E-05    .13460E-03
  19  Prefactor     .10000E-03    13.375        .10428E-06** at limit **
  20  Prefactor     .10000E-03    7.1293        .34729E-07** at limit **
  21  Prefactor     .11970E-03    184.17       -.13509E-04** at limit **
  22  norm          2.9687        1.7012        .16842E-07    .31942E-03
  23  Prefactor     .10000E-03    1.2440        .25279E-08** at limit **
  24  norm          17.760        15.886        .25231E-06    .13137E-03
  25  Normalizat    1.2896        .17315        .56489E-06    .81886E-03
  26  Prefactor     .70290        .20755       -.92138E-06    .46864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72311
  Prefactor  = 1.99069
  Prefactor  = 0.0001
  Prefactor  = 13.913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 34.0386
  norm       = 0.000100022
  norm       = 11.3708
  Prefactor  = 7.88705
  Prefactor  = 0.0015473
  Prefactor  = 86.3088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000119699
  norm       = 2.9687
  Prefactor  = 0.0001
  norm       = 17.7596
  Normalizat = 1.28959
  Prefactor  = 0.702904
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.048     FROM HESSE     STATUS=OK           470 CALLS     4109 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7231        6.8273        .15997E-02   -1.5445    
   2  Prefactor     1.9907        1.9203        .10314E-03   -1.5426    
   3  Prefactor     .10000E-03    18.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.913        16.821        .10738E-03   -1.4962    
   5  Prefactor     .10000E-03    19.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5632        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4448        .91193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.7400        .27886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1448        .13410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          34.039        18.793        .68680E-04   -1.4540    
  14  norm          .10002E-03    17.315        .21293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.371        6.8228        .11877E-03   -1.5033    
  16  Prefactor     7.8871        5.2928        .12091E-03   -1.5146    
  17  Prefactor     .15473E-02    17.770        .77218E-01   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     86.309        75.140        .21638E-03   -1.3847    
  19  Prefactor     .10000E-03    13.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11970E-03    83.013        .19411       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9687        1.7009        .74427E-04   -1.5363    
  23  Prefactor     .10000E-03    1.2505        .84905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.760        15.871        .95035E-04   -1.4865    
  25  Normalizat    1.2896        .20586        .21343E-03   -.83878    
  26  Prefactor     .70290        .24380        .33753E-03   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54955e-09
Minuit parameter uncertainties:
  1  6.83034
  2  1.92034
  3  9.30626e-06
  4  16.827
  5  7.37847e-06
  6  4.38818e-06
  7  2.12374e-07
  8  5.57853e-06
  9  2.82228e-06
  10  1.62227e-05
  11  1.85996e-05
  12  9.52137e-06
  13  18.7966
  14  0.00124627
  15  6.82331
  16  5.29308
  17  0.320831
  18  75.2232
  19  8.80314e-06
  20  5.53918e-07
  21  0.0809889
  22  1.70092
  23  5.71942e-07
  24  15.8748
  25  0.205986
  26  0.244174
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  9.521e-06  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:  7.029e-01  2.442e-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.290e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/266633/likelihoodResults_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.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) = 6077.04936687
delta logL = -0.00151112231833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6077.04785264
delta logL = 3.10968061967e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9189       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70288       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6077.048     FROM MIGRAD    STATUS=FAILED        92 CALLS      280 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    757.39        .21707E-02** at limit **
   2  alpha         2.9646        3.5406        .16762       -.60301E-06
   3  Normalizat    1.2896        .93512E-01    .21343E-03    .50911E-04
   4  Prefactor     .70290        .11268        .33753E-03    .13641E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6077.048     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      449 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    757.39        .36697E-03** at limit **
   2  alpha         2.9646        3.5406        .15636E-04   -.60301E-06
   3  Normalizat    1.2896        .93512E-01    .46175E-06    .50911E-04
   4  Prefactor     .70290        .11268        .63809E-06    .13641E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6077.048     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      480 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9274        .43414E-03** at limit **
   2  alpha         2.9876        3.2234        .67050E-02    .44085E-08
   3  Normalizat    1.2896        .19920        .42687E-04   -.71162E-04
   4  Prefactor     .70290        .24054        .13501E-04   -.53218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.98758
  Normalizat = 1.28959
  Prefactor  = 0.702904
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.048     FROM HESSE     STATUS=OK            23 CALLS      503 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9273        .86829E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9876        3.5062        .13410E-02    .19629    
   3  Normalizat    1.2896        .19926        .85374E-05   -.83878    
   4  Prefactor     .70290        .24064        .27002E-05   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26093e-12
Minuit parameter uncertainties:
  1  2.66022e-06
  2  304.749
  3  0.199381
  4  0.240995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266633': 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) = 6077.04785258
delta logL = 3.16439491144e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  2.660e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.988e+00  3.047e+02  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:  7.029e-01  2.410e-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.290e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.129 35.792

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/266633/cmap_HighResolution_439689601_439948801_4FGL_J1308.5+3547_daily_bin773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-05', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-07 00:34:39.653013', job_id='266633', GAL2='0.70', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631000079.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='3.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='773' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:34:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 266633: <4FGL_J1308.5+3547_daily_bin773> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin773> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 00:20:36 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:20:51 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:20:51 2021
Terminated at Tue Sep  7 00:34:40 2021
Results reported at Tue Sep  7 00:34:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin773 197.129 35.7918 439689601 439948801 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            844 sec.

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

