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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1315
RA = 243.421, Dec = 34.1982
tmin = 580176001, tmax = 580435201
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='191666', job_status='RUN', time_executed='2021-09-13 17:52:09.866321', time_epoch_executed='1631580729.87' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191666/ft1_4FGL_J1613.6+3411_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191666/ft2_4FGL_J1613.6+3411_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191666/ft1_4FGL_J1613.6+3411_daily_bin1315.fits outfile=/scratch/kocevski/191666/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1315.fits ra=243.421 dec=34.1982 rad=12.0 tmin=580176001.0 tmax=580435201.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.78
user 4.46
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191666/ft2_4FGL_J1613.6+3411_daily_bin1315.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/191666/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1315.fits evtable="EVENTS" outfile="/scratch/kocevski/191666/ft1_filtered_4FGL_J1613.6+3411_daily_bin1315.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.52
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191666/ft1_filtered_4FGL_J1613.6+3411_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/191666/ft2_4FGL_J1613.6+3411_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/191666/ltcube_580176001_580435201_4FGL_J1613.6+3411_daily_bin1315.fits outfile=/scratch/kocevski/191666/expmap_580176001_580435201_4FGL_J1613.6+3411_daily_bin1315.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/191666/ltcube_580176001_580435201_4FGL_J1613.6+3411_daily_bin1315.fits
.....................!
real 193.16
user 187.31
sys 5.43

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/191666/ft1_filtered_4FGL_J1613.6+3411_daily_bin1315.fits scfile=/scratch/kocevski/191666/ft2_4FGL_J1613.6+3411_daily_bin1315.fits outfile=/scratch/kocevski/191666/cmap_580176001_580435201_4FGL_J1613.6+3411_daily_bin1315.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191666/ft1_filtered_4FGL_J1613.6+3411_daily_bin1315.fits scfile=/scratch/kocevski/191666/ft2_4FGL_J1613.6+3411_daily_bin1315.fits outfile=/scratch/kocevski/191666/cmap_HighResolution_580176001_580435201_4FGL_J1613.6+3411_daily_bin1315.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .11138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.698       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19555E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14560       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.235       1.0000         .10000E-03   10000.    
    15 'norm      '    76.946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8742       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63322       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    20 'norm      '    7.5808       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76679       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1567       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=   6437.125     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2434 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.431        .10406E-06** at limit **
   2  norm          .10000E-03    .57884       -.29864E-06** at limit **
   3  Prefactor     28.176        11.949        .24212E-06    .94484E-04
   4  Prefactor     26.691        32.565        .58708E-06   -.11268E-03
   5  Prefactor     .10000E-03    5.9384        .76585E-08** at limit **
   6  norm          .10000E-03    4.4240       -.49151E-07** at limit **
   7  Prefactor     .56210        2.6494        .37286E-06   -.32261E-04
   8  Prefactor     .10000E-03    5.6944       -.37914E-07** at limit **
   9  Prefactor     7.3152        12.842        .10800E-06   -.10310E-05
  10  Prefactor     .10000E-03    1.9035        .28666E-07** at limit **
  11  Prefactor     .10000E-03    2.1785       -.30209E-06** at limit **
  12  norm          .14567        .14950        .14164E-07   -.11798E-02
  13  norm          .10000E-03    9.1095       -.44361E-07** at limit **
  14  Prefactor     32.227        21.287        .26045E-06   -.21708E-03
  15  norm          76.917        55.633        .11056E-05   -.32742E-03
  16  Prefactor     1.8722        1.6689       -.53123E-06   -.14197E-02
  17  Prefactor     .10000E-03    .72372        .38055E-06** at limit **
  18  Prefactor     .63344        13.495        .49817E-06   -.60868E-04
  19  Prefactor     1.9875        2.5912        .63023E-06   -.34481E-03
  20  norm          7.5809        2.5863       -.51175E-07   -.62533E-03
  21  Normalizat    .76682        .19968       -.36933E-06   -.72878E-04
  22  Prefactor     1.1567        .15508       -.16679E-06   -.94057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.1755
  Prefactor  = 26.6912
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.562099
  Prefactor  = 0.0001
  Prefactor  = 7.31522
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.145672
  norm       = 0.0001
  Prefactor  = 32.2272
  norm       = 76.9165
  Prefactor  = 1.87215
  Prefactor  = 0.000100001
  Prefactor  = 0.633443
  Prefactor  = 1.98749
  norm       = 7.58086
  Normalizat = 0.766818
  Prefactor  = 1.15665
 **********
 **   18 **HESSE 
 **********

 FCN=   6437.125     FROM HESSE     STATUS=OK           346 CALLS     2780 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .85975        .10857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.176        11.371        .75504E-04   -1.4646    
   4  Prefactor     26.691        32.467        .77531E-04   -1.4674    
   5  Prefactor     .10000E-03    5.9417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4279        .16480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .56210        2.6816        .24590E-03   -1.5558    
   8  Prefactor     .10000E-03    5.6960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3152        12.871        .14830E-03   -1.5167    
  10  Prefactor     .10000E-03    1.9509        .21602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5542        .22070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .14567        .13670        .25364E-03   -1.5632    
  13  norm          .10000E-03    9.1275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.227        21.029        .70575E-04   -1.4572    
  15  norm          76.917        54.561        .22889E-03   -1.3952    
  16  Prefactor     1.8722        1.6571        .77343E-04   -1.5434    
  17  Prefactor     .10000E-03    5.9533        .11086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .63344        140.55        .55013E-02   -1.5549    
  19  Prefactor     1.9875        2.6232        .71071E-03   -1.5426    
  20  norm          7.5809        2.5696        .70797E-04   -1.5157    
  21  Normalizat    .76682        .22879        .30910E-03   -1.0131    
  22  Prefactor     1.1567        .18088        .20645E-03   -.87676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07742e-09
Minuit parameter uncertainties:
  1  3.88408e-05
  2  1.55764e-05
  3  11.3721
  4  32.4886
  5  1.31753e-06
  6  1.05826e-05
  7  2.45544
  8  9.101e-06
  9  12.8761
  10  2.1092e-06
  11  0.00012534
  12  0.136702
  13  6.27778e-06
  14  21.0341
  15  54.5966
  16  1.65714
  17  0.000140387
  18  18.9148
  19  2.62339
  20  2.56965
  21  0.229079
  22  0.180978
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  2.109e-06  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:  1.157e+00  1.810e-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.668e-01  2.291e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191666/likelihoodResults_580176001_580435201_4FGL_J1613.6+3411_daily_bin1315.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) = 6437.12775578
delta logL = -0.00244003249099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6437.12531585
delta logL = -9.31104295887e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4475       1.0000          .0000       10.000    
     3 'Normalizat'    .76682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1567       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6437.125     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10191E-03    35.983        .21672E-02** at limit **
   2  Index         2.5564        8.1195        .50000       -.40627E-04
   3  Normalizat    .76682        .19907E-01    .30910E-03   -.61128E-04
   4  Prefactor     1.1567        .16115E-01    .20645E-03   -.35925E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6437.125     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      368 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10191E-03    35.983        .27508E-03** at limit **
   2  Index         2.5564        8.1195        .57288E-03   -.40627E-04
   3  Normalizat    .76682        .19907E-01    .42876E-05   -.61128E-04
   4  Prefactor     1.1567        .16115E-01    .23549E-05   -.35925E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6437.125     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      423 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .88786E-01    .25506E-01** at limit **
   2  Index         3.1814        8.1342        .50000        .45125E-06
   3  Normalizat    .76682        .14800E-02    .12364E-04    .71574E-03
   4  Prefactor     1.1567        .11981E-02    .41291E-04    .89631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.18139
  Normalizat = 0.766819
  Prefactor  = 1.15665
 **********
 **   18 **HESSE 
 **********

 FCN=   6437.125     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      454 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.432        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1814        7.7205        .50000       -.37226    
   3  Normalizat    .76682        .13508E-01    .24728E-05   -1.0131    
   4  Prefactor     1.1567        .10935E-01    .82582E-05   -.87676    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05464e-10
Minuit parameter uncertainties:
  1  3.15226e-05
  2  162.993
  3  0.013508
  4  0.0109351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191666': 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) = 6437.1253113
delta logL = 4.45368004875e-06

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  3.152e-05  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  3.181e+00  1.630e+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:  1.157e+00  1.094e-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:  7.668e-01  1.351e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/191666/cmap_HighResolution_580176001_580435201_4FGL_J1613.6+3411_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-13 18:04:13.365530', job_id='191666', GAL2='1.16', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631581453.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1315' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:04:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 191666: <4FGL_J1613.6+3411_daily_bin1315> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1315> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:55 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:51:57 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:51:57 2021
Terminated at Mon Sep 13 18:04:14 2021
Results reported at Mon Sep 13 18:04:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1315 243.421 34.1982 580176001 580435201 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 :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            799 sec.

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

