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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin698
RA = 28.1614, Dec = 1.7894
tmin = 420249601, tmax = 420508801
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='898599', job_status='RUN', time_executed='2021-08-14 19:41:44.313154', time_epoch_executed='1628995304.31' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898599/ft1_4FGL_J0152.6+0147_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898599/ft2_4FGL_J0152.6+0147_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898599/ft1_4FGL_J0152.6+0147_daily_bin698.fits outfile=/scratch/kocevski/898599/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin698.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=420249601.0 tmax=420508801.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.83
user 3.20
sys 2.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898599/ft1_filtered_4FGL_J0152.6+0147_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/898599/ft2_4FGL_J0152.6+0147_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/898599/ltcube_420249601_420508801_4FGL_J0152.6+0147_daily_bin698.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/898599/ft2_4FGL_J0152.6+0147_daily_bin698.fits
.....................!
real 14.90
user 12.03
sys 2.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898599/ft1_filtered_4FGL_J0152.6+0147_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/898599/ft2_4FGL_J0152.6+0147_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/898599/ltcube_420249601_420508801_4FGL_J0152.6+0147_daily_bin698.fits outfile=/scratch/kocevski/898599/expmap_420249601_420508801_4FGL_J0152.6+0147_daily_bin698.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/898599/ltcube_420249601_420508801_4FGL_J0152.6+0147_daily_bin698.fits
.....................!
real 193.65
user 185.72
sys 7.53

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/898599/ft1_filtered_4FGL_J0152.6+0147_daily_bin698.fits scfile=/scratch/kocevski/898599/ft2_4FGL_J0152.6+0147_daily_bin698.fits outfile=/scratch/kocevski/898599/cmap_420249601_420508801_4FGL_J0152.6+0147_daily_bin698.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 2.72
user 0.37
sys 2.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898599/ft1_filtered_4FGL_J0152.6+0147_daily_bin698.fits scfile=/scratch/kocevski/898599/ft2_4FGL_J0152.6+0147_daily_bin698.fits outfile=/scratch/kocevski/898599/cmap_HighResolution_420249601_420508801_4FGL_J0152.6+0147_daily_bin698.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 2.75
user 0.38
sys 2.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    116.61       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2325       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4712       1.0000         .10000E-03   10000.    
    10 'norm      '    44.141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2594       1.0000         .10000E-03   10000.    
    12 'norm      '    10.559       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1746       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    140.31       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9072       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1062       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=   7037.711     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1986 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     116.61        85.430        .93150E-03   -.41839E-03
   2  norm          5.2325        1.8799        .43931E-02    .37693E-04
   3  Prefactor     34.670        35.726        .17015E-02   -.64508E-03
   4  Prefactor     .10000E-03    2.6146        .90712E-02** at limit **
   5  Prefactor     .10000E-03    5.5795        .90712E-02** at limit **
   6  Prefactor     .10000E-03    13.248        .90712E-02** at limit **
   7  norm          5.9051        5.0734        .41314E-02   -.63920E-03
   8  Prefactor     54.049        79.005        .13640E-02   -.43841E-03
   9  Prefactor     7.4711        4.8352        .36682E-02   -.16443E-02
  10  norm          44.140        21.866        .15086E-02    .92455E-03
  11  Prefactor     8.2591        7.0494        .34874E-02    .27256E-03
  12  norm          10.560        6.1419        .30826E-02    .10509E-02
  13  Prefactor     2.1713        3.3884        .69805E-02    .69478E-03
  14  norm          .10000E-03    .27213        .90712E-02** at limit **
  15  Prefactor     .10000E-03    33.992        .90712E-02** at limit **
  16  Prefactor     140.32        118.89        .85020E-03   -.75369E-03
  17  Prefactor     .10000E-03    11.943        .90712E-02** at limit **
  18  Prefactor     5.9041        17.171        .41306E-02    .64117E-03
  19  Normalizat    1.0595        .19134        .66673E-01   -.19122E-04
  20  Prefactor     1.1064        .15873        .53639E-01   -.44501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 116.611
  norm       = 5.2325
  Prefactor  = 34.6701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.90508
  Prefactor  = 54.049
  Prefactor  = 7.47105
  norm       = 44.1399
  Prefactor  = 8.25908
  norm       = 10.5597
  Prefactor  = 2.17134
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.315
  Prefactor  = 0.0001
  Prefactor  = 5.9041
  Normalizat = 1.05946
  Prefactor  = 1.10641
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.711     FROM HESSE     STATUS=OK           285 CALLS     2271 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     116.61        85.534        .37260E-04   -1.3544    
   2  norm          5.2325        1.8810        .64677E-04   -1.5250    
   3  Prefactor     34.670        35.720        .68059E-04   -1.4530    
   4  Prefactor     .10000E-03    2.6299        .13241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.6968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9051        5.0733        .16526E-03   -1.5222    
   8  Prefactor     54.049        79.147        .54559E-04   -1.4236    
   9  Prefactor     7.4711        4.8359        .14344E-03   -1.5161    
  10  norm          44.140        21.883        .60343E-04   -1.4378    
  11  Prefactor     8.2591        7.0475        .13950E-03   -1.5133    
  12  norm          10.560        6.1334        .12330E-03   -1.5058    
  13  Prefactor     2.1713        3.3386        .17175E-03   -1.5413    
  14  norm          .10000E-03    .27988        .85365E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     140.32        118.28        .34008E-04   -1.3333    
  17  Prefactor     .10000E-03    12.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9041        17.174        .16522E-03   -1.5222    
  19  Normalizat    1.0595        .22676        .29495E-03   -.91064    
  20  Prefactor     1.1064        .18886        .23716E-03   -.89262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52439e-08
Minuit parameter uncertainties:
  1  85.6245
  2  1.88099
  3  35.7425
  4  1.09265e-05
  5  1.91388e-05
  6  1.08178e-05
  7  5.07363
  8  79.3013
  9  4.83616
  10  21.8873
  11  7.0482
  12  6.13375
  13  3.33886
  14  4.74176e-07
  15  0.000102273
  16  118.485
  17  9.91587e-05
  18  17.1881
  19  0.226965
  20  0.18897
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.471e+00  4.836e+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.106e+00  1.890e-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.059e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.28
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.95e-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) = 7037.61364673
delta logL = 0.0973593528452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7037.59520921
delta logL = 0.115796873148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6758       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7677       1.0000          .0000       10.000    
     3 'Normalizat'    1.0686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1041       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=   7037.595     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      280 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6759        6.1183        .13609E-03   -.27924E-03
   2  Index         1.7674        .45913        .77837E-02    .32869E-03
   3  Normalizat    1.0686        .22267        .29385E-03   -.84224E-04
   4  Prefactor     1.1041        .18287        .23741E-03   -.10593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.67594
  Index      = 1.76742
  Normalizat = 1.0686
  Prefactor  = 1.10414
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.595     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6759        6.0618        .27218E-04   -1.5119    
   2  Index         1.7674        .45486        .15567E-02   -.70301    
   3  Normalizat    1.0686        .22283        .11754E-04   -.90767    
   4  Prefactor     1.1041        .18303        .94963E-05   -.89334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73723e-11
Minuit parameter uncertainties:
  1  6.06223
  2  0.455946
  3  0.223029
  4  0.183137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898599': 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) = 7037.59520906
delta logL = 0.115797028419

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  8.676e+00  6.062e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.767e+00  4.559e-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.104e+00  1.831e-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.069e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.49
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.77 +/- 0.46
Photon Flux (Free Index): 3.11e-08 +/- 3.04e-08
Energy Flux (Free Index): 4.11e-05 +/- 4.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/898599/cmap_HighResolution_420249601_420508801_4FGL_J0152.6+0147_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='4.11e-05', photon_flux_error='2.70e-08', dlogl='1.16e-01', energy_flux='3.01e-05', photon_flux2='3.11e-08', job_status='DONE', time_completed='2021-08-14 19:52:08.207472', photon_index_error2='0.46', photon_index2='1.77', ts='6.28', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='4.00e-05', EG='1.06', time_epoch_completed='1628995928.21', return_code='0', job_id='898599', GAL2='1.10', EG2='1.07', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='3.04e-08', ts2='6.49', photon_index='1.98' WHERE bin_id='698' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 898599: <4FGL_J0152.6+0147_daily_bin698> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin698 28.1614 1.7894 420249601 420508801 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 :                                   657.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            973 sec.

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

