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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin354
RA = 197.129, Dec = 35.7918
tmin = 331084801, tmax = 331344001
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='263604', job_status='RUN', time_executed='2021-09-07 00:10:45.480850', time_epoch_executed='1630998645.48' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263604/ft1_4FGL_J1308.5+3547_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263604/ft2_4FGL_J1308.5+3547_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263604/ft1_4FGL_J1308.5+3547_daily_bin354.fits outfile=/scratch/kocevski/263604/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin354.fits ra=197.129 dec=35.7918 rad=12.0 tmin=331084801.0 tmax=331344001.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.39
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263604/ft2_4FGL_J1308.5+3547_daily_bin354.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/263604/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin354.fits evtable="EVENTS" outfile="/scratch/kocevski/263604/ft1_filtered_4FGL_J1308.5+3547_daily_bin354.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/263604/ft1_filtered_4FGL_J1308.5+3547_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/263604/ft2_4FGL_J1308.5+3547_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/263604/ltcube_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.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/263604/ft2_4FGL_J1308.5+3547_daily_bin354.fits
.....................!
real 15.20
user 14.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263604/ft1_filtered_4FGL_J1308.5+3547_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/263604/ft2_4FGL_J1308.5+3547_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/263604/ltcube_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.fits outfile=/scratch/kocevski/263604/expmap_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.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/263604/ltcube_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.fits
.....................!
real 191.42
user 186.35
sys 4.52

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/263604/ft1_filtered_4FGL_J1308.5+3547_daily_bin354.fits scfile=/scratch/kocevski/263604/ft2_4FGL_J1308.5+3547_daily_bin354.fits outfile=/scratch/kocevski/263604/cmap_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263604/ft1_filtered_4FGL_J1308.5+3547_daily_bin354.fits scfile=/scratch/kocevski/263604/ft2_4FGL_J1308.5+3547_daily_bin354.fits outfile=/scratch/kocevski/263604/cmap_HighResolution_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.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.55
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.835       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .68548E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.610       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14436E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    60.557       1.0000         .10000E-03   10000.    
    14 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0701       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3275       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.5716       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24305E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0302       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96951       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0280       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=   6088.399     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3190 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9987        8.0214       -.10968E-06    .32166E-04
   2  Prefactor     .10000E-03    .57549       -.10649E-07** at limit **
   3  Prefactor     .10000E-03    5.0027       -.47283E-06** at limit **
   4  Prefactor     .10000E-03    6.7668       -.47863E-06** at limit **
   5  Prefactor     74.771        80.685       -.18876E-05    .42220E-04
   6  Prefactor     .10000E-03    5.1410        .16737E-06** at limit **
   7  norm          .10027E-03    3.0953       -.14273E-05** at limit **
   8  Prefactor     .10000E-03    17.092       -.12732E-05** at limit **
   9  Prefactor     14.579        20.647        .37097E-05    .42596E-03
  10  norm          3.6570        3.3778       -.18950E-08    .38230E-04
  11  Prefactor     .10000E-03    5.6386        .49743E-06** at limit **
  12  norm          .10001E-03    3.1068       -.10423E-05** at limit **
  13  norm          60.558        23.626       -.26993E-06    .19532E-04
  14  norm          .10000E-03    2.6322        .24684E-08** at limit **
  15  norm          3.0676        5.4098        .30533E-06    .31229E-03
  16  Prefactor     .10000E-03    1.9257       -.35524E-06** at limit **
  17  Prefactor     6.7935        11.555       -.51056E-07    .19521E-03
  18  Prefactor     .10000E-03    18.762       -.43081E-06** at limit **
  19  Prefactor     22.709        14.281       -.19701E-06   -.10911E-04
  20  Prefactor     5.3274        19.345       -.41636E-06   -.11155E-04
  21  Prefactor     .10000E-03    21.649        .19035E-05** at limit **
  22  norm          6.5717        2.2074       -.71576E-07    .66210E-04
  23  Prefactor     .10008E-03    1.7425        .86981E-06** at limit **
  24  norm          7.0304        10.115       -.65771E-07    .32878E-05
  25  Normalizat    .96948        .16725        .23321E-05    .37899E-03
  26  Prefactor     1.0280        .20486       -.10456E-05    .41234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.7715
  Prefactor  = 0.0001
  norm       = 0.000100268
  Prefactor  = 0.0001
  Prefactor  = 14.579
  norm       = 3.657
  Prefactor  = 0.0001
  norm       = 0.000100009
  norm       = 60.5582
  norm       = 0.000100002
  norm       = 3.06764
  Prefactor  = 0.0001
  Prefactor  = 6.79354
  Prefactor  = 0.0001
  Prefactor  = 22.7091
  Prefactor  = 5.32742
  Prefactor  = 0.0001
  norm       = 6.57168
  Prefactor  = 0.000100083
  norm       = 7.03036
  Normalizat = 0.969485
  Prefactor  = 1.02804
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.399     FROM HESSE     STATUS=OK           460 CALLS     3650 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9987        8.0212        .12672E-03   -1.5075    
   2  Prefactor     .10000E-03    .57650        .57808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0268        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.771        80.689        .23207E-03   -1.3976    
   6  Prefactor     .10000E-03    5.3262        .34512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10027E-03    49.129        .23538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.579        20.898        .10479E-03   -1.4944    
  10  norm          3.6570        3.3744        .13396E-03   -1.5325    
  11  Prefactor     .10000E-03    5.6446        .18070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    12.860        .25675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          60.558        23.628        .51560E-04   -1.4150    
  14  norm          .10000E-03    4.6217        .21441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0676        4.7794        .20458E-03   -1.5358    
  16  Prefactor     .10000E-03    3.7604        .20037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7935        11.075        .15384E-03   -1.5187    
  18  Prefactor     .10000E-03    18.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.709        14.257        .84056E-04   -1.4755    
  20  Prefactor     5.3274        19.332        .17412E-03   -1.5246    
  21  Prefactor     .10000E-03    21.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.5717        2.2088        .64381E-04   -1.5195    
  23  Prefactor     .10008E-03    10.927        .18897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0304        10.113        .15130E-03   -1.5178    
  25  Normalizat    .96948        .19269        .22908E-03   -.94060    
  26  Prefactor     1.0280        .24051        .28301E-03   -.91801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41093e-08
Minuit parameter uncertainties:
  1  8.02208
  2  3.66102e-07
  3  1.94291e-05
  4  2.69983e-05
  5  80.8076
  6  8.65714e-06
  7  0.00726421
  8  0.000105774
  9  20.9083
  10  3.37462
  11  1.33648e-05
  12  0.000685641
  13  23.6317
  14  0.000169123
  15  4.78003
  16  3.36285e-05
  17  11.0781
  18  4.37982e-05
  19  14.2589
  20  19.3544
  21  0.000142673
  22  2.20881
  23  0.00190574
  24  10.1155
  25  0.192826
  26  0.24076
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  6.856e-04  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.028e+00  2.408e-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:  9.695e-01  1.928e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263604/likelihoodResults_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.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): 102
logL (Free Index) = 6088.39949604
delta logL = -0.00036730877855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6088.39913271
delta logL = -3.97592975787e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26352E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0626       1.0000          .0000       5.0000    
     3 'Normalizat'    .96900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0287       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=   6088.399     FROM MIGRAD    STATUS=FAILED        98 CALLS      266 TOTAL
                     EDM=   .66E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14342E-03    6217.4        .23153E-02** at limit **
   2  alpha         1.4168        .16553        .16791       -.11163E-04
   3  Normalizat    .96949        .11954        .22908E-03    .36383E-03
   4  Prefactor     1.0280        .14967        .28301E-03    .40255E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6088.394     FROM SIMPLEX   STATUS=PROGRESS     142 CALLS      408 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28750        6217.4        .42879E-03   -1.5815    
   2  alpha         1.4168        .16553        .35549E-06   -.44812    
   3  Normalizat    .96949        .11954        .21045E-06   -.94060    
   4  Prefactor     1.0280        .14967        .68593E-07   -.91801    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6088.393     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      466 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31347        7.3212        .92610E-03   -.38497E-04
   2  alpha         1.5223        3.2565        .67163E-01   -.39501E-05
   3  Normalizat    .97082        .18776        .45815E-04    .12293E-03
   4  Prefactor     1.0252        .23996        .56601E-04    .67086E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.313465
  alpha      = 1.52226
  Normalizat = 0.970817
  Prefactor  = 1.02516
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.393     FROM HESSE     STATUS=OK            27 CALLS      493 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31347        7.1148        .37044E-04   -1.5820    
   2  alpha         1.5223        3.2581        .26865E-02   -.40182    
   3  Normalizat    .97082        .18777        .91631E-05   -.94015    
   4  Prefactor     1.0252        .23998        .11320E-04   -.91895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74708e-11
Minuit parameter uncertainties:
  1  2.98673
  2  2.85048
  3  0.187894
  4  0.240227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263604': 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) = 6088.39320212
delta logL = 0.00592661160044

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.135e-01  2.987e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.522e+00  2.850e+00  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.025e+00  2.402e-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:  9.708e-01  1.879e-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/263604/cmap_HighResolution_331084801_331344001_4FGL_J1308.5+3547_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-07 00:23:48.503060', job_id='263604', GAL2='1.03', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630999428.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.93e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='354' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:23:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 263604: <4FGL_J1308.5+3547_daily_bin354> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin354> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:10:18 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:10:26 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:26 2021
Terminated at Tue Sep  7 00:23:49 2021
Results reported at Tue Sep  7 00:23:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin354 197.129 35.7918 331084801 331344001 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 :                                   777.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            811 sec.

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

