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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin470
RA = 28.1614, Dec = 1.7894
tmin = 361152001, tmax = 361411201
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='898271', job_status='RUN', time_executed='2021-08-14 19:39:54.101138', time_epoch_executed='1628995194.1' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898271/ft1_4FGL_J0152.6+0147_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898271/ft2_4FGL_J0152.6+0147_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898271/ft1_4FGL_J0152.6+0147_daily_bin470.fits outfile=/scratch/kocevski/898271/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin470.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=361152001.0 tmax=361411201.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.39
user 3.32
sys 1.03

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898271/ft1_filtered_4FGL_J0152.6+0147_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/898271/ft2_4FGL_J0152.6+0147_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/898271/ltcube_361152001_361411201_4FGL_J0152.6+0147_daily_bin470.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/898271/ft2_4FGL_J0152.6+0147_daily_bin470.fits
.....................!
real 17.59
user 16.29
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898271/ft1_filtered_4FGL_J0152.6+0147_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/898271/ft2_4FGL_J0152.6+0147_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/898271/ltcube_361152001_361411201_4FGL_J0152.6+0147_daily_bin470.fits outfile=/scratch/kocevski/898271/expmap_361152001_361411201_4FGL_J0152.6+0147_daily_bin470.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/898271/ltcube_361152001_361411201_4FGL_J0152.6+0147_daily_bin470.fits
.....................!
real 192.62
user 185.80
sys 6.38

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/898271/ft1_filtered_4FGL_J0152.6+0147_daily_bin470.fits scfile=/scratch/kocevski/898271/ft2_4FGL_J0152.6+0147_daily_bin470.fits outfile=/scratch/kocevski/898271/cmap_361152001_361411201_4FGL_J0152.6+0147_daily_bin470.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.34
user 0.38
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898271/ft1_filtered_4FGL_J0152.6+0147_daily_bin470.fits scfile=/scratch/kocevski/898271/ft2_4FGL_J0152.6+0147_daily_bin470.fits outfile=/scratch/kocevski/898271/cmap_HighResolution_361152001_361411201_4FGL_J0152.6+0147_daily_bin470.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.33
user 0.39
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.496       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12169E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8229       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6050       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7433       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2362       1.0000         .10000E-03   10000.    
    12 'norm      '    8.8969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1523       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1894       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1535       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1056       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76790       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=   5258.813     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2029 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.416        .59935E-07** at limit **
   2  norm          .10000E-03    .34506       -.27195E-07** at limit **
   3  Prefactor     36.311        50.638       -.36598E-05   -.88345E-04
   4  Prefactor     .10013E-03    6.4537        .93545E-06** at limit **
   5  Prefactor     6.8235        12.049        .80329E-06   -.10289E-03
   6  Prefactor     .10000E-03    14.331       -.30129E-06** at limit **
   7  norm          .10000E-03    5.9913        .69408E-07** at limit **
   8  Prefactor     .10000E-03    31.791        .16728E-07** at limit **
   9  Prefactor     7.6061        5.3286       -.26247E-05   -.44270E-04
  10  norm          4.7439        10.257       -.37949E-05   -.67600E-04
  11  Prefactor     5.2371        5.9297       -.51335E-05   -.15812E-03
  12  norm          8.8975        5.8659        .17504E-05   -.37578E-05
  13  Prefactor     1.1523        1.2798        .41302E-07    .23083E-03
  14  norm          1.1896        .77787       -.27426E-07    .16056E-03
  15  Prefactor     .10000E-03    4.8332        .36187E-07** at limit **
  16  Prefactor     32.044        48.508       -.21896E-05    .41116E-04
  17  Prefactor     .10000E-03    4.8994        .81785E-08** at limit **
  18  Prefactor     1.1302        60.373       -.36153E-04   -.10308E-03
  19  Normalizat    1.1054        .18575        .10085E-05    .11610E-03
  20  Prefactor     .76795        .15169        .16187E-05    .12700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.3113
  Prefactor  = 0.000100126
  Prefactor  = 6.8235
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60615
  norm       = 4.74389
  Prefactor  = 5.23709
  norm       = 8.89752
  Prefactor  = 1.15226
  norm       = 1.18955
  Prefactor  = 0.0001
  Prefactor  = 32.0441
  Prefactor  = 0.0001
  Prefactor  = 1.1302
  Normalizat = 1.1054
  Prefactor  = 0.767946
 **********
 **   18 **HESSE 
 **********

 FCN=   5258.813     FROM HESSE     STATUS=OK           295 CALLS     2324 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .34841        .41578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.311        48.042        .66340E-04   -1.4502    
   4  Prefactor     .10013E-03    57.579        .33296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8235        12.032        .15360E-03   -1.5185    
   6  Prefactor     .10000E-03    14.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.1288        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6061        5.3312        .13455E-03   -1.5156    
  10  norm          4.7439        10.268        .18475E-03   -1.5272    
  11  Prefactor     5.2371        5.9331        .17566E-03   -1.5250    
  12  norm          8.8975        5.8504        .13438E-03   -1.5111    
  13  Prefactor     1.1523        1.2722        .83798E-04   -1.5493    
  14  norm          1.1896        .77402        .49833E-04   -1.5490    
  15  Prefactor     .10000E-03    4.8341        .15571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.044        48.494        .70781E-04   -1.4575    
  17  Prefactor     .10000E-03    4.9115        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1302        65.824        .43033E-02   -1.5495    
  19  Normalizat    1.1054        .21068        .23835E-03   -.89578    
  20  Prefactor     .76795        .17309        .22700E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34842e-09
Minuit parameter uncertainties:
  1  4.37384e-06
  2  9.15001e-07
  3  48.093
  4  0.00538933
  5  12.036
  6  6.15078e-06
  7  2.10908e-05
  8  1.83187e-05
  9  5.33154
  10  10.2718
  11  5.9338
  12  5.85079
  13  1.27224
  14  0.774027
  15  2.34728e-05
  16  48.5534
  17  4.13753e-06
  18  17.2696
  19  0.21084
  20  0.173212
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.606e+00  5.332e+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.679e-01  1.732e-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.105e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.47
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 2.15e-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) = 5258.06067127
delta logL = 0.752575279676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5258.04317688
delta logL = 0.770069666417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9109       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7770       1.0000          .0000       10.000    
     3 'Normalizat'    1.0140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81223       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=   5258.043     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9098        21.640        .59534E-02    .24384E-03
   2  Index         2.7771        2.1036        .76813E-01    .18574E-03
   3  Normalizat    1.0139        .81582E-01    .44446E-01    .15233E-04
   4  Prefactor     .81224        .55844E-01    .43876E-01    .25718E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9098
  Index      = 2.77715
  Normalizat = 1.01393
  Prefactor  = 0.812241
 **********
 **   18 **HESSE 
 **********

 FCN=   5258.043     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9098        5.5314        .57181E-04   -1.5367    
   2  Index         2.7771        .89683        .29889E-02   -.46070    
   3  Normalizat    1.0139        .23028        .24707E-03   -.92565    
   4  Prefactor     .81224        .17717        .22120E-03   -.99279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27e-11
Minuit parameter uncertainties:
  1  5.53237
  2  0.902939
  3  0.230503
  4  0.17729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898271': 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) = 5258.0431768
delta logL = 0.770069741699

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.910e+00  5.532e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.777e+00  9.029e-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:  8.122e-01  1.773e-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.014e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.17
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.78 +/- 0.90
Photon Flux (Free Index): 1.13e-07 +/- 8.13e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.29e-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/898271/cmap_HighResolution_361152001_361411201_4FGL_J0152.6+0147_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='2.56e-05', photon_flux_error='2.98e-08', dlogl='7.70e-01', energy_flux='3.06e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-08-14 19:48:51.434561', photon_index_error2='0.90', photon_index2='2.78', ts='6.47', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.11', time_epoch_completed='1628995731.43', return_code='0', job_id='898271', GAL2='0.81', EG2='1.01', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.13e-08', ts2='8.17', photon_index='1.98' WHERE bin_id='470' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:48:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 898271: <4FGL_J0152.6+0147_daily_bin470> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin470 28.1614 1.7894 361152001 361411201 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 :                                   549.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             200.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            801 sec.

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

