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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1295
RA = 243.421, Dec = 34.1982
tmin = 574992001, tmax = 575251201
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='191646', job_status='RUN', time_executed='2021-09-13 17:53:55.986251', time_epoch_executed='1631580835.99' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191646/ft1_4FGL_J1613.6+3411_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191646/ft2_4FGL_J1613.6+3411_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191646/ft1_4FGL_J1613.6+3411_daily_bin1295.fits outfile=/scratch/kocevski/191646/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1295.fits ra=243.421 dec=34.1982 rad=12.0 tmin=574992001.0 tmax=575251201.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.37
user 5.11
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191646/ft1_filtered_4FGL_J1613.6+3411_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/191646/ft2_4FGL_J1613.6+3411_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/191646/ltcube_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.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/191646/ft2_4FGL_J1613.6+3411_daily_bin1295.fits
.....................!
real 14.92
user 14.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191646/ft1_filtered_4FGL_J1613.6+3411_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/191646/ft2_4FGL_J1613.6+3411_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/191646/ltcube_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.fits outfile=/scratch/kocevski/191646/expmap_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.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/191646/ltcube_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.fits
.....................!
real 190.69
user 185.61
sys 4.52

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/191646/ft1_filtered_4FGL_J1613.6+3411_daily_bin1295.fits scfile=/scratch/kocevski/191646/ft2_4FGL_J1613.6+3411_daily_bin1295.fits outfile=/scratch/kocevski/191646/cmap_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191646/ft1_filtered_4FGL_J1613.6+3411_daily_bin1295.fits scfile=/scratch/kocevski/191646/ft2_4FGL_J1613.6+3411_daily_bin1295.fits outfile=/scratch/kocevski/191646/cmap_HighResolution_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62006E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4320       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3471       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79869E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.735       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53310E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .48152       1.0000         .10000E-03   10000.    
    13 'norm      '    .18475E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.604       1.0000         .10000E-03   10000.    
    15 'norm      '    26.405       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.306       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9885       1.0000         .10000E-03   10000.    
    20 'norm      '    5.6602       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86167       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83418       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=   6976.763     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     2131 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.492        .18890E-02** at limit **
   2  norm          2.4274        1.2256        .59121E-04   -.25768E-04
   3  Prefactor     6.4033        7.9936        .79660E-03    .16297E-03
   4  Prefactor     23.987        26.245        .81752E-04   -.93172E-05
   5  Prefactor     .10000E-03    22.564        .20903E-02** at limit **
   6  norm          10.648        10.186        .12228E-03    .34585E-04
   7  Prefactor     .10000E-03    .78699        .71840E-03** at limit **
   8  Prefactor     24.357        22.148        .80121E-04   -.37886E-04
   9  Prefactor     .10000E-03    40.117        .36828E-02** at limit **
  10  Prefactor     3.3319        2.8885        .12642E-03   -.18885E-04
  11  Prefactor     .10000E-03    1.1266        .85976E-03** at limit **
  12  norm          .48189        .15840        .16981E-04   -.10672E-02
  13  norm          .10000E-03    75.405        .52620E-02** at limit **
  14  Prefactor     55.315        23.058        .53794E-04   -.13039E-03
  15  norm          26.731        31.199        .77960E-04   -.63493E-04
  16  Prefactor     .10000E-03    .54959        .99655E-03** at limit **
  17  Prefactor     1.4366        1.0068        .64133E-04   -.84237E-03
  18  Prefactor     13.904        14.283        .10590E-03    .42943E-05
  19  Prefactor     4.9791        3.1067        .10966E-03   -.23845E-04
  20  norm          5.6568        2.0247        .67851E-04   -.87496E-04
  21  Normalizat    .86260        .20665        .27008E-03   -.11496E-03
  22  Prefactor     .83447        .15506        .21342E-03   -.95886E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.4274
  Prefactor  = 6.4033
  Prefactor  = 23.9869
  Prefactor  = 0.000100001
  norm       = 10.6476
  Prefactor  = 0.0001
  Prefactor  = 24.3569
  Prefactor  = 0.000100002
  Prefactor  = 3.33186
  Prefactor  = 0.0001
  norm       = 0.481891
  norm       = 0.0001
  Prefactor  = 55.3152
  norm       = 26.731
  Prefactor  = 0.0001
  Prefactor  = 1.43656
  Prefactor  = 13.904
  Prefactor  = 4.97909
  norm       = 5.65684
  Normalizat = 0.862597
  Prefactor  = 0.834472
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.763     FROM HESSE     STATUS=OK           322 CALLS     2453 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.492        .37780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4274        1.2251        .23648E-05   -1.5396    
   3  Prefactor     6.4033        7.9889        .15932E-03   -1.5202    
   4  Prefactor     23.987        26.247        .32701E-05   -1.4728    
   5  Prefactor     .10000E-03    22.572        .41806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.648        10.184        .48913E-05   -1.5055    
   7  Prefactor     .10000E-03    .78706        .14368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.357        22.150        .32048E-05   -1.4721    
   9  Prefactor     .10000E-03    40.722        .73657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3319        2.8884        .50567E-05   -1.5343    
  11  Prefactor     .10000E-03    1.1268        .17195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .48189        .15839        .67923E-06   -1.5569    
  13  norm          .10000E-03    78.532        .21048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     55.315        23.058        .10759E-04   -1.4219    
  15  norm          26.731        31.184        .15592E-04   -1.4673    
  16  Prefactor     .10000E-03    .54972        .19931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4366        1.0065        .25653E-05   -1.5468    
  18  Prefactor     13.904        14.283        .42359E-05   -1.4962    
  19  Prefactor     4.9791        3.1066        .43864E-05   -1.5262    
  20  norm          5.6568        2.0247        .13570E-04   -1.5232    
  21  Normalizat    .86260        .20685        .10803E-04   -.97787    
  22  Prefactor     .83447        .15519        .85366E-05   -.98470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93128e-10
Minuit parameter uncertainties:
  1  9.03869e-05
  2  1.22511
  3  7.99026
  4  26.2597
  5  0.000311564
  6  10.1852
  7  1.81489e-06
  8  22.1576
  9  0.000583771
  10  2.8885
  11  2.62039e-07
  12  0.15839
  13  0.000319186
  14  23.0617
  15  31.2033
  16  1.44098e-05
  17  1.00655
  18  14.2864
  19  3.10669
  20  2.02472
  21  0.207042
  22  0.155268
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.332e+00  2.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:  8.345e-01  1.553e-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:  8.626e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 9.39e-06

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

Saving results to:
/scratch/kocevski/191646/likelihoodResults_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.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) = 6976.76221554
delta logL = 0.000987088104921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6976.76177344
delta logL = 0.00142918409983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2370       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4754       1.0000          .0000       10.000    
     3 'Normalizat'    .86134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83517       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=   6976.762     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2370        79.250        .56284E-02    .84667E-03
   2  Index         2.4754        6.1555        .17662        .73489E-04
   3  Normalizat    .86134        .66860E-01    .44406E-01    .82112E-04
   4  Prefactor     .83517        .48201E-01    .44173E-01   -.17635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23696
  Index      = 2.47545
  Normalizat = 0.861345
  Prefactor  = 0.835169
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.762     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2370        3.5161        .12419E-03   -1.5348    
   2  Index         2.4754        .74813        .90268E-02   -.52928    
   3  Normalizat    .86134        .19757        .27026E-03   -.97832    
   4  Prefactor     .83517        .15311        .21334E-03   -.98445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35911e-09
Minuit parameter uncertainties:
  1  3.51629
  2  0.751932
  3  0.197737
  4  0.153192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191646': 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) = 6976.76177344
delta logL = 0.00142918444544

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.237e+00  3.516e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.475e+00  7.519e-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.352e-01  1.532e-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:  8.613e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.48 +/- 0.75
Photon Flux (Free Index): 3.55e-08 +/- 3.33e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.05e-05

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/191646/cmap_HighResolution_574992001_575251201_4FGL_J1613.6+3411_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='1.06e-05', photon_flux_error='3.00e-08', dlogl='1.43e-03', energy_flux='1.08e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-13 18:05:48.748172', photon_index_error2='0.75', photon_index2='2.48', ts='2.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.05e-05', EG='0.86', time_epoch_completed='1631581548.75', return_code='0', job_id='191646', GAL2='0.84', EG2='0.86', return_code2='0', energy_flux_error='9.39e-06', photon_flux_error2='3.33e-08', ts2='1.99', photon_index='2.44' WHERE bin_id='1295' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 191646: <4FGL_J1613.6+3411_daily_bin1295> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1295 243.421 34.1982 574992001 575251201 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 :                                   707.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            896 sec.

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

