/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 = 7376
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin417
RA = 197.129, Dec = 35.7918
tmin = 347414401, tmax = 347673601
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='263700', job_status='RUN', time_executed='2021-09-07 00:11:11.305281', time_epoch_executed='1630998671.31' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263700/ft1_4FGL_J1308.5+3547_daily_bin417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263700/ft2_4FGL_J1308.5+3547_daily_bin417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263700/ft1_4FGL_J1308.5+3547_daily_bin417.fits outfile=/scratch/kocevski/263700/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin417.fits ra=197.129 dec=35.7918 rad=12.0 tmin=347414401.0 tmax=347673601.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 2.96
user 2.71
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263700/ft1_filtered_4FGL_J1308.5+3547_daily_bin417.fits evtable="EVENTS" scfile=/scratch/kocevski/263700/ft2_4FGL_J1308.5+3547_daily_bin417.fits sctable="SC_DATA" expcube=/scratch/kocevski/263700/ltcube_347414401_347673601_4FGL_J1308.5+3547_daily_bin417.fits outfile=/scratch/kocevski/263700/expmap_347414401_347673601_4FGL_J1308.5+3547_daily_bin417.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/263700/ltcube_347414401_347673601_4FGL_J1308.5+3547_daily_bin417.fits
.....................!
real 160.37
user 154.97
sys 5.03

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/263700/ft1_filtered_4FGL_J1308.5+3547_daily_bin417.fits scfile=/scratch/kocevski/263700/ft2_4FGL_J1308.5+3547_daily_bin417.fits outfile=/scratch/kocevski/263700/cmap_347414401_347673601_4FGL_J1308.5+3547_daily_bin417.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263700/ft1_filtered_4FGL_J1308.5+3547_daily_bin417.fits scfile=/scratch/kocevski/263700/ft2_4FGL_J1308.5+3547_daily_bin417.fits outfile=/scratch/kocevski/263700/cmap_HighResolution_347414401_347673601_4FGL_J1308.5+3547_daily_bin417.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.51
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14869E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.658       1.0000         .10000E-03   10000.    
    10 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2736       1.0000         .10000E-03   10000.    
    14 'norm      '    .10949E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3409       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19298E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    97.458       1.0000         .10000E-03   10000.    
    22 'norm      '    12.538       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60096       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3377       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=   6378.102     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3177 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    7.0276        .28128E-05** at limit **
   2  Prefactor     .10582        1.2477        .18010E-06   -.32889E-03
   3  Prefactor     5.3629        6.1973        .12765E-08   -.62694E-04
   4  Prefactor     .10000E-03    49.494        .47713E-06** at limit **
   5  Prefactor     .10000E-03    21.678        .28691E-06** at limit **
   6  Prefactor     .10000E-03    2.4554       -.87901E-08** at limit **
   7  norm          .10000E-03    1.0356       -.31088E-07** at limit **
   8  Prefactor     75.609        51.916       -.15176E-05   -.25878E-03
   9  Prefactor     37.668        25.311       -.44659E-07   -.23927E-04
  10  norm          .10000E-03    2.5850        .19534E-06** at limit **
  11  Prefactor     .10000E-03    5.2358        .14659E-07** at limit **
  12  norm          .10000E-03    1.9946       -.36988E-07** at limit **
  13  norm          6.2733        9.4573        .31775E-05    .26456E-03
  14  norm          .10000E-03    2.0747       -.45286E-06** at limit **
  15  norm          5.1462        4.7917        .10850E-06    .18380E-03
  16  Prefactor     6.3412        3.7614        .10852E-06    .25562E-03
  17  Prefactor     .10000E-03    6.1679        .75740E-08** at limit **
  18  Prefactor     .10000E-03    184.17       -.93397E-06** at limit **
  19  Prefactor     .10000E-03    9.9577        .89248E-07** at limit **
  20  Prefactor     .10000E-03    33.077        .10036E-06** at limit **
  21  Prefactor     97.435        76.068       -.16757E-05   -.24609E-03
  22  norm          12.537        2.5998       -.38622E-09   -.22199E-04
  23  Prefactor     .10000E-03    2.3592        .10714E-06** at limit **
  24  norm          .10000E-03    12.837       -.98149E-06** at limit **
  25  Normalizat    .60102        .15922        .56268E-06   -.20398E-03
  26  Prefactor     1.3377        .19857       -.56935E-06   -.15929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Prefactor  = 0.105818
  Prefactor  = 5.3629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.6088
  Prefactor  = 37.6681
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.27327
  norm       = 0.000100001
  norm       = 5.1462
  Prefactor  = 6.34119
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.4353
  norm       = 12.5374
  Prefactor  = 0.0001
  norm       = 0.000100002
  Normalizat = 0.601024
  Prefactor  = 1.33769
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.102     FROM HESSE     STATUS=OK           452 CALLS     3629 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    12.469        .32772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10582        3.6130        .17305E-02   -1.5643    
   3  Prefactor     5.3629        6.1918        .17353E-03   -1.5245    
   4  Prefactor     .10000E-03    50.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4681        .12218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0365        .79330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     75.609        52.465        .46172E-04   -1.3967    
   9  Prefactor     37.668        24.956        .65311E-04   -1.4480    
  10  norm          .10000E-03    6.1519        .24850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2549        .17846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0040        .11009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2733        9.9155        .80132E-03   -1.5207    
  14  norm          .10000E-03    5.8247        .19948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1462        4.5608        .15477E-03   -1.5254    
  16  Prefactor     6.3412        3.7170        .10924E-03   -1.5204    
  17  Prefactor     .10000E-03    6.1780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    185.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     97.435        77.198        .40718E-04   -1.3731    
  22  norm          12.537        2.5989        .56617E-04   -1.5000    
  23  Prefactor     .10000E-03    2.3921        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .60102        .18993        .27500E-03   -1.0794    
  26  Prefactor     1.3377        .23913        .24718E-03   -.82193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53722e-08
Minuit parameter uncertainties:
  1  0.00105676
  2  1.23613
  3  6.19253
  4  0.000132499
  5  0.000124014
  6  2.27658e-06
  7  8.93602e-07
  8  52.4974
  9  24.9632
  10  3.9046e-05
  11  4.68168e-06
  12  1.22456e-06
  13  9.91811
  14  0.000123748
  15  4.56116
  16  3.71714
  17  7.28369e-06
  18  0.000861165
  19  1.55238e-06
  20  9.03321e-05
  21  77.2774
  22  2.59893
  23  4.6529e-06
  24  0.000295975
  25  0.190134
  26  0.239328
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.225e-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:  1.338e+00  2.393e-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:  6.010e-01  1.901e-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: 3.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263700/likelihoodResults_347414401_347673601_4FGL_J1308.5+3547_daily_bin417.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) = 6378.10469245
delta logL = -0.0023428668037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6378.10234957
delta logL = 2.14522515307e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1741       1.0000          .0000       5.0000    
     3 'Normalizat'    .60104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3377       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=   6378.102     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      242 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.813        .11037E-02** at limit **
   2  alpha         1.9149        3.9503        .16641        .16396E-08
   3  Normalizat    .60102        .18266        .27500E-03    .79456E-04
   4  Prefactor     1.3377        .23747        .24718E-03    .92927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91495
  Normalizat = 0.601025
  Prefactor  = 1.33769
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.102     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0946        .22073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9149        3.4397        .66563E-02   -.23621    
   3  Normalizat    .60102        .18284        .11000E-04   -1.0794    
   4  Prefactor     1.3377        .23769        .49435E-04   -.82193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80174e-12
Minuit parameter uncertainties:
  1  7.26813e-08
  2  181.364
  3  0.18302
  4  0.237888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263700': 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) = 6378.10234851
delta logL = 1.07660252979e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  7.268e-08  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.915e+00  1.814e+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:  1.338e+00  2.379e-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:  6.010e-01  1.830e-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/263700/cmap_HighResolution_347414401_347673601_4FGL_J1308.5+3547_daily_bin417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-05', job_status='DONE', photon_flux_upper_limit='3.97e-08', time_completed='2021-09-07 00:22:16.949475', job_id='263700', GAL2='1.34', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1630999336.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='417' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:22:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 263700: <4FGL_J1308.5+3547_daily_bin417> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin417> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:10:28 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:10:56 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:10:56 2021
Terminated at Tue Sep  7 00:22:17 2021
Results reported at Tue Sep  7 00:22:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin417 197.129 35.7918 347414401 347673601 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 :                                   661.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            709 sec.

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

