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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1095
RA = 243.421, Dec = 34.1982
tmin = 523152001, tmax = 523411201
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='191324', job_status='RUN', time_executed='2021-09-13 17:52:47.147427', time_epoch_executed='1631580767.15' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191324/ft1_4FGL_J1613.6+3411_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191324/ft2_4FGL_J1613.6+3411_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191324/ft1_4FGL_J1613.6+3411_daily_bin1095.fits outfile=/scratch/kocevski/191324/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1095.fits ra=243.421 dec=34.1982 rad=12.0 tmin=523152001.0 tmax=523411201.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.25
user 4.00
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191324/ft1_filtered_4FGL_J1613.6+3411_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/191324/ft2_4FGL_J1613.6+3411_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/191324/ltcube_523152001_523411201_4FGL_J1613.6+3411_daily_bin1095.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/191324/ft2_4FGL_J1613.6+3411_daily_bin1095.fits
.....................!
real 15.02
user 14.56
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191324/ft1_filtered_4FGL_J1613.6+3411_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/191324/ft2_4FGL_J1613.6+3411_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/191324/ltcube_523152001_523411201_4FGL_J1613.6+3411_daily_bin1095.fits outfile=/scratch/kocevski/191324/expmap_523152001_523411201_4FGL_J1613.6+3411_daily_bin1095.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/191324/ltcube_523152001_523411201_4FGL_J1613.6+3411_daily_bin1095.fits
.....................!
real 192.99
user 187.25
sys 5.04

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/191324/ft1_filtered_4FGL_J1613.6+3411_daily_bin1095.fits scfile=/scratch/kocevski/191324/ft2_4FGL_J1613.6+3411_daily_bin1095.fits outfile=/scratch/kocevski/191324/cmap_523152001_523411201_4FGL_J1613.6+3411_daily_bin1095.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.57
user 0.42
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.928       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40969E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51454       1.0000         .10000E-03   10000.    
    12 'norm      '    .29553       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51678       1.0000         .10000E-03   10000.    
    15 'norm      '    46.579       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.525       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38817       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9985       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0204       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88251       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=   6600.812     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     2837 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.189        .18142E-02** at limit **
   2  norm          3.1040        1.2761        .56849E-04    .33197E-04
   3  Prefactor     .10000E-03    8.2341        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.068        .18142E-02** at limit **
   5  Prefactor     17.925        18.330        .94591E-04   -.96126E-04
   6  norm          .10000E-03    9.6232        .18142E-02** at limit **
   7  Prefactor     .10000E-03    1.6777        .20178E-03** at limit **
   8  Prefactor     12.119        13.846        .11505E-03    .54959E-04
   9  Prefactor     .10654        9.4212        .69532E-01    .14334E-03
  10  Prefactor     3.5286        4.4212        .17580E-03   -.10289E-03
  11  Prefactor     .50825        4.6794        .23001E-02    .53124E-03
  12  norm          .29556        .16720        .20236E-04   -.30528E-02
  13  norm          6.6584        9.9099        .15556E-03   -.35057E-03
  14  Prefactor     .50955        116.19        .46213E-02   -.67810E-04
  15  norm          46.600        55.238        .58750E-04   -.17207E-03
  16  Prefactor     .10000E-03    .97003        .12348E-02** at limit **
  17  Prefactor     4.0728        1.6097        .53056E-04   -.24260E-02
  18  Prefactor     13.531        17.451        .10891E-03   -.10146E-03
  19  Prefactor     .36757        10.531        .19682E-02   -.74523E-03
  20  norm          2.9993        1.8013        .39992E-03   -.79661E-03
  21  Normalizat    1.0206        .22717        .26195E-03   -.50084E-04
  22  Prefactor     .88227        .16824        .22039E-03    .16946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.10395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1194
  Prefactor  = 0.106541
  Prefactor  = 3.52862
  Prefactor  = 0.508245
  norm       = 0.295556
  norm       = 6.65838
  Prefactor  = 0.509546
  norm       = 46.5996
  Prefactor  = 0.0001
  Prefactor  = 4.07281
  Prefactor  = 13.5309
  Prefactor  = 0.367573
  norm       = 2.99931
  Normalizat = 1.02064
  Prefactor  = 0.882271
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.812     FROM HESSE     STATUS=OK           336 CALLS     3173 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1040        1.2756        .22740E-05   -1.5356    
   3  Prefactor     .10000E-03    8.2385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.925        18.324        .18918E-04   -1.4861    
   6  norm          .10000E-03    9.6236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6777        .40356E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.119        13.845        .23011E-04   -1.5012    
   9  Prefactor     .10654        8.7639        .73494E-01   -1.5643    
  10  Prefactor     3.5286        4.4180        .70320E-05   -1.5332    
  11  Prefactor     .50825        4.6155        .92004E-04   -1.5565    
  12  norm          .29556        .16186        .80944E-06   -1.5599    
  13  norm          6.6584        9.9094        .62226E-05   -1.5192    
  14  Prefactor     .50955        109.33        .18485E-03   -1.5565    
  15  norm          46.600        54.741        .11750E-04   -1.4342    
  16  Prefactor     .10000E-03    .97031        .24697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0728        1.6016        .21222E-05   -1.5304    
  18  Prefactor     13.531        17.447        .43565E-05   -1.4972    
  19  Prefactor     .36757        10.123        .78729E-04   -1.5587    
  20  norm          2.9993        1.8004        .15997E-04   -1.5362    
  21  Normalizat    1.0206        .22559        .10478E-04   -.92342    
  22  Prefactor     .88227        .16796        .88154E-05   -.96763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54752e-09
Minuit parameter uncertainties:
  1  4.51851e-05
  2  1.27566
  3  2.12892e-05
  4  7.66146e-05
  5  18.3298
  6  4.91958e-05
  7  1.13971e-05
  8  13.8485
  9  1.93196
  10  4.41842
  11  3.06323
  12  0.161864
  13  9.91188
  14  14.9538
  15  54.8005
  16  2.55223e-05
  17  1.60163
  18  17.4538
  19  3.8582
  20  1.80045
  21  0.225801
  22  0.16806
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.529e+00  4.418e+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.823e-01  1.681e-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.021e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191324/likelihoodResults_523152001_523411201_4FGL_J1613.6+3411_daily_bin1095.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) = 6600.79837839
delta logL = 0.0137867051408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6600.78631744
delta logL = 0.0258476520676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6851       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7236       1.0000          .0000       10.000    
     3 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88827       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=   6600.786     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6808        64.734        .62164E-02    .68173E-03
   2  Index         2.7241        3.4532        .22821        .72431E-04
   3  Normalizat    1.0111        .43259E-01    .45381E-01    .13350E-04
   4  Prefactor     .88823        .33926E-01    .44855E-01    .88202E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68078
  Index      = 2.72412
  Normalizat = 1.01111
  Prefactor  = 0.888228
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.786     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6808        6.9511        .14721E-03   -1.5380    
   2  Index         2.7241        1.6848        .81075E-02   -.47257    
   3  Normalizat    1.0111        .21347        .26308E-03   -.92659    
   4  Prefactor     .88823        .16502        .21974E-03   -.96554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24997e-08
Minuit parameter uncertainties:
  1  6.95322
  2  1.7279
  3  0.213652
  4  0.165116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191324': 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) = 6600.78631699
delta logL = 0.0258480995135

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.681e+00  6.953e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.724e+00  1.728e+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.882e-01  1.651e-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.011e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
Ra Dec: 243.421 34.198

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/191324/cmap_HighResolution_523152001_523411201_4FGL_J1613.6+3411_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-13 18:05:13.692455', job_id='191324', GAL2='0.89', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1631581513.69', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.58e-02', ts2='0.84', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1095' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 191324: <4FGL_J1613.6+3411_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1095 243.421 34.1982 523152001 523411201 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 :                                   741.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            885 sec.

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

