/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 9 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_bin1
RA = 197.129, Dec = 35.7918
tmin = 239587201, tmax = 239846401
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='258590', job_status='RUN', time_executed='2021-09-06 23:51:16.091253', time_epoch_executed='1630997476.09' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258590

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258590/ft1_4FGL_J1308.5+3547_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258590/ft2_4FGL_J1308.5+3547_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258590/ft1_4FGL_J1308.5+3547_daily_bin1.fits outfile=/scratch/kocevski/258590/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1.fits ra=197.129 dec=35.7918 rad=12.0 tmin=239587201.0 tmax=239846401.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.40
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258590/ft1_filtered_4FGL_J1308.5+3547_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/258590/ft2_4FGL_J1308.5+3547_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/258590/ltcube_239587201_239846401_4FGL_J1308.5+3547_daily_bin1.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/258590/ft2_4FGL_J1308.5+3547_daily_bin1.fits
.....................!
real 21.26
user 20.82
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258590/ft1_filtered_4FGL_J1308.5+3547_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/258590/ft2_4FGL_J1308.5+3547_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/258590/ltcube_239587201_239846401_4FGL_J1308.5+3547_daily_bin1.fits outfile=/scratch/kocevski/258590/expmap_239587201_239846401_4FGL_J1308.5+3547_daily_bin1.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/258590/ltcube_239587201_239846401_4FGL_J1308.5+3547_daily_bin1.fits
.....................!
real 195.84
user 190.23
sys 5.20

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/258590/ft1_filtered_4FGL_J1308.5+3547_daily_bin1.fits scfile=/scratch/kocevski/258590/ft2_4FGL_J1308.5+3547_daily_bin1.fits outfile=/scratch/kocevski/258590/cmap_239587201_239846401_4FGL_J1308.5+3547_daily_bin1.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.60
user 0.40
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0834       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .88332       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1045       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.280       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0536       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.762       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .52727       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2399       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=   3800.457     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3073 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8155        .33097E-06** at limit **
   2  Prefactor     2.0834        2.1500       -.11340E-06    .22337E-04
   3  Prefactor     1.2616        16.939        .10846E-04   -.34929E-03
   4  Prefactor     30.200        23.470        .60187E-07    .19585E-04
   5  Prefactor     22.141        48.917        .34200E-06   -.46857E-04
   6  Prefactor     .10000E-03    2.3196        .10354E-07** at limit **
   7  norm          .10000E-03    3.3647       -.10846E-05** at limit **
   8  Prefactor     .10000E-03    48.698        .57864E-06** at limit **
   9  Prefactor     .10000E-03    33.220       -.12068E-05** at limit **
  10  norm          2.1746        2.2286       -.18253E-07    .35640E-06
  11  Prefactor     .10000E-03    14.958       -.50992E-07** at limit **
  12  norm          .10000E-03    5.5970       -.98658E-07** at limit **
  13  norm          .10000E-03    11.275        .22394E-06** at limit **
  14  norm          .88236        3.1873       -.92045E-06   -.84733E-03
  15  norm          .10000E-03    5.0656        .41244E-06** at limit **
  16  Prefactor     7.9116        4.7183       -.38651E-06   -.11082E-02
  17  Prefactor     .10000E-03    11.994       -.54986E-06** at limit **
  18  Prefactor     .10001E-03    133.62       -.22660E-05** at limit **
  19  Prefactor     9.1049        17.548       -.23247E-06   -.84698E-04
  20  Prefactor     .10000E-03    14.718        .25757E-06** at limit **
  21  Prefactor     52.253        92.720       -.11654E-05   -.62733E-04
  22  norm          3.0535        1.9608       -.47123E-07   -.24699E-03
  23  Prefactor     11.762        5.5304       -.92483E-07   -.19730E-03
  24  norm          .10000E-03    7.9523       -.26863E-06** at limit **
  25  Normalizat    .52743        .18381        .47605E-05    .16687E-03
  26  Prefactor     1.2397        .23192       -.41956E-05   -.14958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.0834
  Prefactor  = 1.26159
  Prefactor  = 30.1996
  Prefactor  = 22.1412
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 2.17463
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.882357
  norm       = 0.0001
  Prefactor  = 7.91156
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 9.10494
  Prefactor  = 0.0001
  Prefactor  = 52.2527
  norm       = 3.05354
  Prefactor  = 11.7621
  norm       = 0.0001
  Normalizat = 0.527428
  Prefactor  = 1.23974
 **********
 **   18 **HESSE 
 **********

 FCN=   3800.457     FROM HESSE     STATUS=OK           448 CALLS     3521 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8712        .13218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0834        2.1372        .89363E-04   -1.5419    
   3  Prefactor     1.2616        18.280        .19836E-02   -1.5483    
   4  Prefactor     30.200        23.472        .72907E-04   -1.4608    
   5  Prefactor     22.141        49.014        .85062E-04   -1.4767    
   6  Prefactor     .10000E-03    2.3221        .91683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5073        .11151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1746        2.2396        .90896E-04   -1.5413    
  11  Prefactor     .10000E-03    15.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.6984        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .88236        3.1849        .19903E-03   -1.5520    
  15  norm          .10000E-03    5.1015        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9116        4.7320        .95784E-04   -1.5145    
  17  Prefactor     .10000E-03    12.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    134.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1049        17.557        .13283E-03   -1.5104    
  20  Prefactor     .10000E-03    14.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.253        93.669        .55469E-04   -1.4261    
  22  norm          3.0535        1.9612        .66935E-04   -1.5358    
  23  Prefactor     11.762        5.5395        .95373E-04   -1.5022    
  24  norm          .10000E-03    7.9826        .16986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .52743        .21905        .26230E-03   -1.1116    
  26  Prefactor     1.2397        .27029        .22930E-03   -.85117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9708e-09
Minuit parameter uncertainties:
  1  5.85652e-05
  2  2.13724
  3  9.60762
  4  23.4789
  5  49.1033
  6  8.64709e-07
  7  0.000155361
  8  0.000378605
  9  0.000577805
  10  2.2397
  11  2.95836e-05
  12  1.33409e-05
  13  0.00012831
  14  3.18551
  15  7.63256e-05
  16  4.7322
  17  0.000233496
  18  0.00204663
  19  17.5667
  20  6.44115e-05
  21  93.9348
  22  1.96121
  23  5.53978
  24  6.38522e-05
  25  0.219406
  26  0.270589
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.334e-05  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.240e+00  2.706e-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:  5.274e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/258590/likelihoodResults_239587201_239846401_4FGL_J1308.5+3547_daily_bin1.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) = 3800.4581848
delta logL = -0.000835583989556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3800.45735538
delta logL = -6.16796251052e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14135E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2375       1.0000          .0000       5.0000    
     3 'Normalizat'    .52688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2405       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=   3800.457     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      244 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    7.6479        .32696E-03** at limit **
   2  alpha         2.2990        3.5025        .16577       -.50140E-04
   3  Normalizat    .52742        .20224        .26229E-03    .13415E-04
   4  Prefactor     1.2397        .26367        .22930E-03   -.11007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100021
  alpha      = 2.29902
  Normalizat = 0.527423
  Prefactor  = 1.23974
 **********
 **   18 **HESSE 
 **********

 FCN=   3800.457     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    7.6421        .65392E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2990        3.5022        .66307E-02   -.80478E-01
   3  Normalizat    .52742        .20243        .10492E-04   -1.1116    
   4  Prefactor     1.2397        .26392        .91719E-05   -.85117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17192e-09
Minuit parameter uncertainties:
  1  0.00079385
  2  2.49194
  3  0.202712
  4  0.2642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258590': 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) = 3800.45734697
delta logL = 2.24656741921e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  7.939e-04  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.299e+00  2.492e+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:  1.240e+00  2.642e-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:  5.274e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/258590/cmap_HighResolution_239587201_239846401_4FGL_J1308.5+3547_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-07 00:01:04.168241', job_id='258590', GAL2='1.24', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1630998064.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 258590: <4FGL_J1308.5+3547_daily_bin1> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 23:50:25 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:50:56 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:50:56 2021
Terminated at Tue Sep  7 00:01:04 2021
Results reported at Tue Sep  7 00:01:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1 197.129 35.7918 239587201 239846401 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 :                                   588.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            639 sec.

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

