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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin782
RA = 28.1614, Dec = 1.7894
tmin = 442022401, tmax = 442281601
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='899809', job_status='RUN', time_executed='2021-08-14 19:43:57.817250', time_epoch_executed='1628995437.82' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899809/ft1_4FGL_J0152.6+0147_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899809/ft2_4FGL_J0152.6+0147_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899809/ft1_4FGL_J0152.6+0147_daily_bin782.fits outfile=/scratch/kocevski/899809/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin782.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=442022401.0 tmax=442281601.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 3.77
user 3.52
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899809/ft2_4FGL_J0152.6+0147_daily_bin782.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/899809/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/899809/ft1_filtered_4FGL_J0152.6+0147_daily_bin782.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 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899809/ft1_filtered_4FGL_J0152.6+0147_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/899809/ft2_4FGL_J0152.6+0147_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/899809/ltcube_442022401_442281601_4FGL_J0152.6+0147_daily_bin782.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/899809/ft2_4FGL_J0152.6+0147_daily_bin782.fits
.....................!
real 13.12
user 12.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899809/ft1_filtered_4FGL_J0152.6+0147_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/899809/ft2_4FGL_J0152.6+0147_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/899809/ltcube_442022401_442281601_4FGL_J0152.6+0147_daily_bin782.fits outfile=/scratch/kocevski/899809/expmap_442022401_442281601_4FGL_J0152.6+0147_daily_bin782.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/899809/ltcube_442022401_442281601_4FGL_J0152.6+0147_daily_bin782.fits
.....................!
real 190.51
user 185.51
sys 4.59

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/899809/ft1_filtered_4FGL_J0152.6+0147_daily_bin782.fits scfile=/scratch/kocevski/899809/ft2_4FGL_J0152.6+0147_daily_bin782.fits outfile=/scratch/kocevski/899809/cmap_442022401_442281601_4FGL_J0152.6+0147_daily_bin782.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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899809/ft1_filtered_4FGL_J0152.6+0147_daily_bin782.fits scfile=/scratch/kocevski/899809/ft2_4FGL_J0152.6+0147_daily_bin782.fits outfile=/scratch/kocevski/899809/cmap_HighResolution_442022401_442281601_4FGL_J0152.6+0147_daily_bin782.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 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.212       1.0000         .10000E-03   10000.    
     2 'norm      '    12.341       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.641       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2637       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11277E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.4869       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9533       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5349       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0152       1.0000         .10000E-03   10000.    
    14 'norm      '    .26997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1701       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79525       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=   6660.306     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2047 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.207        94.569       -.56457E-06   -.15765E-04
   2  norm          12.341        2.7436        .32099E-07    .17493E-05
   3  Prefactor     48.627        41.127       -.14891E-05   -.18737E-03
   4  Prefactor     .10000E-03    3.5294       -.95151E-07** at limit **
   5  Prefactor     2.2653        8.1301        .10604E-05   -.27578E-04
   6  Prefactor     .10000E-03    76.930        .51728E-06** at limit **
   7  norm          8.4873        5.4042        .11830E-06    .95481E-04
   8  Prefactor     6.9148        127.24       -.14923E-04   -.11369E-03
   9  Prefactor     7.5350        4.6333       -.36304E-07   -.60585E-04
  10  norm          .10000E-03    7.8609        .66555E-07** at limit **
  11  Prefactor     .10000E-03    10.071        .27712E-06** at limit **
  12  norm          5.0171        3.9701       -.13962E-07   -.86970E-04
  13  Prefactor     1.0146        1.8055        .49192E-06    .33779E-03
  14  norm          .26998        .54355        .11231E-05   -.15347E-02
  15  Prefactor     .10000E-03    15.763        .71287E-07** at limit **
  16  Prefactor     .10000E-03    37.793       -.65947E-07** at limit **
  17  Prefactor     6.8532        6.7272       -.84812E-06    .19521E-03
  18  Prefactor     .10000E-03    7.3517        .28881E-07** at limit **
  19  Normalizat    1.1700        .17226        .79047E-06   -.11865E-03
  20  Prefactor     .79532        .14018       -.12011E-05    .27738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.2072
  norm       = 12.3406
  Prefactor  = 48.6274
  Prefactor  = 0.0001
  Prefactor  = 2.26528
  Prefactor  = 0.0001
  norm       = 8.48725
  Prefactor  = 6.91477
  Prefactor  = 7.53499
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.01705
  Prefactor  = 1.01455
  norm       = 0.269981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85318
  Prefactor  = 0.0001
  Normalizat = 1.17003
  Prefactor  = 0.795317
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.306     FROM HESSE     STATUS=OK           293 CALLS     2340 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.207        94.785        .52139E-04   -1.4168    
   2  norm          12.341        2.7511        .57687E-04   -1.5005    
   3  Prefactor     48.627        41.498        .57496E-04   -1.4312    
   4  Prefactor     .10000E-03    3.5460        .14961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2653        8.1274        .27301E-03   -1.5407    
   6  Prefactor     .10000E-03    77.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.4873        5.4078        .13760E-03   -1.5125    
   8  Prefactor     6.9148        143.04        .15214E-03   -1.5182    
   9  Prefactor     7.5350        4.6371        .13303E-03   -1.5159    
  10  norm          .10000E-03    7.8771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0171        3.9611        .13920E-03   -1.5260    
  13  Prefactor     1.0146        1.5667        .14116E-02   -1.5507    
  14  norm          .26998        .55463        .20585E-03   -1.5604    
  15  Prefactor     .10000E-03    15.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8532        6.7351        .76632E-03   -1.5184    
  18  Prefactor     .10000E-03    7.3697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1700        .19966        .24768E-03   -.87534    
  20  Prefactor     .79532        .16168        .23967E-03   -.99901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25711e-09
Minuit parameter uncertainties:
  1  95.0275
  2  2.75113
  3  41.5229
  4  6.47331e-06
  5  8.13132
  6  0.000100562
  7  5.40809
  8  63.0718
  9  4.63731
  10  6.46251e-07
  11  3.66663e-06
  12  3.96135
  13  1.56679
  14  0.554645
  15  1.09918e-05
  16  3.12889e-05
  17  6.73583
  18  1.81886e-06
  19  0.199795
  20  0.161773
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.535e+00  4.637e+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.953e-01  1.618e-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.170e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 1.87e-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) = 6660.29716368
delta logL = 0.00923140569466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6660.28879117
delta logL = 0.0176039140188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8056       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0874       1.0000          .0000       10.000    
     3 'Normalizat'    1.1628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79852       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=   6660.289     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      214 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8106        91.691        .38450E-02    .83252E-04
   2  Index         2.0869        3.3077        .10963        .13770E-03
   3  Normalizat    1.1627        .12268        .56162E-01    .84377E-05
   4  Prefactor     .79865        .62360E-01    .43698E-01    .15158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.81056
  Index      = 2.08693
  Normalizat = 1.1627
  Prefactor  = 0.79865
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.289     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8106        6.2743        .12341E-03   -1.5186    
   2  Index         2.0869        .59824        .60510E-02   -.62194    
   3  Normalizat    1.1627        .20004        .24835E-03   -.87763    
   4  Prefactor     .79865        .16016        .23922E-03   -.99778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6707e-09
Minuit parameter uncertainties:
  1  6.27489
  2  0.600425
  3  0.200172
  4  0.160251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899809': 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) = 6660.28879014
delta logL = 0.0176049487191

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.811e+00  6.275e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.087e+00  6.004e-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.986e-01  1.603e-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.163e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.17
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.09 +/- 0.60
Photon Flux (Free Index): 4.79e-08 +/- 4.28e-08
Energy Flux (Free Index): 2.70e-05 +/- 2.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/899809/cmap_HighResolution_442022401_442281601_4FGL_J0152.6+0147_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='2.70e-05', photon_flux_error='2.59e-08', dlogl='1.76e-02', energy_flux='3.03e-05', photon_flux2='4.79e-08', job_status='DONE', time_completed='2021-08-14 19:53:33.367399', photon_index_error2='0.60', photon_index2='2.09', ts='6.16', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.17', time_epoch_completed='1628996013.37', return_code='0', job_id='899809', GAL2='0.80', EG2='1.16', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='4.28e-08', ts2='6.17', photon_index='1.98' WHERE bin_id='782' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:53:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 899809: <4FGL_J0152.6+0147_daily_bin782> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin782> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:32 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:41:04 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:41:04 2021
Terminated at Sat Aug 14 19:53:34 2021
Results reported at Sat Aug 14 19:53:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin782 28.1614 1.7894 442022401 442281601 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 :                                   575.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            782 sec.

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

