/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 4 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_bin1452
RA = 197.129, Dec = 35.7918
tmin = 615686401, tmax = 615945601
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='272733', job_status='RUN', time_executed='2021-09-07 00:36:41.377565', time_epoch_executed='1631000201.38' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272733/ft1_4FGL_J1308.5+3547_daily_bin1452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272733/ft2_4FGL_J1308.5+3547_daily_bin1452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272733/ft1_4FGL_J1308.5+3547_daily_bin1452.fits outfile=/scratch/kocevski/272733/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1452.fits ra=197.129 dec=35.7918 rad=12.0 tmin=615686401.0 tmax=615945601.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.47
user 3.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272733/ft1_filtered_4FGL_J1308.5+3547_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/272733/ft2_4FGL_J1308.5+3547_daily_bin1452.fits sctable="SC_DATA" expcube=/scratch/kocevski/272733/ltcube_615686401_615945601_4FGL_J1308.5+3547_daily_bin1452.fits outfile=/scratch/kocevski/272733/expmap_615686401_615945601_4FGL_J1308.5+3547_daily_bin1452.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/272733/ltcube_615686401_615945601_4FGL_J1308.5+3547_daily_bin1452.fits
.....................!
real 191.05
user 186.54
sys 4.01

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/272733/ft1_filtered_4FGL_J1308.5+3547_daily_bin1452.fits scfile=/scratch/kocevski/272733/ft2_4FGL_J1308.5+3547_daily_bin1452.fits outfile=/scratch/kocevski/272733/cmap_615686401_615945601_4FGL_J1308.5+3547_daily_bin1452.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.55
user 0.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.061       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3932       1.0000         .10000E-03   10000.    
     7 'norm      '    .68627E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.286       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.035       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4613       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2853       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.264       1.0000         .10000E-03   10000.    
    18 'Prefactor '    97.876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5024       1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.718       1.0000         .10000E-03   10000.    
    22 'norm      '    .60078       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5512       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1536       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75806       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=   5851.419     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3109 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6433       -.50549E-07** at limit **
   2  Prefactor     2.8787        1.7106        .68534E-08    .60227E-04
   3  Prefactor     .42294        8.5526       -.22375E-05    .28040E-03
   4  Prefactor     6.1873        16.789       -.74141E-06    .22879E-04
   5  Prefactor     10.156        140.80       -.44581E-05   -.59044E-04
   6  Prefactor     1.3950        5.7613        .30069E-05    .53976E-03
   7  norm          .10033E-03    3.2440        .59490E-06** at limit **
   8  Prefactor     .10000E-03    18.644        .15510E-06** at limit **
   9  Prefactor     24.289        23.803        .46737E-05   -.11285E-03
  10  norm          .10000E-03    .86085       -.20252E-07** at limit **
  11  Prefactor     .10000E-03    9.5511       -.56787E-06** at limit **
  12  norm          15.035        6.6803       -.13475E-06   -.32116E-05
  13  norm          8.4614        9.2714       -.71401E-07    .28450E-05
  14  norm          7.2852        4.5084        .50821E-06   -.13377E-03
  15  norm          .10000E-03    3.1732       -.56940E-07** at limit **
  16  Prefactor     .10000E-03    1.2708       -.10802E-06** at limit **
  17  Prefactor     19.265        14.471       -.31543E-06   -.29990E-04
  18  Prefactor     97.868        52.291        .52790E-06    .24427E-04
  19  Prefactor     .10000E-03    9.2235        .89816E-06** at limit **
  20  Prefactor     3.4896        36.984        .30520E-05    .14071E-04
  21  Prefactor     48.725        42.776       -.86485E-06   -.15270E-04
  22  norm          .60077        1.2415        .84522E-07   -.60411E-05
  23  Prefactor     4.5514        4.2560        .36192E-07    .13274E-03
  24  norm          .10000E-03    3.0160       -.44724E-07** at limit **
  25  Normalizat    1.1536        .16938        .58889E-06    .46399E-04
  26  Prefactor     .75816        .20430        .52927E-06    .26766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.87872
  Prefactor  = 0.422943
  Prefactor  = 6.18734
  Prefactor  = 10.1558
  Prefactor  = 1.39504
  norm       = 0.000100333
  Prefactor  = 0.0001
  Prefactor  = 24.2887
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0352
  norm       = 8.46141
  norm       = 7.28522
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2654
  Prefactor  = 97.8678
  Prefactor  = 0.0001
  Prefactor  = 3.48959
  Prefactor  = 48.7247
  norm       = 0.600774
  Prefactor  = 4.55135
  norm       = 0.0001
  Normalizat = 1.15355
  Prefactor  = 0.758161
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.419     FROM HESSE     STATUS=OK           466 CALLS     3575 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6779        .14259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8787        1.7146        .75190E-04   -1.5369    
   3  Prefactor     .42294        42.793        .40773E-02   -1.5578    
   4  Prefactor     6.1873        16.862        .16132E-03   -1.5210    
   5  Prefactor     10.156        141.79        .12632E-03   -1.5070    
   6  Prefactor     1.3950        6.0516        .16822E-02   -1.5472    
   7  norm          .10033E-03    21.149        .23028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.289        23.840        .81284E-04   -1.4722    
  10  norm          .10000E-03    .86163        .69313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.035        6.6770        .10329E-03   -1.4932    
  13  norm          8.4614        9.2718        .13781E-03   -1.5126    
  14  norm          7.2852        4.4930        .11491E-03   -1.5168    
  15  norm          .10000E-03    3.1794        .13287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2804        .84158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.265        14.460        .91254E-04   -1.4830    
  18  Prefactor     97.868        52.298        .20316E-03   -1.3726    
  19  Prefactor     .10000E-03    9.2162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4896        37.003        .21604E-03   -1.5334    
  21  Prefactor     48.725        42.801        .57451E-04   -1.4311    
  22  norm          .60077        1.0933        .11776E-02   -1.5553    
  23  Prefactor     4.5514        4.2567        .73014E-03   -1.5281    
  24  norm          .10000E-03    3.0166        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1536        .19779        .20934E-03   -.88050    
  26  Prefactor     .75816        .23739        .31307E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25926e-08
Minuit parameter uncertainties:
  1  8.73186e-06
  2  1.7146
  3  8.51387
  4  16.8752
  5  76.1129
  6  5.81187
  7  0.00530653
  8  9.06404e-06
  9  23.8496
  10  9.10064e-07
  11  6.31983e-05
  12  6.67731
  13  9.27336
  14  4.49318
  15  2.60934e-05
  16  1.26496e-05
  17  14.4623
  18  52.3231
  19  3.76638e-05
  20  22.7443
  21  42.8279
  22  1.09338
  23  4.257
  24  1.9507e-06
  25  0.197916
  26  0.237711
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.504e+01  6.677e+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:  7.582e-01  2.377e-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.154e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.67
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.55e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.20e-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) = 5851.08178315
delta logL = 0.337472828372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5851.07372507
delta logL = 0.345530906393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.076       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6681       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78352       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.

 FCN=   5851.074     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.077        7.1899        .10246E-03   -.18128E-02
   2  alpha         2.6680        .59616        .10477E-01   -.19376E-03
   3  Normalizat    1.1219        .19412        .21156E-03    .11688E-03
   4  Prefactor     .78358        .23744        .30836E-03    .16067E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.077
  alpha      = 2.66801
  Normalizat = 1.12187
  Prefactor  = 0.783577
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.074     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.077        6.8574        .20491E-04   -1.5013    
   2  alpha         2.6680        .56865        .41910E-03    .67256E-01
   3  Normalizat    1.1219        .19395        .42312E-04   -.89053    
   4  Prefactor     .78358        .23737        .12334E-04   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15164e-09
Minuit parameter uncertainties:
  1  6.85786
  2  0.573698
  3  0.194076
  4  0.237683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272733': 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) = 5851.07372504
delta logL = 0.345530942102

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.208e+01  6.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.668e+00  5.737e-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:  7.836e-01  2.377e-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.122e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.38
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.67 +/- 0.57
Photon Flux (Free Index): 9.16e-08 +/- 4.69e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.03e-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/272733/cmap_HighResolution_615686401_615945601_4FGL_J1308.5+3547_daily_bin1452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.55e-08', energy_flux2='2.55e-05', photon_flux_error='2.91e-08', dlogl='3.46e-01', energy_flux='2.71e-05', photon_flux2='9.16e-08', job_status='DONE', time_completed='2021-09-07 00:47:42.322120', photon_index_error2='0.57', photon_index2='2.67', ts='11.67', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.15', time_epoch_completed='1631000862.32', return_code='0', job_id='272733', GAL2='0.78', EG2='1.12', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.69e-08', ts2='12.38', photon_index='2.18' WHERE bin_id='1452' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:47:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 272733: <4FGL_J1308.5+3547_daily_bin1452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1452 197.129 35.7918 615686401 615945601 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 :                                   652.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            708 sec.

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

