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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1317
RA = 243.421, Dec = 34.1982
tmin = 580694401, tmax = 580953601
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='191668', job_status='RUN', time_executed='2021-09-13 17:54:31.262475', time_epoch_executed='1631580871.26' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191668/ft1_4FGL_J1613.6+3411_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191668/ft2_4FGL_J1613.6+3411_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191668/ft1_4FGL_J1613.6+3411_daily_bin1317.fits outfile=/scratch/kocevski/191668/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1317.fits ra=243.421 dec=34.1982 rad=12.0 tmin=580694401.0 tmax=580953601.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 2.81
user 2.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191668/ft1_filtered_4FGL_J1613.6+3411_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/191668/ft2_4FGL_J1613.6+3411_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/191668/ltcube_580694401_580953601_4FGL_J1613.6+3411_daily_bin1317.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/191668/ft2_4FGL_J1613.6+3411_daily_bin1317.fits
.....................!
real 15.34
user 14.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191668/ft1_filtered_4FGL_J1613.6+3411_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/191668/ft2_4FGL_J1613.6+3411_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/191668/ltcube_580694401_580953601_4FGL_J1613.6+3411_daily_bin1317.fits outfile=/scratch/kocevski/191668/expmap_580694401_580953601_4FGL_J1613.6+3411_daily_bin1317.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/191668/ltcube_580694401_580953601_4FGL_J1613.6+3411_daily_bin1317.fits
.....................!
real 192.36
user 186.17
sys 5.00

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/191668/ft1_filtered_4FGL_J1613.6+3411_daily_bin1317.fits scfile=/scratch/kocevski/191668/ft2_4FGL_J1613.6+3411_daily_bin1317.fits outfile=/scratch/kocevski/191668/cmap_580694401_580953601_4FGL_J1613.6+3411_daily_bin1317.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.128       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.295       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49546       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2549       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4904       1.0000         .10000E-03   10000.    
    12 'norm      '    .27505       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8231       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6713       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64778       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6227       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86976       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=   10644.15     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2097 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.118        32.454       -.21044E-05   -.15996E-03
   2  norm          1.1628        1.1676        .28829E-06   -.14375E-03
   3  Prefactor     19.162        9.4659       -.95979E-06   -.66628E-03
   4  Prefactor     .10000E-03    136.55       -.28267E-06** at limit **
   5  Prefactor     11.294        10.298        .24702E-07   -.59422E-05
   6  norm          .10000E-03    5.9088       -.56388E-07** at limit **
   7  Prefactor     .49561        1.3939        .65311E-06   -.72276E-03
   8  Prefactor     6.2557        17.021        .10924E-06   -.15991E-04
   9  Prefactor     6.1228        5.8970       -.66417E-07   -.34248E-04
  10  Prefactor     6.3823        2.9271        .25477E-07   -.80297E-04
  11  Prefactor     3.4907        2.7316        .10418E-07   -.28103E-03
  12  norm          .27501        .11084        .17891E-08   -.66385E-03
  13  norm          .10000E-03    3.6421       -.18794E-07** at limit **
  14  Prefactor     .10000E-03    16.281        .50228E-07** at limit **
  15  norm          3.8506        50.549        .26219E-05    .45115E-04
  16  Prefactor     .10000E-03    .50670        .17569E-08** at limit **
  17  Prefactor     3.6714        1.0908       -.53880E-07   -.19809E-03
  18  Prefactor     .10000E-03    24.110        .27287E-07** at limit **
  19  Prefactor     .64752        1.7295        .60954E-06   -.71944E-03
  20  norm          1.6228        .92860       -.38311E-08   -.13114E-04
  21  Normalizat    1.0630        .14525        .13536E-06   -.12506E-03
  22  Prefactor     .86973        .10823       -.30220E-06   -.54857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1179
  norm       = 1.16284
  Prefactor  = 19.1619
  Prefactor  = 0.000100002
  Prefactor  = 11.2939
  norm       = 0.0001
  Prefactor  = 0.495607
  Prefactor  = 6.25568
  Prefactor  = 6.12282
  Prefactor  = 6.38227
  Prefactor  = 3.4907
  norm       = 0.275006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.85064
  Prefactor  = 0.0001
  Prefactor  = 3.67136
  Prefactor  = 0.0001
  Prefactor  = 0.647518
  norm       = 1.6228
  Normalizat = 1.06304
  Prefactor  = 0.869729
 **********
 **   18 **HESSE 
 **********

 FCN=   10644.15     FROM HESSE     STATUS=OK           352 CALLS     2449 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.118        33.181        .78370E-04   -1.4685    
   2  norm          1.1628        1.1398        .89673E-04   -1.5492    
   3  Prefactor     19.162        9.6860        .91487E-04   -1.4832    
   4  Prefactor     .10000E-03    142.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.294        10.302        .11920E-03   -1.5036    
   6  norm          .10000E-03    5.9466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .49561        1.4840        .21041E-03   -1.5567    
   8  Prefactor     6.2557        17.058        .16051E-03   -1.5208    
   9  Prefactor     6.1228        5.9011        .16225E-03   -1.5213    
  10  Prefactor     6.3823        2.9366        .11395E-03   -1.5203    
  11  Prefactor     3.4907        2.7402        .14002E-03   -1.5334    
  12  norm          .27501        .10800        .19990E-04   -1.5603    
  13  norm          .10000E-03    3.6469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8506        51.764        .20642E-03   -1.5315    
  16  Prefactor     .10000E-03    .71885        .12558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6714        1.0017        .48884E-04   -1.5325    
  18  Prefactor     .10000E-03    24.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .64752        1.8484        .22229E-03   -1.5547    
  20  norm          1.6228        .92603        .72889E-04   -1.5453    
  21  Normalizat    1.0630        .17136        .26294E-03   -.90948    
  22  Prefactor     .86973        .12677        .22584E-03   -.97207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95539e-10
Minuit parameter uncertainties:
  1  33.2042
  2  1.13981
  3  9.68679
  4  0.000947667
  5  10.3034
  6  2.7545e-06
  7  1.48413
  8  17.0715
  9  5.90167
  10  2.93671
  11  2.7403
  12  0.107998
  13  3.9494e-06
  14  3.44533e-06
  15  28.2659
  16  3.23062e-06
  17  1.00171
  18  3.07022e-06
  19  1.84856
  20  0.926041
  21  0.171453
  22  0.126814
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.382e+00  2.937e+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.697e-01  1.268e-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.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.47
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.64e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 9.55e-06

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) = 10644.1283718
delta logL = 0.018116470208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10644.1194938
delta logL = 0.0269944646116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9602       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5448       1.0000          .0000       10.000    
     3 'Normalizat'    1.0557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87341       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=   10644.12     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9571        44.871        .41120E-02    .34816E-03
   2  Index         2.5456        3.3826        .14468        .16065E-03
   3  Normalizat    1.0558        .85369E-01    .59634E-01    .91112E-05
   4  Prefactor     .87336        .48975E-01    .44665E-01    .19027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95712
  Index      = 2.54565
  Normalizat = 1.05575
  Prefactor  = 0.87336
 **********
 **   18 **HESSE 
 **********

 FCN=   10644.12     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9571        3.5156        .10782E-03   -1.5220    
   2  Index         2.5456        .49500        .70914E-02   -.51309    
   3  Normalizat    1.0558        .16322        .26373E-03   -.91185    
   4  Prefactor     .87336        .12602        .22543E-03   -.97078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24459e-11
Minuit parameter uncertainties:
  1  3.51569
  2  0.496067
  3  0.163293
  4  0.126064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191668': 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) = 10644.1194916
delta logL = 0.0269967011354

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.734e-01  1.261e-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.056e+00  1.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.49
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.55 +/- 0.50
Photon Flux (Free Index): 7.20e-08 +/- 3.96e-08
Energy Flux (Free Index): 1.99e-05 +/- 9.74e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.64e-08', energy_flux2='1.99e-05', photon_flux_error='3.05e-08', dlogl='2.70e-02', energy_flux='2.07e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2021-09-13 18:07:24.835544', photon_index_error2='0.50', photon_index2='2.55', ts='10.47', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='9.74e-06', EG='1.06', time_epoch_completed='1631581644.84', return_code='0', job_id='191668', GAL2='0.87', EG2='1.06', return_code2='0', energy_flux_error='9.55e-06', photon_flux_error2='3.96e-08', ts2='10.49', photon_index='2.44' WHERE bin_id='1317' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 191668: <4FGL_J1613.6+3411_daily_bin1317> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1317 243.421 34.1982 580694401 580953601 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 :                                   769.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            990 sec.

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

