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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1331
RA = 197.129, Dec = 35.7918
tmin = 584323201, tmax = 584582401
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='272560', job_status='RUN', time_executed='2021-09-07 00:38:21.348253', time_epoch_executed='1631000301.35' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272560/ft1_4FGL_J1308.5+3547_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272560/ft2_4FGL_J1308.5+3547_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272560/ft1_4FGL_J1308.5+3547_daily_bin1331.fits outfile=/scratch/kocevski/272560/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1331.fits ra=197.129 dec=35.7918 rad=12.0 tmin=584323201.0 tmax=584582401.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.51
user 3.26
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272560/ft1_filtered_4FGL_J1308.5+3547_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/272560/ft2_4FGL_J1308.5+3547_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/272560/ltcube_584323201_584582401_4FGL_J1308.5+3547_daily_bin1331.fits outfile=/scratch/kocevski/272560/expmap_584323201_584582401_4FGL_J1308.5+3547_daily_bin1331.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/272560/ltcube_584323201_584582401_4FGL_J1308.5+3547_daily_bin1331.fits
.....................!
real 193.95
user 188.48
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/272560/ft1_filtered_4FGL_J1308.5+3547_daily_bin1331.fits scfile=/scratch/kocevski/272560/ft2_4FGL_J1308.5+3547_daily_bin1331.fits outfile=/scratch/kocevski/272560/cmap_584323201_584582401_4FGL_J1308.5+3547_daily_bin1331.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272560/ft1_filtered_4FGL_J1308.5+3547_daily_bin1331.fits scfile=/scratch/kocevski/272560/ft2_4FGL_J1308.5+3547_daily_bin1331.fits outfile=/scratch/kocevski/272560/cmap_HighResolution_584323201_584582401_4FGL_J1308.5+3547_daily_bin1331.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2146       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.8112       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .19211E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21746E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4626       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.095       1.0000         .10000E-03   10000.    
    15 'norm      '    .37716E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .79468E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    70.371       1.0000         .10000E-03   10000.    
    22 'norm      '    10.828       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1691       1.0000         .10000E-03   10000.    
    24 'norm      '    6.2232       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74493       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97222       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=   6187.505     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3189 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4545        8.7592        .76552E-07    .67485E-05
   2  Prefactor     1.2147        1.4864       -.28915E-07   -.54219E-04
   3  Prefactor     4.8122        7.5148        .13333E-06    .11928E-04
   4  Prefactor     13.002        14.754        .10215E-06    .34552E-04
   5  Prefactor     .10000E-03    45.467       -.27159E-06** at limit **
   6  Prefactor     .10000E-03    2.6637       -.78435E-07** at limit **
   7  norm          7.8089        4.3612        .18647E-07    .12277E-03
   8  Prefactor     .10000E-03    13.162       -.66764E-07** at limit **
   9  Prefactor     .10000E-03    5.4527       -.63453E-07** at limit **
  10  norm          .21371E-01    87.657       -.22758E-06    .18067E-03
  11  Prefactor     .10000E-03    6.4243        .17192E-06** at limit **
  12  norm          7.4622        4.4752        .13093E-06    .14724E-03
  13  norm          .10000E-03    7.5163       -.19356E-06** at limit **
  14  norm          16.111        4.5664        .19066E-06    .11891E-02
  15  norm          .60584E-02    36.579       -.16409E-05    .36764E-03
  16  Prefactor     .10000E-03    1.8834       -.29179E-06** at limit **
  17  Prefactor     .10000E-03    11.830       -.49660E-06** at limit **
  18  Prefactor     .10000E-03    166.78        .21715E-05** at limit **
  19  Prefactor     9.3468        14.547       -.64776E-06   -.53668E-04
  20  Prefactor     .10000E-03    6.3201       -.25963E-06** at limit **
  21  Prefactor     70.332        50.684        .40388E-06    .10459E-03
  22  norm          10.828        2.2365       -.32108E-07    .25926E-04
  23  Prefactor     1.1686        2.1365        .45359E-06    .15620E-03
  24  norm          6.2258        7.4955        .97534E-07    .64193E-04
  25  Normalizat    .74479        .17906        .35905E-05    .13374E-03
  26  Prefactor     .97225        .22123       -.35810E-05    .80357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.45452
  Prefactor  = 1.21473
  Prefactor  = 4.81221
  Prefactor  = 13.002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.80892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0213714
  Prefactor  = 0.000100004
  norm       = 7.46216
  norm       = 0.0001
  norm       = 16.1113
  norm       = 0.00605841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34679
  Prefactor  = 0.0001
  Prefactor  = 70.3319
  norm       = 10.8284
  Prefactor  = 1.1686
  norm       = 6.22576
  Normalizat = 0.744789
  Prefactor  = 0.97225
 **********
 **   18 **HESSE 
 **********

 FCN=   6187.505     FROM HESSE     STATUS=OK           474 CALLS     3663 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4545        8.7405        .17208E-03   -1.5241    
   2  Prefactor     1.2147        1.4712        .10340E-03   -1.5488    
   3  Prefactor     4.8122        7.4996        .18340E-03   -1.5269    
   4  Prefactor     13.002        14.739        .11110E-03   -1.4987    
   5  Prefactor     .10000E-03    45.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6851        .12531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8089        4.3608        .11784E-03   -1.5149    
   8  Prefactor     .10000E-03    13.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4578        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .21371E-01    3.1725        .38071E-01   -1.5679    
  11  Prefactor     .10000E-03    26.447        .37545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4622        4.4153        .12296E-03   -1.5162    
  13  norm          .10000E-03    7.5784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.111        5.8923        .82042E-04   -1.4905    
  15  norm          .60584E-02    13.819        .52953E-01   -1.5693    
  16  Prefactor     .10000E-03    1.9847        .21130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    169.73        .41812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3468        14.539        .13112E-03   -1.5096    
  20  Prefactor     .10000E-03    6.3313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     70.332        50.941        .47853E-04   -1.4029    
  22  norm          10.828        2.2365        .51365E-04   -1.5050    
  23  Prefactor     1.1686        2.1115        .15102E-03   -1.5492    
  24  norm          6.2258        7.4931        .16092E-03   -1.5209    
  25  Normalizat    .74479        .18078        .23528E-03   -1.0215    
  26  Prefactor     .97225        .22274        .26555E-03   -.93660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27559e-09
Minuit parameter uncertainties:
  1  8.74254
  2  1.47123
  3  7.50106
  4  14.7431
  5  5.04947e-05
  6  6.8891e-06
  7  4.36099
  8  6.817e-06
  9  5.27243e-06
  10  0.519581
  11  0.000660097
  12  4.41544
  13  1.04879e-05
  14  5.89255
  15  0.574039
  16  1.39342e-05
  17  4.553e-05
  18  6.78074e-05
  19  14.5444
  20  1.31115e-05
  21  50.9731
  22  2.2365
  23  2.11167
  24  7.49423
  25  0.180923
  26  0.222947
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  7.462e+00  4.415e+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:  9.723e-01  2.229e-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.448e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.90
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 7.95e-06

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) = 6186.88069775
delta logL = 0.624526582073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6186.8744359
delta logL = 0.630788439415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9904       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4301       1.0000          .0000       5.0000    
     3 'Normalizat'    .76074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96239       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=   6186.874     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9866        4.5189        .37934E-02   -.28415E-04
   2  alpha         1.4294        .52654        .44670       -.20654E-04
   3  Normalizat    .76127        .14788        .43096E-01    .40157E-04
   4  Prefactor     .96199        .18921        .45795E-01    .32277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.98662
  alpha      = 1.42936
  Normalizat = 0.761272
  Prefactor  = 0.961991
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.874     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9866        5.2636        .12897E-03   -1.5179    
   2  alpha         1.4294        .67815        .17706E-01   -.44256    
   3  Normalizat    .76127        .17298        .23304E-03   -1.0152    
   4  Prefactor     .96199        .22148        .26687E-03   -.94007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66291e-10
Minuit parameter uncertainties:
  1  5.26397
  2  0.688773
  3  0.173109
  4  0.22169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272560': 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) = 6186.87442901
delta logL = 0.630795325892

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  6.987e+00  5.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.429e+00  6.888e-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:  9.620e-01  2.217e-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.613e-01  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.18
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.43 +/- 0.69
Photon Flux (Free Index): 1.78e-08 +/- 1.61e-08
Energy Flux (Free Index): 1.97e-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/272560/cmap_HighResolution_584323201_584582401_4FGL_J1308.5+3547_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='1.97e-05', photon_flux_error='1.92e-08', dlogl='6.31e-01', energy_flux='1.34e-05', photon_flux2='1.78e-08', job_status='DONE', time_completed='2021-09-07 00:51:39.998186', photon_index_error2='0.69', photon_index2='1.43', ts='9.90', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.74', time_epoch_completed='1631001100.0', return_code='0', job_id='272560', GAL2='0.96', EG2='0.76', return_code2='0', energy_flux_error='7.95e-06', photon_flux_error2='1.61e-08', ts2='11.18', photon_index='2.18' WHERE bin_id='1331' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:51:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 272560: <4FGL_J1308.5+3547_daily_bin1331> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1331> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:42 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:36:09 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:36:09 2021
Terminated at Tue Sep  7 00:51:40 2021
Results reported at Tue Sep  7 00:51:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1331 197.129 35.7918 584323201 584582401 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 :                                   691.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            958 sec.

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

