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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1306
RA = 29.1325, Dec = 39.2493
tmin = 577843201, tmax = 578102401
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='924692', job_status='RUN', time_executed='2021-08-14 21:06:32.926200', time_epoch_executed='1629000392.93' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924692

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924692/ft1_4FGL_J0156.5+3914_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924692/ft2_4FGL_J0156.5+3914_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924692/ft1_4FGL_J0156.5+3914_daily_bin1306.fits outfile=/scratch/kocevski/924692/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1306.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=577843201.0 tmax=578102401.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 7.49
user 3.02
sys 4.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/924692/ft2_4FGL_J0156.5+3914_daily_bin1306.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/924692/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1306.fits evtable="EVENTS" outfile="/scratch/kocevski/924692/ft1_filtered_4FGL_J0156.5+3914_daily_bin1306.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 4.62
user 0.34
sys 4.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924692/ft1_filtered_4FGL_J0156.5+3914_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/924692/ft2_4FGL_J0156.5+3914_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/924692/ltcube_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.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/924692/ft2_4FGL_J0156.5+3914_daily_bin1306.fits
.....................!
real 23.07
user 18.04
sys 4.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924692/ft1_filtered_4FGL_J0156.5+3914_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/924692/ft2_4FGL_J0156.5+3914_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/924692/ltcube_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.fits outfile=/scratch/kocevski/924692/expmap_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.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/924692/ltcube_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.fits
.....................!
real 196.79
user 186.19
sys 9.63

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/924692/ft1_filtered_4FGL_J0156.5+3914_daily_bin1306.fits scfile=/scratch/kocevski/924692/ft2_4FGL_J0156.5+3914_daily_bin1306.fits outfile=/scratch/kocevski/924692/cmap_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.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.55
user 0.39
sys 4.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924692/ft1_filtered_4FGL_J0156.5+3914_daily_bin1306.fits scfile=/scratch/kocevski/924692/ft2_4FGL_J0156.5+3914_daily_bin1306.fits outfile=/scratch/kocevski/924692/cmap_HighResolution_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.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.52
user 0.39
sys 4.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8210       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12176E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5933       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.711       1.0000         .10000E-03   10000.    
     8 'norm      '    .14400E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .33246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.433       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12113E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .99212       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46289E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.708       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4766       1.0000         .10000E-03   10000.    
    19 'norm      '    .59153       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.217       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .57477       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2081       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=   3231.720     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2784 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3905       -.13751E-07** at limit **
   2  Prefactor     7.8199        27.910        .30083E-06   -.63763E-05
   3  Prefactor     .10000E-03    94.207       -.72334E-07** at limit **
   4  norm          1.5934        3.1897        .21596E-06   -.72559E-04
   5  Prefactor     .10000E-03    36.669        .26973E-06** at limit **
   6  Prefactor     .10000E-03    18.458        .17587E-09** at limit **
   7  Prefactor     67.678        67.047       -.46808E-06   -.89422E-04
   8  norm          .10000E-03    1.9540        .32772E-07** at limit **
   9  norm          .33176        1.1566        .29490E-06   -.16894E-03
  10  Prefactor     16.420        29.486        .10280E-06   -.23368E-04
  11  Prefactor     .10000E-03    6.7012       -.14518E-06** at limit **
  12  Prefactor     72.239        77.818       -.41781E-05    .16227E-04
  13  Prefactor     .10000E-03    28.941       -.26310E-07** at limit **
  14  norm          .99084        9.6426        .14000E-05   -.59034E-04
  15  Prefactor     .10011E-03    17.264        .15162E-05** at limit **
  16  norm          .10000E-03    7.0743        .46720E-07** at limit **
  17  Prefactor     11.707        17.837       -.34860E-06   -.42677E-05
  18  norm          2.4767        1.3096       -.41957E-08   -.37121E-04
  19  norm          .59127        .54235        .46091E-07   -.14859E-03
  20  Prefactor     19.221        11.537        .59152E-07   -.37808E-05
  21  norm          .10000E-03    16.147       -.66533E-07** at limit **
  22  Prefactor     .10000E-03    42.393        .20564E-06** at limit **
  23  Normalizat    .57464        .41510       -.14397E-05   -.12301E-04
  24  Prefactor     1.2082        .18391       -.55149E-07   -.20998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.81989
  Prefactor  = 0.0001
  norm       = 1.59337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.6778
  norm       = 0.0001
  norm       = 0.331765
  Prefactor  = 16.4197
  Prefactor  = 0.0001
  Prefactor  = 72.2385
  Prefactor  = 0.0001
  norm       = 0.990842
  Prefactor  = 0.00010011
  norm       = 0.0001
  Prefactor  = 11.7069
  norm       = 2.47669
  norm       = 0.591267
  Prefactor  = 19.2207
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.574635
  Prefactor  = 1.20817
 **********
 **   18 **HESSE 
 **********

 FCN=   3231.720     FROM HESSE     STATUS=OK           399 CALLS     3183 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3911        .11634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8199        27.892        .14338E-03   -1.5149    
   3  Prefactor     .10000E-03    94.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5934        3.1489        .13655E-03   -1.5456    
   5  Prefactor     .10000E-03    37.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.678        67.228        .24389E-03   -1.4061    
   8  norm          .10000E-03    3.7724        .15485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .33176        1.1541        .10742E-03   -1.5593    
  10  Prefactor     16.420        29.424        .98800E-04   -1.4897    
  11  Prefactor     .10000E-03    6.8672        .28629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     72.239        77.142        .47236E-04   -1.4006    
  13  Prefactor     .10000E-03    28.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .99084        8.7916        .32604E-03   -1.5509    
  15  Prefactor     .10011E-03    146.44        .41464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.1624        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.707        17.782        .11708E-03   -1.5024    
  18  norm          2.4767        1.2963        .44200E-04   -1.5393    
  19  norm          .59127        .52643        .38070E-04   -1.5554    
  20  Prefactor     19.221        11.440        .91365E-04   -1.4831    
  21  norm          .10000E-03    16.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .57464        .42510        .48846E-03   -1.0907    
  24  Prefactor     1.2082        .19190        .16997E-03   -.86080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25372e-10
Minuit parameter uncertainties:
  1  5.60415e-07
  2  27.9385
  3  4.41371e-05
  4  3.14927
  5  4.87247e-05
  6  2.06792e-05
  7  67.3041
  8  6.59593e-06
  9  1.15422
  10  29.4503
  11  3.08316e-05
  12  77.2489
  13  7.60819e-06
  14  5.90379
  15  0.00806306
  16  1.14593e-05
  17  17.7896
  18  1.29628
  19  0.526437
  20  11.4418
  21  3.28245e-06
  22  0.000115588
  23  0.427539
  24  0.192011
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  3.083e-05  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.208e+00  1.920e-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:  5.746e-01  4.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/924692/likelihoodResults_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.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) = 3231.72087981
delta logL = -0.000694322863183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3231.72018991
delta logL = -4.42841064796e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11852E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4470       1.0000          .0000       10.000    
     3 'Normalizat'    .57372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2086       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=   3231.720     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1897        .90712E-02** at limit **
   2  Index         2.4474        6.1687        .50000       -.68009E-06
   3  Normalizat    .57464        .38377E-02    .11017        .26959E-04
   4  Prefactor     1.2082        .18867E-02    .34431E-01    .14866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44743
  Normalizat = 0.574635
  Prefactor  = 1.20817
 **********
 **   18 **HESSE 
 **********

 FCN=   3231.720     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    510.34        .28629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4474        8.7751        .50000       -.53578    
   3  Normalizat    .57464        .93853E-01    .48845E-03   -1.0907    
   4  Prefactor     1.2082        .43071E-01    .16997E-03   -.86080    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.6473e-06
Minuit parameter uncertainties:
  1  0.000818989
  2  10661.4
  3  0.0938785
  4  0.0430727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924692': 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) = 3231.72018548
delta logL = 9.00399754755e-11

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  8.190e-04  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.447e+00  1.066e+04  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.208e+00  4.307e-02  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:  5.746e-01  9.388e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.133 39.249

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/924692/cmap_HighResolution_577843201_578102401_4FGL_J0156.5+3914_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-08-14 21:16:23.583141', job_id='924692', GAL2='1.21', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1629000983.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='9.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1306' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:16:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 924692: <4FGL_J0156.5+3914_daily_bin1306> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1306> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 21:00:24 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:03:03 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:03 2021
Terminated at Sat Aug 14 21:16:24 2021
Results reported at Sat Aug 14 21:16:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1306 29.1325 39.2493 577843201 578102401 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 :                                   647.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            960 sec.

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

