/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 77 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 = 7431
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1182
RA = 197.129, Dec = 35.7918
tmin = 545702401, tmax = 545961601
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='272342', job_status='RUN', time_executed='2021-09-07 00:37:16.983355', time_epoch_executed='1631000236.98' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272342/ft1_4FGL_J1308.5+3547_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272342/ft2_4FGL_J1308.5+3547_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272342/ft1_4FGL_J1308.5+3547_daily_bin1182.fits outfile=/scratch/kocevski/272342/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1182.fits ra=197.129 dec=35.7918 rad=12.0 tmin=545702401.0 tmax=545961601.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 4.06
user 3.78
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272342/ft1_filtered_4FGL_J1308.5+3547_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/272342/ft2_4FGL_J1308.5+3547_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/272342/ltcube_545702401_545961601_4FGL_J1308.5+3547_daily_bin1182.fits outfile=/scratch/kocevski/272342/expmap_545702401_545961601_4FGL_J1308.5+3547_daily_bin1182.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/272342/ltcube_545702401_545961601_4FGL_J1308.5+3547_daily_bin1182.fits
.....................!
real 190.74
user 185.69
sys 4.47

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/272342/ft1_filtered_4FGL_J1308.5+3547_daily_bin1182.fits scfile=/scratch/kocevski/272342/ft2_4FGL_J1308.5+3547_daily_bin1182.fits outfile=/scratch/kocevski/272342/cmap_545702401_545961601_4FGL_J1308.5+3547_daily_bin1182.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272342/ft1_filtered_4FGL_J1308.5+3547_daily_bin1182.fits scfile=/scratch/kocevski/272342/ft2_4FGL_J1308.5+3547_daily_bin1182.fits outfile=/scratch/kocevski/272342/cmap_HighResolution_545702401_545961601_4FGL_J1308.5+3547_daily_bin1182.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1750       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4897       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.474       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.3911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    119.28       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.531       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6216       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11661E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13194E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.3628       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7959       1.0000         .10000E-03   10000.    
    24 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0316       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63966       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=   2257.188     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3666 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1721        12.860        .77786E-05   -.52588E-04
   2  Prefactor     4.4898        3.1853       -.13389E-06   -.50407E-04
   3  Prefactor     .10000E-03    3.8276        .65317E-08** at limit **
   4  Prefactor     .10000E-03    17.660       -.23964E-06** at limit **
   5  Prefactor     19.477        67.749        .29576E-05   -.29430E-05
   6  Prefactor     .10000E-03    6.0178        .73354E-07** at limit **
   7  norm          9.3899        8.8968       -.40211E-06   -.93525E-04
   8  Prefactor     119.22        280.19       -.56904E-04   -.30923E-04
   9  Prefactor     .10000E-03    66.603        .37418E-05** at limit **
  10  norm          .10000E-03    4.1589       -.60140E-07** at limit **
  11  Prefactor     54.532        46.699        .95382E-06   -.86811E-05
  12  norm          .10000E-03    5.8310       -.10520E-06** at limit **
  13  norm          .10007E-03    268.60        .35844E-04** at limit **
  14  norm          2.6217        6.4282        .52660E-06   -.21562E-03
  15  norm          .10000E-03    4.1973       -.60514E-07** at limit **
  16  Prefactor     .10000E-03    3.7783        .48927E-08** at limit **
  17  Prefactor     .10000E-03    11.426       -.38899E-06** at limit **
  18  Prefactor     .10000E-03    110.10       -.31659E-04** at limit **
  19  Prefactor     .10000E-03    8.7535        .10807E-06** at limit **
  20  Prefactor     .10000E-03    14.671        .89019E-06** at limit **
  21  Prefactor     .10000E-03    213.12        .13252E-03** at limit **
  22  norm          8.3618        12.207        .55472E-05    .35843E-03
  23  Prefactor     2.7962        4.6547        .12703E-06   -.65464E-04
  24  norm          .10002E-03    401.01       -.27008E-03** at limit **
  25  Normalizat    1.0317        .28282        .40319E-06    .20834E-03
  26  Prefactor     .63955        .31244       -.10766E-05    .11966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17209
  Prefactor  = 4.48975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4769
  Prefactor  = 0.0001
  norm       = 9.38989
  Prefactor  = 119.215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.5321
  norm       = 0.0001
  norm       = 0.000100068
  norm       = 2.6217
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.36179
  Prefactor  = 2.79615
  norm       = 0.000100017
  Normalizat = 1.03171
  Prefactor  = 0.639551
 **********
 **   18 **HESSE 
 **********

 FCN=   2257.188     FROM HESSE     STATUS=OK           448 CALLS     4114 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1721        12.827        .14975E-03   -1.5172    
   2  Prefactor     4.4898        3.1835        .69357E-04   -1.5284    
   3  Prefactor     .10000E-03    3.8314        .90781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.477        67.702        .90762E-04   -1.4825    
   6  Prefactor     .10000E-03    6.0201        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.3899        8.8463        .12338E-03   -1.5095    
   8  Prefactor     119.22        280.42        .18423E-03   -1.3520    
   9  Prefactor     .10000E-03    66.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.4412        .18579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.532        46.692        .54318E-04   -1.4230    
  12  norm          .10000E-03    5.8433        .11197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10007E-03    271.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6217        6.3590        .16815E-03   -1.5384    
  15  norm          .10000E-03    4.1983        .94954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8148        .90061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.444        .15684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    110.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.7660        .13729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.706        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    213.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.3618        12.229        .13863E-03   -1.5130    
  23  Prefactor     2.7962        4.6365        .12749E-03   -1.5374    
  24  norm          .10002E-03    402.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0317        .33767        .22306E-03   -.91975    
  26  Prefactor     .63955        .37164        .31486E-03   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96558e-10
Minuit parameter uncertainties:
  1  12.8317
  2  3.18362
  3  1.66918e-06
  4  3.67586e-06
  5  67.9708
  6  4.31502e-08
  7  8.84749
  8  283.635
  9  3.6792e-05
  10  2.2946e-05
  11  46.723
  12  8.8471e-07
  13  0.00859846
  14  6.36065
  15  4.39845e-06
  16  1.68686e-06
  17  8.57538e-07
  18  4.90946e-05
  19  1.96709e-07
  20  1.5263e-07
  21  0.000337641
  22  12.2322
  23  4.63706
  24  0.00532477
  25  0.338369
  26  0.373083
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  8.847e-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:  6.396e-01  3.731e-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.032e+00  3.384e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272342/likelihoodResults_545702401_545961601_4FGL_J1308.5+3547_daily_bin1182.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) = 2257.18922236
delta logL = -0.000809214503988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2257.18841344
delta logL = -2.9651209843e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1968       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63927       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=   2257.188     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      260 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .48948        .31235E-01** at limit **
   2  alpha         4.4510        3.8909        .16616       -.61577E-08
   3  Normalizat    1.0317        .52678E-02    .22306E-03   -.12132E-03
   4  Prefactor     .63957        .59994E-02    .31486E-03    .13412E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.45096
  Normalizat = 1.03169
  Prefactor  = 0.639571
 **********
 **   18 **HESSE 
 **********

 FCN=   2257.188     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7593        .13126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.4510        4.7188        .66465E-02    .89528    
   3  Normalizat    1.0317        .11988E-01    .44612E-04   -.91976    
   4  Prefactor     .63957        .13645E-01    .12594E-04   -1.0594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.61763e-12
Minuit parameter uncertainties:
  1  3.85221e-05
  2  485.305
  3  0.0119881
  4  0.013645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272342': 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): 102
logL (Free Index) = 2257.18840547
delta logL = 7.67533356338e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  3.852e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  4.451e+00  4.853e+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:  6.396e-01  1.365e-02  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.032e+00  1.199e-02  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/272342/cmap_HighResolution_545702401_545961601_4FGL_J1308.5+3547_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-05', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-07 00:45:33.445573', job_id='272342', GAL2='0.64', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631000733.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='7.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1182' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 272342: <4FGL_J1308.5+3547_daily_bin1182> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1182> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:27 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:43 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:43 2021
Terminated at Tue Sep  7 00:45:34 2021
Results reported at Tue Sep  7 00:45:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1182 197.129 35.7918 545702401 545961601 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 :                                   487.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            607 sec.

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

