/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 157 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 = 7683
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin378
RA = 28.1614, Dec = 1.7894
tmin = 337305601, tmax = 337564801
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='896972', job_status='RUN', time_executed='2021-08-14 19:35:53.679669', time_epoch_executed='1628994953.68' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896972

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896972/ft1_4FGL_J0152.6+0147_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896972/ft1_4FGL_J0152.6+0147_daily_bin378.fits outfile=/scratch/kocevski/896972/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin378.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=337305601.0 tmax=337564801.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 7.32
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.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/896972/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin378.fits evtable="EVENTS" outfile="/scratch/kocevski/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/896972/ltcube_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.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/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits
.....................!
real 12.47
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/896972/ltcube_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.fits outfile=/scratch/kocevski/896972/expmap_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.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/896972/ltcube_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.fits
.....................!
real 192.86
user 186.05
sys 4.76

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 J0152.6+0147 @ 28.1614 1.7894

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits scfile=/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits outfile=/scratch/kocevski/896972/cmap_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.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=28.1614 yref=1.7894 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/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits scfile=/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits outfile=/scratch/kocevski/896972/cmap_HighResolution_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.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=28.1614 yref=1.7894 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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/896972/Model_4FGL_J0152.6+0147_daily_bin378.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/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits.....................!
real 49.17
user 47.81
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits', '/scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits', expMap='/scratch/kocevski/896972/expmap_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.fits', expCube='/scratch/kocevski/896972/ltcube_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/896972/Model_4FGL_J0152.6+0147_daily_bin378.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.6+0147'

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.406e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/896972/ft1_filtered_4FGL_J0152.6+0147_daily_bin378.fits
Spacecraft file(s): /scratch/kocevski/896972/ft2_4FGL_J0152.6+0147_daily_bin378.fits
Exposure map: /scratch/kocevski/896972/expmap_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.fits
Exposure cube: /scratch/kocevski/896972/ltcube_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/896972/Model_4FGL_J0152.6+0147_daily_bin378.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) = 4087.30253638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8939       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2728       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.165       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6080       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    101.74       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98220       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4087.294     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1988 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.126        .16426E-05** at limit **
   2  norm          6.8940        2.5023       -.27965E-07   -.56660E-04
   3  Prefactor     36.141        72.721        .14569E-05    .92604E-04
   4  Prefactor     3.2573        11.524        .10616E-05   -.45941E-04
   5  Prefactor     16.514        12.485       -.39485E-08   -.10708E-04
   6  Prefactor     .10000E-03    33.464       -.38961E-06** at limit **
   7  norm          11.525        8.7501        .81232E-07   -.13003E-04
   8  Prefactor     .10000E-03    54.908       -.10732E-05** at limit **
   9  Prefactor     .10000E-03    2.8326        .85621E-07** at limit **
  10  norm          .10000E-03    10.108        .14084E-06** at limit **
  11  Prefactor     15.165        9.3240       -.51031E-06   -.43209E-04
  12  norm          3.7240        5.5875        .49977E-05   -.18389E-03
  13  Prefactor     .10000E-03    1.2231       -.57011E-06** at limit **
  14  norm          1.6079        1.0279        .48951E-07   -.39433E-05
  15  Prefactor     16.470        25.539        .61186E-06    .21675E-05
  16  Prefactor     101.64        91.335       -.85629E-05   -.30533E-03
  17  Prefactor     .10000E-03    11.186       -.58007E-07** at limit **
  18  Prefactor     .10000E-03    12.790       -.83601E-07** at limit **
  19  Normalizat    .98238        .21319       -.17190E-05    .12483E-04
  20  Prefactor     .76360        .17041        .42974E-06   -.44677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 6.89398
  Prefactor  = 36.1408
  Prefactor  = 3.25727
  Prefactor  = 16.5141
  Prefactor  = 0.0001
  norm       = 11.5247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1647
  norm       = 3.72396
  Prefactor  = 0.0001
  norm       = 1.60793
  Prefactor  = 16.4695
  Prefactor  = 101.641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.982384
  Prefactor  = 0.763603
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.294     FROM HESSE     STATUS=OK           291 CALLS     2279 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8940        2.4979        .57691E-04   -1.5183    
   3  Prefactor     36.141        72.038        .66694E-04   -1.4505    
   4  Prefactor     3.2573        11.348        .22384E-03   -1.5347    
   5  Prefactor     16.514        12.487        .98556E-04   -1.4895    
   6  Prefactor     .10000E-03    33.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.525        8.7570        .11800E-03   -1.5029    
   8  Prefactor     .10000E-03    54.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8475        .10507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.165        9.3363        .10285E-03   -1.4929    
  12  norm          3.7240        5.6873        .88902E-03   -1.5322    
  13  Prefactor     .10000E-03    1.2451        .69045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6079        1.0244        .49468E-04   -1.5454    
  15  Prefactor     16.470        25.551        .98697E-04   -1.4896    
  16  Prefactor     101.64        94.894        .19930E-03   -1.3688    
  17  Prefactor     .10000E-03    11.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98238        .24368        .25510E-03   -.93623    
  20  Prefactor     .76360        .19553        .22790E-03   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02991e-09
Minuit parameter uncertainties:
  1  0.000402647
  2  2.49797
  3  72.2126
  4  11.3559
  5  12.4885
  6  7.76052e-05
  7  8.75798
  8  0.000285872
  9  3.2839e-06
  10  7.92337e-06
  11  9.33717
  12  5.68815
  13  3.71004e-06
  14  1.02446
  15  25.5676
  16  95.0366
  17  1.09207e-05
  18  3.27136e-05
  19  0.243951
  20  0.195708
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.284e-06  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  7.636e-01  1.957e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.824e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896972/likelihoodResults_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.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) = 4087.29581764
delta logL = -0.00166718565333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4087.29415142
delta logL = -9.67755113379e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9575       1.0000          .0000       10.000    
     3 'Normalizat'    .98236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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=   4087.294     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      233 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10296E-03    1.2518        .10806E-01** at limit **
   2  Index         1.8627        7.6518        .50000        .55747E-04
   3  Normalizat    .98239        .33850E-02    .25510E-03    .56488E-04
   4  Prefactor     .76360        .27121E-02    .22790E-03   -.11930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102956
  Index      = 1.8627
  Normalizat = 0.982386
  Prefactor  = 0.763601
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.294     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10296E-03    55.004        .11154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8627        5.3950        .50000       -.67829    
   3  Normalizat    .98239        .22775E-01    .10204E-04   -.93623    
   4  Prefactor     .76360        .18245E-01    .91159E-05   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.49299e-08
Minuit parameter uncertainties:
  1  0.025527
  2  294.42
  3  0.0227751
  4  0.0182449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896972': 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) = 4087.29414891
delta logL = 1.54347844727e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.030e-04  2.553e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.863e+00  2.944e+02  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  7.636e-01  1.824e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.824e-01  2.278e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.161 1.789

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/896972/cmap_HighResolution_337305601_337564801_4FGL_J0152.6+0147_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-08-14 19:44:36.549248', job_id='896972', GAL2='0.76', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1628995476.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='378' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:44:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 896972: <4FGL_J0152.6+0147_daily_bin378> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin378> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:36 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:33:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:33:07 2021
Terminated at Sat Aug 14 19:44:37 2021
Results reported at Sat Aug 14 19:44:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin378 28.1614 1.7894 337305601 337564801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.6+0147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            841 sec.

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

