/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 223 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 = 7284
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin118
RA = 28.1614, Dec = 1.7894
tmin = 269913601, tmax = 270172801
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='895683', job_status='RUN', time_executed='2021-08-14 19:32:13.491509', time_epoch_executed='1628994733.49' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895683/ft1_4FGL_J0152.6+0147_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895683/ft2_4FGL_J0152.6+0147_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895683/ft1_4FGL_J0152.6+0147_daily_bin118.fits outfile=/scratch/kocevski/895683/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin118.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=269913601.0 tmax=270172801.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 2.64
user 1.45
sys 1.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895683/ft2_4FGL_J0152.6+0147_daily_bin118.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/895683/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/895683/ft1_filtered_4FGL_J0152.6+0147_daily_bin118.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.42
user 0.31
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895683/ft1_filtered_4FGL_J0152.6+0147_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/895683/ft2_4FGL_J0152.6+0147_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/895683/ltcube_269913601_270172801_4FGL_J0152.6+0147_daily_bin118.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/895683/ft2_4FGL_J0152.6+0147_daily_bin118.fits
.....................!
real 13.69
user 12.12
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895683/ft1_filtered_4FGL_J0152.6+0147_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/895683/ft2_4FGL_J0152.6+0147_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/895683/ltcube_269913601_270172801_4FGL_J0152.6+0147_daily_bin118.fits outfile=/scratch/kocevski/895683/expmap_269913601_270172801_4FGL_J0152.6+0147_daily_bin118.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/895683/ltcube_269913601_270172801_4FGL_J0152.6+0147_daily_bin118.fits
.....................!
real 192.12
user 185.50
sys 6.04

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/895683/ft1_filtered_4FGL_J0152.6+0147_daily_bin118.fits scfile=/scratch/kocevski/895683/ft2_4FGL_J0152.6+0147_daily_bin118.fits outfile=/scratch/kocevski/895683/cmap_269913601_270172801_4FGL_J0152.6+0147_daily_bin118.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.44
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895683/ft1_filtered_4FGL_J0152.6+0147_daily_bin118.fits scfile=/scratch/kocevski/895683/ft2_4FGL_J0152.6+0147_daily_bin118.fits outfile=/scratch/kocevski/895683/cmap_HighResolution_269913601_270172801_4FGL_J0152.6+0147_daily_bin118.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.42
user 0.37
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.653       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3276       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12382E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.256       1.0000         .10000E-03   10000.    
    10 'norm      '    17.161       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.3920       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2126       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5616       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75026       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=   4963.513     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2073 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.884        107.40        .11635E-03   -.25638E-04
   2  norm          5.3258        2.2445       -.31532E-05    .77273E-03
   3  Prefactor     24.961        46.981       -.82470E-04   -.16748E-04
   4  Prefactor     .10001E-03    4.5270        .17636E-05** at limit **
   5  Prefactor     10.437        11.492        .31383E-05    .13070E-05
   6  Prefactor     .10000E-03    18.228        .41006E-05** at limit **
   7  norm          .10000E-03    4.6158       -.17664E-06** at limit **
   8  Prefactor     .10000E-03    22.432        .20984E-05** at limit **
   9  Prefactor     10.256        6.0989        .11027E-05   -.34782E-04
  10  norm          17.183        17.941        .19738E-05   -.65631E-05
  11  Prefactor     .10000E-03    5.0930       -.78823E-07** at limit **
  12  norm          9.3914        5.5918        .29102E-06    .66214E-04
  13  Prefactor     .10000E-03    1.4434        .31525E-06** at limit **
  14  norm          2.2126        1.0433       -.31582E-07    .11697E-04
  15  Prefactor     .10000E-03    10.652       -.45814E-07** at limit **
  16  Prefactor     2.3874        644.45       -.94824E-04   -.24623E-05
  17  Prefactor     .10000E-03    18.953       -.59523E-05** at limit **
  18  Prefactor     .10000E-03    11.032        .60937E-06** at limit **
  19  Normalizat    1.1034        .18725       -.18190E-06    .80548E-04
  20  Prefactor     .75048        .15102        .13115E-05    .34968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.884
  norm       = 5.32576
  Prefactor  = 24.9614
  Prefactor  = 0.000100008
  Prefactor  = 10.437
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2564
  norm       = 17.1828
  Prefactor  = 0.0001
  norm       = 9.39137
  Prefactor  = 0.0001
  norm       = 2.21257
  Prefactor  = 0.0001
  Prefactor  = 2.38744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10341
  Prefactor  = 0.750483
 **********
 **   18 **HESSE 
 **********

 FCN=   4963.513     FROM HESSE     STATUS=OK           295 CALLS     2368 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.884        107.35        .20988E-03   -1.3788    
   2  norm          5.3258        2.2474        .61431E-04   -1.5246    
   3  Prefactor     24.961        47.108        .80246E-04   -1.4708    
   4  Prefactor     .10001E-03    4.5646        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.437        11.489        .12405E-03   -1.5062    
   6  Prefactor     .10000E-03    18.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.970        .29410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.256        6.1084        .12511E-03   -1.5067    
  10  norm          17.183        17.961        .96682E-04   -1.4879    
  11  Prefactor     .10000E-03    5.1859        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.3914        5.5908        .12306E-03   -1.5095    
  13  Prefactor     .10000E-03    1.4647        .82365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2126        1.0447        .27651E-04   -1.5410    
  15  Prefactor     .10000E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3874        649.26        .25507E-03   -1.5399    
  17  Prefactor     .10000E-03    19.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1034        .21460        .24225E-03   -.89642    
  20  Prefactor     .75048        .17241        .23275E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99183e-09
Minuit parameter uncertainties:
  1  107.577
  2  2.24742
  3  47.178
  4  0.000377282
  5  11.491
  6  5.32281e-05
  7  7.82692e-05
  8  7.86652e-06
  9  6.1088
  10  17.9666
  11  1.61948e-05
  12  5.59107
  13  3.68606e-05
  14  1.04469
  15  5.93875e-05
  16  79.6284
  17  2.47608e-05
  18  2.91477e-05
  19  0.214765
  20  0.172529
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.026e+01  6.109e+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:  7.505e-01  1.725e-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.103e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.63
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 4.13e-05 +/- 2.46e-05

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) = 4963.21623699
delta logL = 0.297128822209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4963.21292231
delta logL = 0.300443501115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2101       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4305       1.0000          .0000       10.000    
     3 'Normalizat'    1.0520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77350       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=   4963.213     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      278 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2105        7.7128        .84262E-04    .25675E-03
   2  Index         2.4305        .68240        .34557E-02    .90417E-04
   3  Normalizat    1.0520        .22422        .24698E-03   -.30840E-05
   4  Prefactor     .77349        .17317        .22958E-03    .97503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.21047
  Index      = 2.43048
  Normalizat = 1.05204
  Prefactor  = 0.773493
 **********
 **   18 **HESSE 
 **********

 FCN=   4963.213     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2105        6.4404        .33705E-05   -1.5209    
   2  Index         2.4305        .56957        .13823E-03   -.53973    
   3  Normalizat    1.0520        .22089        .98794E-05   -.91307    
   4  Prefactor     .77349        .17206        .91833E-05   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36417e-11
Minuit parameter uncertainties:
  1  6.44112
  2  0.571255
  3  0.221078
  4  0.172179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895683': 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) = 4963.2129223
delta logL = 0.300443512327

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.210e+00  6.441e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.430e+00  5.713e-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:  7.735e-01  1.722e-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.052e+00  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.43 +/- 0.57
Photon Flux (Free Index): 9.91e-08 +/- 7.15e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.71e-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/895683/cmap_HighResolution_269913601_270172801_4FGL_J0152.6+0147_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='3.12e-05', photon_flux_error='3.42e-08', dlogl='3.00e-01', energy_flux='4.13e-05', photon_flux2='9.91e-08', job_status='DONE', time_completed='2021-08-14 19:40:57.105156', photon_index_error2='0.57', photon_index2='2.43', ts='7.63', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='1.10', time_epoch_completed='1628995257.11', return_code='0', job_id='895683', GAL2='0.77', EG2='1.05', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='7.15e-08', ts2='8.26', photon_index='1.98' WHERE bin_id='118' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:40:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 895683: <4FGL_J0152.6+0147_daily_bin118> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin118> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 19:25:33 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:27: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:27:53 2021
Terminated at Sat Aug 14 19:40:58 2021
Results reported at Sat Aug 14 19:40:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin118 28.1614 1.7894 269913601 270172801 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 :                                   537.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            925 sec.

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

