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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1251
RA = 29.1325, Dec = 39.2493
tmin = 563587201, tmax = 563846401
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='924616', job_status='RUN', time_executed='2021-08-14 21:07:27.711074', time_epoch_executed='1629000447.71' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924616/ft1_4FGL_J0156.5+3914_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924616/ft2_4FGL_J0156.5+3914_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924616/ft1_4FGL_J0156.5+3914_daily_bin1251.fits outfile=/scratch/kocevski/924616/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1251.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=563587201.0 tmax=563846401.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 8.52
user 2.54
sys 5.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/924616/ft2_4FGL_J0156.5+3914_daily_bin1251.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/924616/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1251.fits evtable="EVENTS" outfile="/scratch/kocevski/924616/ft1_filtered_4FGL_J0156.5+3914_daily_bin1251.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 6.23
user 0.33
sys 5.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924616/ft1_filtered_4FGL_J0156.5+3914_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/924616/ft2_4FGL_J0156.5+3914_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/924616/ltcube_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.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/924616/ft2_4FGL_J0156.5+3914_daily_bin1251.fits
.....................!
real 21.73
user 14.89
sys 6.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924616/ft1_filtered_4FGL_J0156.5+3914_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/924616/ft2_4FGL_J0156.5+3914_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/924616/ltcube_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.fits outfile=/scratch/kocevski/924616/expmap_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.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/924616/ltcube_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.fits
.....................!
real 198.09
user 185.59
sys 12.00

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/924616/ft1_filtered_4FGL_J0156.5+3914_daily_bin1251.fits scfile=/scratch/kocevski/924616/ft2_4FGL_J0156.5+3914_daily_bin1251.fits outfile=/scratch/kocevski/924616/cmap_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.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 6.19
user 0.37
sys 5.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924616/ft1_filtered_4FGL_J0156.5+3914_daily_bin1251.fits scfile=/scratch/kocevski/924616/ft2_4FGL_J0156.5+3914_daily_bin1251.fits outfile=/scratch/kocevski/924616/cmap_HighResolution_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.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 6.13
user 0.39
sys 5.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    107.68       1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.67       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9646       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.563       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12754E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22646E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13693E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49698E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    323.92       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66483E-02   1.0000         .10000E-03   10000.    
    16 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8036       1.0000         .10000E-03   10000.    
    18 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    21 'norm      '    296.97       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5500       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .11385       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   170.5162     FROM MIGRAD    STATUS=CONVERGED   1414 CALLS     4134 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3355        21.524        .91129E-04   -.33118E-04
   2  Prefactor     107.71        112.69        .19378E-03   -.28485E-04
   3  Prefactor     107.95        163.40        .19379E-03    .92215E-06
   4  norm          3.9734        5.2307        .31369E-04    .71050E-04
   5  Prefactor     31.578        40.166        .35660E-03   -.23458E-04
   6  Prefactor     .10000E-03    151.09        .15760E-02** at limit **
   7  Prefactor     .10000E-03    112.93        .13600E-02** at limit **
   8  norm          .10000E-03    5.6659        .30406E-03** at limit **
   9  norm          .10000E-03    4.8371        .28099E-03** at limit **
  10  Prefactor     .10000E-03    183.62        .17361E-02** at limit **
  11  Prefactor     .10000E-03    232.45        .18142E-02** at limit **
  12  Prefactor     .10000E-03    975.43        .18142E-02** at limit **
  13  Prefactor     .10002E-03    9332.9        .19211E-02** at limit **
  14  norm          324.44        457.59        .11297E-03    .55789E-06
  15  Prefactor     .12597E-03    9916.1        .18782E-02** at limit **
  16  norm         10000.0        9761.2        .18852E-02** at limit **
  17  Prefactor    10000.0        9842.6        .83356E-02** at limit **
  18  norm         10000.0        7935.5        .20812E-02** at limit **
  19  norm         10000.0        1966.4        .21107E-02** at limit **
  20  Prefactor    10000.0        6304.9        .18662E-02** at limit **
  21  norm         10000.0        9368.0        .11782E-01** at limit **
  22  Prefactor    10000.0        5976.9        .10726E-01** at limit **
  23  Normalizat    .10000E-01    1.2800        .77609E-02** at limit **
  24  Prefactor     .11294        .26653        .22408E-03   -.13480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.33548
  Prefactor  = 107.713
  Prefactor  = 107.953
  norm       = 3.97335
  Prefactor  = 31.5779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100022
  norm       = 324.443
  Prefactor  = 0.00012597
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.112943
 **********
 **   18 **HESSE 
 **********

 FCN=   170.5162     FROM HESSE     STATUS=OK           373 CALLS     4507 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3355        21.528        .36452E-05   -1.5166    
   2  Prefactor     107.71        112.74        .77512E-05   -1.3629    
   3  Prefactor     107.95        163.43        .77516E-05   -1.3626    
   4  norm          3.9734        5.2310        .62738E-05   -1.5309    
   5  Prefactor     31.578        40.172        .14264E-04   -1.4583    
   6  Prefactor     .10000E-03    151.09        .31521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    112.93        .27200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.6659        .60812E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.8371        .56197E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    183.62        .34722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    232.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    975.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    9332.9        .38421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          324.44        457.55        .22594E-04   -1.2086    
  15  Prefactor     .12597E-03    9916.1        .37564E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        9770.8        .37703E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9842.0        .16671E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        7921.3        .41624E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        1966.4        .42215E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        6307.1        .37324E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm         10000.0        9368.4        .23564E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        5975.8        .21452E-02    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    1.2800        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11294        .26664        .89631E-05   -1.3578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5523e-09
Minuit parameter uncertainties:
  1  21.5511
  2  112.964
  3  164.116
  4  5.23157
  5  40.2061
  6  0.000488868
  7  0.000345551
  8  1.59382e-05
  9  2.89503e-06
  10  0.000141702
  11  0.000208982
  12  0.00354176
  13  0.0351936
  14  462.799
  15  1.73333
  16  0.49066
  17  1.39447
  18  0.301323
  19  0.00912335
  20  0.193475
  21  0.690519
  22  122.795
  23  9.06015e-06
  24  0.269553
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.090e-04  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.129e-01  2.696e-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:  1.000e-02  9.060e-06  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.47e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924616/likelihoodResults_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.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): 102
logL (Free Index) = 170.516179189
delta logL = -2.02457008527e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 170.516161766
delta logL = -2.82217908421e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1501       1.0000          .0000       10.000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11309       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   170.5162     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      292 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10545E-03    241.43        .15597E-01** at limit **
   2  Index         3.0138        6.7860        .50000        .12384E-05
   3  Normalizat    .10000E-01    .39525E-02    .77594E-02** at limit **
   4  Prefactor     .11294        .10077E-01    .22485E-03    .38980E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105447
  Index      = 3.01381
  Normalizat = 0.01
  Prefactor  = 0.112944
 **********
 **   18 **HESSE 
 **********

 FCN=   170.5162     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10545E-03    2023.7        .16400E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0138        6.5008        .50000       -.40851    
   3  Normalizat    .10000E-01    .36195E-01    .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11294        .30491E-01    .89939E-05   -1.3578    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28964e-09
Minuit parameter uncertainties:
  1  0.2178
  2  2369.78
  3  3.7116e-08
  4  0.0304954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924616': 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) = 170.51615905
delta logL = -1.06188821292e-07

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.054e-04  2.178e-01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.014e+00  2.370e+03  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.129e-01  3.050e-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:  1.000e-02  3.712e-08  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/924616/cmap_HighResolution_563587201_563846401_4FGL_J0156.5+3914_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e+00', job_status='DONE', photon_flux_upper_limit='1.47e-05', time_completed='2021-08-14 21:14:30.750786', job_id='924616', GAL2='0.11', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629000870.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.11', dlogl='-1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1251' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:14:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 924616: <4FGL_J0156.5+3914_daily_bin1251> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1251 29.1325 39.2493 563587201 563846401 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 :                                   509.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             195.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            852 sec.

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

