/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 190 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin80
RA = 197.129, Dec = 35.7918
tmin = 260064001, tmax = 260323201
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='259908', job_status='RUN', time_executed='2021-09-06 23:59:16.345651', time_epoch_executed='1630997956.35' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259908/ft1_4FGL_J1308.5+3547_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259908/ft2_4FGL_J1308.5+3547_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259908/ft1_4FGL_J1308.5+3547_daily_bin80.fits outfile=/scratch/kocevski/259908/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin80.fits ra=197.129 dec=35.7918 rad=12.0 tmin=260064001.0 tmax=260323201.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 1.50
user 1.30
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259908/ft1_filtered_4FGL_J1308.5+3547_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/259908/ft2_4FGL_J1308.5+3547_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/259908/ltcube_260064001_260323201_4FGL_J1308.5+3547_daily_bin80.fits outfile=/scratch/kocevski/259908/expmap_260064001_260323201_4FGL_J1308.5+3547_daily_bin80.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/259908/ltcube_260064001_260323201_4FGL_J1308.5+3547_daily_bin80.fits
.....................!
real 191.09
user 186.33
sys 4.24

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/259908/ft1_filtered_4FGL_J1308.5+3547_daily_bin80.fits scfile=/scratch/kocevski/259908/ft2_4FGL_J1308.5+3547_daily_bin80.fits outfile=/scratch/kocevski/259908/cmap_260064001_260323201_4FGL_J1308.5+3547_daily_bin80.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/259908/ft1_filtered_4FGL_J1308.5+3547_daily_bin80.fits scfile=/scratch/kocevski/259908/ft2_4FGL_J1308.5+3547_daily_bin80.fits outfile=/scratch/kocevski/259908/cmap_HighResolution_260064001_260323201_4FGL_J1308.5+3547_daily_bin80.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0850       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17855       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0276       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.516       1.0000         .10000E-03   10000.    
    10 'norm      '    12.371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0815       1.0000         .10000E-03   10000.    
    12 'norm      '    13.626       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0825       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9452       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4015       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4476       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98132       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1244       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=   7961.853     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3084 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7289        .68994E-07** at limit **
   2  Prefactor     .10000E-03    .65467       -.33171E-07** at limit **
   3  Prefactor     6.0853        5.9461        .24599E-06    .84323E-04
   4  Prefactor     .10000E-03    10.289       -.24832E-05** at limit **
   5  Prefactor     .10000E-03    25.298       -.29022E-06** at limit **
   6  Prefactor     .17038        3.7827       -.92296E-07   -.41885E-04
   7  norm          3.0276        2.9069        .40681E-08    .38001E-04
   8  Prefactor     .10000E-03    17.695        .46728E-06** at limit **
   9  Prefactor     27.521        22.503        .32024E-06    .43704E-04
  10  norm          12.371        4.3770       -.25818E-07   -.41043E-04
  11  Prefactor     3.0816        11.431        .93451E-07   -.37989E-04
  12  norm          13.627        5.8007       -.28310E-06   -.23390E-03
  13  norm          .10000E-03    5.4730       -.14347E-06** at limit **
  14  norm          1.0824        3.7042       -.76076E-06   -.39863E-03
  15  norm          4.9443        5.4071        .10899E-05   -.14416E-02
  16  Prefactor     2.7496        2.4824        .58893E-07   -.65857E-04
  17  Prefactor     .10000E-03    3.9912       -.23122E-07** at limit **
  18  Prefactor     .10000E-03    37.010        .42962E-05** at limit **
  19  Prefactor     .10000E-03    10.029        .22776E-05** at limit **
  20  Prefactor     .10000E-03    31.767       -.28243E-05** at limit **
  21  Prefactor     .10000E-03    81.033        .42068E-07** at limit **
  22  norm          2.4015        1.3143        .24073E-07    .53420E-04
  23  Prefactor     3.4475        3.1138        .28704E-07   -.64662E-04
  24  norm          .10000E-03    8.4537       -.15483E-06** at limit **
  25  Normalizat    .98124        .14673       -.12279E-06    .59251E-04
  26  Prefactor     1.1244        .18198        .18253E-06    .41635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.08528
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.170382
  norm       = 3.02762
  Prefactor  = 0.0001
  Prefactor  = 27.5205
  norm       = 12.3713
  Prefactor  = 3.08155
  norm       = 13.6267
  norm       = 0.0001
  norm       = 1.08243
  norm       = 4.94433
  Prefactor  = 2.7496
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.40149
  Prefactor  = 3.44748
  norm       = 0.0001
  Normalizat = 0.981235
  Prefactor  = 1.12444
 **********
 **   18 **HESSE 
 **********

 FCN=   7961.853     FROM HESSE     STATUS=OK           460 CALLS     3544 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7326        .11458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0540        .14080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0853        5.9470        .16276E-03   -1.5215    
   4  Prefactor     .10000E-03    10.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17038        23.235        .32200E-02   -1.5625    
   7  norm          3.0276        2.9016        .14112E-03   -1.5360    
   8  Prefactor     .10000E-03    17.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.521        22.285        .76373E-04   -1.4658    
  10  norm          12.371        4.3780        .10774E-03   -1.5004    
  11  Prefactor     3.0816        11.291        .23105E-03   -1.5357    
  12  norm          13.627        5.7905        .10851E-03   -1.4970    
  13  norm          .10000E-03    5.5058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0824        3.8194        .21138E-03   -1.5500    
  15  norm          4.9443        6.8769        .89439E-03   -1.5263    
  16  Prefactor     2.7496        2.4663        .12612E-03   -1.5376    
  17  Prefactor     .10000E-03    3.9977        .17406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    81.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4015        1.3123        .73469E-04   -1.5398    
  23  Prefactor     3.4475        3.1127        .14427E-03   -1.5337    
  24  norm          .10000E-03    8.5139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98124        .17496        .23957E-03   -.93662    
  26  Prefactor     1.1244        .21786        .28301E-03   -.88689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00581e-08
Minuit parameter uncertainties:
  1  2.19429e-06
  2  2.49058e-07
  3  5.94759
  4  0.000194831
  5  3.85449e-05
  6  3.97979
  7  2.9017
  8  4.89359e-05
  9  22.2913
  10  4.3781
  11  11.2989
  12  5.7907
  13  8.51784e-06
  14  3.82027
  15  6.87795
  16  2.4664
  17  1.31374e-06
  18  0.000653536
  19  0.000179761
  20  0.000386233
  21  8.44923e-06
  22  1.31233
  23  3.11289
  24  1.14956e-05
  25  0.175057
  26  0.21803
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.812e-01  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.65
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.94e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 1.04e-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) = 7959.69211951
delta logL = 2.16083289196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7959.24179365
delta logL = 2.61115875602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5890       1.0000         .10000E-03   10000.    
     2 'alpha     '    .84387       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1203       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=   7959.242     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      220 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5770        3.8087        .42483E-02   -.19573E-03
   2  alpha         .84270        .38919        .32186       -.23290E-04
   3  Normalizat    1.0138        .14414        .44545E-01    .65891E-04
   4  Prefactor     1.1201        .18193        .64263E-01    .97827E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.577
  alpha      = 0.842702
  Normalizat = 1.01378
  Prefactor  = 1.12009
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.242     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5770        7.1468        .11075E-03   -1.5236    
   2  alpha         .84270        .70787        .14397E-02   -.72471    
   3  Normalizat    1.0138        .17169        .23664E-03   -.92570    
   4  Prefactor     1.1201        .21715        .28425E-03   -.88827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25267e-11
Minuit parameter uncertainties:
  1  7.14784
  2  0.725934
  3  0.171783
  4  0.217325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259908': 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) = 7959.24179134
delta logL = 2.61116106561

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  5.577e+00  7.148e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  8.427e-01  7.259e-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.120e+00  2.173e-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.014e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.93
Ra Dec: 197.129 35.792
Photon Index (Free Index): 0.84 +/- 0.73
Photon Flux (Free Index): 1.48e-08 +/- 1.41e-08
Energy Flux (Free Index): 4.58e-05 +/- 3.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/259908/cmap_HighResolution_260064001_260323201_4FGL_J1308.5+3547_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.94e-08', energy_flux2='4.58e-05', photon_flux_error='2.52e-08', dlogl='2.61e+00', energy_flux='2.45e-05', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-07 00:11:49.502250', photon_index_error2='0.73', photon_index2='0.84', ts='26.65', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='3.53e-05', EG='0.98', time_epoch_completed='1630998709.5', return_code='0', job_id='259908', GAL2='1.12', EG2='1.01', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='1.41e-08', ts2='31.93', photon_index='2.18' WHERE bin_id='80' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:11:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 259908: <4FGL_J1308.5+3547_daily_bin80> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin80> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:37 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 23:55:57 2021
Terminated at Tue Sep  7 00:11:50 2021
Results reported at Tue Sep  7 00:11:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin80 197.129 35.7918 260064001 260323201 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 :                                   751.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            973 sec.

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

