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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin577
RA = 28.1614, Dec = 1.7894
tmin = 388886401, tmax = 389145601
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='898427', job_status='RUN', time_executed='2021-08-14 19:39:13.393648', time_epoch_executed='1628995153.39' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898427/ft1_4FGL_J0152.6+0147_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898427/ft2_4FGL_J0152.6+0147_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898427/ft1_4FGL_J0152.6+0147_daily_bin577.fits outfile=/scratch/kocevski/898427/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin577.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=388886401.0 tmax=389145601.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.22
user 3.28
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898427/ft1_filtered_4FGL_J0152.6+0147_daily_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/898427/ft2_4FGL_J0152.6+0147_daily_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/898427/ltcube_388886401_389145601_4FGL_J0152.6+0147_daily_bin577.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/898427/ft2_4FGL_J0152.6+0147_daily_bin577.fits
.....................!
real 15.34
user 14.14
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898427/ft1_filtered_4FGL_J0152.6+0147_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/898427/ft2_4FGL_J0152.6+0147_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/898427/ltcube_388886401_389145601_4FGL_J0152.6+0147_daily_bin577.fits outfile=/scratch/kocevski/898427/expmap_388886401_389145601_4FGL_J0152.6+0147_daily_bin577.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/898427/ltcube_388886401_389145601_4FGL_J0152.6+0147_daily_bin577.fits
.....................!
real 194.28
user 187.38
sys 6.42

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/898427/ft1_filtered_4FGL_J0152.6+0147_daily_bin577.fits scfile=/scratch/kocevski/898427/ft2_4FGL_J0152.6+0147_daily_bin577.fits outfile=/scratch/kocevski/898427/cmap_388886401_389145601_4FGL_J0152.6+0147_daily_bin577.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.37
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898427/ft1_filtered_4FGL_J0152.6+0147_daily_bin577.fits scfile=/scratch/kocevski/898427/ft2_4FGL_J0152.6+0147_daily_bin577.fits outfile=/scratch/kocevski/898427/cmap_HighResolution_388886401_389145601_4FGL_J0152.6+0147_daily_bin577.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.20
user 0.37
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11386E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10873E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11052E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8081       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13743E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4623       1.0000         .10000E-03   10000.    
    10 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3963       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5082       1.0000         .10000E-03   10000.    
    14 'norm      '    .13537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40196E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5727       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2537       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70235       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4384       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=   5718.562     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2080 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.373        .10683E-04** at limit **
   2  norm          5.4333        1.8837        .16112E-07   -.13087E-03
   3  Prefactor     .10000E-03    14.475       -.55942E-05** at limit **
   4  Prefactor     .10000E-03    4.5644        .71007E-07** at limit **
   5  Prefactor     .10000E-03    6.2218       -.35452E-07** at limit **
   6  Prefactor     .10000E-03    14.232        .47078E-05** at limit **
   7  norm          8.8099        7.0125        .13985E-05   -.30786E-04
   8  Prefactor     .10000E-03    37.059        .45341E-05** at limit **
   9  Prefactor     6.4599        4.5937        .12577E-06    .96151E-04
  10  norm          .10000E-03    4.8910        .84107E-08** at limit **
  11  Prefactor     2.3938        9.3777        .54190E-06   -.32748E-03
  12  norm          6.4383        6.0054        .26938E-05   -.14752E-03
  13  Prefactor     1.5072        1.9439       -.48277E-07    .13555E-03
  14  norm          .13484        .75738       -.34563E-06   -.77173E-03
  15  Prefactor     .10000E-03    54.399       -.39896E-04** at limit **
  16  Prefactor     2.2480        473.85       -.12769E-04    .81915E-05
  17  Prefactor     9.2557        15.881        .28897E-05   -.26293E-04
  18  Prefactor     .10000E-03    15.501        .94673E-06** at limit **
  19  Normalizat    .70204        .20582       -.53785E-06    .17737E-03
  20  Prefactor     1.4386        .17667       -.29597E-06    .39410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.43325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.8099
  Prefactor  = 0.0001
  Prefactor  = 6.45991
  norm       = 0.0001
  Prefactor  = 2.39379
  norm       = 6.43833
  Prefactor  = 1.50721
  norm       = 0.134841
  Prefactor  = 0.000100004
  Prefactor  = 2.24804
  Prefactor  = 9.25569
  Prefactor  = 0.0001
  Normalizat = 0.702042
  Prefactor  = 1.43861
 **********
 **   18 **HESSE 
 **********

 FCN=   5718.562     FROM HESSE     STATUS=OK           293 CALLS     2373 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.630        .21021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4333        1.8826        .58952E-04   -1.5242    
   3  Prefactor     .10000E-03    14.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6300        .15771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8099        7.0026        .13506E-03   -1.5114    
   8  Prefactor     .10000E-03    37.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4599        4.5960        .13244E-03   -1.5200    
  10  norm          .10000E-03    4.8923        .16334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3938        9.3341        .26454E-03   -1.5399    
  12  norm          6.4383        5.9830        .15819E-03   -1.5200    
  13  Prefactor     1.5072        1.9183        .11457E-03   -1.5462    
  14  norm          .13484        1.4904        .12278E-02   -1.5635    
  15  Prefactor     .10000E-03    54.367        .42523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2480        475.97        .25447E-03   -1.5408    
  17  Prefactor     9.2557        15.865        .13175E-03   -1.5099    
  18  Prefactor     .10000E-03    15.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70204        .23673        .33478E-03   -1.0381    
  20  Prefactor     1.4386        .20627        .20751E-03   -.79274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01226e-09
Minuit parameter uncertainties:
  1  3.54004e-06
  2  1.88263
  3  2.29903e-06
  4  4.36168e-06
  5  1.2937e-06
  6  1.34979e-06
  7  7.00321
  8  3.32407e-06
  9  4.59623
  10  8.56503e-07
  11  9.33978
  12  5.98353
  13  1.91837
  14  0.896278
  15  0.000940322
  16  65.9582
  17  15.8724
  18  2.96559e-05
  19  0.237078
  20  0.206392
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.460e+00  4.596e+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.439e+00  2.064e-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:  7.020e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.44
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.85e-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) = 5718.06133005
delta logL = 0.500690753224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5718.05871985
delta logL = 0.503300951512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3958       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4140       1.0000          .0000       10.000    
     3 'Normalizat'    .72289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4325       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=   5718.059     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      291 TOTAL
                     EDM=   .62E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3960        5.9769        .14748E-03    .20351E-04
   2  Index         1.4141        .55050        .92944E-02   -.24464E-05
   3  Normalizat    .72289        .23094        .33020E-03    .29610E-05
   4  Prefactor     1.4325        .19848        .20793E-03    .14544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.39597
  Index      = 1.41406
  Normalizat = 0.722892
  Prefactor  = 1.4325
 **********
 **   18 **HESSE 
 **********

 FCN=   5718.059     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3960        6.0244        .58992E-05   -1.5164    
   2  Index         1.4141        .55485        .37178E-03   -.79976    
   3  Normalizat    .72289        .23111        .13208E-04   -1.0300    
   4  Prefactor     1.4325        .19865        .83171E-05   -.79448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46214e-13
Minuit parameter uncertainties:
  1  6.02487
  2  0.557225
  3  0.231424
  4  0.198752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898427': 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) = 5718.05871985
delta logL = 0.503300954373

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.396e+00  6.025e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.414e+00  5.572e-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.432e+00  1.988e-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:  7.229e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.43
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.41 +/- 0.56
Photon Flux (Free Index): 1.51e-08 +/- 1.80e-08
Energy Flux (Free Index): 6.38e-05 +/- 7.88e-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/898427/cmap_HighResolution_388886401_389145601_4FGL_J0152.6+0147_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='6.38e-05', photon_flux_error='2.57e-08', dlogl='5.03e-01', energy_flux='2.60e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-08-14 19:48:48.679524', photon_index_error2='0.56', photon_index2='1.41', ts='11.44', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='7.88e-05', EG='0.70', time_epoch_completed='1628995728.68', return_code='0', job_id='898427', GAL2='1.43', EG2='0.72', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='1.80e-08', ts2='12.43', photon_index='1.98' WHERE bin_id='577' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:48:48 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin577 28.1614 1.7894 388886401 389145601 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            787 sec.

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

