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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1200
RA = 197.129, Dec = 35.7918
tmin = 550368001, tmax = 550627201
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='272369', job_status='RUN', time_executed='2021-09-07 00:39:07.574002', time_epoch_executed='1631000347.57' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272369

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272369/ft1_4FGL_J1308.5+3547_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272369/ft2_4FGL_J1308.5+3547_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272369/ft1_4FGL_J1308.5+3547_daily_bin1200.fits outfile=/scratch/kocevski/272369/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1200.fits ra=197.129 dec=35.7918 rad=12.0 tmin=550368001.0 tmax=550627201.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.05
user 3.82
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272369/ft1_filtered_4FGL_J1308.5+3547_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/272369/ft2_4FGL_J1308.5+3547_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/272369/ltcube_550368001_550627201_4FGL_J1308.5+3547_daily_bin1200.fits outfile=/scratch/kocevski/272369/expmap_550368001_550627201_4FGL_J1308.5+3547_daily_bin1200.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/272369/ltcube_550368001_550627201_4FGL_J1308.5+3547_daily_bin1200.fits
.....................!
real 192.38
user 186.49
sys 5.48

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/272369/ft1_filtered_4FGL_J1308.5+3547_daily_bin1200.fits scfile=/scratch/kocevski/272369/ft2_4FGL_J1308.5+3547_daily_bin1200.fits outfile=/scratch/kocevski/272369/cmap_550368001_550627201_4FGL_J1308.5+3547_daily_bin1200.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272369/ft1_filtered_4FGL_J1308.5+3547_daily_bin1200.fits scfile=/scratch/kocevski/272369/ft2_4FGL_J1308.5+3547_daily_bin1200.fits outfile=/scratch/kocevski/272369/cmap_HighResolution_550368001_550627201_4FGL_J1308.5+3547_daily_bin1200.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2098.46548181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0733       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    82.609       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.857       1.0000         .10000E-03   10000.    
    10 'norm      '    .96830E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1651       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42495E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    292.05       1.0000         .10000E-03   10000.    
    22 'norm      '    41.386       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76410       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98059       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=   2098.465     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3130 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6332        .99171E-07** at limit **
   2  Prefactor     3.0764        3.2625        .13418E-06    .99078E-04
   3  Prefactor     .10000E-03    7.1980        .44228E-06** at limit **
   4  Prefactor     .10000E-03    14.947        .15277E-06** at limit **
   5  Prefactor     82.946        162.36        .12549E-05    .23322E-05
   6  Prefactor     .10000E-03    10.013        .64876E-06** at limit **
   7  norm          18.684        15.337        .16402E-06    .71512E-04
   8  Prefactor     .10000E-03    136.80        .36099E-06** at limit **
   9  Prefactor     13.978        102.55        .44147E-06    .75230E-05
  10  norm          .14666        61.999        .10969E-04   -.25497E-04
  11  Prefactor     .10001E-03    56.042        .22717E-05** at limit **
  12  norm          .10000E-03    5.2931        .12714E-06** at limit **
  13  norm          .10000E-03    26.269        .19938E-06** at limit **
  14  norm          .10000E-03    5.9222       -.51491E-06** at limit **
  15  norm          4.1649        7.0002       -.39871E-06   -.99957E-04
  16  Prefactor     .10000E-03    19.956       -.90135E-05** at limit **
  17  Prefactor     30.622        33.383       -.49978E-06    .31860E-04
  18  Prefactor     .10000E-03    74.276        .38881E-06** at limit **
  19  Prefactor     .10000E-03    9.3443       -.10272E-06** at limit **
  20  Prefactor     .10000E-03    18.656       -.40961E-07** at limit **
  21  Prefactor     293.33        365.87       -.11872E-06   -.12574E-04
  22  norm          41.382        29.327        .17433E-06    .14529E-04
  23  Prefactor     10.793        11.239        .54917E-06    .71566E-04
  24  norm          .10000E-03    44.665        .15349E-05** at limit **
  25  Normalizat    .76131        .39131       -.63267E-05   -.24769E-04
  26  Prefactor     .98146        .40760        .22280E-05   -.49497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.07644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.9459
  Prefactor  = 0.000100001
  norm       = 18.6839
  Prefactor  = 0.0001
  Prefactor  = 13.9782
  norm       = 0.146663
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.16487
  Prefactor  = 0.0001
  Prefactor  = 30.6218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 293.326
  norm       = 41.3818
  Prefactor  = 10.7933
  norm       = 0.000100005
  Normalizat = 0.76131
  Prefactor  = 0.981458
 **********
 **   18 **HESSE 
 **********

 FCN=   2098.465     FROM HESSE     STATUS=OK           454 CALLS     3584 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6415        .96349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0764        3.2562        .82294E-04   -1.5357    
   3  Prefactor     .10000E-03    7.2498        .12025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.952        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     82.946        162.31        .22097E-03   -1.3884    
   6  Prefactor     .10000E-03    10.174        .14191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.684        15.281        .92679E-04   -1.4843    
   8  Prefactor     .10000E-03    136.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.978        100.94        .10760E-03   -1.4960    
  10  norm          .14666        63.855        .17489E-02   -1.5631    
  11  Prefactor     .10001E-03    56.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.3040        .10295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    26.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.0037        .10875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1649        6.9627        .14908E-03   -1.5300    
  16  Prefactor     .10000E-03    19.922        .22323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.622        33.336        .72663E-04   -1.4601    
  18  Prefactor     .10000E-03    74.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3583        .13683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     293.33        366.11        .11878E-03   -1.2266    
  22  norm          41.382        29.330        .62311E-04   -1.4421    
  23  Prefactor     10.793        11.263        .12214E-03   -1.5051    
  24  norm          .10000E-03    44.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76131        .39387        .27314E-03   -1.0152    
  26  Prefactor     .98146        .40719        .27989E-03   -.93350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10344e-09
Minuit parameter uncertainties:
  1  3.54859e-06
  2  3.25639
  3  5.93911e-05
  4  4.41006e-05
  5  163.188
  6  0.000159401
  7  15.2845
  8  0.000223725
  9  75.3035
  10  6.12499
  11  0.00163624
  12  4.08872e-05
  13  8.39313e-05
  14  9.45718e-05
  15  6.96409
  16  0.000167317
  17  33.3559
  18  0.000384058
  19  4.50675e-05
  20  0.000117444
  21  369.047
  22  29.34
  23  11.265
  24  0.000937525
  25  0.395347
  26  0.408471
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  4.089e-05  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:  9.815e-01  4.085e-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:  7.613e-01  3.953e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272369/likelihoodResults_550368001_550627201_4FGL_J1308.5+3547_daily_bin1200.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) = 2098.46607677
delta logL = -0.000878129056673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2098.4651986
delta logL = 4.61518538941e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1955       1.0000          .0000       5.0000    
     3 'Normalizat'    .76135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98142       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2098.465     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6942        .90712E-02** at limit **
   2  alpha         2.2095        3.4940        .41544       -.13119E-04
   3  Normalizat    .76131        .28974        .61766E-01    .46188E-05
   4  Prefactor     .98146        .33507        .46034E-01    .18235E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.20952
  Normalizat = 0.761309
  Prefactor  = 0.98146
 **********
 **   18 **HESSE 
 **********

 FCN=   2098.465     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3814        .10374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2095        3.4783        .50000       -.11645    
   3  Normalizat    .76131        .33835        .27322E-03   -1.0152    
   4  Prefactor     .98146        .39169        .27986E-03   -.93350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98152e-10
Minuit parameter uncertainties:
  1  4.46913e-05
  2  2.48452
  3  0.33929
  4  0.39283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272369': 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) = 2098.4651985
delta logL = 1.44831119542e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.815e-01  3.928e-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:  7.613e-01  3.393e-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/272369/cmap_HighResolution_550368001_550627201_4FGL_J1308.5+3547_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-07 00:47:12.984501', job_id='272369', GAL2='0.98', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631000832.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1200' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 272369: <4FGL_J1308.5+3547_daily_bin1200> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1200> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:29 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:35:44 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:44 2021
Terminated at Tue Sep  7 00:47:13 2021
Results reported at Tue Sep  7 00:47:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1200 197.129 35.7918 550368001 550627201 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 :                                   468.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            704 sec.

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

