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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin425
RA = 28.1614, Dec = 1.7894
tmin = 349488001, tmax = 349747201
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='897039', job_status='RUN', time_executed='2021-08-14 19:35:48.200895', time_epoch_executed='1628994948.2' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/897039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/897039/ft1_4FGL_J0152.6+0147_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/897039/ft2_4FGL_J0152.6+0147_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/897039/ft1_4FGL_J0152.6+0147_daily_bin425.fits outfile=/scratch/kocevski/897039/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin425.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=349488001.0 tmax=349747201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.10
user 3.21
sys 0.86

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/897039/ft1_filtered_4FGL_J0152.6+0147_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/897039/ft2_4FGL_J0152.6+0147_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/897039/ltcube_349488001_349747201_4FGL_J0152.6+0147_daily_bin425.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/897039/ft2_4FGL_J0152.6+0147_daily_bin425.fits
.....................!
real 13.47
user 12.34
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/897039/ft1_filtered_4FGL_J0152.6+0147_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/897039/ft2_4FGL_J0152.6+0147_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/897039/ltcube_349488001_349747201_4FGL_J0152.6+0147_daily_bin425.fits outfile=/scratch/kocevski/897039/expmap_349488001_349747201_4FGL_J0152.6+0147_daily_bin425.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/897039/ltcube_349488001_349747201_4FGL_J0152.6+0147_daily_bin425.fits
.....................!
real 192.06
user 185.15
sys 6.49

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

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

This is gtbin version HEAD
real 1.19
user 0.39
sys 0.79

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

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

This is gtbin version HEAD
real 1.23
user 0.38
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.2436       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5771       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2748       1.0000         .10000E-03   10000.    
    10 'norm      '    65.694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20745E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88182       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0004       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=   5921.919     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2064 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.100       -.15607E-06** at limit **
   2  norm          1.2436        1.0714        .12909E-07   -.53581E-04
   3  Prefactor     3.3017        130.74        .67275E-05    .41478E-04
   4  Prefactor     9.5780        7.1237        .31182E-07    .77191E-05
   5  Prefactor     .10000E-03    3.4361        .47793E-07** at limit **
   6  Prefactor     .10000E-03    31.031        .21402E-07** at limit **
   7  norm          .10000E-03    2.0770       -.21157E-07** at limit **
   8  Prefactor     30.475        53.992       -.34487E-05   -.10814E-03
   9  Prefactor     6.2751        4.7893        .16860E-07   -.21344E-06
  10  norm          65.694        28.850       -.55249E-06   -.96990E-04
  11  Prefactor     10.542        8.2341       -.14095E-06    .59171E-04
  12  norm          6.5246        5.6884        .22562E-05   -.37373E-03
  13  Prefactor     .10000E-03    1.4814       -.58880E-06** at limit **
  14  norm          1.7954        .91442        .13163E-07    .94647E-04
  15  Prefactor     .10000E-03    14.006       -.82021E-07** at limit **
  16  Prefactor     41.300        60.015       -.26648E-05   -.77115E-04
  17  Prefactor     9.2464        8.8652       -.24551E-07   -.79040E-05
  18  Prefactor     .10000E-03    22.810        .15615E-06** at limit **
  19  Normalizat    .88180        .18949       -.20778E-06    .11422E-03
  20  Prefactor     1.0003        .15841        .35325E-06    .12835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.24362
  Prefactor  = 3.30167
  Prefactor  = 9.57803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.4747
  Prefactor  = 6.27511
  norm       = 65.6942
  Prefactor  = 10.5421
  norm       = 6.5246
  Prefactor  = 0.000100001
  norm       = 1.79538
  Prefactor  = 0.0001
  Prefactor  = 41.3004
  Prefactor  = 9.24643
  Prefactor  = 0.0001
  Normalizat = 0.881804
  Prefactor  = 1.0003
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.919     FROM HESSE     STATUS=OK           291 CALLS     2355 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2436        1.0533        .71679E-04   -1.5485    
   3  Prefactor     3.3017        132.12        .22067E-03   -1.5345    
   4  Prefactor     9.5780        7.0920        .12949E-03   -1.5089    
   5  Prefactor     .10000E-03    3.4487        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0806        .10831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.475        55.188        .72485E-04   -1.4603    
   9  Prefactor     6.2751        4.7879        .14196E-03   -1.5207    
  10  norm          65.694        29.016        .49516E-04   -1.4085    
  11  Prefactor     10.542        8.2300        .12340E-03   -1.5058    
  12  norm          6.5246        5.8153        .78527E-03   -1.5197    
  13  Prefactor     .10000E-03    10.984        .17367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7954        .90943        .50192E-04   -1.5440    
  15  Prefactor     .10000E-03    14.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     41.300        60.393        .62335E-04   -1.4422    
  17  Prefactor     9.2464        8.8673        .13180E-03   -1.5100    
  18  Prefactor     .10000E-03    23.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88180        .21842        .28159E-03   -.97103    
  20  Prefactor     1.0003        .18390        .21969E-03   -.92719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.835e-10
Minuit parameter uncertainties:
  1  2.87982e-05
  2  1.05329
  3  41.8709
  4  7.0926
  5  2.4457e-06
  6  1.07945e-05
  7  7.99798e-07
  8  55.2809
  9  4.78822
  10  29.0221
  11  8.23088
  12  5.81582
  13  0.000209436
  14  0.909441
  15  8.15559e-06
  16  60.4828
  17  8.8686
  18  3.17671e-05
  19  0.218635
  20  0.184011
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.275e+00  4.788e+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:  1.000e+00  1.840e-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:  8.818e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.94
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.51e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.93e-05

TS (Fixed Index): 3.94
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 9.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/897039/likelihoodResults_349488001_349747201_4FGL_J0152.6+0147_daily_bin425.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) = 5921.87278651
delta logL = 0.0461357117756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5921.8713878
delta logL = 0.0475344257657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1349       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1814       1.0000          .0000       10.000    
     3 'Normalizat'    .86982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0056       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=   5921.871     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      268 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1336        96.076        .44355E-02    .60135E-04
   2  Index         2.1812        6.0873        .11153        .12281E-03
   3  Normalizat    .86967        .11698        .64113E-01    .11881E-04
   4  Prefactor     1.0059        .64120E-01    .44058E-01    .10860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13362
  Index      = 2.18117
  Normalizat = 0.869671
  Prefactor  = 1.00585
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.871     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1336        6.1281        .12263E-03   -1.5255    
   2  Index         2.1812        .71731        .63277E-02   -.59894    
   3  Normalizat    .86967        .22028        .28359E-03   -.97534    
   4  Prefactor     1.0059        .17931        .21913E-03   -.92535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67794e-09
Minuit parameter uncertainties:
  1  6.12887
  2  0.720969
  3  0.220512
  4  0.179418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/897039': 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): 0
logL (Free Index) = 5921.87138667
delta logL = 0.0475355573553

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.134e+00  6.129e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.181e+00  7.210e-01  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.006e+00  1.794e-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:  8.697e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.03
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.18 +/- 0.72
Photon Flux (Free Index): 4.48e-08 +/- 4.67e-08
Energy Flux (Free Index): 2.09e-05 +/- 2.02e-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/897039/cmap_HighResolution_349488001_349747201_4FGL_J0152.6+0147_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', comment='SUCCESS', photon_flux='3.51e-08', energy_flux2='2.09e-05', photon_flux_error='2.68e-08', dlogl='4.75e-02', energy_flux='2.53e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-08-14 19:45:56.013620', photon_index_error2='0.72', photon_index2='2.18', ts='3.94', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.97e-08', energy_flux_error2='2.02e-05', EG='0.88', time_epoch_completed='1628995556.01', return_code='0', job_id='897039', GAL2='1.01', EG2='0.87', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='4.67e-08', ts2='4.03', photon_index='1.98' WHERE bin_id='425' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 897039: <4FGL_J0152.6+0147_daily_bin425> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin425> 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) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:33:46 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:46 2021
Terminated at Sat Aug 14 19:45:56 2021
Results reported at Sat Aug 14 19:45:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin425 28.1614 1.7894 349488001 349747201 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 :                                   616.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            915 sec.

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

