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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin95
RA = 197.129, Dec = 35.7918
tmin = 263952001, tmax = 264211201
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='259934', job_status='RUN', time_executed='2021-09-06 23:59:21.267149', time_epoch_executed='1630997961.27' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259934

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259934/ft1_4FGL_J1308.5+3547_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259934/ft2_4FGL_J1308.5+3547_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259934/ft1_4FGL_J1308.5+3547_daily_bin95.fits outfile=/scratch/kocevski/259934/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin95.fits ra=197.129 dec=35.7918 rad=12.0 tmin=263952001.0 tmax=264211201.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.73
user 1.51
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259934/ft1_filtered_4FGL_J1308.5+3547_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/259934/ft2_4FGL_J1308.5+3547_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/259934/ltcube_263952001_264211201_4FGL_J1308.5+3547_daily_bin95.fits outfile=/scratch/kocevski/259934/expmap_263952001_264211201_4FGL_J1308.5+3547_daily_bin95.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/259934/ltcube_263952001_264211201_4FGL_J1308.5+3547_daily_bin95.fits
.....................!
real 191.52
user 185.44
sys 5.34

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/259934/ft1_filtered_4FGL_J1308.5+3547_daily_bin95.fits scfile=/scratch/kocevski/259934/ft2_4FGL_J1308.5+3547_daily_bin95.fits outfile=/scratch/kocevski/259934/cmap_263952001_264211201_4FGL_J1308.5+3547_daily_bin95.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259934/ft1_filtered_4FGL_J1308.5+3547_daily_bin95.fits scfile=/scratch/kocevski/259934/ft2_4FGL_J1308.5+3547_daily_bin95.fits outfile=/scratch/kocevski/259934/cmap_HighResolution_263952001_264211201_4FGL_J1308.5+3547_daily_bin95.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/259934/ft1_filtered_4FGL_J1308.5+3547_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/259934/ft2_4FGL_J1308.5+3547_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259934/Model_4FGL_J1308.5+3547_daily_bin95.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/259934/ft1_filtered_4FGL_J1308.5+3547_daily_bin95.fits.....................!
real 51.74
user 50.34
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5947       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4316       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3351       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13112E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12335E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.946       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.571       1.0000         .10000E-03   10000.    
    13 'norm      '    21.145       1.0000         .10000E-03   10000.    
    14 'norm      '    .49369       1.0000         .10000E-03   10000.    
    15 'norm      '    16.695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5329       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .61965       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6657       1.0000         .10000E-03   10000.    
    24 'norm      '    .10607E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97969       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0259       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=   6391.150     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3103 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5944        5.6798        .54698E-07    .35768E-04
   2  Prefactor     4.8093        2.3759       -.29452E-08   -.18469E-04
   3  Prefactor     23.070        11.169        .25868E-07   -.42278E-05
   4  Prefactor     .10000E-03    18.634       -.39435E-06** at limit **
   5  Prefactor     53.555        59.257       -.27620E-06   -.54845E-04
   6  Prefactor     4.4294        5.4628       -.30180E-07   -.90149E-04
   7  norm          4.3322        4.8261       -.67877E-06   -.21219E-03
   8  Prefactor     .10000E-03    79.024        .21891E-05** at limit **
   9  Prefactor     .10000E-03    111.13       -.57313E-05** at limit **
  10  norm          15.946        5.1840        .79634E-08   -.12272E-04
  11  Prefactor     .10000E-03    29.615       -.10065E-05** at limit **
  12  norm          21.566        8.1227       -.43038E-06   -.58309E-03
  13  norm          21.151        14.219        .27349E-06    .40923E-04
  14  norm          .49474        4.3507       -.11534E-05    .56659E-03
  15  norm          16.689        9.2585        .16230E-06    .48108E-04
  16  Prefactor     .31687        3.6228        .19996E-05   -.26578E-03
  17  Prefactor     8.5313        11.115       -.33463E-06   -.10024E-03
  18  Prefactor     .10000E-03    31.604       -.13360E-06** at limit **
  19  Prefactor     .10000E-03    6.2297        .34428E-07** at limit **
  20  Prefactor     .10000E-03    24.269        .26971E-06** at limit **
  21  Prefactor     .10000E-03    21.240        .19236E-06** at limit **
  22  norm          .61995        1.4329        .73911E-06    .49635E-03
  23  Prefactor     6.6648        4.1757        .72381E-07   -.16248E-04
  24  norm          .10000E-03    11.208        .64756E-07** at limit **
  25  Normalizat    .97955        .16741       -.51877E-06   -.16734E-03
  26  Prefactor     1.0262        .20862        .38514E-07   -.12247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.59438
  Prefactor  = 4.80933
  Prefactor  = 23.0699
  Prefactor  = 0.0001
  Prefactor  = 53.555
  Prefactor  = 4.42943
  norm       = 4.33222
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  norm       = 15.9458
  Prefactor  = 0.0001
  norm       = 21.566
  norm       = 21.1509
  norm       = 0.494737
  norm       = 16.6889
  Prefactor  = 0.316869
  Prefactor  = 8.53129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.619947
  Prefactor  = 6.66483
  norm       = 0.0001
  Normalizat = 0.979546
  Prefactor  = 1.02616
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.150     FROM HESSE     STATUS=OK           462 CALLS     3565 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5944        5.6811        .16984E-03   -1.5235    
   2  Prefactor     4.8093        2.3760        .84380E-04   -1.5269    
   3  Prefactor     23.070        11.169        .83395E-04   -1.4747    
   4  Prefactor     .10000E-03    18.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.555        59.368        .54799E-04   -1.4243    
   6  Prefactor     4.4294        5.4454        .19129E-03   -1.5287    
   7  norm          4.3322        4.8142        .17198E-03   -1.5292    
   8  Prefactor     .10000E-03    81.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    112.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.946        5.1851        .10030E-03   -1.4909    
  11  Prefactor     .10000E-03    30.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.566        8.0934        .86240E-04   -1.4779    
  13  norm          21.151        14.232        .87105E-04   -1.4788    
  14  norm          .49474        17.887        .21752E-02   -1.5567    
  15  norm          16.689        10.995        .98023E-04   -1.4891    
  16  Prefactor     .31687        5.1238        .22548E-02   -1.5595    
  17  Prefactor     8.5313        11.062        .13723E-03   -1.5124    
  18  Prefactor     .10000E-03    31.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .61995        1.4521        .14234E-03   -1.5551    
  23  Prefactor     6.6648        4.1795        .12434E-03   -1.5192    
  24  norm          .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97955        .20248        .23678E-03   -.93719    
  26  Prefactor     1.0262        .25200        .29414E-03   -.91862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11667e-08
Minuit parameter uncertainties:
  1  5.68164
  2  2.37607
  3  11.1704
  4  6.08728e-05
  5  59.4339
  6  5.44603
  7  4.81465
  8  0.00120192
  9  0.00122048
  10  5.18528
  11  0.000104331
  12  8.0938
  13  14.2346
  14  5.95092
  15  10.9965
  16  2.54824
  17  11.0651
  18  0.000101652
  19  4.61073e-06
  20  7.66199e-05
  21  7.68857e-05
  22  1.45214
  23  4.17965
  24  4.96288e-06
  25  0.202641
  26  0.252286
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  2.157e+01  8.094e+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.026e+00  2.523e-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.795e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.57
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 9.40e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 3.88e-05 +/- 1.46e-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) = 6390.93379199
delta logL = 0.216570018859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6390.93270395
delta logL = 0.217658059702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.007       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4352       1.0000          .0000       5.0000    
     3 'Normalizat'    .95862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0444       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=   6390.933     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.004        111.33        .22967E-02    .49005E-04
   2  alpha         2.4351        3.7128        .21662        .52000E-04
   3  Normalizat    .95834        .14008        .45646E-01   -.13751E-04
   4  Prefactor     1.0448        .15386        .65965E-01    .57351E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 19.0039
  alpha      = 2.43512
  Normalizat = 0.958344
  Prefactor  = 1.04478
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.933     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.004        8.4827        .91868E-04   -1.4836    
   2  alpha         2.4351        .39674        .90492E-02   -.25956E-01
   3  Normalizat    .95834        .19975        .23896E-03   -.94439    
   4  Prefactor     1.0448        .25199        .29179E-03   -.91251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12336e-12
Minuit parameter uncertainties:
  1  8.48324
  2  0.398425
  3  0.199902
  4  0.252279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259934': 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) = 6390.93270232
delta logL = 0.217659682473

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.900e+01  8.483e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.435e+00  3.984e-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.045e+00  2.523e-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.583e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.98
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.44 +/- 0.40
Photon Flux (Free Index): 1.09e-07 +/- 4.35e-08
Energy Flux (Free Index): 3.59e-05 +/- 1.36e-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/259934/cmap_HighResolution_263952001_264211201_4FGL_J1308.5+3547_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.40e-08', energy_flux2='3.59e-05', photon_flux_error='3.53e-08', dlogl='2.18e-01', energy_flux='3.88e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-07 00:10:48.383809', photon_index_error2='0.40', photon_index2='2.44', ts='17.57', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.98', time_epoch_completed='1630998648.38', return_code='0', job_id='259934', GAL2='1.04', EG2='0.96', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.35e-08', ts2='17.98', photon_index='2.18' WHERE bin_id='95' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 259934: <4FGL_J1308.5+3547_daily_bin95> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin95> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:38 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:56:03 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:56:03 2021
Terminated at Tue Sep  7 00:10:49 2021
Results reported at Tue Sep  7 00:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin95 197.129 35.7918 263952001 264211201 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 :                                   684.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            911 sec.

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

