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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin19
RA = 197.129, Dec = 35.7918
tmin = 244252801, tmax = 244512001
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='258615', job_status='RUN', time_executed='2021-09-06 23:53:29.697470', time_epoch_executed='1630997609.7' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258615/ft1_4FGL_J1308.5+3547_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258615/ft2_4FGL_J1308.5+3547_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258615/ft1_4FGL_J1308.5+3547_daily_bin19.fits outfile=/scratch/kocevski/258615/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin19.fits ra=197.129 dec=35.7918 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.43
user 2.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258615/ft1_filtered_4FGL_J1308.5+3547_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/258615/ft2_4FGL_J1308.5+3547_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/258615/ltcube_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.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/258615/ft2_4FGL_J1308.5+3547_daily_bin19.fits
.....................!
real 14.03
user 13.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258615/ft1_filtered_4FGL_J1308.5+3547_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/258615/ft2_4FGL_J1308.5+3547_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/258615/ltcube_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.fits outfile=/scratch/kocevski/258615/expmap_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.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/258615/ltcube_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.fits
.....................!
real 191.00
user 185.39
sys 5.09

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/258615/ft1_filtered_4FGL_J1308.5+3547_daily_bin19.fits scfile=/scratch/kocevski/258615/ft2_4FGL_J1308.5+3547_daily_bin19.fits outfile=/scratch/kocevski/258615/cmap_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258615/ft1_filtered_4FGL_J1308.5+3547_daily_bin19.fits scfile=/scratch/kocevski/258615/ft2_4FGL_J1308.5+3547_daily_bin19.fits outfile=/scratch/kocevski/258615/cmap_HighResolution_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.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/258615/ft1_filtered_4FGL_J1308.5+3547_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/258615/ft2_4FGL_J1308.5+3547_daily_bin19.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258615/Model_4FGL_J1308.5+3547_daily_bin19.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/258615/ft1_filtered_4FGL_J1308.5+3547_daily_bin19.fits.....................!
real 37.88
user 36.54
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9405       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3947       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7891       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7972       1.0000         .10000E-03   10000.    
    13 'norm      '    11.289       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1337       1.0000         .10000E-03   10000.    
    15 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4998       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.085       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.096       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .62959       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2016       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=   4272.336     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2605 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8326        .71814E-08** at limit **
   2  Prefactor     1.9406        3.2574       -.28833E-06   -.51035E-03
   3  Prefactor     .10000E-03    7.5902        .13800E-06** at limit **
   4  Prefactor     34.904        25.263        .32635E-06    .85770E-05
   5  Prefactor     .10000E-03    53.689        .25664E-04** at limit **
   6  Prefactor     4.3951        5.2696       -.44291E-07   -.54837E-04
   7  norm          1.0253        3.6009       -.81696E-06   -.70045E-03
   8  Prefactor     .10000E-03    30.645        .13169E-05** at limit **
   9  Prefactor     .10000E-03    28.662       -.67813E-05** at limit **
  10  norm          5.7893        5.0118        .14547E-06   -.16578E-03
  11  Prefactor     .10000E-03    4.5964        .20848E-07** at limit **
  12  norm          4.7978        4.8615       -.12990E-06   -.55438E-04
  13  norm          11.289        11.276        .63270E-06    .57212E-03
  14  norm          2.1330        3.8053       -.12983E-06   -.35239E-03
  15  norm          .10000E-03    6.6891        .33062E-07** at limit **
  16  Prefactor     3.4999        3.3596        .38387E-07   -.34280E-04
  17  Prefactor     10.085        14.172       -.79126E-09   -.57636E-05
  18  Prefactor     .10000E-03    20.255       -.13755E-05** at limit **
  19  Prefactor     17.026        14.838       -.22014E-06   -.18884E-04
  20  Prefactor     .10000E-03    19.505        .34361E-05** at limit **
  21  Prefactor     .10000E-03    64.435       -.24415E-04** at limit **
  22  norm          .10000E-03    .45714       -.32739E-08** at limit **
  23  Prefactor     12.096        5.3778        .39392E-07   -.13666E-04
  24  norm          .10000E-03    11.732       -.35121E-06** at limit **
  25  Normalizat    .62955        .17885        .19746E-06    .40533E-04
  26  Prefactor     1.2016        .22880        .30503E-07    .32929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.94065
  Prefactor  = 0.0001
  Prefactor  = 34.9039
  Prefactor  = 0.0001
  Prefactor  = 4.39512
  norm       = 1.02528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.78926
  Prefactor  = 0.0001
  norm       = 4.79785
  norm       = 11.289
  norm       = 2.13305
  norm       = 0.0001
  Prefactor  = 3.49993
  Prefactor  = 10.0854
  Prefactor  = 0.0001
  Prefactor  = 17.0261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0961
  norm       = 0.0001
  Normalizat = 0.629547
  Prefactor  = 1.20162
 **********
 **   18 **HESSE 
 **********

 FCN=   4272.336     FROM HESSE     STATUS=OK           458 CALLS     3063 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8336        .86416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9406        3.2543        .14835E-03   -1.5429    
   3  Prefactor     .10000E-03    7.6469        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.904        25.260        .67832E-04   -1.4526    
   5  Prefactor     .10000E-03    52.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3951        5.2622        .15726E-03   -1.5289    
   7  norm          1.0253        3.5408        .22223E-03   -1.5505    
   8  Prefactor     .10000E-03    30.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7893        5.0066        .13125E-03   -1.5227    
  11  Prefactor     .10000E-03    4.5989        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7978        4.8517        .13911E-03   -1.5270    
  13  norm          11.289        11.370        .59618E-03   -1.5036    
  14  norm          2.1330        3.7134        .15326E-03   -1.5416    
  15  norm          .10000E-03    6.7097        .16370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4999        3.3410        .10647E-03   -1.5334    
  17  Prefactor     10.085        14.126        .12618E-03   -1.5073    
  18  Prefactor     .10000E-03    20.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.026        14.842        .97075E-04   -1.4882    
  20  Prefactor     .10000E-03    19.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    63.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .45807        .43154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.096        5.3781        .97439E-04   -1.5012    
  24  norm          .10000E-03    11.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .62955        .21130        .25400E-03   -1.0674    
  26  Prefactor     1.2016        .27150        .24546E-03   -.86281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17214e-09
Minuit parameter uncertainties:
  1  2.81874e-08
  2  3.25464
  3  1.86467e-06
  4  25.2676
  5  1.45254e-05
  6  5.26275
  7  3.54152
  8  7.79778e-06
  9  8.89386e-05
  10  5.00701
  11  8.60401e-07
  12  4.8521
  13  11.3719
  14  3.71382
  15  1.76628e-05
  16  3.34122
  17  14.1308
  18  1.21018e-06
  19  14.845
  20  4.34495e-06
  21  1.65588e-05
  22  1.43919e-08
  23  5.37828
  24  6.67872e-07
  25  0.211575
  26  0.271816
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  4.798e+00  4.852e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.202e+00  2.718e-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:  6.295e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 8.64e-06 +/- 8.73e-06

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

Saving results to:
/scratch/kocevski/258615/likelihoodResults_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.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) = 4272.13533326
delta logL = 0.200831856379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4272.12962394
delta logL = 0.206541179001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3316       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6331       1.0000          .0000       5.0000    
     3 'Normalizat'    .63727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1951       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=   4272.130     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 30.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3321        4.6751        .20967E-05   -.18686E-02
   2  alpha         1.6331        .62081       -.19449E-04   -.19900E-03
   3  Normalizat    .63726        .17483        .30462E-06    .70472E-04
   4  Prefactor     1.1951        .22789       -.40243E-06    .74172E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.33207
  alpha      = 1.63313
  Normalizat = 0.637265
  Prefactor  = 1.19509
 **********
 **   18 **HESSE 
 **********

 FCN=   4272.130     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3321        5.2268        .14217E-03   -1.5246    
   2  alpha         1.6331        .81182        .19876E-01   -.35410    
   3  Normalizat    .63726        .20714        .25256E-03   -1.0642    
   4  Prefactor     1.1951        .27026        .24598E-03   -.86483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77518e-09
Minuit parameter uncertainties:
  1  5.22723
  2  0.828976
  3  0.207389
  4  0.270579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258615': 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) = 4272.12962393
delta logL = 0.206541194899

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  5.332e+00  5.227e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.633e+00  8.290e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.195e+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:  6.373e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.63 +/- 0.83
Photon Flux (Free Index): 1.49e-08 +/- 1.72e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/258615/cmap_HighResolution_244252801_244512001_4FGL_J1308.5+3547_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='1.21e-05', photon_flux_error='2.11e-08', dlogl='2.07e-01', energy_flux='8.64e-06', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-09-07 00:03:13.086890', photon_index_error2='0.83', photon_index2='1.63', ts='1.81', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='7.62e-08', energy_flux_error2='1.36e-05', EG='0.63', time_epoch_completed='1630998193.09', return_code='0', job_id='258615', GAL2='1.20', EG2='0.64', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='1.72e-08', ts2='2.23', photon_index='2.18' WHERE bin_id='19' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:03:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 258615: <4FGL_J1308.5+3547_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin19 197.129 35.7918 244252801 244512001 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            766 sec.

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

