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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin54
RA = 197.129, Dec = 35.7918
tmin = 253324801, tmax = 253584001
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='259865', job_status='RUN', time_executed='2021-09-06 23:58:18.216074', time_epoch_executed='1630997898.22' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259865/ft1_4FGL_J1308.5+3547_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259865/ft2_4FGL_J1308.5+3547_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259865/ft1_4FGL_J1308.5+3547_daily_bin54.fits outfile=/scratch/kocevski/259865/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin54.fits ra=197.129 dec=35.7918 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.43
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259865/ft1_filtered_4FGL_J1308.5+3547_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/259865/ft2_4FGL_J1308.5+3547_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/259865/ltcube_253324801_253584001_4FGL_J1308.5+3547_daily_bin54.fits outfile=/scratch/kocevski/259865/expmap_253324801_253584001_4FGL_J1308.5+3547_daily_bin54.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/259865/ltcube_253324801_253584001_4FGL_J1308.5+3547_daily_bin54.fits
.....................!
real 191.43
user 185.59
sys 5.36

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/259865/ft1_filtered_4FGL_J1308.5+3547_daily_bin54.fits scfile=/scratch/kocevski/259865/ft2_4FGL_J1308.5+3547_daily_bin54.fits outfile=/scratch/kocevski/259865/cmap_253324801_253584001_4FGL_J1308.5+3547_daily_bin54.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259865/ft1_filtered_4FGL_J1308.5+3547_daily_bin54.fits scfile=/scratch/kocevski/259865/ft2_4FGL_J1308.5+3547_daily_bin54.fits outfile=/scratch/kocevski/259865/cmap_HighResolution_253324801_253584001_4FGL_J1308.5+3547_daily_bin54.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4306       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7799       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.644       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8806       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.5330       1.0000         .10000E-03   10000.    
    13 'norm      '    10.382       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1603       1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36072       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9720       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.086       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10440E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13129E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.3127       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74039       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=   4690.922     FROM MIGRAD    STATUS=CONVERGED   1136 CALLS     3194 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4297        8.9348        .95657E-03   -.24245E-04
   2  Prefactor     1.7801        2.1913        .11031E-03   -.15893E-03
   3  Prefactor     .10000E-03    11.784        .18142E-02** at limit **
   4  Prefactor     .10000E-03    9.4577        .18142E-02** at limit **
   5  Prefactor     .10000E-03    28.692        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.8006        .14581E-02** at limit **
   7  norm          .10000E-03    1.3442        .77464E-03** at limit **
   8  Prefactor     10.711        32.429        .12281E-03    .43787E-04
   9  Prefactor     .10000E-03    14.373        .18142E-02** at limit **
  10  norm          2.8803        3.5086        .13763E-03    .21311E-04
  11  Prefactor     .10000E-03    8.1580        .18142E-02** at limit **
  12  norm          4.5317        4.3440        .13535E-03    .43022E-03
  13  norm          10.381        12.623        .12435E-03    .21046E-03
  14  norm          9.1588        4.3990        .94462E-04   -.13800E-02
  15  norm          .10000E-03    7.8712        .36285E-03** at limit **
  16  Prefactor     .35960        4.0330        .18941E-02    .99268E-03
  17  Prefactor     .10000E-03    6.0926        .16487E-02** at limit **
  18  Prefactor     .72778        74.362        .14921        .11460E-03
  19  Prefactor     2.9725        12.030        .11776E-02    .57703E-04
  20  Prefactor     10.099        16.473        .12617E-03    .49287E-04
  21  Prefactor     .10000E-03    27.262        .18142E-02** at limit **
  22  norm          .10000E-03    5.8378        .13953E-02** at limit **
  23  Prefactor     .10001E-03    52.063        .21257E-02** at limit **
  24  norm          9.3141        11.618        .13133E-03    .20603E-04
  25  Normalizat    1.1447        .20360        .20078E-03    .77803E-03
  26  Prefactor     .74032        .24977        .30173E-03    .46496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.42973
  Prefactor  = 1.78011
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7107
  Prefactor  = 0.0001
  norm       = 2.88033
  Prefactor  = 0.0001
  norm       = 4.53175
  norm       = 10.3814
  norm       = 9.15875
  norm       = 0.000100001
  Prefactor  = 0.359597
  Prefactor  = 0.0001
  Prefactor  = 0.727784
  Prefactor  = 2.97251
  Prefactor  = 10.0987
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100007
  norm       = 9.31414
  Normalizat = 1.14472
  Prefactor  = 0.740322
 **********
 **   18 **HESSE 
 **********

 FCN=   4690.922     FROM HESSE     STATUS=OK           446 CALLS     3640 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4297        8.9310        .38263E-04   -1.5287    
   2  Prefactor     1.7801        2.1912        .44122E-05   -1.5441    
   3  Prefactor     .10000E-03    11.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8018        .29162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3442        .15493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.711        32.430        .49123E-05   -1.5053    
   9  Prefactor     .10000E-03    14.375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8803        3.5085        .55053E-05   -1.5369    
  11  Prefactor     .10000E-03    8.1588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5317        4.3430        .54140E-05   -1.5282    
  13  norm          10.381        12.623        .24870E-04   -1.5063    
  14  norm          9.1588        4.3959        .37785E-05   -1.5103    
  15  norm          .10000E-03    7.8713        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .35960        3.9788        .75764E-04   -1.5588    
  17  Prefactor     .10000E-03    6.0927        .32973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .72778        70.688        .15333       -1.5537    
  19  Prefactor     2.9725        12.016        .47104E-04   -1.5363    
  20  Prefactor     10.099        16.469        .50469E-05   -1.5072    
  21  Prefactor     .10000E-03    27.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8794        .27905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    53.615        .85029E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.3141        11.617        .52531E-05   -1.5097    
  25  Normalizat    1.1447        .20363        .40156E-04   -.88329    
  26  Prefactor     .74032        .24994        .60345E-04   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99796e-09
Minuit parameter uncertainties:
  1  8.93365
  2  2.19132
  3  0.000176409
  4  2.16273e-05
  5  3.02909e-05
  6  2.96854e-05
  7  1.15581e-06
  8  32.4838
  9  2.07721e-05
  10  3.50879
  11  1.63135e-06
  12  4.34332
  13  12.6261
  14  4.39606
  15  0.000159195
  16  2.39216
  17  1.61744e-05
  18  14.3616
  19  11.9569
  20  16.4768
  21  7.31379e-05
  22  0.000237223
  23  0.00123284
  24  11.6201
  25  0.203768
  26  0.25032
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  4.532e+00  4.343e+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:  7.403e-01  2.503e-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.145e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.97e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 8.16e-06 +/- 7.82e-06

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

Saving results to:
/scratch/kocevski/259865/likelihoodResults_253324801_253584001_4FGL_J1308.5+3547_daily_bin54.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) = 4690.86364331
delta logL = 0.058845244901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4690.85960495
delta logL = 0.0628836005517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9131       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73668       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=   4690.860     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9082        248.47        .45364E-02    .87710E-04
   2  alpha         1.8679        3.9696        .42945        .53789E-05
   3  Normalizat    1.1494        .29461        .36277E-01   -.97135E-04
   4  Prefactor     .73650        .33475        .68344E-01    .97805E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.90816
  alpha      = 1.86794
  Normalizat = 1.14944
  Prefactor  = 0.736504
 **********
 **   18 **HESSE 
 **********

 FCN=   4690.860     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9082        4.6822        .14041E-03   -1.5265    
   2  alpha         1.8679        .84921        .21414E-01   -.25560    
   3  Normalizat    1.1494        .19992        .20042E-03   -.88180    
   4  Prefactor     .73650        .24750        .30241E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35818e-11
Minuit parameter uncertainties:
  1  4.68255
  2  0.867706
  3  0.200052
  4  0.247874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259865': 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) = 4690.85960296
delta logL = 0.0628855912464

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  4.908e+00  4.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.868e+00  8.677e-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:  7.365e-01  2.479e-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.149e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.87 +/- 0.87
Photon Flux (Free Index): 1.61e-08 +/- 1.82e-08
Energy Flux (Free Index): 9.47e-06 +/- 1.01e-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/259865/cmap_HighResolution_253324801_253584001_4FGL_J1308.5+3547_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', comment='SUCCESS', photon_flux='1.97e-08', energy_flux2='9.47e-06', photon_flux_error='1.89e-08', dlogl='6.29e-02', energy_flux='8.16e-06', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-07 00:09:11.425464', photon_index_error2='0.87', photon_index2='1.87', ts='2.10', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='6.94e-08', energy_flux_error2='1.01e-05', EG='1.14', time_epoch_completed='1630998551.43', return_code='0', job_id='259865', GAL2='0.74', EG2='1.15', return_code2='0', energy_flux_error='7.82e-06', photon_flux_error2='1.82e-08', ts2='2.23', photon_index='2.18' WHERE bin_id='54' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:09:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 259865: <4FGL_J1308.5+3547_daily_bin54> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin54> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:33 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 23:55:43 2021
Terminated at Tue Sep  7 00:09:12 2021
Results reported at Tue Sep  7 00:09:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin54 197.129 35.7918 253324801 253584001 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 :                                   652.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            819 sec.

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

