/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 202 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1
RA = 243.421, Dec = 34.1982
tmin = 239587201, tmax = 239846401
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='178091', job_status='RUN', time_executed='2021-09-13 17:09:22.663097', time_epoch_executed='1631578162.66' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178091

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178091/ft1_4FGL_J1613.6+3411_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178091/ft2_4FGL_J1613.6+3411_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178091/ft1_4FGL_J1613.6+3411_daily_bin1.fits outfile=/scratch/kocevski/178091/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1.fits ra=243.421 dec=34.1982 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.34
user 1.17
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178091/ft1_filtered_4FGL_J1613.6+3411_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/178091/ft2_4FGL_J1613.6+3411_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/178091/ltcube_239587201_239846401_4FGL_J1613.6+3411_daily_bin1.fits outfile=/scratch/kocevski/178091/expmap_239587201_239846401_4FGL_J1613.6+3411_daily_bin1.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/178091/ltcube_239587201_239846401_4FGL_J1613.6+3411_daily_bin1.fits
.....................!
real 191.18
user 186.47
sys 4.21

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/178091/ft1_filtered_4FGL_J1613.6+3411_daily_bin1.fits scfile=/scratch/kocevski/178091/ft2_4FGL_J1613.6+3411_daily_bin1.fits outfile=/scratch/kocevski/178091/cmap_239587201_239846401_4FGL_J1613.6+3411_daily_bin1.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178091/ft1_filtered_4FGL_J1613.6+3411_daily_bin1.fits scfile=/scratch/kocevski/178091/ft2_4FGL_J1613.6+3411_daily_bin1.fits outfile=/scratch/kocevski/178091/cmap_HighResolution_239587201_239846401_4FGL_J1613.6+3411_daily_bin1.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17831E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5409       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .79638       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    98.077       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.8823       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3733       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57795       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=   6260.643     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2033 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    818.60       -.18073E-04** at limit **
   2  norm          4.5411        1.6386       -.46952E-07   -.27221E-04
   3  Prefactor     .10000E-03    7.1078        .12227E-06** at limit **
   4  Prefactor     .10000E-03    11.617        .15816E-07** at limit **
   5  Prefactor     .10000E-03    5.8404        .84099E-08** at limit **
   6  norm          .10000E-03    4.0977        .71944E-09** at limit **
   7  Prefactor     .10000E-03    .54755        .26714E-07** at limit **
   8  Prefactor     .10000E-03    7.2351        .35735E-07** at limit **
   9  Prefactor     5.5315        8.8465        .42952E-05   -.68285E-04
  10  Prefactor     .97763        3.8338        .23653E-05   -.23766E-04
  11  Prefactor     .10000E-03    2.1110       -.11669E-07** at limit **
  12  norm          .79637        .19693        .95264E-08    .92302E-03
  13  norm          .10000E-03    5.5465       -.87494E-07** at limit **
  14  Prefactor     .10000E-03    16.628        .70009E-07** at limit **
  15  norm          98.062        49.743        .97675E-07   -.22021E-04
  16  Prefactor     .10000E-03    .94165       -.23964E-06** at limit **
  17  Prefactor     1.7929        1.4192        .20574E-06    .76969E-03
  18  Prefactor     10.019        12.926        .53991E-06   -.15987E-04
  19  Prefactor     .10000E-03    1.7259       -.96607E-07** at limit **
  20  norm          4.8822        2.0931        .54481E-07    .11870E-03
  21  Normalizat    1.3733        .19084       -.13020E-05   -.60857E-04
  22  Prefactor     .57802        .13557       -.11890E-05   -.90618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100118
  norm       = 4.54111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5315
  Prefactor  = 0.977634
  Prefactor  = 0.0001
  norm       = 0.796374
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 98.0615
  Prefactor  = 0.0001
  Prefactor  = 1.79287
  Prefactor  = 10.019
  Prefactor  = 0.0001
  norm       = 4.88223
  Normalizat = 1.37325
  Prefactor  = 0.578019
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.643     FROM HESSE     STATUS=OK           340 CALLS     2373 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    837.90        .20329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5411        1.6409        .58415E-04   -1.5282    
   3  Prefactor     .10000E-03    7.1550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.1015        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .54955        .57177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5315        8.8264        .85426E-03   -1.5238    
  10  Prefactor     .97763        3.8875        .28302E-03   -1.5510    
  11  Prefactor     .10000E-03    2.1502        .11213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79637        .19570        .15811E-04   -1.5529    
  13  norm          .10000E-03    5.5520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          98.062        49.629        .20295E-03   -1.3724    
  16  Prefactor     .10000E-03    1.3094        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7929        1.2955        .68727E-04   -1.5440    
  18  Prefactor     10.019        12.923        .12659E-03   -1.5075    
  19  Prefactor     .10000E-03    1.7678        .20271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8822        2.0892        .71564E-04   -1.5266    
  21  Normalizat    1.3733        .22292        .23430E-03   -.81405    
  22  Prefactor     .57802        .15885        .25538E-03   -1.0852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1561e-10
Minuit parameter uncertainties:
  1  0.0201784
  2  1.64087
  3  2.46512e-05
  4  8.09045e-07
  5  8.13724e-06
  6  3.59993e-06
  7  8.09254e-07
  8  4.07848e-06
  9  8.82843
  10  3.88846
  11  6.82888e-06
  12  0.195699
  13  1.76256e-06
  14  1.7857e-05
  15  49.6505
  16  3.79181e-06
  17  1.29554
  18  12.9267
  19  3.72178e-06
  20  2.08922
  21  0.223079
  22  0.158971
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  9.776e-01  3.888e+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:  5.780e-01  1.590e-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.373e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/178091/likelihoodResults_239587201_239846401_4FGL_J1613.6+3411_daily_bin1.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) = 6260.31086104
delta logL = 0.332490874901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6260.2644713
delta logL = 0.378880614146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52548       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7870       1.0000          .0000       10.000    
     3 'Normalizat'    1.3274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59850       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=   6260.264     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      222 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52379        10.817        .11374E-01    .13063E-02
   2  Index         3.7888        3.4870        .14943        .11487E-03
   3  Normalizat    1.3274        .38575E-01    .53741E-01   -.16947E-04
   4  Prefactor     .59845        .28671E-01    .41034E-01    .80168E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.523786
  Index      = 3.78875
  Normalizat = 1.32743
  Prefactor  = 0.598451
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.264     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      255 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52379        35.876        .65876E-04   -1.5563    
   2  Index         3.7888        6.4186        .80320E-02   -.24468    
   3  Normalizat    1.3274        .19127        .23762E-03   -.82751    
   4  Prefactor     .59845        .14096        .25135E-03   -1.0765    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.17534e-07
Minuit parameter uncertainties:
  1  8.6744
  2  9.47565
  3  0.19137
  4  0.141047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178091': 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) = 6260.26447056
delta logL = 0.378881355283

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.238e-01  8.674e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  3.789e+00  9.476e+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:  5.985e-01  1.410e-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.327e+00  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/178091/cmap_HighResolution_239587201_239846401_4FGL_J1613.6+3411_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-13 17:20:05.137519', job_id='178091', GAL2='0.60', fit_tolerance='1e-08', EG2='1.33', EG='1.37', time_epoch_completed='1631578805.14', return_code2='102', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='3.79e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:20:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 178091: <4FGL_J1613.6+3411_daily_bin1> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 17:05:15 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:05:52 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:05:52 2021
Terminated at Mon Sep 13 17:20:05 2021
Results reported at Mon Sep 13 17:20:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1 243.421 34.1982 239587201 239846401 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 :                                   642.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             267.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            890 sec.

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

