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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin103
RA = 197.129, Dec = 35.7918
tmin = 266025601, tmax = 266284801
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='259946', job_status='RUN', time_executed='2021-09-06 23:56:21.237585', time_epoch_executed='1630997781.24' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259946/ft1_4FGL_J1308.5+3547_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259946/ft2_4FGL_J1308.5+3547_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259946/ft1_4FGL_J1308.5+3547_daily_bin103.fits outfile=/scratch/kocevski/259946/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin103.fits ra=197.129 dec=35.7918 rad=12.0 tmin=266025601.0 tmax=266284801.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.43
user 1.24
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259946/ft1_filtered_4FGL_J1308.5+3547_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/259946/ft2_4FGL_J1308.5+3547_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/259946/ltcube_266025601_266284801_4FGL_J1308.5+3547_daily_bin103.fits outfile=/scratch/kocevski/259946/expmap_266025601_266284801_4FGL_J1308.5+3547_daily_bin103.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/259946/ltcube_266025601_266284801_4FGL_J1308.5+3547_daily_bin103.fits
.....................!
real 191.50
user 186.47
sys 4.51

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/259946/ft1_filtered_4FGL_J1308.5+3547_daily_bin103.fits scfile=/scratch/kocevski/259946/ft2_4FGL_J1308.5+3547_daily_bin103.fits outfile=/scratch/kocevski/259946/cmap_266025601_266284801_4FGL_J1308.5+3547_daily_bin103.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259946/ft1_filtered_4FGL_J1308.5+3547_daily_bin103.fits scfile=/scratch/kocevski/259946/ft2_4FGL_J1308.5+3547_daily_bin103.fits outfile=/scratch/kocevski/259946/cmap_HighResolution_266025601_266284801_4FGL_J1308.5+3547_daily_bin103.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11213E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1030       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.495       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4240       1.0000         .10000E-03   10000.    
     7 'norm      '    .12582E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38083E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    6.7339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11480E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.207       1.0000         .10000E-03   10000.    
    13 'norm      '    26.501       1.0000         .10000E-03   10000.    
    14 'norm      '    10.036       1.0000         .10000E-03   10000.    
    15 'norm      '    .10535E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.576       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11126E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3243       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2270       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3882       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60772       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=   7847.521     FROM MIGRAD    STATUS=CONVERGED   1130 CALLS     3202 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    27.336        .36053E-02** at limit **
   2  Prefactor     2.1031        1.5252        .90899E-04    .48527E-04
   3  Prefactor     16.496        8.5501        .98615E-04    .37813E-04
   4  Prefactor     .10000E-03    11.376        .18142E-02** at limit **
   5  Prefactor     .10000E-03    33.539        .18142E-02** at limit **
   6  Prefactor     1.4214        3.0882        .22598E-03   -.11189E-03
   7  norm          .10002E-03    9.5275        .22980E-02** at limit **
   8  Prefactor     .10000E-03    64.189        .18142E-02** at limit **
   9  Prefactor     .10059E-03    18.840        .97489E-01** at limit **
  10  norm          6.7353        4.3176        .70930E-03   -.26172E-03
  11  Prefactor     .10000E-03    28.882        .36285E-03** at limit **
  12  norm          13.205        5.2212        .11022E-03    .21269E-03
  13  norm          26.510        15.949        .77819E-04   -.91804E-04
  14  norm          10.036        3.9290        .10190E-03    .60758E-03
  15  norm          .10001E-03    18.406        .33348E-02** at limit **
  16  Prefactor     .10000E-03    1.4249        .10237E-02** at limit **
  17  Prefactor     .10000E-03    6.6034        .18142E-02** at limit **
  18  Prefactor     .10000E-03    14.607        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.9077        .18142E-02** at limit **
  20  Prefactor     19.572        18.294        .90524E-04    .10424E-04
  21  Prefactor     .10000E-03    38.298        .18142E-02** at limit **
  22  norm          2.3246        1.5230        .85552E-04    .10498E-04
  23  Prefactor     6.2291        4.0212        .68486E-03   -.25189E-03
  24  norm          .10000E-03    14.649        .18142E-02** at limit **
  25  Normalizat    1.3880        .18142        .21008E-03    .22955E-03
  26  Prefactor     .60769        .21478        .36696E-03    .11720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Prefactor  = 2.10308
  Prefactor  = 16.4963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42144
  norm       = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.000100592
  norm       = 6.7353
  Prefactor  = 0.0001
  norm       = 13.2047
  norm       = 26.5099
  norm       = 10.036
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5722
  Prefactor  = 0.0001
  norm       = 2.32463
  Prefactor  = 6.22914
  norm       = 0.0001
  Normalizat = 1.38802
  Prefactor  = 0.607692
 **********
 **   18 **HESSE 
 **********

 FCN=   7847.521     FROM HESSE     STATUS=OK           440 CALLS     3642 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    27.853        .72106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1031        1.5252        .36359E-05   -1.5418    
   3  Prefactor     16.496        8.5501        .39446E-05   -1.4895    
   4  Prefactor     .10000E-03    11.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4214        3.0880        .90391E-05   -1.5470    
   7  norm          .10002E-03    9.5760        .45961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    64.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10059E-03    17.633        .10209       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.7353        4.3174        .28372E-04   -1.5189    
  11  Prefactor     .10000E-03    28.883        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.205        5.2213        .44088E-05   -1.4981    
  13  norm          26.510        15.949        .15564E-04   -1.4678    
  14  norm          10.036        3.9076        .40761E-05   -1.5074    
  15  norm          .10001E-03    18.504        .66695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4251        .20475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.572        18.293        .36209E-05   -1.4823    
  21  Prefactor     .10000E-03    38.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3246        1.5230        .34221E-05   -1.5403    
  23  Prefactor     6.2291        4.0209        .27394E-04   -1.5209    
  24  norm          .10000E-03    14.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3880        .18154        .42016E-04   -.80976    
  26  Prefactor     .60769        .21493        .14678E-04   -1.0726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49419e-09
Minuit parameter uncertainties:
  1  0.00204519
  2  1.52519
  3  8.55075
  4  1.80332e-06
  5  7.04009e-05
  6  3.08838
  7  0.000932642
  8  0.00033645
  9  0.00646486
  10  4.31763
  11  0.000162356
  12  5.22145
  13  15.9516
  14  3.90773
  15  0.000736037
  16  6.16382e-06
  17  5.75619e-06
  18  1.06858e-05
  19  1.24837e-06
  20  18.2986
  21  0.000262517
  22  1.52299
  23  4.02111
  24  2.21007e-05
  25  0.181627
  26  0.215221
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.320e+01  5.221e+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:  6.077e-01  2.152e-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.388e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.25
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 9.40e-06

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) = 7846.39442184
delta logL = 1.12628751809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7846.2814166
delta logL = 1.23929275678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.639       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3644       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58611       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=   7846.281     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.631        4.7185        .30709E-02   -.11742E-03
   2  alpha         1.3637        .39291        .34666       -.34473E-04
   3  Normalizat    1.4243        .15435        .47039E-01   -.41705E-05
   4  Prefactor     .58634        .18642        .84280E-01    .42601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.6312
  alpha      = 1.36374
  Normalizat = 1.42429
  Prefactor  = 0.586342
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.281     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.631        5.6373        .12105E-03   -1.5056    
   2  alpha         1.3637        .48383        .14797E-01   -.47182    
   3  Normalizat    1.4243        .17709        .20794E-03   -.79929    
   4  Prefactor     .58634        .21336        .37332E-03   -1.0816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53068e-12
Minuit parameter uncertainties:
  1  5.63763
  2  0.487721
  3  0.177164
  4  0.213654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259946': 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) = 7846.28141407
delta logL = 1.23929529184

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.063e+01  5.638e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.364e+00  4.877e-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:  5.863e-01  2.137e-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.424e+00  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.80
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.36 +/- 0.49
Photon Flux (Free Index): 2.66e-08 +/- 1.63e-08
Energy Flux (Free Index): 3.27e-05 +/- 1.85e-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/259946/cmap_HighResolution_266025601_266284801_4FGL_J1308.5+3547_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='3.27e-05', photon_flux_error='2.27e-08', dlogl='1.24e+00', energy_flux='2.38e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-09-07 00:09:20.471836', photon_index_error2='0.49', photon_index2='1.36', ts='32.25', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.39', time_epoch_completed='1630998560.47', return_code='0', job_id='259946', GAL2='0.59', EG2='1.42', return_code2='0', energy_flux_error='9.40e-06', photon_flux_error2='1.63e-08', ts2='34.80', photon_index='2.18' WHERE bin_id='103' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:09:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 259946: <4FGL_J1308.5+3547_daily_bin103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin103 197.129 35.7918 266025601 266284801 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            821 sec.

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

