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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1250
RA = 29.1325, Dec = 39.2493
tmin = 563328001, tmax = 563587201
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='924614', job_status='RUN', time_executed='2021-08-14 21:06:01.143758', time_epoch_executed='1629000361.14' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924614/ft1_4FGL_J0156.5+3914_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924614/ft2_4FGL_J0156.5+3914_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924614/ft1_4FGL_J0156.5+3914_daily_bin1250.fits outfile=/scratch/kocevski/924614/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1250.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=563328001.0 tmax=563587201.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 3.78
user 2.82
sys 0.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/924614/ft2_4FGL_J0156.5+3914_daily_bin1250.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/924614/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1250.fits evtable="EVENTS" outfile="/scratch/kocevski/924614/ft1_filtered_4FGL_J0156.5+3914_daily_bin1250.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.27
user 0.35
sys 0.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924614/ft1_filtered_4FGL_J0156.5+3914_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/924614/ft2_4FGL_J0156.5+3914_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/924614/ltcube_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.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/924614/ft2_4FGL_J0156.5+3914_daily_bin1250.fits
.....................!
real 15.32
user 14.05
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924614/ft1_filtered_4FGL_J0156.5+3914_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/924614/ft2_4FGL_J0156.5+3914_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/924614/ltcube_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.fits outfile=/scratch/kocevski/924614/expmap_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.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/924614/ltcube_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.fits
.....................!
real 192.25
user 186.06
sys 5.69

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/924614/ft1_filtered_4FGL_J0156.5+3914_daily_bin1250.fits scfile=/scratch/kocevski/924614/ft2_4FGL_J0156.5+3914_daily_bin1250.fits outfile=/scratch/kocevski/924614/cmap_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=29.1325 yref=39.2493 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.27
user 0.39
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924614/ft1_filtered_4FGL_J0156.5+3914_daily_bin1250.fits scfile=/scratch/kocevski/924614/ft2_4FGL_J0156.5+3914_daily_bin1250.fits outfile=/scratch/kocevski/924614/cmap_HighResolution_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=29.1325 yref=39.2493 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.28
user 0.39
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.258       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    195.54       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.390       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.327       1.0000         .10000E-03   10000.    
     8 'norm      '    .12795       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.717       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25263E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10435E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12984E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'norm      '    10000.       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0584       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76008       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   674.3389     FROM MIGRAD    STATUS=CONVERGED     73 CALLS     2708 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.247        1.2607        .20406E-05    .38726E-03
   2  Prefactor     .10000E-03    25.049        .65993E-05** at limit **
   3  Prefactor     195.54        1.0006        .11438E-07    .98379E-05
   4  norm          5.2563        4.4100       -.15325E-05   -.38452E-03
   5  Prefactor     20.408        2.4988        .88581E-05    .44966E-03
   6  Prefactor     .10617E-03    37.071       -.47015E-05** at limit **
   7  Prefactor     37.317        2.3959       -.69727E-05    .20592E-02
   8  norm          .13526        .78472       -.34482E-05   -.22396E-03
   9  norm          .10000E-03    2.9646        .13116E-05** at limit **
  10  Prefactor     69.731        3.3328        .74399E-05   -.35762E-02
  11  Prefactor     .10001E-03    14.785        .10680E-04** at limit **
  12  Prefactor     .10062E-03    2.4602       -.50664E-04** at limit **
  13  Prefactor     .11096E-03    186.99       -.49918E-03** at limit **
  14  norm          .10005E-03    52.257       -.41402E-04** at limit **
  15  Prefactor     .11385E-03    63.329        .21503E-03** at limit **
  16  norm          .53903E-02    33.590       -.22552E-03    .20642E-02
  17  Prefactor     .79173E-03    4.0113       -.75526E-04** at limit **
  18  norm          .10320E-03    37.197        .24119E-04** at limit **
  19  norm          .10001E-03    10.566        .10879E-04** at limit **
  20  Prefactor    10000.0        .53636        .20603E-04** at limit **
  21  norm         10000.0        9.6823        .12029E-03   -.11924E-02
  22  Prefactor     8.0735        3.8066        .25291E-04   -.17798E-02
  23  Normalizat    .10000E-01    1.1726       -.18873E-04** at limit **
  24  Prefactor     .75998        .16453        .40187E-05    .14536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2474
  Prefactor  = 0.000100001
  Prefactor  = 195.539
  norm       = 5.25626
  Prefactor  = 20.4083
  Prefactor  = 0.000106172
  Prefactor  = 37.3174
  norm       = 0.135261
  norm       = 0.0001
  Prefactor  = 69.7315
  Prefactor  = 0.000100007
  Prefactor  = 0.000100623
  Prefactor  = 0.000110963
  norm       = 0.000100054
  Prefactor  = 0.000113851
  norm       = 0.00539035
  Prefactor  = 0.000791727
  norm       = 0.000103201
  norm       = 0.000100007
  Prefactor  = 10000
  norm       = 9999.99
  Prefactor  = 8.07345
  Normalizat = 0.01
  Prefactor  = 0.759981
 **********
 **   18 **HESSE 
 **********

 FCN=   674.3389     FROM HESSE     STATUS=OK           447 CALLS     3155 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.247        24.679        .19544E-02   -1.4683    
   2  Prefactor     .10000E-03    24.773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     195.54        167.98        .72222E-03   -1.2902    
   4  norm          5.2563        4.5939        .43818E-02   -1.5249    
   5  Prefactor     20.408        32.233        .22175E-02   -1.4804    
   6  Prefactor     .10617E-03    124.08        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.317        117.00        .16400E-02   -1.4485    
   8  norm          .13526        7.6516        .48183E-01   -1.5634    
   9  norm          .10000E-03    2.1891        .18787E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     69.731        76.460        .12019E-02   -1.4036    
  11  Prefactor     .10001E-03    14.698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10062E-03    242.07        .10730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11096E-03    207.93        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10005E-03    51.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11385E-03    105.88        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .53903E-02    985.73        .90712E-02   -1.5693    
  17  Prefactor     .79173E-03    1163.5        .10290E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10320E-03    121.68        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    10.521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        1866.9        .10173E-01    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm         10000.0        1373.0        .90712E-02    1.5691    
  22  Prefactor     8.0735        2294.8        .35310E-02   -1.5140    
  23  Normalizat    .10000E-01    .64623        .22594       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .75998        .21519        .43195E-01   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39499e-06
Minuit parameter uncertainties:
  1  24.6887
  2  0.000326741
  3  168.39
  4  4.59421
  5  32.2609
  6  0.0554638
  7  117.729
  8  2.03418
  9  3.48586e-05
  10  76.5682
  11  0.000658964
  12  0.024663
  13  0.095822
  14  0.00334778
  15  0.0767282
  16  4.64578
  17  1.83097
  18  0.039555
  19  0.000531761
  20  3.43161
  21  6.43107
  22  284.022
  23  4.97219e-06
  24  0.215426
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  6.590e-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:  7.600e-01  2.154e-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  4.972e-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.06e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924614/likelihoodResults_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.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) = 674.339194606
delta logL = -0.000315487226317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 674.338884671
delta logL = -5.55242979772e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1609       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75998       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=   674.3389     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      303 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    322.09        .68915E-02** at limit **
   2  Index         1.6585        9.0237        .50000       -.62266E-07
   3  Normalizat    .10000E-01    .36337E-01    .12184E-01** at limit **
   4  Prefactor     .75998        .28164E-01    .15598E-03    .41821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65854
  Normalizat = 0.01
  Prefactor  = 0.759984
 **********
 **   18 **HESSE 
 **********

 FCN=   674.3389     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      332 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1554.8        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6585        5.8285        .50000       -.73191    
   3  Normalizat    .10000E-01    .20800        .24367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75998        .67461E-01    .31196E-04   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.07565e-09
Minuit parameter uncertainties:
  1  0.00106277
  2  2340.06
  3  8.20428e-06
  4  0.0674688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924614': 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) = 674.33887797
delta logL = 1.1481099591e-06

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.063e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.659e+00  2.340e+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:  7.600e-01  6.747e-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  8.204e-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/924614/cmap_HighResolution_563328001_563587201_4FGL_J0156.5+3914_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-02', job_status='DONE', photon_flux_upper_limit='1.06e-06', time_completed='2021-08-14 21:12:17.893478', job_id='924614', GAL2='0.76', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629000737.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1250' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:12:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 924614: <4FGL_J0156.5+3914_daily_bin1250> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1250> 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) <bullet0038>, 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:12:18 2021
Results reported at Sat Aug 14 21:12:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1250 29.1325 39.2493 563328001 563587201 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 :                                   383.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            719 sec.

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

