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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin823
RA = 207.757, Dec = 0.4873
tmin = 452649601, tmax = 452908801
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='17071', job_status='RUN', time_executed='2021-09-08 15:28:23.888977', time_epoch_executed='1631140103.89' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17071/ft1_4FGL_J1351.0+0029_daily_bin823.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17071/ft1_4FGL_J1351.0+0029_daily_bin823.fits outfile=/scratch/kocevski/17071/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin823.fits ra=207.757 dec=0.4873 rad=12.0 tmin=452649601.0 tmax=452908801.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.50
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.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/17071/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin823.fits evtable="EVENTS" outfile="/scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits" evtable="EVENTS" scfile=/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits sctable="SC_DATA" outfile=/scratch/kocevski/17071/ltcube_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.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/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits
.....................!
real 17.18
user 16.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits sctable="SC_DATA" expcube=/scratch/kocevski/17071/ltcube_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.fits outfile=/scratch/kocevski/17071/expmap_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.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/17071/ltcube_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.fits
.....................!
real 195.50
user 189.49
sys 4.56

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.0+0029 @ 207.757 0.4873

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits scfile=/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits outfile=/scratch/kocevski/17071/cmap_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.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=207.757 yref=0.4873 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits scfile=/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits outfile=/scratch/kocevski/17071/cmap_HighResolution_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.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=207.757 yref=0.4873 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17071/Model_4FGL_J1351.0+0029_daily_bin823.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/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits.....................!
real 50.00
user 48.50
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits', '/scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits', expMap='/scratch/kocevski/17071/expmap_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.fits', expCube='/scratch/kocevski/17071/ltcube_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17071/Model_4FGL_J1351.0+0029_daily_bin823.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.0+0029'

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.616e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17071/ft1_filtered_4FGL_J1351.0+0029_daily_bin823.fits
Spacecraft file(s): /scratch/kocevski/17071/ft2_4FGL_J1351.0+0029_daily_bin823.fits
Exposure map: /scratch/kocevski/17071/expmap_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.fits
Exposure cube: /scratch/kocevski/17071/ltcube_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17071/Model_4FGL_J1351.0+0029_daily_bin823.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) = 6052.9242047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1099       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .77606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29316E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0345       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .66395E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3362       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6052.878     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     1908 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1029        14.333       -.59689E-05   -.19947E-03
   2  norm          .10000E-03    12.585       -.45533E-05** at limit **
   3  Prefactor     .10000E-03    6.4426       -.59320E-06** at limit **
   4  Prefactor     .10000E-03    9.9956        .26192E-05** at limit **
   5  norm          .77579        1.4532       -.20735E-06   -.11056E-02
   6  Prefactor     .10000E-03    21.386       -.21772E-04** at limit **
   7  norm          .10000E-03    19.746        .21852E-04** at limit **
   8  Prefactor     .10497E-03    2.1473        .77870E-06** at limit **
   9  Prefactor     7.0131        19.710        .76514E-06   -.20548E-04
  10  Prefactor     .10000E-03    2.5696       -.15688E-06** at limit **
  11  norm          .10000E-03    5.6899       -.80057E-06** at limit **
  12  Prefactor     .10000E-03    5.0089        .71840E-07** at limit **
  13  norm          2.1123        3.3223       -.45563E-06   -.73741E-03
  14  Prefactor     .10042E-03    14.201       -.32521E-05** at limit **
  15  norm          .10000E-03    4.0198        .25471E-07** at limit **
  16  norm          2.7380        6.2214       -.39006E-06   -.33332E-03
  17  Prefactor     .10000E-03    7.0843       -.14269E-05** at limit **
  18  norm          .10000E-03    6.2931        .21728E-05** at limit **
  19  Prefactor     .10000E-03    128.21       -.68408E-04** at limit **
  20  Normalizat    1.3367        .21712        .48030E-06    .14158E-03
  21  Prefactor     .90242        .14480        .27442E-06    .20992E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10291
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.775793
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000104967
  Prefactor  = 7.01306
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11234
  Prefactor  = 0.00010042
  norm       = 0.0001
  norm       = 2.73802
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33675
  Prefactor  = 0.902421
 **********
 **   18 **HESSE 
 **********

 FCN=   6052.878     FROM HESSE     STATUS=OK           319 CALLS     2227 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1029        14.503        .28403E-03   -1.5418    
   2  norm          .10000E-03    12.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .77579        1.3271        .12017E-02   -1.5532    
   6  Prefactor     .10000E-03    21.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10497E-03    5.5754        .36696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0131        19.700        .15125E-03   -1.5178    
  10  Prefactor     .10000E-03    2.5987        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.7619        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0207        .17003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1123        3.2970        .16343E-03   -1.5417    
  14  Prefactor     .10042E-03    72.459        .56387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0222        .15234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7380        6.1697        .24606E-03   -1.5377    
  17  Prefactor     .10000E-03    7.0888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    127.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3367        .26134        .26755E-03   -.82476    
  21  Prefactor     .90242        .17515        .21710E-03   -.96057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28651e-09
Minuit parameter uncertainties:
  1  11.0487
  2  2.27499e-05
  3  2.67741e-06
  4  1.8168e-05
  5  1.32718
  6  1.58825e-06
  7  1.74768e-05
  8  0.0105253
  9  19.7187
  10  2.63941e-06
  11  2.06549e-06
  12  7.38178e-07
  13  3.29731
  14  0.0110515
  15  3.41834e-07
  16  6.17113
  17  8.82912e-07
  18  1.62274e-07
  19  0.00012034
  20  0.261599
  21  0.175258
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  7.013e+00  1.972e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.024e-01  1.753e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.337e+00  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17071/likelihoodResults_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.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) = 6052.42257818
delta logL = 0.454999694686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6052.35442472
delta logL = 0.523153151251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.222       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5239       1.0000          .0000       10.000    
     3 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89370       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   6052.354     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      247 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.227        22.171        .10621E-03   -.25215E-03
   2  Index         1.5240        .74264        .10561E-01    .27481E-04
   3  Normalizat    1.3493        .25426        .26640E-03   -.48130E-03
   4  Prefactor     .89375        .17454        .21788E-03   -.51104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2272
  Index      = 1.52401
  Normalizat = 1.3493
  Prefactor  = 0.893751
 **********
 **   18 **HESSE 
 **********

 FCN=   6052.354     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.227        22.919        .21242E-04   -1.4953    
   2  Index         1.5240        .76762        .42244E-03   -.76870    
   3  Normalizat    1.3493        .25451        .53280E-04   -.82106    
   4  Prefactor     .89375        .17472        .43577E-04   -.96360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1976e-10
Minuit parameter uncertainties:
  1  22.9334
  2  0.773581
  3  0.254744
  4  0.174833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17071': 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) = 6052.35442453
delta logL = 0.523153339012

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.423e+01  2.293e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.524e+00  7.736e-01  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.938e-01  1.748e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.349e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 207.757 0.487
Photon Index (Free Index): 1.52 +/- 0.77
Photon Flux (Free Index): 8.83e-09 +/- 1.68e-08
Energy Flux (Free Index): 2.58e-05 +/- 4.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17071/cmap_HighResolution_452649601_452908801_4FGL_J1351.0+0029_daily_bin823.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', comment='SUCCESS', energy_flux2='2.58e-05', dlogl='5.23e-01', photon_flux2='8.83e-09', job_status='DONE', time_completed='2021-09-08 15:37:49.675878', photon_index_error2='0.77', photon_index2='1.52', ts='0.15', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='4.65e-05', EG='1.34', time_epoch_completed='1631140669.68', return_code='0', job_id='17071', GAL2='0.89', EG2='1.35', return_code2='0', photon_flux_error2='1.68e-08', ts2='1.20', photon_index='2.44' WHERE bin_id='823' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:37:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 17071: <4FGL_J1351.0+0029_daily_bin823> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin823> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:23 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:25:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:25:39 2021
Terminated at Wed Sep  8 15:37:50 2021
Results reported at Wed Sep  8 15:37:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin823 207.757 0.4873 452649601 452908801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.0+0029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   555.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            747 sec.

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

