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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1543
RA = 197.129, Dec = 35.7918
tmin = 639273601, tmax = 639532801
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='273975', job_status='RUN', time_executed='2021-09-07 00:44:08.088411', time_epoch_executed='1631000648.09' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273975/ft1_4FGL_J1308.5+3547_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273975/ft2_4FGL_J1308.5+3547_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273975/ft1_4FGL_J1308.5+3547_daily_bin1543.fits outfile=/scratch/kocevski/273975/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1543.fits ra=197.129 dec=35.7918 rad=12.0 tmin=639273601.0 tmax=639532801.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 5.27
user 5.01
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273975/ft1_filtered_4FGL_J1308.5+3547_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/273975/ft2_4FGL_J1308.5+3547_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/273975/ltcube_639273601_639532801_4FGL_J1308.5+3547_daily_bin1543.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/273975/ft2_4FGL_J1308.5+3547_daily_bin1543.fits
.....................!
real 14.89
user 14.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273975/ft1_filtered_4FGL_J1308.5+3547_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/273975/ft2_4FGL_J1308.5+3547_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/273975/ltcube_639273601_639532801_4FGL_J1308.5+3547_daily_bin1543.fits outfile=/scratch/kocevski/273975/expmap_639273601_639532801_4FGL_J1308.5+3547_daily_bin1543.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/273975/ltcube_639273601_639532801_4FGL_J1308.5+3547_daily_bin1543.fits
.....................!
real 191.47
user 186.13
sys 4.86

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/273975/ft1_filtered_4FGL_J1308.5+3547_daily_bin1543.fits scfile=/scratch/kocevski/273975/ft2_4FGL_J1308.5+3547_daily_bin1543.fits outfile=/scratch/kocevski/273975/cmap_639273601_639532801_4FGL_J1308.5+3547_daily_bin1543.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.54
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.356       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2440       1.0000         .10000E-03   10000.    
    12 'norm      '    13.396       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.592       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.231       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.728       1.0000         .10000E-03   10000.    
    22 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1421       1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0764       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97845       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=   5720.353     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3055 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3693        .23663E-06** at limit **
   2  Prefactor     .10000E-03    1.1023        .24897E-08** at limit **
   3  Prefactor     .10000E-03    3.7295       -.21119E-05** at limit **
   4  Prefactor     .10000E-03    9.0754       -.63448E-05** at limit **
   5  Prefactor     .10000E-03    110.63        .30318E-04** at limit **
   6  Prefactor     .10000E-03    3.7658        .20753E-05** at limit **
   7  norm          8.1437        5.4860        .56504E-05   -.36524E-04
   8  Prefactor     .10000E-03    24.921       -.29229E-06** at limit **
   9  Prefactor     23.279        32.441       -.57541E-04   -.68844E-04
  10  norm          3.9516        3.4372       -.14638E-05   -.27777E-04
  11  Prefactor     4.2582        24.581        .63784E-05   -.11042E-04
  12  norm          13.397        7.3739        .16994E-05   -.59193E-04
  13  norm          .10000E-03    8.4153        .91505E-05** at limit **
  14  norm          21.594        6.5409        .24469E-05   -.36334E-03
  15  norm          .10000E-03    4.9888        .26198E-05** at limit **
  16  Prefactor     .10000E-03    1.3216        .10467E-06** at limit **
  17  Prefactor     18.229        16.722       -.48129E-06   -.26176E-04
  18  Prefactor     54.806        41.175        .95635E-05   -.84699E-07
  19  Prefactor     .10000E-03    5.0592       -.26839E-05** at limit **
  20  Prefactor     16.233        17.117       -.97076E-06    .55435E-05
  21  Prefactor     47.741        53.903        .13035E-04    .15520E-04
  22  norm          .10000E-03    .91277       -.25493E-06** at limit **
  23  Prefactor     2.1421        2.5182       -.14708E-06   -.11940E-03
  24  norm          .10000E-03    7.3834       -.30582E-05** at limit **
  25  Normalizat    1.0760        .18084        .38726E-05   -.17323E-03
  26  Prefactor     .97893        .21878       -.26585E-05    .13251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.14372
  Prefactor  = 0.0001
  Prefactor  = 23.2786
  norm       = 3.95159
  Prefactor  = 4.25815
  norm       = 13.3972
  norm       = 0.0001
  norm       = 21.5943
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2294
  Prefactor  = 54.8063
  Prefactor  = 0.0001
  Prefactor  = 16.2335
  Prefactor  = 47.7413
  norm       = 0.0001
  Prefactor  = 2.14212
  norm       = 0.0001
  Normalizat = 1.07598
  Prefactor  = 0.978927
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.353     FROM HESSE     STATUS=OK           454 CALLS     3509 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3863        .13557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0645        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7415        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    110.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7884        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1437        5.4803        .13204E-03   -1.5137    
   8  Prefactor     .10000E-03    24.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.279        32.471        .82883E-04   -1.4743    
  10  norm          3.9516        3.4366        .12718E-03   -1.5310    
  11  Prefactor     4.2582        24.137        .19559E-03   -1.5295    
  12  norm          13.397        7.3232        .10944E-03   -1.4976    
  13  norm          .10000E-03    8.4777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.594        6.5269        .86199E-04   -1.4778    
  15  norm          .10000E-03    4.9957        .16457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3274        .84781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.229        16.702        .93803E-04   -1.4854    
  18  Prefactor     54.806        41.170        .54188E-04   -1.4226    
  19  Prefactor     .10000E-03    5.0643        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.233        17.115        .99409E-04   -1.4902    
  21  Prefactor     47.741        54.075        .58041E-04   -1.4325    
  22  norm          .10000E-03    1.5167        .13994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1421        2.5114        .12641E-03   -1.5415    
  24  norm          .10000E-03    7.4174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0760        .21299        .23185E-03   -.90527    
  26  Prefactor     .97893        .25730        .30294E-03   -.93435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2074e-10
Minuit parameter uncertainties:
  1  3.01406e-06
  2  2.67733e-06
  3  9.83903e-07
  4  2.78201e-05
  5  0.000353408
  6  5.01294e-05
  7  5.48063
  8  2.36759e-05
  9  32.496
  10  3.43678
  11  20.2884
  12  7.32365
  13  2.59029e-05
  14  6.52712
  15  5.07334e-05
  16  1.02548e-05
  17  16.7061
  18  41.1911
  19  2.45575e-06
  20  17.1206
  21  54.1309
  22  3.2279e-05
  23  2.51153
  24  1.97339e-05
  25  0.213163
  26  0.257621
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.340e+01  7.324e+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.789e-01  2.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.076e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.18
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.84e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.32e-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) = 5720.07491095
delta logL = 0.278290401989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.03325457
delta logL = 0.319946783578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.885       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4971       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95982       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=   5720.033     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.878        6.2642        .30359E-02    .12889E-03
   2  alpha         1.4970        .55055        .43035       -.51823E-04
   3  Normalizat    1.1071        .17531        .37717E-01   -.45908E-04
   4  Prefactor     .95974        .21903        .69149E-01   -.65698E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8784
  alpha      = 1.49698
  Normalizat = 1.10713
  Prefactor  = 0.959738
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.033     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.878        8.2967        .12144E-03   -1.5048    
   2  alpha         1.4970        .77347        .17624E-01   -.41284    
   3  Normalizat    1.1071        .20436        .22935E-03   -.89523    
   4  Prefactor     .95974        .25546        .30589E-03   -.94084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63402e-11
Minuit parameter uncertainties:
  1  8.29762
  2  0.78899
  3  0.204511
  4  0.255785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273975': 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) = 5720.03325389
delta logL = 0.3199474638

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.088e+01  8.298e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.497e+00  7.890e-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.597e-01  2.558e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.107e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.90
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.50 +/- 0.79
Photon Flux (Free Index): 2.85e-08 +/- 2.89e-08
Energy Flux (Free Index): 2.82e-05 +/- 1.97e-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/273975/cmap_HighResolution_639273601_639532801_4FGL_J1308.5+3547_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.84e-08', energy_flux2='2.82e-05', photon_flux_error='3.19e-08', dlogl='3.20e-01', energy_flux='2.41e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-07 00:55:36.953580', photon_index_error2='0.79', photon_index2='1.50', ts='14.18', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.08', time_epoch_completed='1631001336.95', return_code='0', job_id='273975', GAL2='0.96', EG2='1.11', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='2.89e-08', ts2='14.90', photon_index='2.18' WHERE bin_id='1543' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 273975: <4FGL_J1308.5+3547_daily_bin1543> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1543> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:35 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:40:43 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:40:43 2021
Terminated at Tue Sep  7 00:55:37 2021
Results reported at Tue Sep  7 00:55:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1543 197.129 35.7918 639273601 639532801 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 :                                   666.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            902 sec.

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

