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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin221
RA = 28.1614, Dec = 1.7894
tmin = 296611201, tmax = 296870401
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='896749', job_status='RUN', time_executed='2021-08-14 19:34:53.301003', time_epoch_executed='1628994893.3' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896749

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896749/ft1_4FGL_J0152.6+0147_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896749/ft2_4FGL_J0152.6+0147_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896749/ft1_4FGL_J0152.6+0147_daily_bin221.fits outfile=/scratch/kocevski/896749/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin221.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=296611201.0 tmax=296870401.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 13.11
user 4.08
sys 8.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896749/ft2_4FGL_J0152.6+0147_daily_bin221.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/896749/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin221.fits evtable="EVENTS" outfile="/scratch/kocevski/896749/ft1_filtered_4FGL_J0152.6+0147_daily_bin221.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 9.32
user 0.33
sys 8.91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896749/ft1_filtered_4FGL_J0152.6+0147_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/896749/ft2_4FGL_J0152.6+0147_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/896749/ltcube_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.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/896749/ft2_4FGL_J0152.6+0147_daily_bin221.fits
.....................!
real 22.82
user 12.72
sys 9.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896749/ft1_filtered_4FGL_J0152.6+0147_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/896749/ft2_4FGL_J0152.6+0147_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/896749/ltcube_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.fits outfile=/scratch/kocevski/896749/expmap_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.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/896749/ltcube_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.fits
.....................!
real 202.78
user 185.40
sys 16.22

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/896749/ft1_filtered_4FGL_J0152.6+0147_daily_bin221.fits scfile=/scratch/kocevski/896749/ft2_4FGL_J0152.6+0147_daily_bin221.fits outfile=/scratch/kocevski/896749/cmap_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.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 8.91
user 0.38
sys 8.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896749/ft1_filtered_4FGL_J0152.6+0147_daily_bin221.fits scfile=/scratch/kocevski/896749/ft2_4FGL_J0152.6+0147_daily_bin221.fits outfile=/scratch/kocevski/896749/cmap_HighResolution_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.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 9.10
user 0.38
sys 8.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8545       1.0000         .10000E-03   10000.    
    10 'norm      '    33.352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.836       1.0000         .10000E-03   10000.    
    16 'Prefactor '    164.53       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11232E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4709       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .45335       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=   4707.822     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2013 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.000        .31876E-06** at limit **
   2  norm          .10000E-03    .56025        .51620E-07** at limit **
   3  Prefactor     .10001E-03    67.252        .98220E-06** at limit **
   4  Prefactor     2.4501        5.8112        .47740E-05   -.65505E-04
   5  Prefactor     3.3920        5.2220        .65089E-06    .17409E-05
   6  Prefactor     .10000E-03    23.516        .20328E-06** at limit **
   7  norm          .10000E-03    8.1092        .13837E-06** at limit **
   8  Prefactor     .10001E-03    54.247       -.12629E-05** at limit **
   9  Prefactor     3.8547        7.5108        .36507E-05    .49526E-04
  10  norm          33.353        18.349        .14634E-06   -.11615E-04
  11  Prefactor     .10000E-03    2.3712        .16205E-08** at limit **
  12  norm          21.749        7.4115        .16415E-06   -.53330E-04
  13  Prefactor     .10000E-03    .98217       -.39446E-06** at limit **
  14  norm          1.8838        1.0149        .12718E-07   -.16718E-03
  15  Prefactor     12.819        30.530        .20863E-05   -.91005E-04
  16  Prefactor     164.54        95.435        .97156E-07    .97843E-05
  17  Prefactor     .10000E-03    4.6271        .18799E-07** at limit **
  18  Prefactor     .10000E-03    22.666       -.13371E-05** at limit **
  19  Normalizat    1.4709        .20250       -.57243E-06   -.37344E-04
  20  Prefactor     .45331        .15703       -.19760E-05   -.12195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 2.4501
  Prefactor  = 3.39199
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 3.85474
  norm       = 33.3528
  Prefactor  = 0.0001
  norm       = 21.7493
  Prefactor  = 0.0001
  norm       = 1.8838
  Prefactor  = 12.8187
  Prefactor  = 164.54
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.47086
  Prefactor  = 0.453313
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.822     FROM HESSE     STATUS=OK           289 CALLS     2302 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .84013        .99786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    68.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4501        5.8066        .12252E-02   -1.5395    
   5  Prefactor     3.3920        5.2093        .94803E-03   -1.5340    
   6  Prefactor     .10000E-03    23.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.2378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    54.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8547        7.5215        .10277E-02   -1.5315    
  10  norm          33.353        18.348        .69386E-04   -1.4552    
  11  Prefactor     .10000E-03    2.3773        .10317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.749        7.4112        .85887E-04   -1.4775    
  13  Prefactor     .10000E-03    .99722        .66593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8838        1.0139        .48657E-04   -1.5433    
  15  Prefactor     12.819        30.665        .11180E-03   -1.4992    
  16  Prefactor     164.54        95.421        .31444E-04   -1.3135    
  17  Prefactor     .10000E-03    4.6292        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4709        .23221        .21837E-03   -.78600    
  20  Prefactor     .45331        .17838        .28630E-03   -1.1417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90941e-10
Minuit parameter uncertainties:
  1  0.000230334
  2  4.05192e-07
  3  0.00182197
  4  5.80794
  5  5.21
  6  9.96179e-05
  7  2.50344e-05
  8  0.00157689
  9  7.52332
  10  18.3512
  11  2.07187e-07
  12  7.41152
  13  2.34964e-05
  14  1.01388
  15  30.7023
  16  95.5109
  17  1.95047e-06
  18  0.00017004
  19  0.232382
  20  0.178604
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.855e+00  7.523e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  4.533e-01  1.786e-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.471e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896749/likelihoodResults_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4706.87005571
delta logL = 0.951921846161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4706.83876716
delta logL = 0.983210397014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88551       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1861       1.0000          .0000       10.000    
     3 'Normalizat'    1.3745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49755       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=   4706.839     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      298 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88000        9.6165        .99774E-02    .68889E-03
   2  Index         3.1888        1.9690        .85319E-01    .15761E-03
   3  Normalizat    1.3744        .53809E-01    .50717E-01   -.97352E-06
   4  Prefactor     .49742        .41345E-01    .61920E-01    .24037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.88
  Index      = 3.18883
  Normalizat = 1.37444
  Prefactor  = 0.497415
 **********
 **   18 **HESSE 
 **********

 FCN=   4706.839     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88000        21.633        .44994E-04   -1.5520    
   2  Index         3.1888        3.3788        .31625E-02   -.37066    
   3  Normalizat    1.3744        .24106        .22422E-03   -.81371    
   4  Prefactor     .49742        .18586        .27400E-03   -1.1210    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.66127e-07
Minuit parameter uncertainties:
  1  8.72923
  2  3.77976
  3  0.24126
  4  0.186092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896749': 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) = 4706.83876082
delta logL = 0.983216736014

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  8.800e-01  8.729e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.189e+00  3.780e+00  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  4.974e-01  1.861e-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.374e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 28.161 1.789
Photon Index (Free Index): 3.19 +/- 3.78
Photon Flux (Free Index): 1.03e-07 +/- 8.62e-08
Energy Flux (Free Index): 1.88e-05 +/- 2.40e-05

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/896749/cmap_HighResolution_296611201_296870401_4FGL_J0152.6+0147_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', comment='SUCCESS', energy_flux2='1.88e-05', dlogl='9.83e-01', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-14 19:46:08.049131', photon_index_error2='3.78', photon_index2='3.19', ts='0.31', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.40e-05', EG='1.47', time_epoch_completed='1628995568.05', return_code='0', job_id='896749', GAL2='0.50', EG2='1.37', return_code2='102', photon_flux_error2='8.62e-08', ts2='2.39', photon_index='1.98' WHERE bin_id='221' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:46:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 896749: <4FGL_J0152.6+0147_daily_bin221> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin221> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:20 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:30:33 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:30:33 2021
Terminated at Sat Aug 14 19:46:10 2021
Results reported at Sat Aug 14 19:46:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin221 28.1614 1.7894 296611201 296870401 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 :                                   807.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            950 sec.

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

