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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin652
RA = 28.1614, Dec = 1.7894
tmin = 408326401, tmax = 408585601
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='898536', job_status='RUN', time_executed='2021-08-14 19:41:20.792454', time_epoch_executed='1628995280.79' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898536/ft1_4FGL_J0152.6+0147_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898536/ft2_4FGL_J0152.6+0147_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898536/ft1_4FGL_J0152.6+0147_daily_bin652.fits outfile=/scratch/kocevski/898536/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin652.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=408326401.0 tmax=408585601.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.34
user 4.62
sys 2.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898536/ft2_4FGL_J0152.6+0147_daily_bin652.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/898536/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/898536/ft1_filtered_4FGL_J0152.6+0147_daily_bin652.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 3.12
user 0.32
sys 2.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898536/ft1_filtered_4FGL_J0152.6+0147_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/898536/ft2_4FGL_J0152.6+0147_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/898536/ltcube_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.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/898536/ft2_4FGL_J0152.6+0147_daily_bin652.fits
.....................!
real 14.90
user 11.98
sys 2.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898536/ft1_filtered_4FGL_J0152.6+0147_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/898536/ft2_4FGL_J0152.6+0147_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/898536/ltcube_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.fits outfile=/scratch/kocevski/898536/expmap_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.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/898536/ltcube_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.fits
.....................!
real 196.12
user 187.44
sys 8.18

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/898536/ft1_filtered_4FGL_J0152.6+0147_daily_bin652.fits scfile=/scratch/kocevski/898536/ft2_4FGL_J0152.6+0147_daily_bin652.fits outfile=/scratch/kocevski/898536/cmap_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.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 2.79
user 0.37
sys 2.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898536/ft1_filtered_4FGL_J0152.6+0147_daily_bin652.fits scfile=/scratch/kocevski/898536/ft2_4FGL_J0152.6+0147_daily_bin652.fits outfile=/scratch/kocevski/898536/cmap_HighResolution_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.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 2.78
user 0.38
sys 2.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9035       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.250       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .37984E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16551       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26356E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.470       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96698       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2971       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=   2584.428     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1782 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    106.42       -.24455E-05** at limit **
   2  norm          4.9033        3.4740        .29681E-07    .27140E-05
   3  Prefactor     .10002E-03    39.450       -.48939E-05** at limit **
   4  Prefactor     20.250        15.089       -.13622E-06    .11460E-05
   5  Prefactor     4.7723        16.042        .62635E-05   -.70552E-04
   6  Prefactor     .10000E-03    21.337        .77905E-06** at limit **
   7  norm          .10010E-03    16.281       -.34962E-05** at limit **
   8  Prefactor     .10000E-03    47.179        .15139E-05** at limit **
   9  Prefactor     .10000E-03    4.1242        .23659E-07** at limit **
  10  norm          .10000E-03    18.392       -.38810E-06** at limit **
  11  Prefactor     .10000E-03    5.7056        .29489E-07** at limit **
  12  norm          .10000E-03    3.3726        .25551E-07** at limit **
  13  Prefactor     .10000E-03    5.0641        .86152E-07** at limit **
  14  norm          .16489        1.3515        .28611E-06   -.23120E-03
  15  Prefactor     .10000E-03    116.27        .19790E-05** at limit **
  16  Prefactor     .10002E-03    46.525        .46208E-05** at limit **
  17  Prefactor     .10000E-03    10.545        .27937E-07** at limit **
  18  Prefactor     12.464        29.780       -.28536E-06   -.62246E-04
  19  Normalizat    .96739        .30871       -.10638E-05    .32851E-04
  20  Prefactor     1.2968        .25264       -.19005E-08    .57103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 4.90332
  Prefactor  = 0.000100021
  Prefactor  = 20.2499
  Prefactor  = 4.77231
  Prefactor  = 0.000100001
  norm       = 0.000100099
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.164886
  Prefactor  = 0.000100004
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 12.4642
  Normalizat = 0.967392
  Prefactor  = 1.29681
 **********
 **   18 **HESSE 
 **********

 FCN=   2584.428     FROM HESSE     STATUS=OK           287 CALLS     2069 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    107.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9033        3.4709        .76095E-04   -1.5265    
   3  Prefactor     .10002E-03    43.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.250        15.096        .89007E-04   -1.4808    
   5  Prefactor     4.7723        16.866        .92062E-03   -1.5271    
   6  Prefactor     .10000E-03    21.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10010E-03    45.021        .36166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1484        .10083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    18.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7213        .11859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3800        .91174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2555        .22305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .16489        2.2754        .10970E-02   -1.5627    
  15  Prefactor     .10000E-03    118.55        .21444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    49.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.573        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.464        29.864        .11344E-03   -1.5002    
  19  Normalizat    .96739        .36471        .29469E-03   -.94131    
  20  Prefactor     1.2968        .30019        .21663E-03   -.83402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07986e-08
Minuit parameter uncertainties:
  1  0.00151991
  2  3.47109
  3  0.00191995
  4  15.0984
  5  16.8829
  6  0.000215904
  7  0.00423153
  8  0.00063047
  9  2.2182e-06
  10  0.000102374
  11  2.59241e-06
  12  1.88015e-06
  13  7.68626e-06
  14  1.22473
  15  0.00138431
  16  0.0019547
  17  4.45653e-06
  18  29.9002
  19  0.365652
  20  0.30059
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.218e-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:  1.297e+00  3.006e-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.674e-01  3.657e-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: 9.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898536/likelihoodResults_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.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) = 2584.42892847
delta logL = -0.00112609791086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2584.42780225
delta logL = 1.17762738228e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9558       1.0000          .0000       10.000    
     3 'Normalizat'    .96736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2968       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=   2584.428     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    49.008        .10406E-02** at limit **
   2  Index         1.9035        8.9392        .50000        .44084E-04
   3  Normalizat    .96739        .25922E-01    .29469E-03   -.19097E-05
   4  Prefactor     1.2968        .21795E-01    .21663E-03    .82922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101247
  Index      = 1.90349
  Normalizat = 0.96739
  Prefactor  = 1.29681
 **********
 **   18 **HESSE 
 **********

 FCN=   2584.428     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    198.16        .20812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9035        5.1257        .50000       -.66785    
   3  Normalizat    .96739        .54316E-01    .11787E-04   -.94131    
   4  Prefactor     1.2968        .45658E-01    .43327E-04   -.83402    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.86092e-08
Minuit parameter uncertainties:
  1  0.0315419
  2  327.997
  3  0.0543188
  4  0.0456598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898536': 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) = 2584.42780149
delta logL = 8.73491899256e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.012e-04  3.154e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.903e+00  3.280e+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.297e+00  4.566e-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.674e-01  5.432e-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/898536/cmap_HighResolution_408326401_408585601_4FGL_J0152.6+0147_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.59e-08', time_completed='2021-08-14 19:49:14.954068', job_id='898536', GAL2='1.30', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628995754.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='8.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='652' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:49:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 898536: <4FGL_J0152.6+0147_daily_bin652> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin652 28.1614 1.7894 408326401 408585601 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 :                                   508.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            806 sec.

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

