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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1248
RA = 29.1325, Dec = 39.2493
tmin = 562809601, tmax = 563068801
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='924612', job_status='RUN', time_executed='2021-08-14 21:06:53.543645', time_epoch_executed='1629000413.54' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924612/ft1_4FGL_J0156.5+3914_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924612/ft2_4FGL_J0156.5+3914_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924612/ft1_4FGL_J0156.5+3914_daily_bin1248.fits outfile=/scratch/kocevski/924612/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1248.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=562809601.0 tmax=563068801.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.64
user 3.16
sys 4.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/924612/ft2_4FGL_J0156.5+3914_daily_bin1248.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/924612/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1248.fits evtable="EVENTS" outfile="/scratch/kocevski/924612/ft1_filtered_4FGL_J0156.5+3914_daily_bin1248.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.72
user 0.36
sys 4.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924612/ft1_filtered_4FGL_J0156.5+3914_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/924612/ft2_4FGL_J0156.5+3914_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/924612/ltcube_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.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/924612/ft2_4FGL_J0156.5+3914_daily_bin1248.fits
.....................!
real 18.28
user 13.13
sys 5.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924612/ft1_filtered_4FGL_J0156.5+3914_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/924612/ft2_4FGL_J0156.5+3914_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/924612/ltcube_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.fits outfile=/scratch/kocevski/924612/expmap_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.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/924612/ltcube_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.fits
.....................!
real 196.79
user 185.70
sys 10.68

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/924612/ft1_filtered_4FGL_J0156.5+3914_daily_bin1248.fits scfile=/scratch/kocevski/924612/ft2_4FGL_J0156.5+3914_daily_bin1248.fits outfile=/scratch/kocevski/924612/cmap_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.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.67
user 0.38
sys 4.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924612/ft1_filtered_4FGL_J0156.5+3914_daily_bin1248.fits scfile=/scratch/kocevski/924612/ft2_4FGL_J0156.5+3914_daily_bin1248.fits outfile=/scratch/kocevski/924612/cmap_HighResolution_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.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.66
user 0.39
sys 4.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    83.859       1.0000         .10000E-03   10000.    
     3 'Prefactor '    181.45       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15722E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .60831       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2405       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    95.678       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11506E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0789       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23580E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80665       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=   719.4440     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2681 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.168        .47052E-06** at limit **
   2  Prefactor     83.816        59.109       -.67677E-05   -.14327E-03
   3  Prefactor     181.42        165.64       -.21158E-04   -.68916E-04
   4  norm          .10000E-03    2.5264       -.11629E-07** at limit **
   5  Prefactor     .10000E-03    13.349       -.11721E-05** at limit **
   6  Prefactor     .10001E-03    482.46        .49154E-04** at limit **
   7  Prefactor     .10000E-03    115.61       -.33832E-04** at limit **
   8  norm          .60748        6.0083       -.12439E-05   -.36441E-03
   9  norm          1.2400        1.7777       -.30528E-06   -.68788E-03
  10  Prefactor     .10000E-03    67.600        .39807E-04** at limit **
  11  Prefactor     .10000E-03    13.383        .11921E-05** at limit **
  12  Prefactor     .10000E-03    110.56       -.24769E-04** at limit **
  13  Prefactor     .10000E-03    129.04       -.37291E-04** at limit **
  14  norm          .10000E-03    36.528        .47998E-06** at limit **
  15  Prefactor     .10000E-03    63.699       -.38138E-04** at limit **
  16  norm          95.683        85.206        .25410E-05   -.61686E-04
  17  Prefactor     .10000E-03    217.11        .16528E-03** at limit **
  18  norm          .10000E-03    12.809       -.55213E-07** at limit **
  19  norm          1.0784        2.4763       -.48919E-06   -.31636E-03
  20  Prefactor     .10000E-03    90.690        .56133E-04** at limit **
  21  norm          .10000E-03    114.04       -.31692E-04** at limit **
  22  Prefactor     .10000E-03    830.05       -.50046E-03** at limit **
  23  Normalizat    .10000E-01    .38178        .12811E-04** at limit **
  24  Prefactor     .80605        .18152        .34999E-05   -.55305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 83.8162
  Prefactor  = 181.416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.60748
  norm       = 1.24001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 95.6829
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.07835
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.806045
 **********
 **   18 **HESSE 
 **********

 FCN=   719.4440     FROM HESSE     STATUS=OK           383 CALLS     3064 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.203        .10533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     83.816        58.748        .43865E-04   -1.3874    
   3  Prefactor     181.42        165.75        .14984E-03   -1.3006    
   4  norm          .10000E-03    2.5397        .41637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.352        .95755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    490.33        .20433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    115.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .60748        5.9598        .12380E-03   -1.5552    
   9  norm          1.2400        1.7558        .39503E-04   -1.5485    
  10  Prefactor     .10000E-03    67.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.395        .95844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    110.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    129.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    36.529        .15846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    63.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          95.683        84.918        .41091E-04   -1.3748    
  17  Prefactor     .10000E-03    216.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.811        .93557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0784        2.4049        .61107E-03   -1.5500    
  20  Prefactor     .10000E-03    90.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    114.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    828.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .46252        .88125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .80605        .16834        .13509E-03   -.99506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07179e-09
Minuit parameter uncertainties:
  1  0.000194171
  2  58.7886
  3  166.179
  4  4.1953e-06
  5  3.87819e-06
  6  0.00357998
  7  0.000345687
  8  3.80568
  9  1.75586
  10  6.77299e-05
  11  1.67929e-05
  12  3.05288e-05
  13  2.25482e-05
  14  1.12355e-05
  15  1.92892e-05
  16  85.0258
  17  2.11795e-05
  18  6.17933e-05
  19  2.40515
  20  2.52733e-05
  21  1.44818e-05
  22  6.46705e-06
  23  2.98538e-05
  24  0.168447
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.679e-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:  8.060e-01  1.684e-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  2.985e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/924612/likelihoodResults_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.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) = 719.444339537
delta logL = -0.000358409888122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 719.443983063
delta logL = -1.9357975134e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4399       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80577       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=   719.4440     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      249 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    377.04        .96029E-03** at limit **
   2  Index         2.4015        8.2900        .50000        .36818E-05
   3  Normalizat    .10000E-01    .27953E-01    .88126E-02** at limit **
   4  Prefactor     .80604        .34259E-01    .13509E-03   -.80090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100362
  Index      = 2.40154
  Normalizat = 0.01
  Prefactor  = 0.806043
 **********
 **   18 **HESSE 
 **********

 FCN=   719.4440     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    1381.1        .19206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4015        8.5081        .50000       -.54649    
   3  Normalizat    .10000E-01    .12700        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80604        .73111E-01    .27018E-04   -.99506    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.94914e-09
Minuit parameter uncertainties:
  1  0.04581
  2  1975.06
  3  2.11971e-06
  4  0.0731194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924612': 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) = 719.443981097
delta logL = 3.04579543808e-08

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.004e-04  4.581e-02  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.402e+00  1.975e+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:  8.060e-01  7.312e-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  2.120e-06  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/924612/cmap_HighResolution_562809601_563068801_4FGL_J0156.5+3914_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-02', job_status='DONE', photon_flux_upper_limit='6.81e-07', time_completed='2021-08-14 21:13:56.350809', job_id='924612', GAL2='0.81', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629000836.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1248' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:13:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 924612: <4FGL_J0156.5+3914_daily_bin1248> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1248> 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) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:02:14 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:14 2021
Terminated at Sat Aug 14 21:13:57 2021
Results reported at Sat Aug 14 21:13:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1248 29.1325 39.2493 562809601 563068801 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 :                                   488.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             206.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            818 sec.

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

