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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1619
RA = 29.1325, Dec = 39.2493
tmin = 658972801, tmax = 659232001
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='143816', job_status='RUN', time_executed='2021-12-07 12:25:16.127158', time_epoch_executed='1638908716.13' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143816/ft1_4FGL_J0156.5+3914_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143816/ft2_4FGL_J0156.5+3914_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143816/ft1_4FGL_J0156.5+3914_daily_bin1619.fits outfile=/scratch/kocevski/143816/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1619.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=658972801.0 tmax=659232001.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.95
user 2.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143816/ft1_filtered_4FGL_J0156.5+3914_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/143816/ft2_4FGL_J0156.5+3914_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/143816/ltcube_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.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/143816/ft2_4FGL_J0156.5+3914_daily_bin1619.fits
.....................!
real 12.68
user 12.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143816/ft1_filtered_4FGL_J0156.5+3914_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/143816/ft2_4FGL_J0156.5+3914_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/143816/ltcube_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.fits outfile=/scratch/kocevski/143816/expmap_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.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/143816/ltcube_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.fits
.....................!
real 191.23
user 185.65
sys 5.25

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/143816/ft1_filtered_4FGL_J0156.5+3914_daily_bin1619.fits scfile=/scratch/kocevski/143816/ft2_4FGL_J0156.5+3914_daily_bin1619.fits outfile=/scratch/kocevski/143816/cmap_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143816/ft1_filtered_4FGL_J0156.5+3914_daily_bin1619.fits scfile=/scratch/kocevski/143816/ft2_4FGL_J0156.5+3914_daily_bin1619.fits outfile=/scratch/kocevski/143816/cmap_HighResolution_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.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 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5783       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8962       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    92.834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.443       1.0000         .10000E-03   10000.    
    21 'norm      '    46.627       1.0000         .10000E-03   10000.    
    22 'Prefactor '    77.555       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .50638       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0761       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=   1949.222     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2784 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5773        23.739        .16997E-04   -.12449E-03
   2  Prefactor     .10000E-03    17.980        .88231E-07** at limit **
   3  Prefactor     .10000E-03    51.419        .33632E-06** at limit **
   4  norm          3.8961        3.5796        .33808E-06    .16736E-04
   5  Prefactor     .10000E-03    6.5715        .53876E-08** at limit **
   6  Prefactor     .10000E-03    29.772        .18187E-07** at limit **
   7  Prefactor     .10000E-03    88.737       -.74966E-06** at limit **
   8  norm          .10000E-03    1.3944        .23804E-07** at limit **
   9  norm          .10000E-03    .88299        .23675E-06** at limit **
  10  Prefactor     16.133        35.946        .11555E-05    .68279E-05
  11  Prefactor     .10000E-03    3.5618       -.19257E-06** at limit **
  12  Prefactor     92.817        94.462       -.14824E-05   -.62721E-04
  13  Prefactor     .10000E-03    102.71        .10920E-06** at limit **
  14  norm          1.4088        45.820        .18414E-04   -.11510E-03
  15  Prefactor     .10000E-03    20.824       -.18274E-06** at limit **
  16  norm          .10000E-03    7.4906       -.40742E-06** at limit **
  17  Prefactor     .10000E-03    29.821       -.15009E-06** at limit **
  18  norm          .10000E-03    1.0898       -.20289E-06** at limit **
  19  norm          .10000E-03    .61239       -.15720E-05** at limit **
  20  Prefactor     16.416        93.704        .32502E-05   -.78808E-05
  21  norm          46.589        105.57        .38436E-05    .57717E-06
  22  Prefactor     77.792        419.34       -.17749E-04    .45957E-04
  23  Normalizat    .50638        .42746       -.99492E-05    .21879E-04
  24  Prefactor     1.0761        .19736        .64906E-06    .12807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.57729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1326
  Prefactor  = 0.0001
  Prefactor  = 92.8168
  Prefactor  = 0.000100003
  norm       = 1.40883
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 16.4158
  norm       = 46.5888
  Prefactor  = 77.7918
  Normalizat = 0.506378
  Prefactor  = 1.07611
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.222     FROM HESSE     STATUS=OK           389 CALLS     3173 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5773        23.940        .16907E-02   -1.5457    
   2  Prefactor     .10000E-03    18.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8961        3.5662        .73919E-04   -1.5313    
   5  Prefactor     .10000E-03    6.5778        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    88.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4242        .50898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1289        .79504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.133        35.873        .99717E-04   -1.4904    
  11  Prefactor     .10000E-03    3.5643        .81370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     92.817        94.129        .20855E-03   -1.3778    
  13  Prefactor     .10000E-03    102.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4088        46.407        .18333E-02   -1.5471    
  15  Prefactor     .10000E-03    20.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4955        .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0911        .45012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .67293        .69789E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.416        91.390        .98771E-04   -1.4897    
  21  norm          46.589        104.71        .58719E-04   -1.4342    
  22  Prefactor     77.792        419.63        .22799E-03   -1.3942    
  23  Normalizat    .50638        .45197        .45355E-03   -1.1212    
  24  Prefactor     1.0761        .21065        .15746E-03   -.90234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70643e-09
Minuit parameter uncertainties:
  1  12.2953
  2  7.55603e-06
  3  0.000181094
  4  3.56636
  5  1.38884e-06
  6  3.84135e-05
  7  0.00110972
  8  1.7731e-06
  9  1.39788e-05
  10  35.9207
  11  2.01917e-05
  12  94.2807
  13  0.0011413
  14  16.1846
  15  9.22899e-05
  16  6.19647e-05
  17  2.3803e-05
  18  1.19554e-05
  19  7.02715e-05
  20  77.6482
  21  105.131
  22  365.405
  23  0.455304
  24  0.210817
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.019e-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.076e+00  2.108e-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.064e-01  4.553e-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: 2.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143816/likelihoodResults_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.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) = 1949.22363277
delta logL = -0.00129078670921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1949.22234182
delta logL = 1.59224327945e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4292       1.0000          .0000       10.000    
     3 'Normalizat'    .50635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0761       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=   1949.222     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      257 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.510        .82431E-02** at limit **
   2  Index         1.9455        7.3960        .50000        .16947E-06
   3  Normalizat    .50638        .26165E-01    .45354E-03    .37161E-05
   4  Prefactor     1.0761        .13015E-01    .15746E-03    .15487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94551
  Normalizat = 0.506379
  Prefactor  = 1.07611
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.222     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    236.60        .90082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9455        5.7149        .50000       -.65719    
   3  Normalizat    .50638        .79998E-01    .18141E-04   -1.1212    
   4  Prefactor     1.0761        .39801E-01    .62984E-05   -.90234    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13078e-09
Minuit parameter uncertainties:
  1  2.45673e-05
  2  851.088
  3  0.0800159
  4  0.0398017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143816': 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) = 1949.2223394
delta logL = 2.57396914094e-06

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.457e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.946e+00  8.511e+02  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.076e+00  3.980e-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.064e-01  8.002e-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/143816/cmap_HighResolution_658972801_659232001_4FGL_J0156.5+3914_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', job_status='DONE', photon_flux_upper_limit='2.30e-07', time_completed='2021-12-07 12:32:21.217102', job_id='143816', GAL2='1.08', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1638909141.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1619' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:32:21 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 143816: <4FGL_J0156.5+3914_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1619> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:20:20 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:21:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:21:48 2021
Terminated at Tue Dec  7 12:32:22 2021
Results reported at Tue Dec  7 12:32:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1619 29.1325 39.2493 658972801 659232001 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 :                                   425.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             247.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            722 sec.

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

