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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin432
RA = 28.1614, Dec = 1.7894
tmin = 351302401, tmax = 351561601
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='897048', job_status='RUN', time_executed='2021-08-14 19:37:45.104935', time_epoch_executed='1628995065.1' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/897048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/897048/ft1_4FGL_J0152.6+0147_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/897048/ft2_4FGL_J0152.6+0147_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/897048/ft1_4FGL_J0152.6+0147_daily_bin432.fits outfile=/scratch/kocevski/897048/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin432.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=351302401.0 tmax=351561601.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 3.26
user 2.55
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/897048/ft2_4FGL_J0152.6+0147_daily_bin432.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/897048/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/897048/ft1_filtered_4FGL_J0152.6+0147_daily_bin432.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.97
user 0.29
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/897048/ft1_filtered_4FGL_J0152.6+0147_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/897048/ft2_4FGL_J0152.6+0147_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/897048/ltcube_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.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/897048/ft2_4FGL_J0152.6+0147_daily_bin432.fits
.....................!
real 10.85
user 9.98
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/897048/ft1_filtered_4FGL_J0152.6+0147_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/897048/ft2_4FGL_J0152.6+0147_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/897048/ltcube_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.fits outfile=/scratch/kocevski/897048/expmap_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.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/897048/ltcube_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.fits
.....................!
real 151.89
user 146.27
sys 5.31

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/897048/ft1_filtered_4FGL_J0152.6+0147_daily_bin432.fits scfile=/scratch/kocevski/897048/ft2_4FGL_J0152.6+0147_daily_bin432.fits outfile=/scratch/kocevski/897048/cmap_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.97
user 0.31
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/897048/ft1_filtered_4FGL_J0152.6+0147_daily_bin432.fits scfile=/scratch/kocevski/897048/ft2_4FGL_J0152.6+0147_daily_bin432.fits outfile=/scratch/kocevski/897048/cmap_HighResolution_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.93
user 0.31
sys 0.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.197       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5511       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.597       1.0000         .10000E-03   10000.    
     7 'norm      '    16.601       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    48.550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .60908E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.415       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.213       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76768       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2101       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=   5977.612     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2003 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.195        59.721       -.16654E-05    .19439E-05
   2  norm          1.5511        1.0595       -.16028E-07    .26845E-04
   3  Prefactor     .10000E-03    15.828       -.16361E-04** at limit **
   4  Prefactor     .10000E-03    1.8911       -.28594E-07** at limit **
   5  Prefactor     .10000E-03    3.2747        .18116E-07** at limit **
   6  Prefactor     26.597        26.901       -.44146E-06    .46008E-05
   7  norm          16.600        8.5492       -.99550E-07    .15497E-04
   8  Prefactor     .10000E-03    32.238       -.25536E-04** at limit **
   9  Prefactor     .10000E-03    1.8036       -.17473E-07** at limit **
  10  norm          48.551        25.249        .81080E-06   -.35412E-07
  11  Prefactor     .10000E-03    3.9789       -.12211E-06** at limit **
  12  norm          6.2069        4.0059        .58396E-06    .45439E-04
  13  Prefactor     .10000E-03    .87774        .18817E-06** at limit **
  14  norm          .10002E-03    .40644        .56164E-07** at limit **
  15  Prefactor     .10000E-03    17.474        .19022E-04** at limit **
  16  Prefactor     39.377        79.660       -.56766E-04   -.27191E-04
  17  Prefactor     .10000E-03    28.220        .19139E-04** at limit **
  18  Prefactor     16.214        23.500        .17036E-05   -.71886E-04
  19  Normalizat    .76764        .18547       -.11144E-05   -.12807E-03
  20  Prefactor     1.2102        .15909        .22066E-05   -.35871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.1953
  norm       = 1.5511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.597
  norm       = 16.6002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 48.5513
  Prefactor  = 0.0001
  norm       = 6.2069
  Prefactor  = 0.0001
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 39.3774
  Prefactor  = 0.000100001
  Prefactor  = 16.2135
  Normalizat = 0.767643
  Prefactor  = 1.21017
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.612     FROM HESSE     STATUS=OK           289 CALLS     2292 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.195        59.712        .56050E-04   -1.4276    
   2  norm          1.5511        1.0592        .34198E-04   -1.5459    
   3  Prefactor     .10000E-03    15.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8972        .10383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2799        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.597        26.900        .77678E-04   -1.4676    
   7  norm          16.600        8.5477        .98301E-04   -1.4893    
   8  Prefactor     .10000E-03    32.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8170        .10139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          48.551        25.288        .57550E-04   -1.4313    
  11  Prefactor     .10000E-03    4.0202        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2069        4.0118        .12062E-03   -1.5210    
  13  Prefactor     .10000E-03    .88642        .70714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    10.955        .93736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.377        79.907        .63844E-04   -1.4452    
  17  Prefactor     .10000E-03    28.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.214        23.526        .99468E-04   -1.4902    
  19  Normalizat    .76764        .20972        .30214E-03   -1.0128    
  20  Prefactor     1.2102        .18190        .20755E-03   -.86019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41245e-09
Minuit parameter uncertainties:
  1  59.7818
  2  1.05922
  3  9.97646e-07
  4  1.09068e-06
  5  1.56885e-06
  6  26.9127
  7  8.5483
  8  3.97033e-06
  9  2.7133e-06
  10  25.2937
  11  1.05962e-05
  12  4.01194
  13  1.76542e-05
  14  0.00103748
  15  0.000168567
  16  80.1255
  17  0.000363745
  18  23.5391
  19  0.20994
  20  0.181993
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.713e-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.210e+00  1.820e-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.676e-01  2.099e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/897048/likelihoodResults_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.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) = 5977.61499263
delta logL = -0.00258699287406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5977.61240617
delta logL = -5.27495103597e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9577       1.0000          .0000       10.000    
     3 'Normalizat'    .76760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2102       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5977.612     FROM MIGRAD    STATUS=FAILED        86 CALLS      233 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    21.775        .10419E-02** at limit **
   2  Index         1.9070        8.1155        .50000        .93652E-04
   3  Normalizat    .76764        .15902E-01    .30214E-03   -.72621E-05
   4  Prefactor     1.2102        .13495E-01    .20755E-03   -.44150E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5977.612     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      357 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    21.775        .27807E-03** at limit **
   2  Index         1.9070        8.1155        .36665E-03    .93652E-04
   3  Normalizat    .76764        .15902E-01    .35728E-05   -.72621E-05
   4  Prefactor     1.2102        .13495E-01    .20939E-05   -.44150E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5977.612     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      404 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.902        .20839E-02** at limit **
   2  Index         1.5690        5.1109        .50000        .72296E-06
   3  Normalizat    .76764        .15033E-01    .12086E-04    .21542E-03
   4  Prefactor     1.2102        .12757E-01    .41510E-04    .30582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56899
  Normalizat = 0.767643
  Prefactor  = 1.21018
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.612     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      433 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.65        .41678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5690        8.6672        .50000       -.75625    
   3  Normalizat    .76764        .34069E-01    .24171E-05   -1.0128    
   4  Prefactor     1.2102        .28908E-01    .83019E-05   -.86019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54887e-11
Minuit parameter uncertainties:
  1  0.000332431
  2  359.628
  3  0.0340697
  4  0.0289087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/897048': 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) = 5977.61239981
delta logL = 5.83139717492e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.324e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.569e+00  3.596e+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.210e+00  2.891e-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.676e-01  3.407e-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/897048/cmap_HighResolution_351302401_351561601_4FGL_J0152.6+0147_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-08-14 19:45:52.386820', job_id='897048', GAL2='1.21', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1628995552.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='5.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='432' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 897048: <4FGL_J0152.6+0147_daily_bin432> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin432 28.1614 1.7894 351302401 351561601 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 :                                   493.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            912 sec.

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

