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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1110
RA = 243.421, Dec = 34.1982
tmin = 527040001, tmax = 527299201
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='191350', job_status='RUN', time_executed='2021-09-13 17:53:29.835908', time_epoch_executed='1631580809.84' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191350/ft1_4FGL_J1613.6+3411_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191350/ft2_4FGL_J1613.6+3411_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191350/ft1_4FGL_J1613.6+3411_daily_bin1110.fits outfile=/scratch/kocevski/191350/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1110.fits ra=243.421 dec=34.1982 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.03
user 5.77
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191350/ft1_filtered_4FGL_J1613.6+3411_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/191350/ft2_4FGL_J1613.6+3411_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/191350/ltcube_527040001_527299201_4FGL_J1613.6+3411_daily_bin1110.fits outfile=/scratch/kocevski/191350/expmap_527040001_527299201_4FGL_J1613.6+3411_daily_bin1110.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/191350/ltcube_527040001_527299201_4FGL_J1613.6+3411_daily_bin1110.fits
.....................!
real 193.34
user 187.80
sys 5.12

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/191350/ft1_filtered_4FGL_J1613.6+3411_daily_bin1110.fits scfile=/scratch/kocevski/191350/ft2_4FGL_J1613.6+3411_daily_bin1110.fits outfile=/scratch/kocevski/191350/cmap_527040001_527299201_4FGL_J1613.6+3411_daily_bin1110.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    7.8209       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   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 '    .10541E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4832       1.0000         .10000E-03   10000.    
    12 'norm      '    .20516       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8469       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7228       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4578       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.467       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5794       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0627       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86245       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=   9601.444     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2033 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.929       -.21601E-05** at limit **
   2  norm          7.8199        1.9808        .13881E-07    .35607E-04
   3  Prefactor     .10000E-03    7.7484       -.58730E-06** at limit **
   4  Prefactor     .10000E-03    12.535        .10612E-05** at limit **
   5  Prefactor     .10000E-03    9.1841       -.27677E-06** at limit **
   6  norm          .10001E-03    17.572       -.42158E-05** at limit **
   7  Prefactor     .10000E-03    1.5218        .11944E-06** at limit **
   8  Prefactor     .10000E-03    7.6514        .68248E-06** at limit **
   9  Prefactor     1.2389        17.518        .23408E-05   -.13272E-03
  10  Prefactor     6.2071        3.0728        .74305E-06   -.18499E-02
  11  Prefactor     5.4836        3.3392        .35467E-07   -.21570E-03
  12  norm          .20517        .11213        .81701E-09   -.76486E-03
  13  norm          .10000E-03    12.846        .21843E-06** at limit **
  14  Prefactor     4.8471        7.7802        .34194E-07   -.34048E-04
  15  norm          .10001E-03    22.331        .50185E-05** at limit **
  16  Prefactor     1.7230        1.7132        .57658E-07   -.32137E-03
  17  Prefactor     2.4575        1.8039        .95774E-08   -.30042E-03
  18  Prefactor     12.467        11.387        .10774E-05   -.39945E-03
  19  Prefactor     3.5797        2.6930        .72702E-07   -.14258E-03
  20  norm          4.0628        1.6039        .15648E-07   -.31554E-04
  21  Normalizat    1.0940        .16577       -.63510E-06   -.32996E-04
  22  Prefactor     .86246        .11674       -.36253E-06   -.60679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 7.81985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23889
  Prefactor  = 6.20712
  Prefactor  = 5.48363
  norm       = 0.205172
  norm       = 0.0001
  Prefactor  = 4.84712
  norm       = 0.000100009
  Prefactor  = 1.72296
  Prefactor  = 2.4575
  Prefactor  = 12.4672
  Prefactor  = 3.57974
  norm       = 4.06284
  Normalizat = 1.09401
  Prefactor  = 0.862461
 **********
 **   18 **HESSE 
 **********

 FCN=   9601.444     FROM HESSE     STATUS=OK           348 CALLS     2381 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8199        1.9816        .66322E-04   -1.5149    
   3  Prefactor     .10000E-03    7.8069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    18.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3961        .23233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2389        18.543        .40284E-03   -1.5485    
  10  Prefactor     6.2071        3.3279        .61720E-03   -1.5210    
  11  Prefactor     5.4836        3.3398        .13185E-03   -1.5240    
  12  norm          .20517        .10931        .21827E-04   -1.5617    
  13  norm          .10000E-03    12.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8471        7.7601        .18272E-03   -1.5268    
  15  norm          .10001E-03    24.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7230        1.7137        .80238E-04   -1.5445    
  17  Prefactor     2.4575        1.8180        .71561E-04   -1.5394    
  18  Prefactor     12.467        11.672        .56724E-03   -1.5002    
  19  Prefactor     3.5797        2.6831        .13225E-03   -1.5330    
  20  norm          4.0628        1.6020        .74650E-04   -1.5305    
  21  Normalizat    1.0940        .19857        .27797E-03   -.89944    
  22  Prefactor     .86246        .13966        .22486E-03   -.97465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71221e-09
Minuit parameter uncertainties:
  1  0.000515941
  2  1.98166
  3  5.67741e-05
  4  0.000141847
  5  2.29571e-05
  6  0.000616983
  7  6.12192e-06
  8  7.11739e-05
  9  9.58927
  10  3.32799
  11  3.33995
  12  0.109312
  13  2.68621e-05
  14  7.76167
  15  0.000921823
  16  1.71377
  17  1.818
  18  11.6738
  19  2.6832
  20  1.60201
  21  0.198703
  22  0.139716
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.207e+00  3.328e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.625e-01  1.397e-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.094e+00  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.42
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.46e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.08e-05

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) = 9601.43546076
delta logL = 0.00901644157784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9601.43258887
delta logL = 0.0118883230007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9620       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5166       1.0000          .0000       10.000    
     3 'Normalizat'    1.0871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86576       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=   9601.433     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9608        58.597        .41113E-02    .33502E-03
   2  Index         2.5168        6.2560        .14747        .13538E-03
   3  Normalizat    1.0872        .92257E-01    .63015E-01    .20221E-04
   4  Prefactor     .86571        .50415E-01    .44567E-01    .19410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96075
  Index      = 2.5168
  Normalizat = 1.08717
  Prefactor  = 0.865711
 **********
 **   18 **HESSE 
 **********

 FCN=   9601.433     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9608        3.7481        .11827E-03   -1.5220    
   2  Index         2.5168        .53859        .77110E-02   -.51972    
   3  Normalizat    1.0872        .19474        .27873E-03   -.90165    
   4  Prefactor     .86571        .13836        .22449E-03   -.97350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27844e-12
Minuit parameter uncertainties:
  1  3.74829
  2  0.539986
  3  0.194871
  4  0.138417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191350': 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) = 9601.43258866
delta logL = 0.0118885390111

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.961e+00  3.748e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.517e+00  5.400e-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.657e-01  1.384e-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.087e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.41
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.52 +/- 0.54
Photon Flux (Free Index): 6.92e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/191350/cmap_HighResolution_527040001_527299201_4FGL_J1613.6+3411_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.46e-08', energy_flux2='1.97e-05', photon_flux_error='3.46e-08', dlogl='1.19e-02', energy_flux='2.02e-05', photon_flux2='6.92e-08', job_status='DONE', time_completed='2021-09-13 18:05:45.905836', photon_index_error2='0.54', photon_index2='2.52', ts='7.42', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.09', time_epoch_completed='1631581545.91', return_code='0', job_id='191350', GAL2='0.87', EG2='1.09', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.58e-08', ts2='7.41', photon_index='2.44' WHERE bin_id='1110' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 191350: <4FGL_J1613.6+3411_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1110 243.421 34.1982 527040001 527299201 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            915 sec.

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

