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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin429
RA = 197.129, Dec = 35.7918
tmin = 350524801, tmax = 350784001
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='263719', job_status='RUN', time_executed='2021-09-07 00:11:13.350381', time_epoch_executed='1630998673.35' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263719/ft1_4FGL_J1308.5+3547_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263719/ft2_4FGL_J1308.5+3547_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263719/ft1_4FGL_J1308.5+3547_daily_bin429.fits outfile=/scratch/kocevski/263719/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin429.fits ra=197.129 dec=35.7918 rad=12.0 tmin=350524801.0 tmax=350784001.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.41
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263719/ft1_filtered_4FGL_J1308.5+3547_daily_bin429.fits" evtable="EVENTS" scfile=/scratch/kocevski/263719/ft2_4FGL_J1308.5+3547_daily_bin429.fits sctable="SC_DATA" outfile=/scratch/kocevski/263719/ltcube_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.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/263719/ft2_4FGL_J1308.5+3547_daily_bin429.fits
.....................!
real 15.58
user 15.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263719/ft1_filtered_4FGL_J1308.5+3547_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/263719/ft2_4FGL_J1308.5+3547_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/263719/ltcube_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.fits outfile=/scratch/kocevski/263719/expmap_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.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/263719/ltcube_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.fits
.....................!
real 192.03
user 186.76
sys 3.98

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/263719/ft1_filtered_4FGL_J1308.5+3547_daily_bin429.fits scfile=/scratch/kocevski/263719/ft2_4FGL_J1308.5+3547_daily_bin429.fits outfile=/scratch/kocevski/263719/cmap_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.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/263719/ft1_filtered_4FGL_J1308.5+3547_daily_bin429.fits scfile=/scratch/kocevski/263719/ft2_4FGL_J1308.5+3547_daily_bin429.fits outfile=/scratch/kocevski/263719/cmap_HighResolution_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18578E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17000E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.587       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0500       1.0000         .10000E-03   10000.    
     7 'norm      '    .14924E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14223E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.269       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5829       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5717       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76577       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.231       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.7652       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3208       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0721       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71829       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=   5156.744     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3163 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    9.3960       -.18245E-05** at limit **
   2  Prefactor     .10160E-03    3.4504       -.17964E-05** at limit **
   3  Prefactor     14.680        11.151       -.46330E-07    .10890E-03
   4  Prefactor     12.584        26.857       -.14459E-06    .14919E-04
   5  Prefactor     .10000E-03    53.710       -.38192E-06** at limit **
   6  Prefactor     8.0470        7.1115        .65725E-07    .83201E-04
   7  norm          .10000E-03    2.4809       -.29456E-06** at limit **
   8  Prefactor     .10007E-03    158.10       -.11097E-04** at limit **
   9  Prefactor     .10000E-03    15.113        .85149E-06** at limit **
  10  norm          3.4840        3.1071        .30051E-07    .16946E-03
  11  Prefactor     .10000E-03    15.407       -.66254E-06** at limit **
  12  norm          .10000E-03    1.9489        .58999E-07** at limit **
  13  norm          11.280        19.114       -.15637E-06    .85745E-04
  14  norm          6.5803        5.7188        .46166E-06    .20154E-03
  15  norm          1.5736        9.6823       -.88445E-06   -.54293E-04
  16  Prefactor     .76741        1.6781       -.11926E-05   -.98636E-03
  17  Prefactor     .10000E-03    3.1687        .44066E-07** at limit **
  18  Prefactor     .10000E-03    26.412        .28983E-06** at limit **
  19  Prefactor     3.8762        9.9760       -.87056E-06   -.35217E-03
  20  Prefactor     17.230        19.526        .43209E-07   -.22709E-04
  21  Prefactor     .10000E-03    18.362       -.10235E-05** at limit **
  22  norm          9.7650        2.5355       -.10798E-07   -.28314E-04
  23  Prefactor     1.3213        3.6480       -.17109E-06   -.11109E-03
  24  norm          .10002E-03    91.273        .60431E-05** at limit **
  25  Normalizat    1.0723        .17177        .64978E-06    .31202E-03
  26  Prefactor     .71806        .21047       -.41664E-06    .14844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100048
  Prefactor  = 0.000101598
  Prefactor  = 14.6801
  Prefactor  = 12.5844
  Prefactor  = 0.0001
  Prefactor  = 8.047
  norm       = 0.000100001
  Prefactor  = 0.000100075
  Prefactor  = 0.000100001
  norm       = 3.48404
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.2802
  norm       = 6.58032
  norm       = 1.57364
  Prefactor  = 0.767407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8762
  Prefactor  = 17.2298
  Prefactor  = 0.000100001
  norm       = 9.76501
  Prefactor  = 1.32135
  norm       = 0.000100018
  Normalizat = 1.0723
  Prefactor  = 0.718064
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.744     FROM HESSE     STATUS=OK           478 CALLS     3641 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    19.983        .32720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10160E-03    2.9289        .30588E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.680        11.138        .10454E-03   -1.4941    
   4  Prefactor     12.584        26.785        .11291E-03   -1.4998    
   5  Prefactor     .10000E-03    53.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0470        7.0939        .14131E-03   -1.5141    
   7  norm          .10000E-03    26.364        .21301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    163.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4840        3.1110        .58098E-03   -1.5335    
  11  Prefactor     .10000E-03    15.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9560        .97892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.280        19.102        .11934E-03   -1.5036    
  14  norm          6.5803        5.7379        .99926E-04   -1.5195    
  15  norm          1.5736        9.6815        .28437E-03   -1.5457    
  16  Prefactor     .76741        1.7019        .15726E-02   -1.5533    
  17  Prefactor     .10000E-03    3.1722        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8762        10.136        .10254E-02   -1.5314    
  20  Prefactor     17.230        19.523        .96487E-04   -1.4878    
  21  Prefactor     .10000E-03    18.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.7650        2.5348        .56420E-04   -1.5083    
  23  Prefactor     1.3213        3.6307        .21654E-03   -1.5478    
  24  norm          .10002E-03    99.636        .53163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0723        .20137        .20773E-03   -.90646    
  26  Prefactor     .71806        .24563        .31108E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70165e-09
Minuit parameter uncertainties:
  1  0.00195901
  2  0.00432713
  3  11.1395
  4  26.8105
  5  0.000114688
  6  7.09463
  7  0.000325745
  8  0.00701265
  9  0.000186945
  10  3.11116
  11  0.000114803
  12  4.20093e-06
  13  19.1128
  14  5.73836
  15  7.80811
  16  1.70201
  17  3.50727e-06
  18  7.74574e-05
  19  10.1404
  20  19.53
  21  0.000233053
  22  2.53483
  23  3.63134
  24  0.00265551
  25  0.201518
  26  0.246005
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  4.201e-06  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:  7.181e-01  2.460e-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.072e+00  2.015e-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: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263719/likelihoodResults_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.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) = 5156.74647536
delta logL = -0.00240547914927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5156.57220191
delta logL = 0.171867976627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83994E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74305       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=   5156.572     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      332 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84002E-01    .15688        .36124E-04   -.42266E-03
   2  alpha         5.0000        4.1578        .10874    ** at limit **
   3  Normalizat    1.0407        .20187        .21041E-03   -.34850E-04
   4  Prefactor     .74307        .24797        .30627E-03   -.14180E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0840019
  alpha      = 5
  Normalizat = 1.04067
  Prefactor  = 0.743073
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.572     FROM HESSE     STATUS=OK            23 CALLS      355 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84002E-01    .15396        .14450E-05   -1.5650    
   2  alpha         5.0000        4.1625        .43498E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0407        .20207        .84164E-05   -.91680    
   4  Prefactor     .74307        .24824        .12251E-04   -1.0186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54501e-12
Minuit parameter uncertainties:
  1  0.153964
  2  1.0965e-05
  3  0.202219
  4  0.248614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263719': 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) = 5156.5722019
delta logL = 0.171867980935

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  8.400e-02  1.540e-01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  5.000e+00  1.097e-05  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:  7.431e-01  2.486e-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.041e+00  2.022e-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/263719/cmap_HighResolution_350524801_350784001_4FGL_J1308.5+3547_daily_bin429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-07 00:22:58.313725', job_id='263719', GAL2='0.74', fit_tolerance='1e-08', EG2='1.04', EG='1.07', time_epoch_completed='1630999378.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.72e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='429' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:22:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 263719: <4FGL_J1308.5+3547_daily_bin429> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin429> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:10:29 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:11:02 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:02 2021
Terminated at Tue Sep  7 00:22:59 2021
Results reported at Tue Sep  7 00:22:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin429 197.129 35.7918 350524801 350784001 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 :                                   699.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            750 sec.

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

