/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 1 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 = 7551
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin444
RA = 197.129, Dec = 35.7918
tmin = 354412801, tmax = 354672001
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='263742', job_status='RUN', time_executed='2021-09-07 00:11:20.431203', time_epoch_executed='1630998680.43' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263742

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263742/ft1_4FGL_J1308.5+3547_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263742/ft2_4FGL_J1308.5+3547_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263742/ft1_4FGL_J1308.5+3547_daily_bin444.fits outfile=/scratch/kocevski/263742/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin444.fits ra=197.129 dec=35.7918 rad=12.0 tmin=354412801.0 tmax=354672001.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 3.51
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263742/ft1_filtered_4FGL_J1308.5+3547_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/263742/ft2_4FGL_J1308.5+3547_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/263742/ltcube_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.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/263742/ft2_4FGL_J1308.5+3547_daily_bin444.fits
.....................!
real 15.89
user 15.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263742/ft1_filtered_4FGL_J1308.5+3547_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/263742/ft2_4FGL_J1308.5+3547_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/263742/ltcube_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.fits outfile=/scratch/kocevski/263742/expmap_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.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/263742/ltcube_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.fits
.....................!
real 191.89
user 186.35
sys 4.86

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/263742/ft1_filtered_4FGL_J1308.5+3547_daily_bin444.fits scfile=/scratch/kocevski/263742/ft2_4FGL_J1308.5+3547_daily_bin444.fits outfile=/scratch/kocevski/263742/cmap_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.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.57
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263742/ft1_filtered_4FGL_J1308.5+3547_daily_bin444.fits scfile=/scratch/kocevski/263742/ft2_4FGL_J1308.5+3547_daily_bin444.fits outfile=/scratch/kocevski/263742/cmap_HighResolution_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23982E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1303       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1309       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.158       1.0000         .10000E-03   10000.    
    12 'norm      '    .16782       1.0000         .10000E-03   10000.    
    13 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0415       1.0000         .10000E-03   10000.    
    15 'norm      '    .17228E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.247       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.199       1.0000         .10000E-03   10000.    
    22 'norm      '    11.933       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3524       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0549       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69915       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=   5852.742     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3130 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2599        .90712E-02** at limit **
   2  Prefactor     2.0443        2.1259        .72303E-02    .12558E-03
   3  Prefactor     .10000E-03    39.205        .90712E-02** at limit **
   4  Prefactor     9.3417        12.078        .32779E-02   -.10039E-03
   5  Prefactor     .10000E-03    25.761        .90712E-02** at limit **
   6  Prefactor     7.1294        5.5181        .37556E-02   -.12651E-02
   7  norm          .10000E-03    2.0486        .90712E-02** at limit **
   8  Prefactor     45.486        36.808        .14862E-02   -.20256E-03
   9  Prefactor     8.1263        13.494        .35151E-02   -.20338E-03
  10  norm          6.8498        3.8900        .38325E-02   -.12735E-04
  11  Prefactor     15.175        16.574        .25719E-02    .10077E-02
  12  norm          .13790        3.6031        .77294E-01    .94578E-04
  13  norm          .10000E-03    9.1153        .90712E-02** at limit **
  14  norm          2.0490        3.4456        .72353E-02    .29206E-03
  15  norm          .10000E-03    4.9998        .49070E-01** at limit **
  16  Prefactor     .10000E-03    1.0369        .90712E-02** at limit **
  17  Prefactor     .10000E-03    7.4957        .90712E-02** at limit **
  18  Prefactor     .10000E-03    19.427        .90712E-02** at limit **
  19  Prefactor     12.246        14.857        .28616E-02   -.59516E-04
  20  Prefactor     .10000E-03    7.8776        .90712E-02** at limit **
  21  Prefactor     83.199        58.934        .11009E-02   -.16935E-04
  22  norm          11.933        2.5245        .28991E-02   -.12840E-03
  23  Prefactor     1.3519        2.6619        .94024E-02    .52875E-03
  24  norm          .10000E-03    4.9797        .90712E-02** at limit **
  25  Normalizat    1.0547        .15739        .40242E-01   -.45150E-05
  26  Prefactor     .69942        .19000        .69787E-01    .22367E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.04426
  Prefactor  = 0.0001
  Prefactor  = 9.34167
  Prefactor  = 0.0001
  Prefactor  = 7.12939
  norm       = 0.0001
  Prefactor  = 45.4858
  Prefactor  = 8.12626
  norm       = 6.84978
  Prefactor  = 15.1747
  norm       = 0.137904
  norm       = 0.0001
  norm       = 2.04902
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2462
  Prefactor  = 0.0001
  Prefactor  = 83.1993
  norm       = 11.9333
  Prefactor  = 1.35188
  norm       = 0.0001
  Normalizat = 1.05467
  Prefactor  = 0.699421
 **********
 **   18 **HESSE 
 **********

 FCN=   5852.742     FROM HESSE     STATUS=OK           462 CALLS     3592 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3449        .17130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0443        2.1154        .11063E-03   -1.5422    
   3  Prefactor     .10000E-03    40.927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3417        12.076        .13112E-03   -1.5097    
   5  Prefactor     .10000E-03    25.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1294        5.5140        .14839E-03   -1.5174    
   7  norm          .10000E-03    2.0816        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.486        36.824        .59449E-04   -1.4358    
   9  Prefactor     8.1263        13.437        .14060E-03   -1.5138    
  10  norm          6.8498        3.8907        .11055E-03   -1.5184    
  11  Prefactor     15.175        19.669        .10288E-03   -1.4929    
  12  norm          .13790        87.649        .24805E-02   -1.5634    
  13  norm          .10000E-03    9.1571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0490        3.4113        .15025E-03   -1.5422    
  15  norm          .10000E-03    4.9988        .48877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0464        .75971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.246        14.879        .11447E-03   -1.5008    
  20  Prefactor     .10000E-03    7.8884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     83.199        59.077        .44037E-04   -1.3881    
  22  norm          11.933        2.5267        .54001E-04   -1.5017    
  23  Prefactor     1.3519        2.6227        .16898E-03   -1.5475    
  24  norm          .10000E-03    4.9936        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0547        .18562        .20708E-03   -.91221    
  26  Prefactor     .69942        .22401        .30883E-03   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43389e-09
Minuit parameter uncertainties:
  1  3.31544e-05
  2  2.11545
  3  2.7531e-05
  4  12.0791
  5  4.1879e-05
  6  5.51442
  7  1.05227e-05
  8  36.8425
  9  13.4418
  10  3.89081
  11  19.6779
  12  6.96103
  13  1.15754e-05
  14  3.41164
  15  0.000227299
  16  9.84375e-06
  17  2.30427e-06
  18  5.75327e-05
  19  14.8835
  20  0.000107819
  21  59.1188
  22  2.52675
  23  2.62297
  24  2.76835e-06
  25  0.185734
  26  0.224301
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.379e-01  6.961e+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.994e-01  2.243e-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.055e+00  1.857e-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: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263742/likelihoodResults_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.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): 102
logL (Free Index) = 5852.7392325
delta logL = 0.00284315213503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5852.73211916
delta logL = 0.0099565009823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83259       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7766       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69493       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=   5852.732     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      292 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82569        11.358        .32286E-02   -.20919E-03
   2  alpha         1.7736        1.8806        .58344E-01   -.18304E-04
   3  Normalizat    1.0564        .17687        .20691E-03   -.99756E-04
   4  Prefactor     .69494        .22242        .30972E-03   -.11364E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.825689
  alpha      = 1.77356
  Normalizat = 1.05638
  Prefactor  = 0.694944
 **********
 **   18 **HESSE 
 **********

 FCN=   5852.732     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82569        10.361        .12914E-03   -1.5526    
   2  alpha         1.7736        1.8228        .23338E-02   -.29483    
   3  Normalizat    1.0564        .17677        .41383E-04   -.91165    
   4  Prefactor     .69494        .22167        .12389E-04   -1.0373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09498e-10
Minuit parameter uncertainties:
  1  5.85077
  2  2.07245
  3  0.176869
  4  0.221954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263742': 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) = 5852.73211734
delta logL = 0.00995831420187

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  8.257e-01  5.851e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.774e+00  2.072e+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:  6.949e-01  2.220e-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.056e+00  1.769e-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/263742/cmap_HighResolution_354412801_354672001_4FGL_J1308.5+3547_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2021-09-07 00:24:00.620906', job_id='263742', GAL2='0.69', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1630999440.62', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='9.96e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='444' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:24:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 263742: <4FGL_J1308.5+3547_daily_bin444> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin444> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:10:31 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:11:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:11:10 2021
Terminated at Tue Sep  7 00:24:01 2021
Results reported at Tue Sep  7 00:24:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin444 197.129 35.7918 354412801 354672001 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 :                                   755.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            810 sec.

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

