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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin472
RA = 28.1614, Dec = 1.7894
tmin = 361670401, tmax = 361929601
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='898274', job_status='RUN', time_executed='2021-08-14 19:39:49.741939', time_epoch_executed='1628995189.74' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898274/ft1_4FGL_J0152.6+0147_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898274/ft2_4FGL_J0152.6+0147_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898274/ft1_4FGL_J0152.6+0147_daily_bin472.fits outfile=/scratch/kocevski/898274/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin472.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=361670401.0 tmax=361929601.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 9.82
user 3.34
sys 6.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898274/ft2_4FGL_J0152.6+0147_daily_bin472.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/898274/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin472.fits evtable="EVENTS" outfile="/scratch/kocevski/898274/ft1_filtered_4FGL_J0152.6+0147_daily_bin472.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 6.85
user 0.35
sys 6.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898274/ft1_filtered_4FGL_J0152.6+0147_daily_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/898274/ft2_4FGL_J0152.6+0147_daily_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/898274/ltcube_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.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/898274/ft2_4FGL_J0152.6+0147_daily_bin472.fits
.....................!
real 20.00
user 12.49
sys 7.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898274/ft1_filtered_4FGL_J0152.6+0147_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/898274/ft2_4FGL_J0152.6+0147_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/898274/ltcube_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.fits outfile=/scratch/kocevski/898274/expmap_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.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/898274/ltcube_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.fits
.....................!
real 198.73
user 185.79
sys 12.35

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/898274/ft1_filtered_4FGL_J0152.6+0147_daily_bin472.fits scfile=/scratch/kocevski/898274/ft2_4FGL_J0152.6+0147_daily_bin472.fits outfile=/scratch/kocevski/898274/cmap_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.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 6.81
user 0.38
sys 6.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898274/ft1_filtered_4FGL_J0152.6+0147_daily_bin472.fits scfile=/scratch/kocevski/898274/ft2_4FGL_J0152.6+0147_daily_bin472.fits outfile=/scratch/kocevski/898274/cmap_HighResolution_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.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 6.79
user 0.40
sys 6.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5162       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58008E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9075       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3735       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .71602       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8171       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.102       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.436       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3412       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76600       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=   5616.160     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2372 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.601       -.35802E-06** at limit **
   2  norm          1.5161        1.1851       -.80460E-07   -.18716E-03
   3  Prefactor     18.844        40.332        .31147E-04    .82885E-05
   4  Prefactor     3.1516        4.7574       -.18195E-05   -.36675E-03
   5  Prefactor     2.3431        8.5995       -.19103E-05   -.30798E-03
   6  Prefactor     .11054E-03    66.461       -.18654E-05** at limit **
   7  norm          5.9074        5.5768        .54723E-06    .10914E-02
   8  Prefactor     .10000E-03    51.173        .13145E-05** at limit **
   9  Prefactor     .10000E-03    1.3294       -.56048E-08** at limit **
  10  norm          10.851        10.640       -.95309E-07    .31405E-04
  11  Prefactor     3.3720        4.5312       -.23086E-07   -.11623E-03
  12  norm          1.8440        4.7238       -.28093E-06   -.60113E-03
  13  Prefactor     .70864        3.0273       -.17982E-05   -.13647E-02
  14  norm          2.8171        1.1353        .63948E-09    .15891E-04
  15  Prefactor     17.117        29.033        .27051E-05    .74840E-04
  16  Prefactor     .10000E-03    59.506       -.79481E-06** at limit **
  17  Prefactor     6.4590        10.749       -.12514E-04   -.63697E-04
  18  Prefactor     12.441        18.183        .25327E-05    .53028E-05
  19  Normalizat    1.3412        .18755        .96271E-06    .13033E-03
  20  Prefactor     .76612        .15113       -.10256E-05    .21926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.51612
  Prefactor  = 18.8437
  Prefactor  = 3.1516
  Prefactor  = 2.34311
  Prefactor  = 0.000110545
  norm       = 5.90736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8507
  Prefactor  = 3.37201
  norm       = 1.84405
  Prefactor  = 0.708643
  norm       = 2.81713
  Prefactor  = 17.1167
  Prefactor  = 0.0001
  Prefactor  = 6.45898
  Prefactor  = 12.4412
  Normalizat = 1.34122
  Prefactor  = 0.766122
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.160     FROM HESSE     STATUS=OK           309 CALLS     2681 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5161        1.1767        .69735E-04   -1.5462    
   3  Prefactor     18.844        39.841        .92243E-04   -1.4840    
   4  Prefactor     3.1516        4.7523        .19203E-03   -1.5353    
   5  Prefactor     2.3431        8.6149        .26780E-03   -1.5402    
   6  Prefactor     .11054E-03    58.108        .16087       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9074        5.6026        .82610E-03   -1.5222    
   8  Prefactor     .10000E-03    51.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3311        .84380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.851        10.642        .12165E-03   -1.5049    
  11  Prefactor     3.3720        4.5186        .17859E-03   -1.5341    
  12  norm          1.8440        4.6542        .23982E-03   -1.5436    
  13  Prefactor     .70864        2.9066        .22115E-03   -1.5540    
  14  norm          2.8171        1.1363        .48319E-04   -1.5372    
  15  Prefactor     17.117        28.211        .96849E-04   -1.4880    
  16  Prefactor     .10000E-03    59.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4590        10.720        .15792E-03   -1.5200    
  18  Prefactor     12.441        18.157        .11359E-03   -1.5002    
  19  Normalizat    1.3412        .21372        .23961E-03   -.82344    
  20  Prefactor     .76612        .17107        .24539E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87953e-09
Minuit parameter uncertainties:
  1  3.24592e-06
  2  1.17675
  3  39.8972
  4  4.75286
  5  8.61944
  6  0.0495551
  7  5.60306
  8  1.72443e-05
  9  9.63122e-08
  10  10.6437
  11  4.51909
  12  4.65515
  13  2.8704
  14  1.13626
  15  28.2329
  16  4.27709e-05
  17  10.7234
  18  18.165
  19  0.213866
  20  0.171186
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  9.631e-08  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.661e-01  1.712e-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.341e+00  2.139e-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: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898274/likelihoodResults_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.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) = 5616.16370129
delta logL = -0.0033561121345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5616.1603445
delta logL = 6.78230207996e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9600       1.0000          .0000       10.000    
     3 'Normalizat'    1.3412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76612       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=   5616.160     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      216 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3470        .90712E-02** at limit **
   2  Index         1.4391        7.8984        .50000        .46680E-07
   3  Normalizat    1.3412        .85364E-02    .54192E-01   -.52557E-04
   4  Prefactor     .76612        .68488E-02    .43275E-01   -.37493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.43915
  Normalizat = 1.34123
  Prefactor  = 0.766121
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.160     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      247 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.405        .98777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4391        5.5764        .50000       -.79258    
   3  Normalizat    1.3412        .30969E-01    .23961E-03   -.82344    
   4  Prefactor     .76612        .24845E-01    .24539E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.32227e-09
Minuit parameter uncertainties:
  1  0.00018963
  2  420.568
  3  0.0309691
  4  0.0248449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898274': 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) = 5616.16033507
delta logL = 1.01166806417e-05

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.896e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.439e+00  4.206e+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.661e-01  2.484e-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:  1.341e+00  3.097e-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/898274/cmap_HighResolution_361670401_361929601_4FGL_J0152.6+0147_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-08-14 19:51:31.354306', job_id='898274', GAL2='0.77', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1628995891.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.01e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='472' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 898274: <4FGL_J0152.6+0147_daily_bin472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin472 28.1614 1.7894 361670401 361929601 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 :                                   799.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             221.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            962 sec.

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

