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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin16
RA = 197.129, Dec = 35.7918
tmin = 243475201, tmax = 243734401
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='258611', job_status='RUN', time_executed='2021-09-06 23:54:09.266278', time_epoch_executed='1630997649.27' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258611/ft1_4FGL_J1308.5+3547_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258611/ft2_4FGL_J1308.5+3547_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258611/ft1_4FGL_J1308.5+3547_daily_bin16.fits outfile=/scratch/kocevski/258611/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin16.fits ra=197.129 dec=35.7918 rad=12.0 tmin=243475201.0 tmax=243734401.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.44
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258611/ft1_filtered_4FGL_J1308.5+3547_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/258611/ft2_4FGL_J1308.5+3547_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/258611/ltcube_243475201_243734401_4FGL_J1308.5+3547_daily_bin16.fits outfile=/scratch/kocevski/258611/expmap_243475201_243734401_4FGL_J1308.5+3547_daily_bin16.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/258611/ltcube_243475201_243734401_4FGL_J1308.5+3547_daily_bin16.fits
.....................!
real 193.41
user 187.04
sys 5.63

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/258611/ft1_filtered_4FGL_J1308.5+3547_daily_bin16.fits scfile=/scratch/kocevski/258611/ft2_4FGL_J1308.5+3547_daily_bin16.fits outfile=/scratch/kocevski/258611/cmap_243475201_243734401_4FGL_J1308.5+3547_daily_bin16.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/258611/ft1_filtered_4FGL_J1308.5+3547_daily_bin16.fits scfile=/scratch/kocevski/258611/ft2_4FGL_J1308.5+3547_daily_bin16.fits outfile=/scratch/kocevski/258611/cmap_HighResolution_243475201_243734401_4FGL_J1308.5+3547_daily_bin16.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.096       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3202       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91295E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46446       1.0000         .10000E-03   10000.    
    12 'norm      '    .60876       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.276       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2566       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .85163       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0880       1.0000         .10000E-03   10000.    
    24 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3509       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75662       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=   6467.709     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2679 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.095        7.6341        .47604E-07   -.15088E-04
   2  Prefactor     1.7973        2.2421        .18017E-07   -.17924E-04
   3  Prefactor     7.5821        8.7312        .38206E-06   -.23834E-04
   4  Prefactor     2.3206        16.399        .51924E-05   -.97199E-05
   5  Prefactor     .10000E-03    419.76        .28543E-04** at limit **
   6  Prefactor     .10000E-03    4.0807        .31216E-06** at limit **
   7  norm          .10000E-03    1.2188       -.35465E-07** at limit **
   8  Prefactor     .10000E-03    40.209        .15248E-05** at limit **
   9  Prefactor     .10000E-03    8.2007        .27430E-06** at limit **
  10  norm          4.6280        3.4198       -.46936E-07   -.28340E-04
  11  Prefactor     .47096        6.3337        .23755E-07   -.75023E-04
  12  norm          .60838        2.6970        .27797E-06   -.25769E-04
  13  norm          .10000E-03    8.5966       -.64969E-06** at limit **
  14  norm          10.277        5.0442       -.14010E-06   -.13520E-03
  15  norm          2.2554        6.7222        .22983E-06   -.15989E-04
  16  Prefactor     .85039        2.0954        .40841E-07   -.64549E-04
  17  Prefactor     .10000E-03    2.8711        .11318E-07** at limit **
  18  Prefactor     .10000E-03    12.395        .13121E-07** at limit **
  19  Prefactor     .10000E-03    9.1671        .33535E-06** at limit **
  20  Prefactor     .10000E-03    61.119       -.65243E-06** at limit **
  21  Prefactor     .10000E-03    50.942       -.16185E-05** at limit **
  22  norm          .10000E-03    .59255       -.97033E-08** at limit **
  23  Prefactor     4.0886        4.0188        .51541E-06    .11697E-04
  24  norm          .10000E-03    22.519       -.22932E-06** at limit **
  25  Normalizat    1.3510        .16700       -.15604E-06   -.17269E-03
  26  Prefactor     .75662        .20338       -.74699E-06   -.98406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0954
  Prefactor  = 1.79733
  Prefactor  = 7.58207
  Prefactor  = 2.32063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.62799
  Prefactor  = 0.470962
  norm       = 0.608384
  norm       = 0.0001
  norm       = 10.2774
  norm       = 2.25542
  Prefactor  = 0.850394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.08856
  norm       = 0.0001
  Normalizat = 1.35097
  Prefactor  = 0.756619
 **********
 **   18 **HESSE 
 **********

 FCN=   6467.709     FROM HESSE     STATUS=OK           460 CALLS     3139 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.095        7.6344        .12027E-03   -1.5042    
   2  Prefactor     1.7973        2.2259        .13027E-03   -1.5440    
   3  Prefactor     7.5821        8.7193        .72820E-03   -1.5157    
   4  Prefactor     2.3206        16.349        .13465E-02   -1.5403    
   5  Prefactor     .10000E-03    420.27        .41642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1438        .15857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2234        .86690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6280        3.4168        .12421E-03   -1.5278    
  11  Prefactor     .47096        38.400        .38016E-02   -1.5571    
  12  norm          .60838        2.5648        .25149E-03   -1.5552    
  13  norm          .10000E-03    8.6169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.277        5.0005        .94084E-04   -1.5067    
  15  norm          2.2554        6.6679        .27308E-03   -1.5408    
  16  Prefactor     .85039        1.9298        .17185E-02   -1.5524    
  17  Prefactor     .10000E-03    2.8722        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    64.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .87941        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.0886        4.0165        .76897E-03   -1.5304    
  24  norm          .10000E-03    22.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3510        .19730        .21012E-03   -.82058    
  26  Prefactor     .75662        .24045        .33418E-03   -1.0135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30308e-08
Minuit parameter uncertainties:
  1  7.6351
  2  2.22601
  3  8.72071
  4  12.3237
  5  0.00075209
  6  3.72321e-06
  7  8.82386e-07
  8  3.4093e-05
  9  2.04677e-06
  10  3.41692
  11  8.51004
  12  2.4983
  13  5.84123e-06
  14  5.00066
  15  6.67011
  16  1.92991
  17  8.32332e-07
  18  1.1556e-06
  19  4.23667e-06
  20  3.80732e-05
  21  3.54344e-05
  22  3.0471e-06
  23  4.01679
  24  3.12434e-06
  25  0.197412
  26  0.24078
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  6.084e-01  2.498e+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.566e-01  2.408e-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.351e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 197.129 35.792
Photon Flux Upper Limit: 4.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258611/likelihoodResults_243475201_243734401_4FGL_J1308.5+3547_daily_bin16.txt

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) = 6467.48102795
delta logL = 0.227704648926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6467.39731185
delta logL = 0.311420751109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4500       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0966       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74342       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=   6467.397     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4436        2.3123        .89455E-02    .18904E-02
   2  alpha         1.0938        .90572        .50000       -.29286E-04
   3  Normalizat    1.3590        .16347        .47403E-01    .17359E-04
   4  Prefactor     .74357        .20190        .76050E-01    .47509E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44361
  alpha      = 1.09383
  Normalizat = 1.35904
  Prefactor  = 0.743566
 **********
 **   18 **HESSE 
 **********

 FCN=   6467.397     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4436        2.3796        .14807E-03   -1.5468    
   2  alpha         1.0938        .97138        .34941E-01   -.59737    
   3  Normalizat    1.3590        .19351        .20955E-03   -.81821    
   4  Prefactor     .74357        .23849        .33664E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8694e-10
Minuit parameter uncertainties:
  1  2.37972
  2  1.01124
  3  0.193613
  4  0.238821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258611': 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) = 6467.39730663
delta logL = 0.311425964478

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.444e+00  2.380e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.094e+00  1.011e+00  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.436e-01  2.388e-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.359e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 197.129 35.792

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/258611/cmap_HighResolution_243475201_243734401_4FGL_J1308.5+3547_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='4.07e-08', time_completed='2021-09-07 00:06:35.904007', job_id='258611', GAL2='0.74', fit_tolerance='1e-08', EG2='1.36', EG='1.35', time_epoch_completed='1630998395.9', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.11e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='16' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:06:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 258611: <4FGL_J1308.5+3547_daily_bin16> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin16> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 23:50:26 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:51:07 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:51:07 2021
Terminated at Tue Sep  7 00:06:36 2021
Results reported at Tue Sep  7 00:06:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin16 197.129 35.7918 243475201 243734401 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 :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            970 sec.

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

