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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin723
RA = 29.1325, Dec = 39.2493
tmin = 426729601, tmax = 426988801
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='921486', job_status='RUN', time_executed='2021-08-14 20:52:11.322472', time_epoch_executed='1628999531.32' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921486

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921486/ft1_4FGL_J0156.5+3914_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921486/ft1_4FGL_J0156.5+3914_daily_bin723.fits outfile=/scratch/kocevski/921486/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin723.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=426729601.0 tmax=426988801.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 10.21
user 5.26
sys 4.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.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/921486/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin723.fits evtable="EVENTS" outfile="/scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.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 5.06
user 0.32
sys 4.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/921486/ltcube_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.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/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits
.....................!
real 18.81
user 13.25
sys 5.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/921486/ltcube_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.fits outfile=/scratch/kocevski/921486/expmap_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.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/921486/ltcube_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.fits
.....................!
real 199.68
user 185.77
sys 11.41

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

Setting source of interest to:
4FGL J0156.5+3914 @ 29.1325 39.2493

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits scfile=/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits outfile=/scratch/kocevski/921486/cmap_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.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=29.1325 yref=39.2493 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 4.98
user 0.38
sys 4.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits scfile=/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits outfile=/scratch/kocevski/921486/cmap_HighResolution_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.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=29.1325 yref=39.2493 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 4.98
user 0.38
sys 4.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921486/Model_4FGL_J0156.5+3914_daily_bin723.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/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits.....................!
real 88.60
user 80.47
sys 7.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits', '/scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits', expMap='/scratch/kocevski/921486/expmap_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.fits', expCube='/scratch/kocevski/921486/ltcube_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/921486/Model_4FGL_J0156.5+3914_daily_bin723.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.5+3914'

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/921486/ft1_filtered_4FGL_J0156.5+3914_daily_bin723.fits
Spacecraft file(s): /scratch/kocevski/921486/ft2_4FGL_J0156.5+3914_daily_bin723.fits
Exposure map: /scratch/kocevski/921486/expmap_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.fits
Exposure cube: /scratch/kocevski/921486/ltcube_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/921486/Model_4FGL_J0156.5+3914_daily_bin723.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) = 7329.66193117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .48524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    84.194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1392       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4052       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.578       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0444       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5910       1.0000         .10000E-03   10000.    
    19 'norm      '    .71903       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.546       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77896       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7329.641     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2753 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5722        .86453E-06** at limit **
   2  Prefactor     .10000E-03    10.661       -.13791E-05** at limit **
   3  Prefactor     .10000E-03    32.861        .58586E-07** at limit **
   4  norm          .48536        1.2601       -.13705E-06   -.10366E-02
   5  Prefactor     8.9409        6.9955       -.13636E-05   -.20250E-02
   6  Prefactor     84.192        46.454       -.13357E-05    .16949E-03
   7  Prefactor     .10000E-03    20.041       -.10640E-05** at limit **
   8  norm          2.1392        1.1408        .94218E-08    .13985E-03
   9  norm          2.4052        1.1261        .46353E-07   -.14248E-03
  10  Prefactor     .10000E-03    4.5774        .31923E-07** at limit **
  11  Prefactor     3.7600        3.1823       -.17926E-06   -.27659E-03
  12  Prefactor     .10000E-03    14.118        .11283E-05** at limit **
  13  Prefactor     .10000E-03    127.57       -.25574E-05** at limit **
  14  norm          .10000E-03    3.0368        .48486E-08** at limit **
  15  Prefactor     32.582        10.591        .48968E-07    .12793E-03
  16  norm          .10000E-03    1.8035       -.12668E-07** at limit **
  17  Prefactor     2.0448        5.3522       -.42646E-05    .47823E-03
  18  norm          6.5909        .99481        .32890E-07    .18247E-03
  19  norm          .71904        .31399       -.18914E-07    .15321E-05
  20  Prefactor     .10000E-03    1.7568       -.27621E-07** at limit **
  21  norm          .10000E-03    1.9463        .21451E-07** at limit **
  22  Prefactor     26.542        31.971       -.17154E-05    .15121E-03
  23  Normalizat    .77887        .21427        .16153E-05   -.16635E-05
  24  Prefactor     .88130        .10346       -.84536E-07    .10917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.485363
  Prefactor  = 8.94088
  Prefactor  = 84.192
  Prefactor  = 0.0001
  norm       = 2.13916
  norm       = 2.4052
  Prefactor  = 0.0001
  Prefactor  = 3.76002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 32.5823
  norm       = 0.0001
  Prefactor  = 2.04475
  norm       = 6.59087
  norm       = 0.719041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.5416
  Normalizat = 0.778868
  Prefactor  = 0.881298
 **********
 **   18 **HESSE 
 **********

 FCN=   7329.641     FROM HESSE     STATUS=OK           395 CALLS     3148 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .48536        1.2401        .14411E-03   -1.5569    
   5  Prefactor     8.9409        8.0969        .67018E-03   -1.5110    
   6  Prefactor     84.192        46.305        .43779E-04   -1.3870    
   7  Prefactor     .10000E-03    20.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1392        1.1438        .65171E-04   -1.5415    
   9  norm          2.4052        1.1258        .26400E-04   -1.5398    
  10  Prefactor     .10000E-03    4.5885        .17887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7600        3.1950        .13375E-03   -1.5320    
  12  Prefactor     .10000E-03    14.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    128.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.7746        .28113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.582        10.318        .70204E-04   -1.4566    
  16  norm          .10000E-03    1.8330        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0448        5.3053        .28918E-03   -1.5422    
  18  norm          6.5909        .99303        .31580E-04   -1.5194    
  19  norm          .71904        .31376        .30599E-04   -1.5538    
  20  Prefactor     .10000E-03    1.7726        .11076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9652        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.542        31.865        .77752E-04   -1.4677    
  23  Normalizat    .77887        .24415        .37695E-03   -1.0086    
  24  Prefactor     .88130        .11811        .18033E-03   -.96798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53479e-09
Minuit parameter uncertainties:
  1  0.000122698
  2  0.00015839
  3  2.93077e-05
  4  1.2402
  5  8.09784
  6  46.3244
  7  0.000170715
  8  1.1438
  9  1.12577
  10  3.10202e-06
  11  3.19513
  12  0.00016149
  13  0.000999976
  14  1.10838e-06
  15  10.3184
  16  2.91018e-07
  17  5.3065
  18  0.993035
  19  0.313763
  20  1.67783e-06
  21  1.5988e-06
  22  31.8853
  23  0.244492
  24  0.11814
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  3.760e+00  3.195e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.813e-01  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.789e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 29.133 39.249
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.21e-05

TS (Fixed Index): 2.02
Ra Dec: 29.133 39.249
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921486/likelihoodResults_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.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) = 7329.0219159
delta logL = 0.61870014549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7328.98794029
delta logL = 0.652675754262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0356       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5573       1.0000          .0000       10.000    
     3 'Normalizat'    .73257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7328.988     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0323        9.6600        .12341E-01    .65091E-03
   2  Index         3.5590        2.6480        .14766        .13486E-03
   3  Normalizat    .73265        .55419E-01    .87465E-01    .33550E-04
   4  Prefactor     .89781        .28095E-01    .44978E-01    .70822E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03229
  Index      = 3.55897
  Normalizat = 0.732649
  Prefactor  = 0.897808
 **********
 **   18 **HESSE 
 **********

 FCN=   7328.988     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      284 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0323        22.763        .56496E-03   -1.5505    
   2  Index         3.5590        6.7587        .53236E-02   -.29235    
   3  Normalizat    .73265        .20788        .38741E-03   -1.0262    
   4  Prefactor     .89781        .10601        .17883E-03   -.96218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37617e-07
Minuit parameter uncertainties:
  1  9.6987
  2  5.50287
  3  0.2081
  4  0.106039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921486': 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): 102
logL (Free Index) = 7328.98793829
delta logL = 0.652677750419

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.032e+00  9.699e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.559e+00  5.503e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.978e-01  1.060e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.326e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 29.133 39.249
Photon Index (Free Index): 3.56 +/- 5.50
Photon Flux (Free Index): 7.51e-08 +/- 4.92e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.75e-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/921486/cmap_HighResolution_426729601_426988801_4FGL_J0156.5+3914_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.99e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.23e-05', photon_flux_error='3.90e-08', dlogl='6.53e-01', energy_flux='1.42e-05', photon_flux2='7.51e-08', job_status='DONE', time_completed='2021-08-14 21:06:44.079410', photon_index_error2='5.50', photon_index2='3.56', ts='2.02', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.75e-05', EG='0.78', time_epoch_completed='1629000404.08', return_code='0', job_id='921486', GAL2='0.90', EG2='0.73', return_code2='102', energy_flux_error='1.21e-05', photon_flux_error2='4.92e-08', ts2='3.46', photon_index='2.45' WHERE bin_id='723' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 921486: <4FGL_J0156.5+3914_daily_bin723> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin723> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 20:50:23 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:50:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 20:50:45 2021
Terminated at Sat Aug 14 21:06:45 2021
Results reported at Sat Aug 14 21:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin723 29.1325 39.2493 426729601 426988801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.5+3914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   932.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            982 sec.

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

