/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 169 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 = 7492
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1096
RA = 197.129, Dec = 35.7918
tmin = 523411201, tmax = 523670401
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='272216', job_status='RUN', time_executed='2021-09-07 00:38:20.094944', time_epoch_executed='1631000300.09' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272216

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272216/ft1_4FGL_J1308.5+3547_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272216/ft2_4FGL_J1308.5+3547_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272216/ft1_4FGL_J1308.5+3547_daily_bin1096.fits outfile=/scratch/kocevski/272216/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1096.fits ra=197.129 dec=35.7918 rad=12.0 tmin=523411201.0 tmax=523670401.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.68
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272216/ft1_filtered_4FGL_J1308.5+3547_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/272216/ft2_4FGL_J1308.5+3547_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/272216/ltcube_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.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/272216/ft2_4FGL_J1308.5+3547_daily_bin1096.fits
.....................!
real 13.92
user 13.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272216/ft1_filtered_4FGL_J1308.5+3547_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/272216/ft2_4FGL_J1308.5+3547_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/272216/ltcube_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.fits outfile=/scratch/kocevski/272216/expmap_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.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/272216/ltcube_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.fits
.....................!
real 191.96
user 186.40
sys 4.23

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/272216/ft1_filtered_4FGL_J1308.5+3547_daily_bin1096.fits scfile=/scratch/kocevski/272216/ft2_4FGL_J1308.5+3547_daily_bin1096.fits outfile=/scratch/kocevski/272216/cmap_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272216/ft1_filtered_4FGL_J1308.5+3547_daily_bin1096.fits scfile=/scratch/kocevski/272216/ft2_4FGL_J1308.5+3547_daily_bin1096.fits outfile=/scratch/kocevski/272216/cmap_HighResolution_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4904       1.0000         .10000E-03   10000.    
     7 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26163E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0088       1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    102.93       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22692E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5109       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .34992       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=   5320.390     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3045 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7204        5.1797        .67841E-07    .18535E-03
   2  Prefactor     3.4340        2.4992        .36139E-07   -.44432E-05
   3  Prefactor     .10000E-03    3.9246       -.19666E-06** at limit **
   4  Prefactor     .10000E-03    8.7881       -.13411E-05** at limit **
   5  Prefactor     .10000E-03    19.488        .51687E-05** at limit **
   6  Prefactor     1.4868        .97631        .75147E-07   -.16106E-02
   7  norm          .10000E-03    2.8339       -.41592E-08** at limit **
   8  Prefactor     55.516        44.136        .45971E-05    .18184E-05
   9  Prefactor     .10000E-03    64.447        .16808E-05** at limit **
  10  norm          3.2527        3.7286        .19629E-05    .76359E-05
  11  Prefactor     7.0038        10.070        .39641E-06   -.89822E-05
  12  norm          .10000E-03    1.6116        .20528E-07** at limit **
  13  norm          .10000E-03    4.2473        .16519E-06** at limit **
  14  norm          .10000E-03    .98347        .13962E-08** at limit **
  15  norm          .10000E-03    1.4218        .27047E-07** at limit **
  16  Prefactor     .10000E-03    1.8767        .13972E-07** at limit **
  17  Prefactor     .10000E-03    17.637       -.20380E-05** at limit **
  18  Prefactor     .10000E-03    49.532       -.17435E-05** at limit **
  19  Prefactor     .10000E-03    10.337        .43849E-05** at limit **
  20  Prefactor     .10000E-03    8.7244       -.15419E-05** at limit **
  21  Prefactor     102.93        73.235        .64583E-05    .10535E-04
  22  norm          4.5870        1.8353        .66305E-08   -.88811E-05
  23  Prefactor     .10000E-03    2.2874        .31577E-06** at limit **
  24  norm          .10000E-03    14.534       -.43773E-05** at limit **
  25  Normalizat    1.5108        .20166       -.11688E-05    .18578E-07
  26  Prefactor     .34996        .23271        .15162E-06   -.58447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72036
  Prefactor  = 3.434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48676
  norm       = 0.0001
  Prefactor  = 55.5156
  Prefactor  = 0.0001
  norm       = 3.25272
  Prefactor  = 7.0038
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.934
  norm       = 4.58703
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.51077
  Prefactor  = 0.349957
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.390     FROM HESSE     STATUS=OK           450 CALLS     3495 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7204        5.1939        .77083E-03   -1.5230    
   2  Prefactor     3.4340        2.4993        .95878E-04   -1.5337    
   3  Prefactor     .10000E-03    3.9345        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4868        4.5006        .12957E-02   -1.5464    
   7  norm          .10000E-03    2.9014        .11985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.516        44.125        .26920E-03   -1.4216    
   9  Prefactor     .10000E-03    66.764        .42893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2527        3.7236        .14648E-03   -1.5347    
  11  Prefactor     7.0038        10.201        .15153E-03   -1.5179    
  12  norm          .10000E-03    1.6158        .90412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2486        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .98821        .70626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4224        .84939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9257        .19498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    49.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     102.93        73.566        .39632E-04   -1.3675    
  22  norm          4.5870        1.8361        .60556E-04   -1.5280    
  23  Prefactor     .10000E-03    7.6565        .21264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    14.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5108        .20504        .18788E-03   -.77476    
  26  Prefactor     .34996        .23485        .43082E-03   -1.1944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51452e-09
Minuit parameter uncertainties:
  1  5.19431
  2  2.49938
  3  1.8576e-06
  4  2.47706e-06
  5  1.35733e-05
  6  4.50159
  7  4.21027e-06
  8  44.1513
  9  0.00012941
  10  3.72385
  11  10.203
  12  3.43599e-07
  13  1.98349e-06
  14  9.09686e-07
  15  4.77659e-07
  16  2.95515e-06
  17  3.01441e-05
  18  3.50617e-06
  19  3.26335e-06
  20  4.58549e-07
  21  73.6317
  22  1.83615
  23  9.35935e-05
  24  1.37393e-05
  25  0.205153
  26  0.235494
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  3.436e-07  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:  3.500e-01  2.355e-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.511e+00  2.052e-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: 3.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272216/likelihoodResults_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.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) = 5320.39251725
delta logL = -0.00274849260495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5320.38976876
delta logL = -8.81027517607e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1829       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34993       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5320.390     FROM MIGRAD    STATUS=FAILED        81 CALLS      222 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    1.9713        .90415E-03** at limit **
   2  alpha         2.2129        2.8723        .16631       -.15208E-05
   3  Normalizat    1.5108        .19867        .18789E-03    .56273E-05
   4  Prefactor     .34996        .23326        .43081E-03    .34042E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5320.390     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      339 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    1.9713        .16317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2129        2.8723        .68440E-03   -.11511    
   3  Normalizat    1.5108        .19867        .66700E-04   -.77476    
   4  Prefactor     .34996        .23326        .19804E-03   -1.1944    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5320.390     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      366 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6186        .18083E-03** at limit **
   2  alpha         2.2477        2.9905        .33262E-01    .44364E-07
   3  Normalizat    1.5108        .19870        .75154E-05   -.10892E-04
   4  Prefactor     .34996        .23330        .17233E-04   -.43542E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.24766
  Normalizat = 1.51077
  Prefactor  = 0.349959
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.390     FROM HESSE     STATUS=OK            23 CALLS      389 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6179        .36166E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2477        3.0288        .66524E-02   -.10111    
   3  Normalizat    1.5108        .19894        .15031E-05   -.77476    
   4  Prefactor     .34996        .23362        .34465E-05   -1.1944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24375e-11
Minuit parameter uncertainties:
  1  1.60548e-05
  2  235.536
  3  0.199038
  4  0.234252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272216': 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) = 5320.38976872
delta logL = 3.78022377845e-08

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.605e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.248e+00  2.355e+02  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:  3.500e-01  2.343e-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.511e+00  1.990e-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/272216/cmap_HighResolution_523411201_523670401_4FGL_J1308.5+3547_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-05', job_status='DONE', photon_flux_upper_limit='3.64e-08', time_completed='2021-09-07 00:50:10.790835', job_id='272216', GAL2='0.35', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1631001010.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.35', dlogl='3.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1096' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 272216: <4FGL_J1308.5+3547_daily_bin1096> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1096> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:18 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:23 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:35:23 2021
Terminated at Tue Sep  7 00:50:11 2021
Results reported at Tue Sep  7 00:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1096 197.129 35.7918 523411201 523670401 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            893 sec.

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

