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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin715
RA = 28.1614, Dec = 1.7894
tmin = 424656001, tmax = 424915201
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='898616', job_status='RUN', time_executed='2021-08-14 19:42:44.504139', time_epoch_executed='1628995364.5' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898616/ft1_4FGL_J0152.6+0147_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898616/ft2_4FGL_J0152.6+0147_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898616/ft1_4FGL_J0152.6+0147_daily_bin715.fits outfile=/scratch/kocevski/898616/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin715.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=424656001.0 tmax=424915201.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 5.36
user 4.30
sys 0.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898616/ft1_filtered_4FGL_J0152.6+0147_daily_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/898616/ft2_4FGL_J0152.6+0147_daily_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/898616/ltcube_424656001_424915201_4FGL_J0152.6+0147_daily_bin715.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/898616/ft2_4FGL_J0152.6+0147_daily_bin715.fits
.....................!
real 13.42
user 12.21
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898616/ft1_filtered_4FGL_J0152.6+0147_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/898616/ft2_4FGL_J0152.6+0147_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/898616/ltcube_424656001_424915201_4FGL_J0152.6+0147_daily_bin715.fits outfile=/scratch/kocevski/898616/expmap_424656001_424915201_4FGL_J0152.6+0147_daily_bin715.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/898616/ltcube_424656001_424915201_4FGL_J0152.6+0147_daily_bin715.fits
.....................!
real 192.97
user 185.65
sys 6.51

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/898616/ft1_filtered_4FGL_J0152.6+0147_daily_bin715.fits scfile=/scratch/kocevski/898616/ft2_4FGL_J0152.6+0147_daily_bin715.fits outfile=/scratch/kocevski/898616/cmap_424656001_424915201_4FGL_J0152.6+0147_daily_bin715.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.30
user 0.37
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898616/ft1_filtered_4FGL_J0152.6+0147_daily_bin715.fits scfile=/scratch/kocevski/898616/ft2_4FGL_J0152.6+0147_daily_bin715.fits outfile=/scratch/kocevski/898616/cmap_HighResolution_424656001_424915201_4FGL_J0152.6+0147_daily_bin715.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.29
user 0.39
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.466       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54555E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16220E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    7.2799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.455       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1159       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9275       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4155       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.913       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89409       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93770       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=   6248.689     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2076 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.928       -.29166E-09** at limit **
   2  norm          6.5328        1.8619        .10686E-06    .11394E-02
   3  Prefactor     26.503        30.241        .38401E-05    .32873E-03
   4  Prefactor     .10016E-03    4.4130       -.19312E-05** at limit **
   5  Prefactor     .10000E-03    11.905       -.65609E-06** at limit **
   6  Prefactor     .10002E-03    567.98       -.16759E-04** at limit **
   7  norm          7.2805        5.3051        .20393E-07    .26338E-04
   8  Prefactor     63.466        68.018        .26015E-06    .19973E-04
   9  Prefactor     2.1151        2.1390       -.89071E-07   -.40914E-04
  10  norm          4.4628        13.825        .56380E-06    .93886E-05
  11  Prefactor     .10000E-03    3.3235       -.97910E-08** at limit **
  12  norm          13.542        5.7513       -.29692E-07   -.40941E-04
  13  Prefactor     1.9270        2.4449        .40638E-06    .17036E-03
  14  norm          1.2777        .93833        .11448E-06    .25358E-03
  15  Prefactor     .10000E-03    9.3163        .59924E-06** at limit **
  16  Prefactor     .10000E-03    43.330        .16553E-06** at limit **
  17  Prefactor     8.4205        10.858        .64177E-07   -.52078E-05
  18  Prefactor     42.884        26.682        .79750E-07    .59860E-04
  19  Normalizat    .89418        .18405        .16668E-05    .25573E-03
  20  Prefactor     .93778        .15463       -.16982E-05    .33338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.53283
  Prefactor  = 26.5033
  Prefactor  = 0.000100157
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  norm       = 7.28054
  Prefactor  = 63.4659
  Prefactor  = 2.11509
  norm       = 4.46285
  Prefactor  = 0.0001
  norm       = 13.5418
  Prefactor  = 1.92701
  norm       = 1.27768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42046
  Prefactor  = 42.8835
  Normalizat = 0.894184
  Prefactor  = 0.937785
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.689     FROM HESSE     STATUS=OK           291 CALLS     2367 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5328        1.8671        .55578E-04   -1.5197    
   3  Prefactor     26.503        31.004        .77870E-04   -1.4678    
   4  Prefactor     .10016E-03    23.669        .25874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    582.74        .36416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.2805        5.3051        .14866E-03   -1.5168    
   8  Prefactor     63.466        68.066        .50376E-04   -1.4113    
   9  Prefactor     2.1151        2.1512        .11329E-03   -1.5417    
  10  norm          4.4628        13.811        .19052E-03   -1.5285    
  11  Prefactor     .10000E-03    3.3503        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.542        5.7456        .10885E-03   -1.4972    
  13  Prefactor     1.9270        2.4170        .13040E-03   -1.5430    
  14  norm          1.2777        .91963        .62013E-04   -1.5482    
  15  Prefactor     .10000E-03    9.3157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4205        10.854        .13819E-03   -1.5128    
  18  Prefactor     42.884        26.605        .61197E-04   -1.4397    
  19  Normalizat    .89418        .20865        .27144E-03   -.96665    
  20  Prefactor     .93778        .17355        .21869E-03   -.94833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85131e-09
Minuit parameter uncertainties:
  1  1.74648e-05
  2  1.8671
  3  31.0226
  4  0.0038538
  5  3.41144e-05
  6  0.00707543
  7  5.3054
  8  68.1495
  9  2.15131
  10  13.8205
  11  1.18946e-06
  12  5.74582
  13  2.41715
  14  0.919638
  15  2.43483e-05
  16  1.63396e-05
  17  10.857
  18  26.6128
  19  0.208835
  20  0.173655
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.115e+00  2.151e+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:  9.378e-01  1.737e-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.942e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.22
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.20e-08
Energy Flux (Fixed Index): 8.51e-06 +/- 8.66e-06

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) = 6247.75022059
delta logL = 0.938566420004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6247.73241477
delta logL = 0.956372233052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4276       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0574       1.0000          .0000       10.000    
     3 'Normalizat'    .90287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93463       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=   6247.732     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4265        2.5390        .65664E-02   -.30087E-03
   2  Index         1.0570        .52957        .30910       -.27046E-04
   3  Normalizat    .90268        .17565        .44938E-01    .16387E-04
   4  Prefactor     .93467        .14532        .45445E-01    .88196E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42649
  Index      = 1.05701
  Normalizat = 0.90268
  Prefactor  = 0.934667
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.732     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4265        2.7799        .12087E-03   -1.5396    
   2  Index         1.0570        .61358        .12816E-01   -.90852    
   3  Normalizat    .90268        .20358        .27021E-03   -.96366    
   4  Prefactor     .93467        .16858        .21898E-03   -.94940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8114e-10
Minuit parameter uncertainties:
  1  2.7801
  2  0.617723
  3  0.203754
  4  0.168679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898616': 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) = 6247.73241348
delta logL = 0.956373527469

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.426e+00  2.780e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.057e+00  6.177e-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:  9.347e-01  1.687e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.027e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.13
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.06 +/- 0.62
Photon Flux (Free Index): 4.00e-09 +/- 4.53e-09
Energy Flux (Free Index): 5.00e-05 +/- 7.52e-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/898616/cmap_HighResolution_424656001_424915201_4FGL_J0152.6+0147_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='5.00e-05', photon_flux_error='1.20e-08', dlogl='9.56e-01', energy_flux='8.51e-06', photon_flux2='4.00e-09', job_status='DONE', time_completed='2021-08-14 19:52:24.613899', photon_index_error2='0.62', photon_index2='1.06', ts='5.22', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='7.52e-05', EG='0.89', time_epoch_completed='1628995944.61', return_code='0', job_id='898616', GAL2='0.93', EG2='0.90', return_code2='0', energy_flux_error='8.66e-06', photon_flux_error2='4.53e-09', ts2='7.13', photon_index='1.98' WHERE bin_id='715' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 898616: <4FGL_J0152.6+0147_daily_bin715> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin715> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:56 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:39:13 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:39:13 2021
Terminated at Sat Aug 14 19:52:25 2021
Results reported at Sat Aug 14 19:52:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin715 28.1614 1.7894 424656001 424915201 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 :                                   588.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            989 sec.

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

