/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 = 7636
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin937
RA = 197.129, Dec = 35.7918
tmin = 482198401, tmax = 482457601
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='268284', job_status='RUN', time_executed='2021-09-07 00:30:05.952029', time_epoch_executed='1630999805.95' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268284/ft1_4FGL_J1308.5+3547_daily_bin937.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268284/ft2_4FGL_J1308.5+3547_daily_bin937.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268284/ft1_4FGL_J1308.5+3547_daily_bin937.fits outfile=/scratch/kocevski/268284/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin937.fits ra=197.129 dec=35.7918 rad=12.0 tmin=482198401.0 tmax=482457601.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.70
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268284/ft2_4FGL_J1308.5+3547_daily_bin937.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/268284/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin937.fits evtable="EVENTS" outfile="/scratch/kocevski/268284/ft1_filtered_4FGL_J1308.5+3547_daily_bin937.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/268284/ft1_filtered_4FGL_J1308.5+3547_daily_bin937.fits" evtable="EVENTS" scfile=/scratch/kocevski/268284/ft2_4FGL_J1308.5+3547_daily_bin937.fits sctable="SC_DATA" outfile=/scratch/kocevski/268284/ltcube_482198401_482457601_4FGL_J1308.5+3547_daily_bin937.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/268284/ft2_4FGL_J1308.5+3547_daily_bin937.fits
.....................!
real 15.60
user 15.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268284/ft1_filtered_4FGL_J1308.5+3547_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/268284/ft2_4FGL_J1308.5+3547_daily_bin937.fits sctable="SC_DATA" expcube=/scratch/kocevski/268284/ltcube_482198401_482457601_4FGL_J1308.5+3547_daily_bin937.fits outfile=/scratch/kocevski/268284/expmap_482198401_482457601_4FGL_J1308.5+3547_daily_bin937.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/268284/ltcube_482198401_482457601_4FGL_J1308.5+3547_daily_bin937.fits
.....................!
real 194.49
user 188.26
sys 5.38

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/268284/ft1_filtered_4FGL_J1308.5+3547_daily_bin937.fits scfile=/scratch/kocevski/268284/ft2_4FGL_J1308.5+3547_daily_bin937.fits outfile=/scratch/kocevski/268284/cmap_482198401_482457601_4FGL_J1308.5+3547_daily_bin937.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268284/ft1_filtered_4FGL_J1308.5+3547_daily_bin937.fits scfile=/scratch/kocevski/268284/ft2_4FGL_J1308.5+3547_daily_bin937.fits outfile=/scratch/kocevski/268284/cmap_HighResolution_482198401_482457601_4FGL_J1308.5+3547_daily_bin937.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8861       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27626       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11083E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.772       1.0000         .10000E-03   10000.    
    13 'norm      '    22.880       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0323       1.0000         .10000E-03   10000.    
    15 'norm      '    .11444E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.190       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.945       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3080       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    31.147       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73623       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2769       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=   6106.484     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3158 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8861        7.5538        .29390E-07    .45391E-04
   2  Prefactor     .27778        1.7338       -.11067E-05    .72225E-03
   3  Prefactor     .10000E-03    3.0055        .33754E-06** at limit **
   4  Prefactor     .10000E-03    9.2921        .36586E-06** at limit **
   5  Prefactor     .10000E-03    118.42       -.29328E-04** at limit **
   6  Prefactor     .10000E-03    3.7022       -.34953E-06** at limit **
   7  norm          26.912        7.8906        .50720E-06    .21166E-03
   8  Prefactor     59.426        59.399        .94768E-06    .95883E-06
   9  Prefactor     .10000E-03    37.095       -.68598E-06** at limit **
  10  norm          .10000E-03    1.3962        .55050E-06** at limit **
  11  Prefactor     .10000E-03    10.737        .83691E-06** at limit **
  12  norm          11.769        6.8234       -.43594E-07   -.10838E-03
  13  norm          22.880        16.055        .29950E-07   -.68325E-08
  14  norm          4.0313        3.4406       -.25773E-06   -.24613E-03
  15  norm          .10000E-03    8.3247        .57194E-06** at limit **
  16  Prefactor     .10000E-03    2.8909       -.29627E-07** at limit **
  17  Prefactor     23.179        16.134        .18567E-06   -.10138E-03
  18  Prefactor     .10000E-03    106.29        .25892E-04** at limit **
  19  Prefactor     .10000E-03    6.4237       -.23401E-06** at limit **
  20  Prefactor     48.951        28.356        .10804E-05   -.12582E-05
  21  Prefactor     .10000E-03    45.217       -.32897E-05** at limit **
  22  norm          2.3080        1.4542       -.71275E-07   -.11612E-03
  23  Prefactor     .10000E-03    3.2959        .97547E-07** at limit **
  24  norm          31.147        17.220        .13821E-06   -.16819E-05
  25  Normalizat    .73620        .17544        .82527E-06    .59185E-04
  26  Prefactor     1.2770        .21681       -.21288E-06    .11652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.88607
  Prefactor  = 0.277783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.9115
  Prefactor  = 59.4258
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7691
  norm       = 22.8802
  norm       = 4.03128
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.9514
  Prefactor  = 0.0001
  norm       = 2.30804
  Prefactor  = 0.0001
  norm       = 31.1467
  Normalizat = 0.736204
  Prefactor  = 1.27697
 **********
 **   18 **HESSE 
 **********

 FCN=   6106.484     FROM HESSE     STATUS=OK           452 CALLS     3610 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8861        7.5509        .12744E-03   -1.5079    
   2  Prefactor     .27778        7.8020        .19486E-02   -1.5603    
   3  Prefactor     .10000E-03    3.0090        .13230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    119.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7243        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.912        7.9067        .77217E-04   -1.4670    
   8  Prefactor     59.426        59.565        .52046E-04   -1.4165    
   9  Prefactor     .10000E-03    37.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4013        .90153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.769        6.8175        .11676E-03   -1.5022    
  13  norm          22.880        16.057        .83740E-04   -1.4751    
  14  norm          4.0313        3.3962        .12436E-03   -1.5306    
  15  norm          .10000E-03    8.4183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9426        .25765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.179        16.045        .83179E-04   -1.4745    
  18  Prefactor     .10000E-03    106.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.951        28.372        .57318E-04   -1.4308    
  21  Prefactor     .10000E-03    45.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3080        1.4549        .72219E-04   -1.5404    
  23  Prefactor     .10000E-03    3.3840        .27683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          31.147        17.226        .71794E-04   -1.4591    
  25  Normalizat    .73620        .21232        .27343E-03   -1.0248    
  26  Prefactor     1.2770        .26306        .27144E-03   -.83995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07439e-09
Minuit parameter uncertainties:
  1  7.55159
  2  2.94422
  3  7.77958e-07
  4  4.12532e-06
  5  0.000124906
  6  5.33405e-06
  7  7.90698
  8  59.6249
  9  0.000130349
  10  9.57348e-07
  11  1.23167e-05
  12  6.81791
  13  16.0605
  14  3.39636
  15  1.56669e-05
  16  1.29836e-05
  17  16.0481
  18  0.000227059
  19  9.80609e-06
  20  28.3797
  21  2.16856e-05
  22  1.4549
  23  8.8717e-06
  24  17.2285
  25  0.212555
  26  0.263335
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.177e+01  6.818e+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:  1.277e+00  2.633e-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:  7.362e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.62
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.13e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.23e-05

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) = 6106.32653342
delta logL = 0.157052667374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6106.31412043
delta logL = 0.169465651084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.872       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8841       1.0000          .0000       5.0000    
     3 'Normalizat'    .74843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2658       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=   6106.314     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.872        17.505        .27912E-02    .76485E-04
   2  alpha         1.8840        1.0567        .35524        .85747E-05
   3  Normalizat    .74848        .17529        .61349E-01    .20552E-04
   4  Prefactor     1.2657        .22349        .61598E-01    .56705E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8722
  alpha      = 1.88404
  Normalizat = 0.748484
  Prefactor  = 1.26574
 **********
 **   18 **HESSE 
 **********

 FCN=   6106.314     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.872        7.3830        .11165E-03   -1.4990    
   2  alpha         1.8840        .50075        .14239E-01   -.24895    
   3  Normalizat    .74848        .20526        .27137E-03   -1.0201    
   4  Prefactor     1.2657        .26246        .27242E-03   -.84332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5917e-13
Minuit parameter uncertainties:
  1  7.3835
  2  0.504386
  3  0.20547
  4  0.262732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268284': 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) = 6106.31412038
delta logL = 0.169465700152

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.287e+01  7.383e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.884e+00  5.044e-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:  1.266e+00  2.627e-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:  7.485e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.88 +/- 0.50
Photon Flux (Free Index): 4.28e-08 +/- 2.87e-08
Energy Flux (Free Index): 2.46e-05 +/- 1.56e-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/268284/cmap_HighResolution_482198401_482457601_4FGL_J1308.5+3547_daily_bin937.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.13e-08', energy_flux2='2.46e-05', photon_flux_error='2.97e-08', dlogl='1.69e-01', energy_flux='2.12e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-07 00:41:23.973550', photon_index_error2='0.50', photon_index2='1.88', ts='5.62', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.74', time_epoch_completed='1631000483.97', return_code='0', job_id='268284', GAL2='1.27', EG2='0.75', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.87e-08', ts2='5.99', photon_index='2.18' WHERE bin_id='937' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:41:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 268284: <4FGL_J1308.5+3547_daily_bin937> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin937> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:25:28 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:29:48 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:29:48 2021
Terminated at Tue Sep  7 00:41:24 2021
Results reported at Tue Sep  7 00:41:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin937 197.129 35.7918 482198401 482457601 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 :                                   674.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            956 sec.

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

