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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin928
RA = 243.421, Dec = 34.1982
tmin = 479865601, tmax = 480124801
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='189892', job_status='RUN', time_executed='2021-09-13 17:45:46.834711', time_epoch_executed='1631580346.83' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189892/ft1_4FGL_J1613.6+3411_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189892/ft1_4FGL_J1613.6+3411_daily_bin928.fits outfile=/scratch/kocevski/189892/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin928.fits ra=243.421 dec=34.1982 rad=12.0 tmin=479865601.0 tmax=480124801.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.49
user 3.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.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/189892/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin928.fits evtable="EVENTS" outfile="/scratch/kocevski/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/189892/ltcube_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.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/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits
.....................!
real 14.02
user 13.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/189892/ltcube_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.fits outfile=/scratch/kocevski/189892/expmap_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.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/189892/ltcube_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.fits
.....................!
real 192.89
user 186.26
sys 5.33

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1613.6+3411 @ 243.421 34.1982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits scfile=/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits outfile=/scratch/kocevski/189892/cmap_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.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=243.421 yref=34.1982 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits scfile=/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits outfile=/scratch/kocevski/189892/cmap_HighResolution_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.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=243.421 yref=34.1982 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/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189892/Model_4FGL_J1613.6+3411_daily_bin928.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/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits.....................!
real 58.89
user 57.17
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits', '/scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits', expMap='/scratch/kocevski/189892/expmap_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.fits', expCube='/scratch/kocevski/189892/ltcube_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189892/Model_4FGL_J1613.6+3411_daily_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1613.6+3411'

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.261e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/189892/ft1_filtered_4FGL_J1613.6+3411_daily_bin928.fits
Spacecraft file(s): /scratch/kocevski/189892/ft2_4FGL_J1613.6+3411_daily_bin928.fits
Exposure map: /scratch/kocevski/189892/expmap_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.fits
Exposure cube: /scratch/kocevski/189892/ltcube_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189892/Model_4FGL_J1613.6+3411_daily_bin928.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) = 7700.95624158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .98998       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59308E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42707E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .33014       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6820       1.0000         .10000E-03   10000.    
    15 'norm      '    69.915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49222       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17620       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8875       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0268       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   7700.942     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     3181 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.308        .18142E-02** at limit **
   2  norm          .98958        .80592        .69909E-04    .11514E-03
   3  Prefactor     .10000E-03    5.7782        .36285E-03** at limit **
   4  Prefactor     24.320        31.413        .81203E-04    .48161E-04
   5  Prefactor     .10000E-03    7.4125        .18142E-02** at limit **
   6  norm          .10000E-03    5.9672        .18142E-02** at limit **
   7  Prefactor     .30828        5.0837        .18528E-02    .53377E-03
   8  Prefactor     .10000E-03    127.57        .66262E-02** at limit **
   9  Prefactor     .10000E-03    7.8583        .18142E-02** at limit **
  10  Prefactor     .10000E-03    1.3415        .98142E-03** at limit **
  11  Prefactor     .10000E-03    5.0226        .32072E-01** at limit **
  12  norm          .33024        .16910        .20743E-04   -.40558E-04
  13  norm          4.9586        9.8699        .18060E-03   -.37769E-04
  14  Prefactor     4.6716        17.511        .18598E-03    .44012E-05
  15  norm          69.936        48.359        .48007E-04   -.35995E-05
  16  Prefactor     .49040        3.3334        .12973E-03   -.18972E-03
  17  Prefactor     1.0813        2.0949        .80220E-04   -.36748E-03
  18  Prefactor     .10000E-03    7.8388        .18142E-02** at limit **
  19  Prefactor     .17452        5.5674        .18294E-02    .15082E-03
  20  norm          5.8884        1.9805        .68794E-04   -.20290E-03
  21  Normalizat    1.0269        .21003        .26565E-03   -.53538E-04
  22  Prefactor     .96306        .15849        .21487E-03    .14815E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.989585
  Prefactor  = 0.0001
  Prefactor  = 24.3205
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.308278
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.330239
  norm       = 4.95864
  Prefactor  = 4.67159
  norm       = 69.9363
  Prefactor  = 0.490402
  Prefactor  = 1.08132
  Prefactor  = 0.0001
  Prefactor  = 0.17452
  norm       = 5.88844
  Normalizat = 1.02689
  Prefactor  = 0.963057
 **********
 **   18 **HESSE 
 **********

 FCN=   7700.942     FROM HESSE     STATUS=OK           334 CALLS     3515 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .98958        .80590        .27964E-05   -1.5509    
   3  Prefactor     .10000E-03    5.7785        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.320        31.392        .32481E-05   -1.4721    
   5  Prefactor     .10000E-03    7.4134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.9685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .30828        5.0569        .74111E-04   -1.5597    
   8  Prefactor     .10000E-03    131.82        .26505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3419        .19628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1029        .42986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33024        .16888        .82972E-06   -1.5593    
  13  norm          4.9586        9.8695        .72242E-05   -1.5263    
  14  Prefactor     4.6716        17.500        .74393E-05   -1.5276    
  15  norm          69.936        48.207        .96015E-05   -1.4033    
  16  Prefactor     .49040        3.2686        .51893E-05   -1.5568    
  17  Prefactor     1.0813        2.0765        .32088E-05   -1.5500    
  18  Prefactor     .10000E-03    7.8409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17452        5.5425        .73176E-04   -1.5624    
  20  norm          5.8884        1.9800        .13759E-04   -1.5223    
  21  Normalizat    1.0269        .20989        .10626E-04   -.92135    
  22  Prefactor     .96306        .15862        .85948E-05   -.93971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89273e-10
Minuit parameter uncertainties:
  1  0.000125958
  2  0.805911
  3  1.85996e-05
  4  31.4134
  5  5.01586e-06
  6  5.4041e-06
  7  2.49699
  8  0.000518245
  9  4.10447e-06
  10  4.85434e-07
  11  2.62427e-05
  12  0.168879
  13  9.87278
  14  17.5195
  15  48.2338
  16  2.53208
  17  2.07666
  18  4.80847e-06
  19  1.96665
  20  1.98002
  21  0.210058
  22  0.158701
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  4.854e-07  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.631e-01  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.027e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189892/likelihoodResults_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.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) = 7700.94576744
delta logL = -0.00355147042592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7700.94221597
delta logL = -8.16908141132e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4406       1.0000          .0000       10.000    
     3 'Normalizat'    1.0269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   7700.942     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    50.097        .98160E-03** at limit **
   2  Index         2.4638        8.7536        .50000       -.17101E-04
   3  Normalizat    1.0269        .26609E-01    .26565E-03    .17204E-04
   4  Prefactor     .96306        .21018E-01    .21487E-03    .55026E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100109
  Index      = 2.46379
  Normalizat = 1.02689
  Prefactor  = 0.963056
 **********
 **   18 **HESSE 
 **********

 FCN=   7700.942     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    202.75        .19632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4638        8.2110        .50000       -.53198    
   3  Normalizat    1.0269        .66882E-01    .10626E-04   -.92135    
   4  Prefactor     .96306        .52720E-01    .85948E-05   -.93971    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.58557e-08
Minuit parameter uncertainties:
  1  0.00942179
  2  854.386
  3  0.0668872
  4  0.0527225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189892': 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) = 7700.94221589
delta logL = 7.55826476961e-08

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.001e-04  9.422e-03  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.464e+00  8.544e+02  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.631e-01  5.272e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.027e+00  6.689e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 243.421 34.198

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/189892/cmap_HighResolution_479865601_480124801_4FGL_J1613.6+3411_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-13 17:59:53.753964', job_id='189892', GAL2='0.96', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631581193.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='928' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:59:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 189892: <4FGL_J1613.6+3411_daily_bin928> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin928> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 13 17:45:17 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 17:45:34 2021
Terminated at Mon Sep 13 17:59:54 2021
Results reported at Mon Sep 13 17:59:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin928 243.421 34.1982 479865601 480124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1613.6+3411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            877 sec.

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

