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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1148
RA = 243.421, Dec = 34.1982
tmin = 536889601, tmax = 537148801
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='191411', job_status='RUN', time_executed='2021-09-13 17:53:26.940097', time_epoch_executed='1631580806.94' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191411/ft1_4FGL_J1613.6+3411_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191411/ft2_4FGL_J1613.6+3411_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191411/ft1_4FGL_J1613.6+3411_daily_bin1148.fits outfile=/scratch/kocevski/191411/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1148.fits ra=243.421 dec=34.1982 rad=12.0 tmin=536889601.0 tmax=537148801.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 3.72
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191411/ft1_filtered_4FGL_J1613.6+3411_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/191411/ft2_4FGL_J1613.6+3411_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/191411/ltcube_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.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/191411/ft2_4FGL_J1613.6+3411_daily_bin1148.fits
.....................!
real 14.15
user 13.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191411/ft1_filtered_4FGL_J1613.6+3411_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/191411/ft2_4FGL_J1613.6+3411_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/191411/ltcube_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.fits outfile=/scratch/kocevski/191411/expmap_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.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/191411/ltcube_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.fits
.....................!
real 192.59
user 186.43
sys 4.07

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/191411/ft1_filtered_4FGL_J1613.6+3411_daily_bin1148.fits scfile=/scratch/kocevski/191411/ft2_4FGL_J1613.6+3411_daily_bin1148.fits outfile=/scratch/kocevski/191411/cmap_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191411/ft1_filtered_4FGL_J1613.6+3411_daily_bin1148.fits scfile=/scratch/kocevski/191411/ft2_4FGL_J1613.6+3411_daily_bin1148.fits outfile=/scratch/kocevski/191411/cmap_HighResolution_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.372       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3436       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.064       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27296       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42929       1.0000         .10000E-03   10000.    
    12 'norm      '    .16817       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.158       1.0000         .10000E-03   10000.    
    15 'norm      '    23.366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0518       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0319       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87959       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=   7361.871     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2461 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.370        66.231       -.25285E-05   -.10345E-05
   2  norm          5.3434        1.5057       -.16801E-07    .31060E-04
   3  Prefactor     2.2424        2.0957        .16832E-06   -.96672E-03
   4  Prefactor     .10000E-03    13.822       -.86363E-07** at limit **
   5  Prefactor     .10000E-03    6.3946       -.13733E-05** at limit **
   6  norm          .10000E-03    3.5093        .67880E-07** at limit **
   7  Prefactor     .10000E-03    .72064       -.40317E-07** at limit **
   8  Prefactor     23.063        21.413       -.80133E-06   -.73835E-05
   9  Prefactor     .10000E-03    4.2045       -.28014E-06** at limit **
  10  Prefactor     .26679        1.4593       -.11009E-06    .22343E-04
  11  Prefactor     .43856        1.8076        .49595E-06   -.19783E-03
  12  norm          .16816        .10522       -.58299E-08   -.14754E-02
  13  norm          .10000E-03    5.0777        .80497E-06** at limit **
  14  Prefactor     32.157        18.059       -.60846E-07   -.80590E-04
  15  norm          23.358        40.481       -.13850E-04   -.73379E-04
  16  Prefactor     .10000E-03    .71710        .14878E-06** at limit **
  17  Prefactor     2.0514        1.3099        .20524E-06   -.10718E-02
  18  Prefactor     .10000E-03    7.1287        .99386E-06** at limit **
  19  Prefactor     3.0318        2.9297        .46256E-06   -.17425E-03
  20  norm          .10000E-03    .81858       -.19520E-07** at limit **
  21  Normalizat    1.0509        .17584        .27811E-06   -.15154E-03
  22  Prefactor     .87957        .12644        .10796E-06   -.88267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.37
  norm       = 5.3434
  Prefactor  = 2.24239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.063
  Prefactor  = 0.0001
  Prefactor  = 0.266789
  Prefactor  = 0.438561
  norm       = 0.168158
  norm       = 0.0001
  Prefactor  = 32.1574
  norm       = 23.358
  Prefactor  = 0.0001
  Prefactor  = 2.05138
  Prefactor  = 0.0001
  Prefactor  = 3.03176
  norm       = 0.0001
  Normalizat = 1.0509
  Prefactor  = 0.879567
 **********
 **   18 **HESSE 
 **********

 FCN=   7361.871     FROM HESSE     STATUS=OK           350 CALLS     2811 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.370        66.242        .47852E-04   -1.4028    
   2  norm          5.3434        1.6423        .53370E-04   -1.5246    
   3  Prefactor     2.2424        7.3780        .13722E-02   -1.5408    
   4  Prefactor     .10000E-03    13.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5158        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2089        .14143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.063        21.470        .83407E-04   -1.4747    
   9  Prefactor     .10000E-03    4.2372        .17181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .26679        8.6773        .19446E-02   -1.5605    
  11  Prefactor     .43856        7.3336        .20522E-02   -1.5576    
  12  norm          .16816        .10259        .20055E-04   -1.5626    
  13  norm          .10000E-03    5.0862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.157        18.043        .70660E-04   -1.4573    
  15  norm          23.358        40.590        .82866E-04   -1.4741    
  16  Prefactor     .10000E-03    .98648        .12299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0514        1.1713        .62513E-04   -1.5422    
  18  Prefactor     .10000E-03    7.1569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0318        2.9092        .13329E-03   -1.5360    
  20  norm          .10000E-03    .84468        .15119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0509        .21183        .25724E-03   -.91344    
  22  Prefactor     .87957        .15141        .21678E-03   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40031e-09
Minuit parameter uncertainties:
  1  66.3114
  2  1.64232
  3  7.381
  4  1.0545e-06
  5  4.85231e-07
  6  9.61877e-07
  7  4.21722e-07
  8  21.4774
  9  1.21136e-06
  10  3.04294
  11  3.58687
  12  0.102592
  13  1.41142e-05
  14  18.0465
  15  40.6383
  16  1.76907e-05
  17  1.17133
  18  2.53683e-06
  19  2.90933
  20  1.43485e-06
  21  0.211996
  22  0.151485
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.668e-01  3.043e+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.796e-01  1.515e-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.051e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191411/likelihoodResults_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.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) = 7361.86942758
delta logL = 0.00168273067538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7361.86939902
delta logL = 0.00171129587852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26656       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6444       1.0000          .0000       10.000    
     3 'Normalizat'    1.0498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88002       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=   7361.869     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      252 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25293        4.0907        .53630E-01    .68251E-03
   2  Index         2.6805        1.5083        .50000        .40597E-05
   3  Normalizat    1.0496        .81651E-02    .58204E-01    .61616E-04
   4  Prefactor     .88016        .63855E-02    .44750E-01    .99389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.252927
  Index      = 2.68055
  Normalizat = 1.0496
  Prefactor  = 0.88016
 **********
 **   18 **HESSE 
 **********

 FCN=   7361.869     FROM HESSE     STATUS=OK            35 CALLS      287 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25293        24.956        .17450E-02   -1.5607    
   2  Index         2.6805        5.5620        .14988E-01   -.48238    
   3  Normalizat    1.0496        .19194        .25739E-03   -.91387    
   4  Prefactor     .88016        .14787        .21672E-03   -.96838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3611e-08
Minuit parameter uncertainties:
  1  5.02595
  2  8.4138
  3  0.192062
  4  0.147934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191411': 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) = 7361.8693641
delta logL = 0.00174621405313

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.529e-01  5.026e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.681e+00  8.414e+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.802e-01  1.479e-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.050e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/191411/cmap_HighResolution_536889601_537148801_4FGL_J1613.6+3411_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-13 18:06:14.999707', job_id='191411', GAL2='0.88', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631581575.0', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.75e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1148' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:06:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 191411: <4FGL_J1613.6+3411_daily_bin1148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1148 243.421 34.1982 536889601 537148801 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 :                                   752.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            940 sec.

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

