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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin323
RA = 197.129, Dec = 35.7918
tmin = 323049601, tmax = 323308801
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='262442', job_status='RUN', time_executed='2021-09-07 00:06:24.006049', time_epoch_executed='1630998384.01' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262442/ft1_4FGL_J1308.5+3547_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262442/ft2_4FGL_J1308.5+3547_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262442/ft1_4FGL_J1308.5+3547_daily_bin323.fits outfile=/scratch/kocevski/262442/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin323.fits ra=197.129 dec=35.7918 rad=12.0 tmin=323049601.0 tmax=323308801.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 3.38
user 3.13
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262442/ft1_filtered_4FGL_J1308.5+3547_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/262442/ft2_4FGL_J1308.5+3547_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/262442/ltcube_323049601_323308801_4FGL_J1308.5+3547_daily_bin323.fits outfile=/scratch/kocevski/262442/expmap_323049601_323308801_4FGL_J1308.5+3547_daily_bin323.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/262442/ltcube_323049601_323308801_4FGL_J1308.5+3547_daily_bin323.fits
.....................!
real 192.11
user 186.04
sys 5.10

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/262442/ft1_filtered_4FGL_J1308.5+3547_daily_bin323.fits scfile=/scratch/kocevski/262442/ft2_4FGL_J1308.5+3547_daily_bin323.fits outfile=/scratch/kocevski/262442/cmap_323049601_323308801_4FGL_J1308.5+3547_daily_bin323.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262442/ft1_filtered_4FGL_J1308.5+3547_daily_bin323.fits scfile=/scratch/kocevski/262442/ft2_4FGL_J1308.5+3547_daily_bin323.fits outfile=/scratch/kocevski/262442/cmap_HighResolution_323049601_323308801_4FGL_J1308.5+3547_daily_bin323.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9629       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0105       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0734       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.302       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    31.386       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8675       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.050       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.903       1.0000         .10000E-03   10000.    
    21 'Prefactor '    74.325       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4845       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2122       1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80100       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0469       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=   5270.775     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3091 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6944        .12981E-07** at limit **
   2  Prefactor     3.9629        2.2123        .56297E-07    .65336E-04
   3  Prefactor     13.413        9.4106       -.10940E-06   -.23867E-04
   4  Prefactor     6.7558        19.460        .22236E-06   -.14097E-04
   5  Prefactor     .10000E-03    70.201        .32974E-04** at limit **
   6  Prefactor     2.0079        7.7368       -.27596E-05   -.57641E-03
   7  norm          .10000E-03    1.7510       -.26170E-06** at limit **
   8  Prefactor     .10000E-03    19.475       -.84335E-06** at limit **
   9  Prefactor     3.0839        45.009        .54865E-05   -.28659E-04
  10  norm          .10000E-03    2.6934       -.10943E-06** at limit **
  11  Prefactor     23.306        20.542        .36178E-06    .52600E-04
  12  norm          .10000E-03    1.9184        .30130E-07** at limit **
  13  norm          31.386        16.914        .94537E-08    .11004E-04
  14  norm          1.8674        2.5426       -.39331E-06   -.19343E-03
  15  norm          .10000E-03    2.2587        .16323E-06** at limit **
  16  Prefactor     4.2477        3.3161       -.12341E-06    .13829E-03
  17  Prefactor     .10000E-03    39.691       -.57516E-05** at limit **
  18  Prefactor     .10000E-03    13.863       -.27648E-06** at limit **
  19  Prefactor     71.050        25.245        .20844E-06    .55453E-04
  20  Prefactor     23.903        20.077       -.10962E-06    .54439E-05
  21  Prefactor     74.320        75.750       -.48971E-05    .66947E-04
  22  norm          1.4845        1.3948        .12499E-07    .13324E-04
  23  Prefactor     8.2121        4.5492        .18649E-07   -.38244E-04
  24  norm          .10143E-03    11.517       -.34013E-05** at limit **
  25  Normalizat    .80101        .17546        .93356E-06    .16369E-03
  26  Prefactor     1.0469        .21237       -.40787E-06    .19712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.96291
  Prefactor  = 13.4131
  Prefactor  = 6.75582
  Prefactor  = 0.0001
  Prefactor  = 2.00787
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08388
  norm       = 0.0001
  Prefactor  = 23.3065
  norm       = 0.0001
  norm       = 31.386
  norm       = 1.86737
  norm       = 0.0001
  Prefactor  = 4.24772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.0502
  Prefactor  = 23.903
  Prefactor  = 74.3201
  norm       = 1.48446
  Prefactor  = 8.2121
  norm       = 0.000101427
  Normalizat = 0.801007
  Prefactor  = 1.04687
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.775     FROM HESSE     STATUS=OK           458 CALLS     3549 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7383        .13626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9629        2.2137        .78619E-04   -1.5310    
   3  Prefactor     13.413        9.4104        .10937E-03   -1.4975    
   4  Prefactor     6.7558        19.350        .15441E-03   -1.5188    
   5  Prefactor     .10000E-03    67.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0079        7.8127        .29197E-03   -1.5425    
   7  norm          .10000E-03    1.7576        .93754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0839        43.908        .23137E-03   -1.5357    
  10  norm          .10000E-03    2.7587        .11632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.306        20.257        .82979E-04   -1.4742    
  12  norm          .10000E-03    1.9214        .98141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          31.386        16.915        .71521E-04   -1.4587    
  14  norm          1.8674        2.5085        .12715E-03   -1.5435    
  15  norm          .10000E-03    2.2625        .10640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2477        3.2882        .10898E-03   -1.5296    
  17  Prefactor     .10000E-03    40.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     71.050        25.266        .47625E-04   -1.4020    
  20  Prefactor     23.903        20.073        .81930E-04   -1.4730    
  21  Prefactor     74.320        75.962        .46572E-04   -1.3982    
  22  norm          1.4845        1.3916        .80368E-04   -1.5464    
  23  Prefactor     8.2121        4.5505        .11081E-03   -1.5135    
  24  norm          .10143E-03    78.319        .46378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .80101        .20882        .24124E-03   -1.0003    
  26  Prefactor     1.0469        .25250        .27237E-03   -.91183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85222e-08
Minuit parameter uncertainties:
  1  2.42018e-06
  2  2.21377
  3  9.41141
  4  19.3682
  5  0.000129107
  6  7.81671
  7  6.78192e-06
  8  1.91967e-06
  9  23.2933
  10  2.38497e-06
  11  20.2628
  12  2.03707e-07
  13  16.9172
  14  2.5086
  15  3.11645e-06
  16  3.28835
  17  0.000156385
  18  3.66522e-06
  19  25.2703
  20  20.0787
  21  76.0609
  22  1.39165
  23  4.55068
  24  0.02117
  25  0.209027
  26  0.252787
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  2.037e-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:  1.047e+00  2.528e-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:  8.010e-01  2.090e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262442/likelihoodResults_323049601_323308801_4FGL_J1308.5+3547_daily_bin323.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) = 5270.77769943
delta logL = -0.00243861902527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5270.77526082
delta logL = -1.14350768854e-08

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.1806       1.0000          .0000       5.0000    
     3 'Normalizat'    .80102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0469       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=   5270.775     FROM MIGRAD    STATUS=FAILED        83 CALLS      226 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    5.1228        .98149E-03** at limit **
   2  alpha         2.1474        3.5367        .16634        .19519E-05
   3  Normalizat    .80101        .19484        .24124E-03   -.51367E-05
   4  Prefactor     1.0469        .24951        .27237E-03   -.21705E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5270.775     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      344 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    5.1228        .22798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1474        3.5367        .31053E-03   -.14151    
   3  Normalizat    .80101        .19484        .47112E-04   -1.0003    
   4  Prefactor     1.0469        .24951        .46079E-04   -.91183    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5270.775     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      374 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9255        .19630E-03** at limit **
   2  alpha         2.1111        3.7022        .66535E-02    .20504E-08
   3  Normalizat    .80101        .19505        .96497E-05    .10132E-04
   4  Prefactor     1.0469        .24978        .10895E-04    .66785E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11109
  Normalizat = 0.801007
  Prefactor  = 1.04687
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.775     FROM HESSE     STATUS=OK            23 CALLS      397 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9255        .39260E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1111        3.7030        .13307E-02   -.15620    
   3  Normalizat    .80101        .19495        .19299E-05   -1.0003    
   4  Prefactor     1.0469        .24960        .21789E-05   -.91183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44118e-13
Minuit parameter uncertainties:
  1  4.11437e-07
  2  214.53
  3  0.195119
  4  0.249878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262442': 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) = 5270.77526076
delta logL = 5.46278897673e-08

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  4.114e-07  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.111e+00  2.145e+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.047e+00  2.499e-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:  8.010e-01  1.951e-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/262442/cmap_HighResolution_323049601_323308801_4FGL_J1308.5+3547_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-07 00:18:13.992273', job_id='262442', GAL2='1.05', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630999093.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='323' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:18:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 262442: <4FGL_J1308.5+3547_daily_bin323> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin323> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:05:39 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:06:06 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:06:06 2021
Terminated at Tue Sep  7 00:18:14 2021
Results reported at Tue Sep  7 00:18:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin323 197.129 35.7918 323049601 323308801 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 :                                   705.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            755 sec.

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

