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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin15
RA = 197.129, Dec = 35.7918
tmin = 243216001, tmax = 243475201
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='258610', job_status='RUN', time_executed='2021-09-06 23:54:05.626155', time_epoch_executed='1630997645.63' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258610

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258610/ft1_4FGL_J1308.5+3547_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258610/ft2_4FGL_J1308.5+3547_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258610/ft1_4FGL_J1308.5+3547_daily_bin15.fits outfile=/scratch/kocevski/258610/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin15.fits ra=197.129 dec=35.7918 rad=12.0 tmin=243216001.0 tmax=243475201.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.37
user 1.18
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258610/ft1_filtered_4FGL_J1308.5+3547_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/258610/ft2_4FGL_J1308.5+3547_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/258610/ltcube_243216001_243475201_4FGL_J1308.5+3547_daily_bin15.fits outfile=/scratch/kocevski/258610/expmap_243216001_243475201_4FGL_J1308.5+3547_daily_bin15.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/258610/ltcube_243216001_243475201_4FGL_J1308.5+3547_daily_bin15.fits
.....................!
real 191.15
user 186.02
sys 4.63

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/258610/ft1_filtered_4FGL_J1308.5+3547_daily_bin15.fits scfile=/scratch/kocevski/258610/ft2_4FGL_J1308.5+3547_daily_bin15.fits outfile=/scratch/kocevski/258610/cmap_243216001_243475201_4FGL_J1308.5+3547_daily_bin15.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258610/ft1_filtered_4FGL_J1308.5+3547_daily_bin15.fits scfile=/scratch/kocevski/258610/ft2_4FGL_J1308.5+3547_daily_bin15.fits outfile=/scratch/kocevski/258610/cmap_HighResolution_243216001_243475201_4FGL_J1308.5+3547_daily_bin15.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6069       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8615       1.0000         .10000E-03   10000.    
     7 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.050       1.0000         .10000E-03   10000.    
    10 'norm      '    .12594E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.692       1.0000         .10000E-03   10000.    
    14 'norm      '    11.487       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1137       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4920       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.202       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1827       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1612       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65712       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=   6089.350     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     2640 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6068        6.4191        .13155E-06    .28311E-04
   2  Prefactor     2.7592        2.3213        .10330E-06    .21143E-04
   3  Prefactor     3.2526        4.1353       -.20823E-08    .14007E-05
   4  Prefactor     .10000E-03    18.332        .21631E-05** at limit **
   5  Prefactor     .10000E-03    66.622        .30674E-05** at limit **
   6  Prefactor     6.8619        4.8452        .20943E-06    .25573E-04
   7  norm          .10000E-03    1.9580       -.13899E-06** at limit **
   8  Prefactor     .10000E-03    13.999        .31697E-05** at limit **
   9  Prefactor     15.052        18.035       -.15258E-08    .16448E-04
  10  norm          .10000E-03    1.9601       -.97798E-07** at limit **
  11  Prefactor     .10000E-03    5.4088        .19614E-06** at limit **
  12  norm          .10000E-03    1.2707        .74489E-07** at limit **
  13  norm          12.691        11.798       -.41744E-07   -.60991E-05
  14  norm          11.486        4.8966       -.92392E-07    .17078E-03
  15  norm          4.1141        3.5309        .57616E-06   -.13752E-02
  16  Prefactor     2.4902        2.9762        .16390E-07    .12459E-03
  17  Prefactor     .10000E-03    14.391       -.50627E-05** at limit **
  18  Prefactor     .10000E-03    110.78        .56930E-06** at limit **
  19  Prefactor     11.199        14.377       -.41859E-06   -.70029E-05
  20  Prefactor     .10000E-03    8.1733        .19076E-06** at limit **
  21  Prefactor     .10000E-03    24.298       -.21543E-05** at limit **
  22  norm          3.1826        1.5316        .22618E-07    .42667E-04
  23  Prefactor     8.1608        4.0614        .95785E-07    .58766E-04
  24  norm          .10000E-03    5.3337       -.22357E-07** at limit **
  25  Normalizat    1.0511        .15673       -.19865E-06    .13591E-03
  26  Prefactor     .65703        .18937        .73777E-06    .47252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.60684
  Prefactor  = 2.75923
  Prefactor  = 3.25256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.86195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.052
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6914
  norm       = 11.4865
  norm       = 4.11409
  Prefactor  = 2.49025
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.1985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.18263
  Prefactor  = 8.16076
  norm       = 0.0001
  Normalizat = 1.05113
  Prefactor  = 0.657032
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.350     FROM HESSE     STATUS=OK           458 CALLS     3098 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6068        6.4184        .13663E-03   -1.5121    
   2  Prefactor     2.7592        2.3208        .10589E-03   -1.5376    
   3  Prefactor     3.2526        4.1299        .17440E-03   -1.5347    
   4  Prefactor     .10000E-03    18.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8619        4.8368        .13964E-03   -1.5184    
   7  norm          .10000E-03    1.9799        .10656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.052        18.020        .10324E-03   -1.4932    
  10  norm          .10000E-03    4.6993        .21209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4179        .17719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2722        .85884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.691        11.800        .11244E-03   -1.4995    
  14  norm          11.486        5.3891        .99131E-04   -1.5030    
  15  norm          4.1141        6.3257        .99377E-03   -1.5302    
  16  Prefactor     2.4902        2.9570        .13779E-03   -1.5392    
  17  Prefactor     .10000E-03    14.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    111.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.199        14.389        .11970E-03   -1.5039    
  20  Prefactor     .10000E-03    8.1889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1826        1.5311        .65025E-04   -1.5351    
  23  Prefactor     8.1608        4.0614        .10708E-03   -1.5137    
  24  norm          .10000E-03    5.3502        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0511        .18395        .20817E-03   -.91337    
  26  Prefactor     .65703        .22038        .31621E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99742e-09
Minuit parameter uncertainties:
  1  6.4189
  2  2.32086
  3  4.13026
  4  6.23925e-05
  5  0.000225193
  6  4.83704
  7  3.44762e-06
  8  0.000116947
  9  18.0263
  10  1.42773e-05
  11  1.61522e-06
  12  3.52108e-07
  13  11.802
  14  5.38932
  15  6.32672
  16  2.95714
  17  0.000174031
  18  8.4062e-05
  19  14.3934
  20  7.08033e-06
  21  0.000107073
  22  1.53111
  23  4.06149
  24  1.4477e-06
  25  0.184063
  26  0.220671
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  3.521e-07  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:  6.570e-01  2.207e-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.051e+00  1.841e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258610/likelihoodResults_243216001_243475201_4FGL_J1308.5+3547_daily_bin15.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) = 6089.35312118
delta logL = -0.00358942982257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6089.34953175
delta logL = -1.50157575263e-09

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.1813       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65703       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=   6089.350     FROM MIGRAD    STATUS=FAILED        83 CALLS      226 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1.7096        .85886E-03** at limit **
   2  alpha         2.1549        3.6395        .16633        .15026E-05
   3  Normalizat    1.0511        .17805        .20817E-03   -.70997E-05
   4  Prefactor     .65703        .21898        .31621E-03   -.17976E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6089.350     FROM SIMPLEX   STATUS=UNCHANGED    119 CALLS      345 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.7096        .15376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1549        3.6395        .98510E-03   -.13850    
   3  Normalizat    1.0511        .17805        .77819E-04   -.91337    
   4  Prefactor     .65703        .21898        .15214E-03   -1.0524    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6089.350     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      372 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2733        .17177E-03** at limit **
   2  alpha         2.1263        3.8633        .66531E-02   -.49554E-07
   3  Normalizat    1.0511        .17822        .83267E-05    .95573E-05
   4  Prefactor     .65703        .21919        .12648E-04    .41346E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.12632
  Normalizat = 1.05113
  Prefactor  = 0.657032
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.350     FROM HESSE     STATUS=OK            23 CALLS      395 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2733        .34355E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1263        3.9356        .13306E-02   -.15003    
   3  Normalizat    1.0511        .17825        .16653E-05   -.91337    
   4  Prefactor     .65703        .21919        .25297E-05   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62093e-11
Minuit parameter uncertainties:
  1  1.07616e-05
  2  213.079
  3  0.178348
  4  0.219475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258610': 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) = 6089.34953172
delta logL = 3.29036993207e-08

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.076e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.126e+00  2.131e+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:  6.570e-01  2.195e-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.051e+00  1.783e-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/258610/cmap_HighResolution_243216001_243475201_4FGL_J1308.5+3547_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-05', job_status='DONE', photon_flux_upper_limit='3.06e-08', time_completed='2021-09-07 00:05:57.395914', job_id='258610', GAL2='0.66', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630998357.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='15' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:05:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 258610: <4FGL_J1308.5+3547_daily_bin15> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin15> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 23:50:26 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:51:07 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:51:07 2021
Terminated at Tue Sep  7 00:05:58 2021
Results reported at Tue Sep  7 00:05:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin15 197.129 35.7918 243216001 243475201 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 :                                   708.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            932 sec.

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

