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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1099
RA = 243.421, Dec = 34.1982
tmin = 524188801, tmax = 524448001
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='191330', job_status='RUN', time_executed='2021-09-13 17:53:28.335940', time_epoch_executed='1631580808.34' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191330/ft1_4FGL_J1613.6+3411_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191330/ft2_4FGL_J1613.6+3411_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191330/ft1_4FGL_J1613.6+3411_daily_bin1099.fits outfile=/scratch/kocevski/191330/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1099.fits ra=243.421 dec=34.1982 rad=12.0 tmin=524188801.0 tmax=524448001.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.47
user 3.24
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191330/ft1_filtered_4FGL_J1613.6+3411_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/191330/ft2_4FGL_J1613.6+3411_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/191330/ltcube_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.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/191330/ft2_4FGL_J1613.6+3411_daily_bin1099.fits
.....................!
real 14.74
user 14.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191330/ft1_filtered_4FGL_J1613.6+3411_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/191330/ft2_4FGL_J1613.6+3411_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/191330/ltcube_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.fits outfile=/scratch/kocevski/191330/expmap_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.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/191330/ltcube_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.fits
.....................!
real 191.55
user 186.17
sys 4.80

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/191330/ft1_filtered_4FGL_J1613.6+3411_daily_bin1099.fits scfile=/scratch/kocevski/191330/ft2_4FGL_J1613.6+3411_daily_bin1099.fits outfile=/scratch/kocevski/191330/cmap_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191330/ft1_filtered_4FGL_J1613.6+3411_daily_bin1099.fits scfile=/scratch/kocevski/191330/ft2_4FGL_J1613.6+3411_daily_bin1099.fits outfile=/scratch/kocevski/191330/cmap_HighResolution_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.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/191330/ft1_filtered_4FGL_J1613.6+3411_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/191330/ft2_4FGL_J1613.6+3411_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191330/Model_4FGL_J1613.6+3411_daily_bin1099.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/191330/ft1_filtered_4FGL_J1613.6+3411_daily_bin1099.fits.....................!
real 48.94
user 47.62
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.7165       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91509       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94102E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .20770E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
    15 'norm      '    33.542       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9908       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8965       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75948       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94203       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=   6042.892     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2405 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.433        .23828E-05** at limit **
   2  norm          5.7165        1.9995        .59660E-08   -.45634E-04
   3  Prefactor     23.989        13.105       -.13630E-06    .34537E-04
   4  Prefactor     .10000E-03    15.792        .41537E-07** at limit **
   5  Prefactor     .10000E-03    8.3402        .19393E-05** at limit **
   6  norm          .10000E-03    4.0807       -.10212E-07** at limit **
   7  Prefactor     5.4636        2.3984       -.49055E-06   -.34226E-02
   8  Prefactor     .10000E-03    7.9192       -.15100E-05** at limit **
   9  Prefactor     .10000E-03    9.9203       -.13260E-05** at limit **
  10  Prefactor     .91449        2.7886       -.83391E-06   -.94588E-03
  11  Prefactor     .10000E-03    1.7112       -.97094E-07** at limit **
  12  norm          .20668E-01    .11982        .11607E-06   -.20050E-02
  13  norm          .10000E-03    9.7275        .37749E-06** at limit **
  14  Prefactor     12.328        20.922       -.38831E-05    .25991E-03
  15  norm          33.544        57.341        .37185E-05   -.10949E-03
  16  Prefactor     .10000E-03    .93204       -.41178E-07** at limit **
  17  Prefactor     5.3689        1.6796       -.27106E-07   -.28274E-03
  18  Prefactor     .10000E-03    21.468       -.21011E-05** at limit **
  19  Prefactor     2.9920        3.1522       -.30139E-06   -.34113E-03
  20  norm          1.8964        1.2589       -.44222E-08    .25893E-04
  21  Normalizat    .75937        .17963        .12273E-05   -.20316E-04
  22  Prefactor     .94219        .13375       -.10523E-06    .83989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 5.71646
  Prefactor  = 23.989
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.46357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.914489
  Prefactor  = 0.000100004
  norm       = 0.0206681
  norm       = 0.0001
  Prefactor  = 12.3281
  norm       = 33.5442
  Prefactor  = 0.0001
  Prefactor  = 5.36891
  Prefactor  = 0.000100001
  Prefactor  = 2.99201
  norm       = 1.8964
  Normalizat = 0.759366
  Prefactor  = 0.942186
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.892     FROM HESSE     STATUS=OK           346 CALLS     2751 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7165        2.0133        .54715E-04   -1.5230    
   3  Prefactor     23.989        13.189        .81783E-04   -1.4728    
   4  Prefactor     .10000E-03    15.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0851        .15336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4636        2.7930        .44585E-03   -1.5240    
   8  Prefactor     .10000E-03    7.8153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .91449        2.9723        .22690E-03   -1.5517    
  11  Prefactor     .10000E-03    11.832        .18822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20668E-01    .23086        .40037E-03   -1.5679    
  13  norm          .10000E-03    9.7479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.328        19.045        .11407E-03   -1.5006    
  15  norm          33.544        55.775        .69190E-04   -1.4549    
  16  Prefactor     .10000E-03    1.1986        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3689        1.5407        .44838E-04   -1.5245    
  18  Prefactor     .10000E-03    21.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9920        3.1492        .13119E-03   -1.5362    
  20  norm          1.8964        1.2585        .68962E-04   -1.5433    
  21  Normalizat    .75937        .20924        .27804E-03   -1.0159    
  22  Prefactor     .94219        .15766        .20012E-03   -.94682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86824e-09
Minuit parameter uncertainties:
  1  0.000279068
  2  2.01332
  3  13.1908
  4  1.71489e-06
  5  0.000149736
  6  2.11089e-06
  7  2.7931
  8  0.000105999
  9  0.000120006
  10  2.97277
  11  0.000432806
  12  0.137818
  13  4.94512e-05
  14  19.0539
  15  55.8621
  16  4.29142e-06
  17  1.54072
  18  0.000236871
  19  3.14936
  20  1.25851
  21  0.209457
  22  0.157741
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  9.145e-01  2.973e+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:  9.422e-01  1.577e-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:  7.594e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/191330/likelihoodResults_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.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) = 6042.02350751
delta logL = 0.86810476243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6040.57837756
delta logL = 2.31323471019

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     '    8.8038       1.0000          .0000       10.000    
     3 'Normalizat'    .62826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0136       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=   6040.578     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      390 TOTAL
                     EDM=   .83E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .52453E-03   -.27151E-07** at limit **
   2  Index         8.8039        .28487       -.12778E-05   -.12139E-04
   3  Normalizat    .62822        .20356       -.23587E-06   -.73642E-04
   4  Prefactor     1.0136        .15972        .28273E-05   -.15223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.80393
  Normalizat = 0.628216
  Prefactor  = 1.01361
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.578     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      433 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .26800E-02    .26877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8039        2.5364        .14565        .86452    
   3  Normalizat    .62822        .56461E-01    .68517E-01   -1.0680    
   4  Prefactor     1.0136        .44090E-01    .42841E-01   -.92277    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.64794e-09
Minuit parameter uncertainties:
  1  9.37721e-10
  2  2.91161
  3  0.0564666
  4  0.0440911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191330': 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) = 6040.57837622
delta logL = 2.31323604715

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  9.377e-10  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  8.804e+00  2.912e+00  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:  1.014e+00  4.409e-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:  6.282e-01  5.647e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 243.421 34.198
Photon Index (Free Index): 8.80 +/- 2.91
Photon Flux (Free Index): 9.39e-08 +/- 5.14e-07
Energy Flux (Free Index): 1.07e-05 +/- 5.84e-05

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/191330/cmap_HighResolution_524188801_524448001_4FGL_J1613.6+3411_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='2.31e+00', photon_flux2='9.39e-08', job_status='DONE', time_completed='2021-09-13 18:05:09.575236', photon_index_error2='2.91', photon_index2='8.80', ts='0.11', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.65e-08', energy_flux_error2='5.84e-05', EG='0.76', time_epoch_completed='1631581509.58', return_code='0', job_id='191330', GAL2='1.01', EG2='0.63', return_code2='102', photon_flux_error2='5.14e-07', ts2='5.18', photon_index='2.44' WHERE bin_id='1099' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 191330: <4FGL_J1613.6+3411_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1099 243.421 34.1982 524188801 524448001 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 :                                   693.30 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             281.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            881 sec.

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

