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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1322
RA = 29.1325, Dec = 39.2493
tmin = 581990401, tmax = 582249601
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='924727', job_status='RUN', time_executed='2021-08-14 21:07:05.505033', time_epoch_executed='1629000425.51' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924727/ft1_4FGL_J0156.5+3914_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924727/ft1_4FGL_J0156.5+3914_daily_bin1322.fits outfile=/scratch/kocevski/924727/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1322.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=581990401.0 tmax=582249601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.84
user 1.75
sys 1.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.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/924727/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/924727/ft1_filtered_4FGL_J0156.5+3914_daily_bin1322.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 1.38
user 0.30
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924727/ft1_filtered_4FGL_J0156.5+3914_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/924727/ltcube_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.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/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits
.....................!
real 13.43
user 12.06
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924727/ft1_filtered_4FGL_J0156.5+3914_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/924727/ltcube_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.fits outfile=/scratch/kocevski/924727/expmap_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.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/924727/ltcube_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.fits
.....................!
real 159.21
user 152.85
sys 6.02

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/924727/ft1_filtered_4FGL_J0156.5+3914_daily_bin1322.fits scfile=/scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits outfile=/scratch/kocevski/924727/cmap_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.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 1.39
user 0.31
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924727/ft1_filtered_4FGL_J0156.5+3914_daily_bin1322.fits scfile=/scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits outfile=/scratch/kocevski/924727/cmap_HighResolution_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.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 1.41
user 0.32
sys 1.07

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/924727/ft1_filtered_4FGL_J0156.5+3914_daily_bin1322.fits', '/scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits', expMap='/scratch/kocevski/924727/expmap_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.fits', expCube='/scratch/kocevski/924727/ltcube_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/924727/Model_4FGL_J0156.5+3914_daily_bin1322.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/924727/ft1_filtered_4FGL_J0156.5+3914_daily_bin1322.fits
Spacecraft file(s): /scratch/kocevski/924727/ft2_4FGL_J0156.5+3914_daily_bin1322.fits
Exposure map: /scratch/kocevski/924727/expmap_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.fits
Exposure cube: /scratch/kocevski/924727/ltcube_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/924727/Model_4FGL_J0156.5+3914_daily_bin1322.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) = 3653.16673096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3347       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.444       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.138       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9832       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5765       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.312       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0739       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .21416E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2049       1.0000         .10000E-03   10000.    
    19 'norm      '    .72305       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78412       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1062       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=   3653.141     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     4151 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3350        10.219       -.21167E-06   -.81867E-04
   2  Prefactor     5.4171        16.155       -.21884E-06   -.56672E-04
   3  Prefactor     60.447        81.965        .26776E-05   -.22083E-04
   4  norm          .10000E-03    .63522       -.12701E-06** at limit **
   5  Prefactor     7.7167        9.2953        .38486E-06   -.12868E-03
   6  Prefactor     .10000E-03    20.672       -.41710E-05** at limit **
   7  Prefactor     52.138        43.285       -.11010E-06    .45463E-05
   8  norm          .10000E-03    .77659        .10853E-06** at limit **
   9  norm          .10000E-03    .23037       -.32372E-07** at limit **
  10  Prefactor     4.9830        13.195       -.69750E-06    .60573E-04
  11  Prefactor     3.5756        6.1230       -.78227E-05    .24098E-03
  12  Prefactor     50.386        43.211       -.35978E-06    .14147E-04
  13  Prefactor     35.305        120.27       -.10811E-04    .45711E-04
  14  norm          2.0739        4.7178       -.96834E-06   -.35365E-03
  15  Prefactor     .10000E-03    9.2939        .49055E-06** at limit **
  16  norm          .10085E-03    5.4291        .15913E-06** at limit **
  17  Prefactor     .10000E-03    11.225       -.95179E-06** at limit **
  18  norm          2.1987        1.5913       -.42265E-07   -.21253E-03
  19  norm          .72304        .61638        .56200E-07    .86510E-04
  20  Prefactor     .10000E-03    6.4766        .10727E-06** at limit **
  21  norm          .10000E-03    17.784        .34779E-05** at limit **
  22  Prefactor     .10000E-03    45.705        .25069E-05** at limit **
  23  Normalizat    .78410        .33055        .51874E-05   -.37657E-05
  24  Prefactor     1.1062        .16775       -.10046E-06    .86556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.33504
  Prefactor  = 5.41707
  Prefactor  = 60.4469
  norm       = 0.0001
  Prefactor  = 7.7167
  Prefactor  = 0.0001
  Prefactor  = 52.1383
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.98299
  Prefactor  = 3.57564
  Prefactor  = 50.3864
  Prefactor  = 35.3053
  norm       = 2.07393
  Prefactor  = 0.0001
  norm       = 0.00010085
  Prefactor  = 0.0001
  norm       = 2.19873
  norm       = 0.723038
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.784105
  Prefactor  = 1.10615
 **********
 **   18 **HESSE 
 **********

 FCN=   3653.141     FROM HESSE     STATUS=OK           403 CALLS     4554 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3350        10.207        .13886E-03   -1.5130    
   2  Prefactor     5.4171        16.143        .17266E-03   -1.5242    
   3  Prefactor     60.447        81.904        .51608E-04   -1.4151    
   4  norm          .10000E-03    .85390        .93038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7167        9.2867        .14436E-03   -1.5152    
   6  Prefactor     .10000E-03    20.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.138        43.287        .55544E-04   -1.4263    
   8  norm          .10000E-03    .79159        .52011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .23092        .28329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9830        13.147        .18015E-03   -1.5261    
  11  Prefactor     3.5756        6.2217        .17970E-03   -1.5330    
  12  Prefactor     50.386        43.172        .56496E-04   -1.4287    
  13  Prefactor     35.305        119.73        .67439E-04   -1.4519    
  14  norm          2.0739        4.7135        .19091E-03   -1.5420    
  15  Prefactor     .10000E-03    9.3688        .17967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10085E-03    14.338        .40354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1987        1.6683        .53328E-04   -1.5411    
  19  norm          .72304        .62399        .42235E-04   -1.5538    
  20  Prefactor     .10000E-03    6.5179        .15017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    18.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78410        .36702        .38032E-03   -1.0066    
  24  Prefactor     1.1062        .18845        .18110E-03   -.89270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97672e-10
Minuit parameter uncertainties:
  1  10.2091
  2  16.1556
  3  82.0574
  4  1.05294e-05
  5  9.28844
  6  0.000122723
  7  43.3128
  8  2.56255e-06
  9  5.16433e-08
  10  13.1542
  11  6.2228
  12  43.1992
  13  120.558
  14  4.7143
  15  5.09532e-06
  16  0.00698455
  17  1.45217e-05
  18  1.66829
  19  0.623999
  20  3.58303e-06
  21  0.000138634
  22  0.000135894
  23  0.368186
  24  0.188559
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  3.576e+00  6.223e+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:  1.106e+00  1.886e-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.841e-01  3.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 29.133 39.249
Photon Flux Upper Limit: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924727/likelihoodResults_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.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) = 3652.8186553
delta logL = 0.32278988583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3652.80480033
delta logL = 0.336644861888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14061       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7395       1.0000          .0000       10.000    
     3 'Normalizat'    .71597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1358       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=   3652.805     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      316 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13990        2.8568        .52082E-02    .90259E-03
   2  Index         4.7424        3.3243        .14883        .62981E-04
   3  Normalizat    .71575        .69919E-01    .89546E-01    .20605E-04
   4  Prefactor     1.1359        .39083E-01    .36363E-01   -.96500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.139899
  Index      = 4.74235
  Normalizat = 0.71575
  Prefactor  = 1.13593
 **********
 **   18 **HESSE 
 **********

 FCN=   3652.805     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      349 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13990        7.8788        .23954E-03   -1.5633    
   2  Index         4.7424        7.3600        .51616E-02   -.51553E-01
   3  Normalizat    .71575        .26668        .39666E-03   -1.0327    
   4  Prefactor     1.1359        .14728        .17902E-03   -.88326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.33998e-07
Minuit parameter uncertainties:
  1  2.09929
  2  8.05899
  3  0.267165
  4  0.147332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924727': 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) = 3652.80479959
delta logL = 0.336645600212

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.399e-01  2.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  4.742e+00  8.059e+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:  1.136e+00  1.473e-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.158e-01  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 29.133 39.249
Photon Index (Free Index): 4.74 +/- 8.06
Photon Flux (Free Index): 8.53e-08 +/- 8.73e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.55e-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/924727/cmap_HighResolution_581990401_582249601_4FGL_J0156.5+3914_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='3.37e-01', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-08-14 21:15:41.407903', photon_index_error2='8.06', photon_index2='4.74', ts='0.45', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='1.55e-05', EG='0.78', time_epoch_completed='1629000941.41', return_code='0', job_id='924727', GAL2='1.14', EG2='0.72', return_code2='102', photon_flux_error2='8.73e-08', ts2='1.22', photon_index='2.45' WHERE bin_id='1322' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:15:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 924727: <4FGL_J0156.5+3914_daily_bin1322> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1322> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 21:00:25 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:03:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 21:03:28 2021
Terminated at Sat Aug 14 21:15:42 2021
Results reported at Sat Aug 14 21:15:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1322 29.1325 39.2493 581990401 582249601 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 :                                   528.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            917 sec.

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

