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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1523
RA = 243.421, Dec = 34.1982
tmin = 634089601, tmax = 634348801
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='193105', job_status='RUN', time_executed='2021-09-13 18:00:06.693120', time_epoch_executed='1631581206.69' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193105/ft1_4FGL_J1613.6+3411_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193105/ft2_4FGL_J1613.6+3411_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193105/ft1_4FGL_J1613.6+3411_daily_bin1523.fits outfile=/scratch/kocevski/193105/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1523.fits ra=243.421 dec=34.1982 rad=12.0 tmin=634089601.0 tmax=634348801.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.96
user 4.69
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193105/ft1_filtered_4FGL_J1613.6+3411_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/193105/ft2_4FGL_J1613.6+3411_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/193105/ltcube_634089601_634348801_4FGL_J1613.6+3411_daily_bin1523.fits outfile=/scratch/kocevski/193105/expmap_634089601_634348801_4FGL_J1613.6+3411_daily_bin1523.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/193105/ltcube_634089601_634348801_4FGL_J1613.6+3411_daily_bin1523.fits
.....................!
real 192.18
user 186.31
sys 5.40

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193105/ft1_filtered_4FGL_J1613.6+3411_daily_bin1523.fits scfile=/scratch/kocevski/193105/ft2_4FGL_J1613.6+3411_daily_bin1523.fits outfile=/scratch/kocevski/193105/cmap_HighResolution_634089601_634348801_4FGL_J1613.6+3411_daily_bin1523.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .80519       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4888       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5890       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8807       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .61679E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53286       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.918       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63102E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9675       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1751       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72194       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=   6129.760     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     2839 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.954        .18142E-02** at limit **
   2  norm          .80508        1.0704        .89004E-03    .42093E-02
   3  Prefactor     6.4894        7.3449        .15755E-03    .95971E-05
   4  Prefactor     .10000E-03    25.732        .18142E-02** at limit **
   5  Prefactor     .10000E-03    15.902        .18142E-02** at limit **
   6  norm          .10000E-03    9.6003        .18142E-02** at limit **
   7  Prefactor     1.6356        1.7816        .10592E-03   -.33488E-04
   8  Prefactor     .10000E-03    4.8291        .16803E-02** at limit **
   9  Prefactor     5.5868        13.631        .16993E-03   -.57535E-05
  10  Prefactor     6.6128        3.8868        .11144E-03    .26178E-03
  11  Prefactor     4.8800        3.7549        .61374E-03    .16116E-03
  12  norm          .10000E-03    .24082        .32922E-03** at limit **
  13  norm          5.0716        11.267        .89241E-03   -.51836E-04
  14  Prefactor     .10000E-03    9.5481        .18142E-02** at limit **
  15  norm          .10007E-03    31.860        .13813    ** at limit **
  16  Prefactor     .53304        2.0129        .10716E-03    .11356E-02
  17  Prefactor     2.4650        2.0982        .52660E-04    .29924E-02
  18  Prefactor     11.915        16.152        .11604E-03    .17733E-04
  19  Prefactor     .10014E-03    20.291        .15953E-02** at limit **
  20  norm          1.9676        1.2769        .68783E-04    .47784E-03
  21  Normalizat    1.1751        .22074        .23536E-03    .38095E-03
  22  Prefactor     .72195        .16510        .22568E-03    .48468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.805075
  Prefactor  = 6.48937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.63563
  Prefactor  = 0.0001
  Prefactor  = 5.5868
  Prefactor  = 6.61282
  Prefactor  = 4.87999
  norm       = 0.0001
  norm       = 5.07161
  Prefactor  = 0.0001
  norm       = 0.000100069
  Prefactor  = 0.533038
  Prefactor  = 2.465
  Prefactor  = 11.9153
  Prefactor  = 0.000100137
  norm       = 1.9676
  Normalizat = 1.17511
  Prefactor  = 0.721954
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.760     FROM HESSE     STATUS=OK           336 CALLS     3175 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .80508        1.0698        .17801E-03   -1.5529    
   3  Prefactor     6.4894        7.3423        .63021E-05   -1.5198    
   4  Prefactor     .10000E-03    25.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.6036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6356        1.7815        .42368E-05   -1.5452    
   8  Prefactor     .10000E-03    4.8291        .33605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5868        13.629        .67973E-05   -1.5235    
  10  Prefactor     6.6128        3.8868        .44576E-05   -1.5194    
  11  Prefactor     4.8800        3.7539        .24550E-04   -1.5266    
  12  norm          .10000E-03    .24315        .65845E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0716        11.266        .35696E-04   -1.5258    
  14  Prefactor     .10000E-03    9.5495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10007E-03    31.427        .13971       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .53304        2.0059        .42866E-05   -1.5562    
  17  Prefactor     2.4650        2.0918        .21064E-05   -1.5394    
  18  Prefactor     11.915        16.149        .46415E-05   -1.5017    
  19  Prefactor     .10014E-03    21.173        .63812E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9676        1.2769        .27513E-05   -1.5427    
  21  Normalizat    1.1751        .22089        .47072E-04   -.87375    
  22  Prefactor     .72195        .16524        .45136E-04   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79856e-09
Minuit parameter uncertainties:
  1  0.000108913
  2  1.06978
  3  7.34336
  4  1.84881e-05
  5  7.35446e-05
  6  9.67875e-05
  7  1.78159
  8  1.89653e-06
  9  13.637
  10  3.88691
  11  3.75406
  12  1.25738e-05
  13  11.271
  14  2.28643e-05
  15  0.00294936
  16  2.00619
  17  2.09189
  18  16.1549
  19  0.00341015
  20  1.27689
  21  0.221066
  22  0.165355
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.613e+00  3.887e+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.220e-01  1.654e-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.175e+00  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.88e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.26e-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) = 6128.74540022
delta logL = 1.01494029338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6128.72440426
delta logL = 1.03593625662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7638       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6293       1.0000          .0000       10.000    
     3 'Normalizat'    1.0968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76724       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=   6128.724     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7635        11.905        .78859E-02    .37498E-03
   2  Index         3.6294        2.7532        .10230        .14339E-03
   3  Normalizat    1.0968        .65079E-01    .54799E-01    .89258E-05
   4  Prefactor     .76723        .47961E-01    .43289E-01    .16201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.76351
  Index      = 3.62938
  Normalizat = 1.09682
  Prefactor  = 0.76723
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.724     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7635        6.3792        .46660E-04   -1.5442    
   2  Index         3.6294        2.2017        .41127E-02   -.27768    
   3  Normalizat    1.0968        .22544        .24231E-03   -.89854    
   4  Prefactor     .76723        .16993        .21961E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50987e-08
Minuit parameter uncertainties:
  1  6.38161
  2  2.287
  3  0.225643
  4  0.170043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193105': 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) = 6128.72440425
delta logL = 1.03593626842

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.764e+00  6.382e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  3.629e+00  2.287e+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:  7.672e-01  1.700e-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.097e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 243.421 34.198
Photon Index (Free Index): 3.63 +/- 2.29
Photon Flux (Free Index): 1.16e-07 +/- 6.25e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.05e-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/193105/cmap_HighResolution_634089601_634348801_4FGL_J1613.6+3411_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.88e-08', energy_flux2='1.87e-05', photon_flux_error='4.04e-08', dlogl='1.04e+00', energy_flux='2.15e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-13 18:11:09.971438', photon_index_error2='2.29', photon_index2='3.63', ts='4.94', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.18', time_epoch_completed='1631581869.97', return_code='0', job_id='193105', GAL2='0.77', EG2='1.10', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.25e-08', ts2='7.30', photon_index='2.44' WHERE bin_id='1523' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:11:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 193105: <4FGL_J1613.6+3411_daily_bin1523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1523 243.421 34.1982 634089601 634348801 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 :                                   658.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            935 sec.

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

