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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin527
RA = 28.1614, Dec = 1.7894
tmin = 375926401, tmax = 376185601
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='898355', job_status='RUN', time_executed='2021-08-14 19:40:58.841945', time_epoch_executed='1628995258.84' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898355/ft1_4FGL_J0152.6+0147_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898355/ft2_4FGL_J0152.6+0147_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898355/ft1_4FGL_J0152.6+0147_daily_bin527.fits outfile=/scratch/kocevski/898355/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin527.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=375926401.0 tmax=376185601.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.43
user 3.18
sys 1.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898355/ft1_filtered_4FGL_J0152.6+0147_daily_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/898355/ft2_4FGL_J0152.6+0147_daily_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/898355/ltcube_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.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/898355/ft2_4FGL_J0152.6+0147_daily_bin527.fits
.....................!
real 13.66
user 12.11
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898355/ft1_filtered_4FGL_J0152.6+0147_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/898355/ft2_4FGL_J0152.6+0147_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/898355/ltcube_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.fits outfile=/scratch/kocevski/898355/expmap_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.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/898355/ltcube_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.fits
.....................!
real 192.23
user 185.16
sys 6.47

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/898355/ft1_filtered_4FGL_J0152.6+0147_daily_bin527.fits scfile=/scratch/kocevski/898355/ft2_4FGL_J0152.6+0147_daily_bin527.fits outfile=/scratch/kocevski/898355/cmap_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.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.43
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898355/ft1_filtered_4FGL_J0152.6+0147_daily_bin527.fits scfile=/scratch/kocevski/898355/ft2_4FGL_J0152.6+0147_daily_bin527.fits outfile=/scratch/kocevski/898355/cmap_HighResolution_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.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.42
user 0.37
sys 1.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.546       1.0000         .10000E-03   10000.    
     2 'norm      '    .70833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.986       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    49.512       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7752       1.0000         .10000E-03   10000.    
    14 'norm      '    .22574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27977E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2664       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73009       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0315       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=   4661.824     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     2373 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.613        72.718        .72495E-04   -.23335E-04
   2  norm          .70939        1.1412        .97618E-03   -.85261E-03
   3  Prefactor     .10000E-03    54.093        .18142E-02** at limit **
   4  Prefactor     .10000E-03    3.9101        .13133E-02** at limit **
   5  Prefactor     .10000E-03    6.9987        .17592E-02** at limit **
   6  Prefactor     .10000E-03    22.007        .18142E-02** at limit **
   7  norm          11.986        7.3010        .11571E-03   -.11299E-04
   8  Prefactor     .10000E-03    24.173        .18142E-02** at limit **
   9  Prefactor     .10001E-03    5.7545        .22891E-02** at limit **
  10  norm          49.514        21.537        .56991E-04   -.21145E-05
  11  Prefactor     .10000E-03    5.6569        .15701E-02** at limit **
  12  norm          15.565        6.1473        .10152E-03   -.44122E-04
  13  Prefactor     3.7749        3.0536        .97988E-04   -.31407E-03
  14  norm          .22592        .75736        .10334E-03   -.67085E-03
  15  Prefactor     44.881        31.511        .59843E-04   -.12269E-03
  16  Prefactor     .10008E-03    65.498        .17385    ** at limit **
  17  Prefactor     1.2684        49.880        .39577E-03   -.96863E-04
  18  Prefactor     .10000E-03    11.106        .18142E-02** at limit **
  19  Normalizat    .73014        .21453        .27758E-03   -.18815E-03
  20  Prefactor     1.0314        .18252        .20143E-03   -.30108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6126
  norm       = 0.70939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9861
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 49.5142
  Prefactor  = 0.0001
  norm       = 15.5654
  Prefactor  = 3.77494
  norm       = 0.225917
  Prefactor  = 44.8806
  Prefactor  = 0.000100075
  Prefactor  = 1.26844
  Prefactor  = 0.0001
  Normalizat = 0.730136
  Prefactor  = 1.03144
 **********
 **   18 **HESSE 
 **********

 FCN=   4661.824     FROM HESSE     STATUS=OK           283 CALLS     2656 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.613        72.662        .14499E-04   -1.4601    
   2  norm          .70939        1.1397        .39047E-04   -1.5540    
   3  Prefactor     .10000E-03    54.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9107        .26266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0001        .35184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.986        7.3009        .46283E-05   -1.5015    
   8  Prefactor     .10000E-03    24.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    5.7748        .45782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          49.514        21.537        .11398E-04   -1.4299    
  11  Prefactor     .10000E-03    5.6601        .31403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.565        6.1472        .40608E-05   -1.4919    
  13  Prefactor     3.7749        3.0533        .39195E-05   -1.5319    
  14  norm          .22592        .75721        .41336E-05   -1.5613    
  15  Prefactor     44.881        31.509        .11969E-04   -1.4367    
  16  Prefactor     .10008E-03    65.767        .17324       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2684        49.839        .15831E-04   -1.5483    
  18  Prefactor     .10000E-03    11.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73014        .21459        .11103E-04   -1.0272    
  20  Prefactor     1.0314        .18265        .40285E-04   -.91689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.917e-09
Minuit parameter uncertainties:
  1  72.8731
  2  1.1397
  3  0.000101655
  4  3.16275e-05
  5  4.93366e-05
  6  5.42773e-05
  7  7.30145
  8  7.12652e-05
  9  0.000422403
  10  21.54
  11  5.68522e-05
  12  6.14742
  13  3.05345
  14  0.757246
  15  31.5208
  16  0.00445763
  17  15.9156
  18  4.3197e-05
  19  0.214833
  20  0.182755
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  4.224e-04  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:  1.031e+00  1.828e-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:  7.301e-01  2.148e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898355/likelihoodResults_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.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) = 4661.82527559
delta logL = -0.000827228534945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4661.82444817
delta logL = 1.95616848941e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9588       1.0000          .0000       10.000    
     3 'Normalizat'    .73011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0315       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=   4661.824     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      259 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    10.808        .31978E-02** at limit **
   2  Index         1.9183        8.1030        .50000        .28762E-04
   3  Normalizat    .73014        .63952E-02    .27758E-03    .34649E-04
   4  Prefactor     1.0314        .54702E-02    .20143E-03   -.14965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100643
  Index      = 1.91828
  Normalizat = 0.730139
  Prefactor  = 1.03144
 **********
 **   18 **HESSE 
 **********

 FCN=   4661.824     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10064E-03    84.464        .63956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9183        5.2522        .50000       -.66409    
   3  Normalizat    .73014        .18070E-01    .11103E-04   -1.0271    
   4  Prefactor     1.0314        .15455E-01    .40285E-04   -.91689    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.79702e-09
Minuit parameter uncertainties:
  1  0.0147611
  2  172.693
  3  0.0180699
  4  0.0154553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898355': 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) = 4661.8244479
delta logL = 4.69026417704e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.006e-04  1.476e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.918e+00  1.727e+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:  1.031e+00  1.546e-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:  7.301e-01  1.807e-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/898355/cmap_HighResolution_375926401_376185601_4FGL_J0152.6+0147_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-08-14 19:50:29.553452', job_id='898355', GAL2='1.03', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1628995829.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='527' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 898355: <4FGL_J0152.6+0147_daily_bin527> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin527 28.1614 1.7894 375926401 376185601 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 :                                   583.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            893 sec.

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

