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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin502
RA = 28.1614, Dec = 1.7894
tmin = 369446401, tmax = 369705601
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='898318', job_status='RUN', time_executed='2021-08-14 19:40:14.123160', time_epoch_executed='1628995214.12' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898318/ft1_4FGL_J0152.6+0147_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898318/ft1_4FGL_J0152.6+0147_daily_bin502.fits outfile=/scratch/kocevski/898318/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin502.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=369446401.0 tmax=369705601.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 4.57
user 3.29
sys 1.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898318/ft1_filtered_4FGL_J0152.6+0147_daily_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/898318/ltcube_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.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/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits
.....................!
real 14.69
user 13.10
sys 1.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898318/ft1_filtered_4FGL_J0152.6+0147_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/898318/ltcube_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.fits outfile=/scratch/kocevski/898318/expmap_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.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/898318/ltcube_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.fits
.....................!
real 194.20
user 187.30
sys 6.34

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/898318/ft1_filtered_4FGL_J0152.6+0147_daily_bin502.fits scfile=/scratch/kocevski/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits outfile=/scratch/kocevski/898318/cmap_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.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 1.56
user 0.38
sys 1.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898318/ft1_filtered_4FGL_J0152.6+0147_daily_bin502.fits scfile=/scratch/kocevski/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits outfile=/scratch/kocevski/898318/cmap_HighResolution_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.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 1.63
user 0.39
sys 1.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/898318/ft1_filtered_4FGL_J0152.6+0147_daily_bin502.fits', '/scratch/kocevski/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits', expMap='/scratch/kocevski/898318/expmap_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.fits', expCube='/scratch/kocevski/898318/ltcube_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/898318/Model_4FGL_J0152.6+0147_daily_bin502.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/898318/ft1_filtered_4FGL_J0152.6+0147_daily_bin502.fits
Spacecraft file(s): /scratch/kocevski/898318/ft2_4FGL_J0152.6+0147_daily_bin502.fits
Exposure map: /scratch/kocevski/898318/expmap_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.fits
Exposure cube: /scratch/kocevski/898318/ltcube_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/898318/Model_4FGL_J0152.6+0147_daily_bin502.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) = 6406.48716246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.570       1.0000         .10000E-03   10000.    
     2 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.786       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70652       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.4951       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0056       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4400       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8266       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4289       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63538       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=   6406.462     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2023 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.633        55.626       -.76841E-05    .20170E-04
   2  norm          .10000E-03    .57939        .13397E-05** at limit **
   3  Prefactor     .10000E-03    8.0185       -.28398E-07** at limit **
   4  Prefactor     .10000E-03    2.8670        .16299E-07** at limit **
   5  Prefactor     .10000E-03    5.3590       -.91875E-07** at limit **
   6  Prefactor     17.790        38.907       -.29124E-06   -.85950E-05
   7  norm          2.8518        5.9783        .31095E-05    .34865E-04
   8  Prefactor     .10000E-03    38.546        .31835E-06** at limit **
   9  Prefactor     .70633        2.7600        .18900E-06   -.19276E-04
  10  norm          .10000E-03    13.575       -.94207E-07** at limit **
  11  Prefactor     .10000E-03    2.0168       -.29408E-07** at limit **
  12  norm          9.4946        5.5291        .19084E-06    .18775E-04
  13  Prefactor     2.0055        1.7711       -.15017E-07    .70921E-06
  14  norm          1.4400        .77436        .12415E-07   -.10944E-04
  15  Prefactor     17.773        22.577       -.11804E-06    .10740E-04
  16  Prefactor     .10000E-03    37.855       -.48501E-06** at limit **
  17  Prefactor     .10000E-03    5.7200       -.41778E-07** at limit **
  18  Prefactor     9.8233        21.311        .31182E-06   -.12234E-04
  19  Normalizat    1.4290        .17581       -.10938E-05   -.28099E-03
  20  Prefactor     .63540        .14127        .99930E-06   -.17590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7901
  norm       = 2.85179
  Prefactor  = 0.0001
  Prefactor  = 0.706334
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49458
  Prefactor  = 2.00547
  norm       = 1.43997
  Prefactor  = 17.7728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.82325
  Normalizat = 1.42896
  Prefactor  = 0.635399
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.462     FROM HESSE     STATUS=OK           293 CALLS     2316 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.633        56.772        .33136E-03   -1.4497    
   2  norm          .10000E-03    .78655        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9009        .13231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4269        .18094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.790        38.930        .94970E-04   -1.4864    
   7  norm          2.8518        6.1576        .12037E-02   -1.5370    
   8  Prefactor     .10000E-03    38.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .70633        2.7010        .25466E-03   -1.5540    
  10  norm          .10000E-03    13.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0232        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.4946        5.5461        .65027E-03   -1.5092    
  13  Prefactor     2.0055        1.7762        .95579E-04   -1.5425    
  14  norm          1.4400        .77658        .49682E-04   -1.5468    
  15  Prefactor     17.773        22.515        .95009E-04   -1.4865    
  16  Prefactor     .10000E-03    37.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8233        21.338        .12783E-03   -1.5081    
  19  Normalizat    1.4290        .20205        .22655E-03   -.79795    
  20  Prefactor     .63540        .16248        .25690E-03   -1.0612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01876e-10
Minuit parameter uncertainties:
  1  56.8554
  2  1.67405e-06
  3  1.1828e-06
  4  1.1036e-06
  5  3.79425e-06
  6  38.9851
  7  6.15896
  8  5.90265e-05
  9  2.70151
  10  1.72746e-05
  11  1.36087e-06
  12  5.54638
  13  1.77625
  14  0.776586
  15  22.5255
  16  5.35177e-05
  17  4.81785e-06
  18  21.3543
  19  0.202162
  20  0.162596
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.063e-01  2.702e+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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  6.354e-01  1.626e-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:  1.429e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898318/likelihoodResults_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.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): 0
logL (Free Index) = 6406.44962553
delta logL = 0.0127746500402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6406.44547181
delta logL = 0.0169283729547

Fit tolerance = 1e-08

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

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

 FCN=   6406.445     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0016        61.246        .59472E-01    .69611E-03
   2  Index         1.7445        3.1851        .27497        .20151E-04
   3  Normalizat    1.4300        .22681E-01    .51227E-01   -.38120E-04
   4  Prefactor     .63462        .17975E-01    .41526E-01   -.36116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00157
  Index      = 1.7445
  Normalizat = 1.43
  Prefactor  = 0.634621
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.445     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0016        3.4492        .25040E-03   -1.5508    
   2  Index         1.7445        1.2379        .15916E-01   -.70903    
   3  Normalizat    1.4300        .19792        .22648E-03   -.79765    
   4  Prefactor     .63462        .15706        .25703E-03   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61671e-10
Minuit parameter uncertainties:
  1  3.44986
  2  1.26098
  3  0.198026
  4  0.157165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898318': 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): 0
logL (Free Index) = 6406.44547105
delta logL = 0.0169291283219

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.002e+00  3.450e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.745e+00  1.261e+00  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:  6.346e-01  1.572e-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:  1.430e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/898318/cmap_HighResolution_369446401_369705601_4FGL_J0152.6+0147_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-08-14 19:50:48.355922', job_id='898318', GAL2='0.63', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1628995848.36', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.69e-02', ts2='0.12', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='502' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:50:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 898318: <4FGL_J0152.6+0147_daily_bin502> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin502> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:34 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:36: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 19:36:14 2021
Terminated at Sat Aug 14 19:50:49 2021
Results reported at Sat Aug 14 19:50:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin502 28.1614 1.7894 369446401 369705601 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 :                                   650.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            915 sec.

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

