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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1070
RA = 243.421, Dec = 34.1982
tmin = 516672001, tmax = 516931201
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='191284', job_status='RUN', time_executed='2021-09-13 17:53:54.919928', time_epoch_executed='1631580834.92' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191284/ft1_4FGL_J1613.6+3411_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191284/ft2_4FGL_J1613.6+3411_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191284/ft1_4FGL_J1613.6+3411_daily_bin1070.fits outfile=/scratch/kocevski/191284/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1070.fits ra=243.421 dec=34.1982 rad=12.0 tmin=516672001.0 tmax=516931201.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.55
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191284/ft1_filtered_4FGL_J1613.6+3411_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/191284/ft2_4FGL_J1613.6+3411_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/191284/ltcube_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.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/191284/ft2_4FGL_J1613.6+3411_daily_bin1070.fits
.....................!
real 14.90
user 14.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191284/ft1_filtered_4FGL_J1613.6+3411_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/191284/ft2_4FGL_J1613.6+3411_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/191284/ltcube_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.fits outfile=/scratch/kocevski/191284/expmap_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.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/191284/ltcube_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.fits
.....................!
real 193.31
user 187.39
sys 5.35

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/191284/ft1_filtered_4FGL_J1613.6+3411_daily_bin1070.fits scfile=/scratch/kocevski/191284/ft2_4FGL_J1613.6+3411_daily_bin1070.fits outfile=/scratch/kocevski/191284/cmap_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=243.421 yref=34.1982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191284/ft1_filtered_4FGL_J1613.6+3411_daily_bin1070.fits scfile=/scratch/kocevski/191284/ft2_4FGL_J1613.6+3411_daily_bin1070.fits outfile=/scratch/kocevski/191284/cmap_HighResolution_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13248E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20690       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.328       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33741E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11586E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8405       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3713       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6001       1.0000         .10000E-03   10000.    
    12 'norm      '    .29720       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    103.35       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0541       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.985       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9683       1.0000         .10000E-03   10000.    
    20 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6344.401     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     2786 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.032        .18142E-02** at limit **
   2  norm          3.0482        1.7433        .61910E-04    .10658E-02
   3  Prefactor     .15932        15.144        .61181E-01    .35631E-03
   4  Prefactor     21.330        25.545        .86730E-04    .15669E-03
   5  Prefactor     .10000E-03    59.623        .54711E-02** at limit **
   6  norm          .10000E-03    10.017        .18142E-02** at limit **
   7  Prefactor     2.8405        2.7331        .12368E-03   -.91917E-06
   8  Prefactor     .10000E-03    8.0370        .18142E-02** at limit **
   9  Prefactor     .10000E-03    4.8550        .17116E-02** at limit **
  10  Prefactor     1.3671        4.0978        .25857E-03   -.13067E-03
  11  Prefactor     2.5978        2.8871        .13630E-03   -.68813E-04
  12  norm          .29712        .14364        .19150E-04   -.10259E-02
  13  norm          .10000E-03    5.3887        .18055E-02** at limit **
  14  Prefactor     .10000E-03    10.653        .18142E-02** at limit **
  15  norm          103.36        51.582        .19775E-03    .70263E-04
  16  Prefactor     .10000E-03    2.1725        .11588E-02** at limit **
  17  Prefactor     2.0511        1.3006        .63924E-04    .85723E-04
  18  Prefactor     19.961        19.445        .89594E-04    .38068E-06
  19  Prefactor     2.9665        2.5363        .11215E-03    .35478E-05
  20  norm          .10000E-03    .84552        .11824E-02** at limit **
  21  Normalizat    1.0601        .21230        .25429E-03    .33531E-04
  22  Prefactor     .77040        .15389        .22080E-03   -.22908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 3.04824
  Prefactor  = 0.159321
  Prefactor  = 21.3301
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.84045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3671
  Prefactor  = 2.59778
  norm       = 0.297118
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 103.364
  Prefactor  = 0.0001
  Prefactor  = 2.05109
  Prefactor  = 19.961
  Prefactor  = 2.96653
  norm       = 0.0001
  Normalizat = 1.06012
  Prefactor  = 0.770401
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.401     FROM HESSE     STATUS=OK           330 CALLS     3116 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0482        1.7230        .24764E-05   -1.5359    
   3  Prefactor     .15932        13.498        .65085E-01   -1.5628    
   4  Prefactor     21.330        25.527        .17346E-04   -1.4784    
   5  Prefactor     .10000E-03    60.497        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8405        2.7330        .49474E-05   -1.5371    
   8  Prefactor     .10000E-03    8.0373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8555        .34232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3671        4.0961        .10343E-04   -1.5474    
  11  Prefactor     2.5978        2.8869        .54520E-05   -1.5386    
  12  norm          .29712        .14363        .76599E-06   -1.5599    
  13  norm          .10000E-03    5.3888        .36110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          103.36        51.581        .39551E-04   -1.3671    
  16  Prefactor     .10000E-03    2.1732        .23176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0511        1.2986        .25569E-05   -1.5422    
  18  Prefactor     19.961        19.446        .35837E-05   -1.4814    
  19  Prefactor     2.9665        2.5362        .44862E-05   -1.5363    
  20  norm          .10000E-03    .84622        .23648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0601        .21242        .10172E-04   -.91043    
  22  Prefactor     .77040        .15404        .88319E-05   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93843e-10
Minuit parameter uncertainties:
  1  0.000568465
  2  1.72307
  3  2.93264
  4  25.5398
  5  0.000417989
  6  0.000139387
  7  2.73312
  8  2.40658e-05
  9  1.94778e-07
  10  4.09691
  11  2.88709
  12  0.143628
  13  8.29817e-07
  14  0.000122533
  15  51.6035
  16  7.46087e-07
  17  1.29866
  18  19.4519
  19  2.53631
  20  1.07268e-05
  21  0.212587
  22  0.154129
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.367e+00  4.097e+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:  7.704e-01  1.541e-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.060e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/191284/likelihoodResults_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.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) = 6344.37964622
delta logL = 0.0209073403894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6343.25598382
delta logL = 1.14456974251

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.7246       1.0000          .0000       10.000    
     3 'Normalizat'    .97527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81756       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=   6343.256     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      346 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .30234E-02    .30775E-03** at limit **
   2  Index         8.7242        7.2601        .19556        .87536E-04
   3  Normalizat    .97521        .48645E-01    .45856E-01   -.12177E-03
   4  Prefactor     .81772        .36248E-01    .43945E-01   -.15843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.72416
  Normalizat = 0.975208
  Prefactor  = 0.817717
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.256     FROM HESSE     STATUS=OK            35 CALLS      381 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .92109E-03    .90199E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7242        .39311        .81988E-02    .84028    
   3  Normalizat    .97521        .20951        .26342E-03   -.93866    
   4  Prefactor     .81772        .15580        .21502E-03   -.99079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08325e-09
Minuit parameter uncertainties:
  1  8.33776e-09
  2  0.394027
  3  0.20969
  4  0.155881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191284': 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) = 6343.25598131
delta logL = 1.14457225325

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  8.338e-09  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  8.724e+00  3.940e-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.177e-01  1.559e-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:  9.752e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 243.421 34.198
Photon Index (Free Index): 8.72 +/- 0.39
Photon Flux (Free Index): 8.05e-08 +/- 5.96e-08
Energy Flux (Free Index): 9.20e-06 +/- 6.78e-06

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/191284/cmap_HighResolution_516672001_516931201_4FGL_J1613.6+3411_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-03', comment='SUCCESS', energy_flux2='9.20e-06', dlogl='1.14e+00', photon_flux2='8.05e-08', job_status='DONE', time_completed='2021-09-13 18:06:00.099138', photon_index_error2='0.39', photon_index2='8.72', ts='0.12', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='6.78e-06', EG='1.06', time_epoch_completed='1631581560.1', return_code='0', job_id='191284', GAL2='0.82', EG2='0.98', return_code2='0', photon_flux_error2='5.96e-08', ts2='2.58', photon_index='2.44' WHERE bin_id='1070' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 191284: <4FGL_J1613.6+3411_daily_bin1070> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1070 243.421 34.1982 516672001 516931201 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 :                                   721.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            934 sec.

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

