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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1611
RA = 243.421, Dec = 34.1982
tmin = 656899201, tmax = 657158401
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='389537', job_status='RUN', time_executed='2021-12-08 02:34:10.318105', time_epoch_executed='1638959650.32' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389537/ft1_4FGL_J1613.6+3411_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389537/ft1_4FGL_J1613.6+3411_daily_bin1611.fits outfile=/scratch/kocevski/389537/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1611.fits ra=243.421 dec=34.1982 rad=12.0 tmin=656899201.0 tmax=657158401.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.59
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.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/389537/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1611.fits evtable="EVENTS" outfile="/scratch/kocevski/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.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/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/389537/ltcube_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.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/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits
.....................!
real 14.98
user 14.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/389537/ltcube_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.fits outfile=/scratch/kocevski/389537/expmap_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.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/389537/ltcube_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.fits
.....................!
real 191.46
user 186.12
sys 4.97

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/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits scfile=/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits outfile=/scratch/kocevski/389537/cmap_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits scfile=/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits outfile=/scratch/kocevski/389537/cmap_HighResolution_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/389537/Model_4FGL_J1613.6+3411_daily_bin1611.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/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits....................!
real 56.81
user 55.47
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits', '/scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits', expMap='/scratch/kocevski/389537/expmap_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.fits', expCube='/scratch/kocevski/389537/ltcube_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/389537/Model_4FGL_J1613.6+3411_daily_bin1611.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/389537/ft1_filtered_4FGL_J1613.6+3411_daily_bin1611.fits
Spacecraft file(s): /scratch/kocevski/389537/ft2_4FGL_J1613.6+3411_daily_bin1611.fits
Exposure map: /scratch/kocevski/389537/expmap_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.fits
Exposure cube: /scratch/kocevski/389537/ltcube_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/389537/Model_4FGL_J1613.6+3411_daily_bin1611.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) = 7087.12214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.371       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0261       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99177E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .36012       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.723       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17297E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4467       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7472       1.0000         .10000E-03   10000.    
    20 'norm      '    3.9401       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89188       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7087.107     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2007 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.355        3.2683       -.12168E-05    .65629E-02
   2  norm          1.0249        .97833        .93732E-07    .98608E-04
   3  Prefactor     .10000E-03    1.7603       -.20016E-05** at limit **
   4  Prefactor     .10001E-03    16.737        .11792E-04** at limit **
   5  Prefactor     .10000E-03    11.957       -.46070E-06** at limit **
   6  norm          .10000E-03    3.2009       -.36911E-06** at limit **
   7  Prefactor     3.9453        2.1894        .56688E-07   -.26884E-03
   8  Prefactor     .10001E-03    16.970       -.70139E-05** at limit **
   9  Prefactor     7.9775        1.0026        .12586E-07    .47225E-05
  10  Prefactor     4.1981        2.9329       -.63961E-06    .16391E-03
  11  Prefactor     .10000E-03    1.5575        .33573E-06** at limit **
  12  norm          .36029        .15483        .31449E-07    .57283E-03
  13  norm          .10000E-03    4.9217        .40437E-06** at limit **
  14  Prefactor     18.715        1.2962       -.66835E-07   -.32503E-03
  15  norm          .10000E-03    30.317        .17756E-04** at limit **
  16  Prefactor     .10009E-03    132.05       -.15353E-04** at limit **
  17  Prefactor     13.784        2.0402       -.27972E-06    .32628E-03
  18  Prefactor     8.4461        1.0034        .23195E-07    .22045E-04
  19  Prefactor     6.7465        3.7604       -.24284E-05   -.41828E-04
  20  norm          3.9396        1.6717       -.16112E-08   -.50557E-04
  21  Normalizat    .89163        .21112        .27030E-05    .50437E-04
  22  Prefactor     .86299        .16294       -.22518E-05    .69115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3554
  norm       = 1.02489
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.94528
  Prefactor  = 0.000100008
  Prefactor  = 7.97747
  Prefactor  = 4.19805
  Prefactor  = 0.0001
  norm       = 0.360286
  norm       = 0.0001
  Prefactor  = 18.7151
  norm       = 0.000100004
  Prefactor  = 0.000100092
  Prefactor  = 13.7839
  Prefactor  = 8.44608
  Prefactor  = 6.74655
  norm       = 3.93963
  Normalizat = 0.891634
  Prefactor  = 0.862992
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.107     FROM HESSE     STATUS=OK           402 CALLS     2409 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.355        67.895        .19503E-02   -1.4681    
   2  norm          1.0249        1.1465        .18287E-01   -1.5505    
   3  Prefactor     .10000E-03    6.3876        .63080E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    16.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9453        2.1951        .50771E-02   -1.5311    
   8  Prefactor     .10001E-03    18.048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9775        8.4242        .35489E-02   -1.5143    
  10  Prefactor     4.1981        2.9412        .49174E-02   -1.5298    
  11  Prefactor     .10000E-03    1.5326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .36029        .16924        .45584E-02   -1.5588    
  13  norm          .10000E-03    4.9287        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.715        20.375        .23141E-02   -1.4842    
  15  norm          .10000E-03    30.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10009E-03    .63299        .64569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.784        2.4636        .26984E-02   -1.4965    
  18  Prefactor     8.4461        10.819        .34483E-02   -1.5127    
  19  Prefactor     6.7465        3.7699        .38618E-02   -1.5188    
  20  norm          3.9396        1.6704        .50807E-02   -1.5311    
  21  Normalizat    .89163        .18188        .44798E-01   -.96755    
  22  Prefactor     .86299        .13866        .44529E-01   -.97447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60549e-07
Minuit parameter uncertainties:
  1  68.095
  2  1.14648
  3  0.000137677
  4  0.0006116
  5  8.01182e-05
  6  5.3918e-06
  7  2.19513
  8  0.000737013
  9  8.4254
  10  2.94131
  11  5.15964e-07
  12  0.16924
  13  3.00355e-05
  14  20.3821
  15  0.000691469
  16  0.000483473
  17  2.46361
  18  10.8219
  19  3.76999
  20  1.67044
  21  0.182007
  22  0.138718
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  4.198e+00  2.941e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.630e-01  1.387e-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:  8.916e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.37e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 9.56e-06

TS (Fixed Index): 3.30
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389537/likelihoodResults_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.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) = 7086.93072866
delta logL = 0.175772351639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7086.93050438
delta logL = 0.1759966322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3776       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1514       1.0000          .0000       10.000    
     3 'Normalizat'    .89908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85828       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.

 FCN=   7086.931     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      262 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3813        108.68        .43324E-02    .21672E-03
   2  Index         2.1519        6.0220        .19177        .49664E-04
   3  Normalizat    .89906        .85698E-01    .44890E-01    .18097E-04
   4  Prefactor     .85826        .68826E-01    .44471E-01    .97542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38132
  Index      = 2.15194
  Normalizat = 0.899064
  Prefactor  = 0.858259
 **********
 **   18 **HESSE 
 **********

 FCN=   7086.931     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3813        3.9663        .12920E-03   -1.5244    
   2  Index         2.1519        .45929        .72510E-02   -.60603    
   3  Normalizat    .89906        .20617        .27815E-03   -.96493    
   4  Prefactor     .85826        .16220        .22303E-03   -.97615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95488e-10
Minuit parameter uncertainties:
  1  3.96652
  2  0.460254
  3  0.206354
  4  0.162291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389537': 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) = 7086.9305026
delta logL = 0.175998411753

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.381e+00  3.967e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.152e+00  4.603e-01  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:  8.583e-01  1.623e-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:  8.991e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.15 +/- 0.46
Photon Flux (Free Index): 3.89e-08 +/- 2.87e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.80e-05

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/389537/cmap_HighResolution_656899201_657158401_4FGL_J1613.6+3411_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', comment='SUCCESS', photon_flux='4.37e-08', energy_flux2='1.91e-05', photon_flux_error='3.06e-08', dlogl='1.76e-01', energy_flux='1.36e-05', photon_flux2='3.89e-08', job_status='DONE', time_completed='2021-12-08 02:46:02.683420', photon_index_error2='0.46', photon_index2='2.15', ts='3.30', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.80e-05', EG='0.89', time_epoch_completed='1638960362.68', return_code='0', job_id='389537', GAL2='0.86', EG2='0.90', return_code2='0', energy_flux_error='9.56e-06', photon_flux_error2='2.87e-08', ts2='3.63', photon_index='2.44' WHERE bin_id='1611' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:46:02 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 389537: <4FGL_J1613.6+3411_daily_bin1611> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1611> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 02:30:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:31:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:31:11 2021
Terminated at Wed Dec  8 02:46:03 2021
Results reported at Wed Dec  8 02:46:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1611 243.421 34.1982 656899201 657158401 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            942 sec.

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

