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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin958
RA = 243.421, Dec = 34.1982
tmin = 487641601, tmax = 487900801
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='189935', job_status='RUN', time_executed='2021-09-13 17:45:54.393904', time_epoch_executed='1631580354.39' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189935/ft1_4FGL_J1613.6+3411_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189935/ft2_4FGL_J1613.6+3411_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189935/ft1_4FGL_J1613.6+3411_daily_bin958.fits outfile=/scratch/kocevski/189935/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin958.fits ra=243.421 dec=34.1982 rad=12.0 tmin=487641601.0 tmax=487900801.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 5.09
user 4.83
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189935/ft1_filtered_4FGL_J1613.6+3411_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/189935/ft2_4FGL_J1613.6+3411_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/189935/ltcube_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.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/189935/ft2_4FGL_J1613.6+3411_daily_bin958.fits
.....................!
real 13.88
user 13.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189935/ft1_filtered_4FGL_J1613.6+3411_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/189935/ft2_4FGL_J1613.6+3411_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/189935/ltcube_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.fits outfile=/scratch/kocevski/189935/expmap_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.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/189935/ltcube_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.fits
.....................!
real 192.55
user 186.10
sys 5.86

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/189935/ft1_filtered_4FGL_J1613.6+3411_daily_bin958.fits scfile=/scratch/kocevski/189935/ft2_4FGL_J1613.6+3411_daily_bin958.fits outfile=/scratch/kocevski/189935/cmap_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189935/ft1_filtered_4FGL_J1613.6+3411_daily_bin958.fits scfile=/scratch/kocevski/189935/ft2_4FGL_J1613.6+3411_daily_bin958.fits outfile=/scratch/kocevski/189935/cmap_HighResolution_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=243.421 yref=34.1982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .63484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    96.639       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8528       1.0000         .10000E-03   10000.    
     6 'norm      '    .11971E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28076       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1565       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .20592       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    42.271       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87569       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2453       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6447       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1839       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83595       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=   5998.596     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2398 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.520       -.96307E-06** at limit **
   2  norm          .63456        .78771        .69157E-08    .10331E-03
   3  Prefactor     .10000E-03    3.6388       -.15948E-07** at limit **
   4  Prefactor     96.640        52.355        .91202E-06    .67103E-04
   5  Prefactor     7.8440        20.570       -.82097E-05   -.67165E-04
   6  norm          .10000E-03    12.267        .40105E-05** at limit **
   7  Prefactor     .27650        1.6029       -.64324E-06    .66160E-03
   8  Prefactor     .10000E-03    14.059       -.56390E-05** at limit **
   9  Prefactor     1.8421        2.9129        .55522E-06   -.96239E-03
  10  Prefactor     1.1557        4.0275        .39521E-06   -.10213E-03
  11  Prefactor     .10000E-03    1.7779       -.42262E-07** at limit **
  12  norm          .20592        .13118       -.84039E-08    .16769E-03
  13  norm          .10000E-03    7.5050       -.12717E-06** at limit **
  14  Prefactor     .10000E-03    19.201        .31439E-05** at limit **
  15  norm          42.279        49.794        .94534E-05    .52297E-04
  16  Prefactor     .10000E-03    1.1555       -.11001E-06** at limit **
  17  Prefactor     .87960        1.7525       -.44278E-06   -.63228E-03
  18  Prefactor     .10000E-03    4.4674        .55000E-07** at limit **
  19  Prefactor     5.2450        4.1549       -.23686E-07    .10790E-03
  20  norm          4.6446        2.3460       -.61565E-08    .16776E-03
  21  Normalizat    1.1842        .20421        .42844E-06    .11975E-03
  22  Prefactor     .83574        .14190       -.12842E-06    .15589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.634556
  Prefactor  = 0.0001
  Prefactor  = 96.6405
  Prefactor  = 7.84401
  norm       = 0.000100001
  Prefactor  = 0.276497
  Prefactor  = 0.0001
  Prefactor  = 1.84208
  Prefactor  = 1.15568
  Prefactor  = 0.0001
  norm       = 0.205918
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 42.2793
  Prefactor  = 0.0001
  Prefactor  = 0.879598
  Prefactor  = 0.0001
  Prefactor  = 5.245
  norm       = 4.64456
  Normalizat = 1.18417
  Prefactor  = 0.835744
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.596     FROM HESSE     STATUS=OK           350 CALLS     2748 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .63456        .75526        .74033E-03   -1.5549    
   3  Prefactor     .10000E-03    3.6480        .14421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     96.640        52.067        .40888E-04   -1.3739    
   5  Prefactor     7.8440        20.711        .14309E-03   -1.5148    
   6  norm          .10000E-03    12.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27650        6.4376        .18143E-02   -1.5603    
   8  Prefactor     .10000E-03    13.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8421        10.027        .15391E-02   -1.5437    
  10  Prefactor     1.1557        4.0704        .26906E-03   -1.5493    
  11  Prefactor     .10000E-03    1.7901        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20592        .12819        .20714E-04   -1.5617    
  13  norm          .10000E-03    7.5074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          42.279        49.528        .61658E-04   -1.4407    
  16  Prefactor     .10000E-03    1.8546        .13385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .87960        1.3475        .10569E-02   -1.5520    
  18  Prefactor     .10000E-03    4.4776        .15986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2450        4.1232        .13259E-03   -1.5250    
  20  norm          4.6446        2.3161        .79077E-04   -1.5277    
  21  Normalizat    1.1842        .24564        .25734E-03   -.87093    
  22  Prefactor     .83574        .17280        .21906E-03   -.98424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26521e-09
Minuit parameter uncertainties:
  1  4.43387e-06
  2  0.755273
  3  5.14396e-07
  4  52.0919
  5  20.7302
  6  0.000189515
  7  2.66816
  8  2.12401e-05
  9  8.59762
  10  4.07141
  11  6.40074e-06
  12  0.128192
  13  6.39535e-06
  14  1.30748e-05
  15  49.5759
  16  1.16775e-05
  17  1.34755
  18  1.03916e-06
  19  4.12345
  20  2.31611
  21  0.245876
  22  0.172908
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.156e+00  4.071e+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.357e-01  1.729e-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.184e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189935/likelihoodResults_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.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): 0
logL (Free Index) = 5997.22364798
delta logL = 1.37200417068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5997.21209757
delta logL = 1.38355458113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90277E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.2204       1.0000          .0000       10.000    
     3 'Normalizat'    1.0627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89598       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=   5997.212     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      315 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90139E-01    .92177        .34192E-02    .22933E-02
   2  Index         5.2212        2.7466        .12331        .13889E-03
   3  Normalizat    1.0626        .51752E-01    .60949E-01    .11164E-04
   4  Prefactor     .89602        .37846E-01    .44954E-01    .66389E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0901387
  Index      = 5.22124
  Normalizat = 1.06264
  Prefactor  = 0.896018
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.212     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      350 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90139E-01    2.0603        .15490E-03   -1.5648    
   2  Index         5.2212        7.2078        .46956E-02    .44263E-01
   3  Normalizat    1.0626        .18972        .26956E-03   -.90960    
   4  Prefactor     .89602        .13578        .21234E-03   -.96280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.91124e-08
Minuit parameter uncertainties:
  1  0.861439
  2  5.19213
  3  0.189844
  4  0.135836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189935': 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) = 5997.21209744
delta logL = 1.38355470753

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  9.014e-02  8.614e-01  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  5.221e+00  5.192e+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:  8.960e-01  1.358e-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.063e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 243.421 34.198
Photon Index (Free Index): 5.22 +/- 5.19
Photon Flux (Free Index): 9.79e-08 +/- 6.55e-08
Energy Flux (Free Index): 1.28e-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/189935/cmap_HighResolution_487641601_487900801_4FGL_J1613.6+3411_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.41e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='1.38e+00', photon_flux2='9.79e-08', job_status='DONE', time_completed='2021-09-13 17:57:11.180483', photon_index_error2='5.19', photon_index2='5.22', ts='0.09', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.05e-05', EG='1.18', time_epoch_completed='1631581031.18', return_code='0', job_id='189935', GAL2='0.90', EG2='1.06', return_code2='102', photon_flux_error2='6.55e-08', ts2='3.12', photon_index='2.44' WHERE bin_id='958' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 189935: <4FGL_J1613.6+3411_daily_bin958> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin958> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 13 17:45:20 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:45:45 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:45:45 2021
Terminated at Mon Sep 13 17:57:11 2021
Results reported at Mon Sep 13 17:57:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin958 243.421 34.1982 487641601 487900801 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 :                                   673.43 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             370.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            711 sec.

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

