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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1128
RA = 243.421, Dec = 34.1982
tmin = 531705601, tmax = 531964801
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='191379', job_status='RUN', time_executed='2021-09-13 17:54:07.581061', time_epoch_executed='1631580847.58' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191379/ft1_4FGL_J1613.6+3411_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191379/ft2_4FGL_J1613.6+3411_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191379/ft1_4FGL_J1613.6+3411_daily_bin1128.fits outfile=/scratch/kocevski/191379/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1128.fits ra=243.421 dec=34.1982 rad=12.0 tmin=531705601.0 tmax=531964801.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.01
user 3.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191379/ft2_4FGL_J1613.6+3411_daily_bin1128.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/191379/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1128.fits evtable="EVENTS" outfile="/scratch/kocevski/191379/ft1_filtered_4FGL_J1613.6+3411_daily_bin1128.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191379/ft1_filtered_4FGL_J1613.6+3411_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/191379/ft2_4FGL_J1613.6+3411_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/191379/ltcube_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.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/191379/ft2_4FGL_J1613.6+3411_daily_bin1128.fits
.....................!
real 14.07
user 13.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191379/ft1_filtered_4FGL_J1613.6+3411_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/191379/ft2_4FGL_J1613.6+3411_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/191379/ltcube_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.fits outfile=/scratch/kocevski/191379/expmap_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.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/191379/ltcube_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.fits
.....................!
real 192.10
user 186.10
sys 5.39

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/191379/ft1_filtered_4FGL_J1613.6+3411_daily_bin1128.fits scfile=/scratch/kocevski/191379/ft2_4FGL_J1613.6+3411_daily_bin1128.fits outfile=/scratch/kocevski/191379/cmap_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191379/ft1_filtered_4FGL_J1613.6+3411_daily_bin1128.fits scfile=/scratch/kocevski/191379/ft2_4FGL_J1613.6+3411_daily_bin1128.fits outfile=/scratch/kocevski/191379/cmap_HighResolution_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.472       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.6441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8496       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .46831       1.0000         .10000E-03   10000.    
    13 'norm      '    .12918E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    89.106       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0507       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29420       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.423       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0994       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7198       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3727       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68033       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.

 FCN=   6647.653     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2386 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.300        58.262       -.35055E-05   -.46958E-05
   2  norm          1.8300        1.3438       -.49527E-06   -.29496E-03
   3  Prefactor     14.310        11.983        .40757E-05   -.48009E-04
   4  Prefactor     .10000E-03    24.917        .15288E-05** at limit **
   5  Prefactor     .10000E-03    21.677       -.27522E-05** at limit **
   6  norm          9.6456        12.620        .76752E-05    .17638E-04
   7  Prefactor     1.8924        2.3199       -.18744E-07   -.45951E-03
   8  Prefactor     .10000E-03    13.949       -.23661E-06** at limit **
   9  Prefactor     .10000E-03    5.7154       -.34729E-06** at limit **
  10  Prefactor     4.8492        3.8822       -.26000E-07   -.36048E-03
  11  Prefactor     .10000E-03    .67272       -.55105E-07** at limit **
  12  norm          .46839        .15462        .18717E-07    .21964E-02
  13  norm          .10000E-03    8.5458        .11212E-05** at limit **
  14  Prefactor     .10000E-03    6.2238        .38880E-06** at limit **
  15  norm          89.066        49.684       -.72269E-06    .76373E-04
  16  Prefactor     1.0508        1.3590        .32186E-06    .92959E-04
  17  Prefactor     .29421        1.0559       -.73498E-06   -.13628E-02
  18  Prefactor     17.384        20.292        .11786E-05   -.20485E-04
  19  Prefactor     6.1034        3.8703        .39149E-06    .16180E-03
  20  norm          1.7203        1.4229        .59414E-07    .11290E-03
  21  Normalizat    1.3725        .20219       -.10393E-05    .19356E-03
  22  Prefactor     .68050        .14588       -.24182E-06    .39413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3
  norm       = 1.82996
  Prefactor  = 14.3097
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 9.64556
  Prefactor  = 1.89238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84924
  Prefactor  = 0.0001
  norm       = 0.468389
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 89.0656
  Prefactor  = 1.05082
  Prefactor  = 0.294207
  Prefactor  = 17.3842
  Prefactor  = 6.10342
  norm       = 1.72028
  Normalizat = 1.37248
  Prefactor  = 0.680504
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.653     FROM HESSE     STATUS=OK           348 CALLS     2734 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.300        58.351        .12381E-03   -1.5066    
   2  norm          1.8300        1.3391        .71646E-04   -1.5437    
   3  Prefactor     14.310        11.824        .10591E-03   -1.4951    
   4  Prefactor     .10000E-03    24.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.6456        12.432        .12904E-03   -1.5087    
   7  Prefactor     1.8924        2.3070        .13218E-03   -1.5433    
   8  Prefactor     .10000E-03    13.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8492        3.9015        .13648E-03   -1.5268    
  11  Prefactor     .10000E-03    .67418        .65292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46839        .15295        .17051E-04   -1.5571    
  13  norm          .10000E-03    8.6023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          89.066        49.384        .42565E-04   -1.3818    
  16  Prefactor     1.0508        1.2942        .76689E-04   -1.5503    
  17  Prefactor     .29421        1.0756        .11083E-02   -1.5599    
  18  Prefactor     17.384        20.283        .95952E-04   -1.4874    
  19  Prefactor     6.1034        3.8400        .11749E-03   -1.5214    
  20  norm          1.7203        1.4010        .84667E-04   -1.5446    
  21  Normalizat    1.3725        .24190        .25002E-03   -.81428    
  22  Prefactor     .68050        .17450        .25389E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0472e-09
Minuit parameter uncertainties:
  1  49.1045
  2  1.33907
  3  11.8257
  4  0.000144877
  5  0.000635176
  6  12.4357
  7  2.30715
  8  1.29568e-06
  9  4.24756e-06
  10  3.90172
  11  7.08871e-07
  12  0.152953
  13  1.49576e-06
  14  5.41123e-06
  15  49.4068
  16  1.29422
  17  1.0757
  18  20.2906
  19  3.84011
  20  1.40098
  21  0.242101
  22  0.174639
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  4.849e+00  3.902e+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:  6.805e-01  1.746e-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.372e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.27e-05

TS (Fixed Index): 2.17
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191379/likelihoodResults_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.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) = 6646.81776634
delta logL = 0.835054164288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6646.81118907
delta logL = 0.841631426622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2978       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3192       1.0000          .0000       10.000    
     3 'Normalizat'    1.3209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70628       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=   6646.811     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2957        24.094        .67687E-02    .18066E-02
   2  Index         3.3190        3.0915        .13728        .30725E-03
   3  Normalizat    1.3214        .64779E-01    .57401E-01   -.11774E-03
   4  Prefactor     .70604        .47786E-01    .42485E-01   -.13551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2957
  Index      = 3.31904
  Normalizat = 1.32141
  Prefactor  = 0.706036
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.811     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2957        3.5669        .71139E-04   -1.5405    
   2  Index         3.3190        .94610        .51835E-02   -.34287    
   3  Normalizat    1.3214        .23632        .25384E-03   -.82929    
   4  Prefactor     .70604        .17318        .24963E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05936e-10
Minuit parameter uncertainties:
  1  3.56722
  2  0.952581
  3  0.236513
  4  0.173309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191379': 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) = 6646.81118541
delta logL = 0.841635094146

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.296e+00  3.567e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  3.319e+00  9.526e-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:  7.060e-01  1.733e-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.321e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 243.421 34.198
Photon Index (Free Index): 3.32 +/- 0.95
Photon Flux (Free Index): 9.07e-08 +/- 5.64e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/191379/cmap_HighResolution_531705601_531964801_4FGL_J1613.6+3411_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='1.59e-05', photon_flux_error='4.06e-08', dlogl='8.42e-01', energy_flux='1.58e-05', photon_flux2='9.07e-08', job_status='DONE', time_completed='2021-09-13 18:05:51.422498', photon_index_error2='0.95', photon_index2='3.32', ts='2.17', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.02e-05', EG='1.37', time_epoch_completed='1631581551.42', return_code='0', job_id='191379', GAL2='0.71', EG2='1.32', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.64e-08', ts2='3.94', photon_index='2.44' WHERE bin_id='1128' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 191379: <4FGL_J1613.6+3411_daily_bin1128> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1128> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:33 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:50:56 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:50:56 2021
Terminated at Mon Sep 13 18:05:52 2021
Results reported at Mon Sep 13 18:05:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1128 243.421 34.1982 531705601 531964801 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 :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            919 sec.

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

