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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin868
RA = 28.1614, Dec = 1.7894
tmin = 464313601, tmax = 464572801
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='899941', job_status='RUN', time_executed='2021-08-14 19:45:56.482680', time_epoch_executed='1628995556.48' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899941/ft1_4FGL_J0152.6+0147_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899941/ft2_4FGL_J0152.6+0147_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899941/ft1_4FGL_J0152.6+0147_daily_bin868.fits outfile=/scratch/kocevski/899941/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin868.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=464313601.0 tmax=464572801.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 6.05
user 3.18
sys 2.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899941/ft2_4FGL_J0152.6+0147_daily_bin868.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/899941/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin868.fits evtable="EVENTS" outfile="/scratch/kocevski/899941/ft1_filtered_4FGL_J0152.6+0147_daily_bin868.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 3.27
user 0.35
sys 2.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899941/ft1_filtered_4FGL_J0152.6+0147_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/899941/ft2_4FGL_J0152.6+0147_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/899941/ltcube_464313601_464572801_4FGL_J0152.6+0147_daily_bin868.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/899941/ft2_4FGL_J0152.6+0147_daily_bin868.fits
.....................!
real 15.89
user 12.56
sys 3.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899941/ft1_filtered_4FGL_J0152.6+0147_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/899941/ft2_4FGL_J0152.6+0147_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/899941/ltcube_464313601_464572801_4FGL_J0152.6+0147_daily_bin868.fits outfile=/scratch/kocevski/899941/expmap_464313601_464572801_4FGL_J0152.6+0147_daily_bin868.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/899941/ltcube_464313601_464572801_4FGL_J0152.6+0147_daily_bin868.fits
.....................!
real 195.04
user 185.59
sys 9.00

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/899941/ft1_filtered_4FGL_J0152.6+0147_daily_bin868.fits scfile=/scratch/kocevski/899941/ft2_4FGL_J0152.6+0147_daily_bin868.fits outfile=/scratch/kocevski/899941/cmap_464313601_464572801_4FGL_J0152.6+0147_daily_bin868.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 3.07
user 0.37
sys 2.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899941/ft1_filtered_4FGL_J0152.6+0147_daily_bin868.fits scfile=/scratch/kocevski/899941/ft2_4FGL_J0152.6+0147_daily_bin868.fits outfile=/scratch/kocevski/899941/cmap_HighResolution_464313601_464572801_4FGL_J0152.6+0147_daily_bin868.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 3.13
user 0.40
sys 2.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.104       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.688       1.0000         .10000E-03   10000.    
     7 'norm      '    5.9698       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6320       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9607       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4163       1.0000         .10000E-03   10000.    
    12 'norm      '    30.257       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0535       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66272       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95944       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=   6124.227     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2014 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.013        .48560E-05** at limit **
   2  norm          19.104        3.1749        .30324E-06    .55596E-03
   3  Prefactor     3.2341        112.15       -.14612E-03    .81821E-05
   4  Prefactor     .10000E-03    5.2851        .97705E-06** at limit **
   5  Prefactor     .10000E-03    3.2725        .86809E-07** at limit **
   6  Prefactor     11.690        43.750        .16489E-05    .46708E-05
   7  norm          5.9697        4.7210       -.10574E-05   -.23206E-05
   8  Prefactor     .10000E-03    26.106        .37233E-05** at limit **
   9  Prefactor     4.6320        3.5825       -.20251E-06    .62182E-04
  10  norm          2.9520        28.021       -.81176E-05   -.60145E-04
  11  Prefactor     3.4132        9.5586       -.15516E-05   -.19440E-03
  12  norm          30.256        8.1756       -.70876E-07    .19407E-03
  13  Prefactor     1.0539        2.4962       -.31784E-06   -.82161E-03
  14  norm          .10000E-03    .24041       -.12373E-06** at limit **
  15  Prefactor     .10000E-03    23.394       -.72974E-05** at limit **
  16  Prefactor     60.781        66.368       -.14570E-04    .26775E-04
  17  Prefactor     .10000E-03    13.262       -.10081E-05** at limit **
  18  Prefactor     .10000E-03    16.076        .25877E-05** at limit **
  19  Normalizat    .66256        .16380        .14080E-05    .37224E-03
  20  Prefactor     .95956        .14122        .34599E-05    .19947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.104
  Prefactor  = 3.2341
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.6895
  norm       = 5.96971
  Prefactor  = 0.0001
  Prefactor  = 4.63204
  norm       = 2.95197
  Prefactor  = 3.4132
  norm       = 30.2559
  Prefactor  = 1.05387
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.7813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.662558
  Prefactor  = 0.959561
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.227     FROM HESSE     STATUS=OK           291 CALLS     2305 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.104        3.1725        .54254E-04   -1.4834    
   3  Prefactor     3.2341        113.39        .22381E-03   -1.5348    
   4  Prefactor     .10000E-03    5.3353        .17572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2807        .13826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.690        43.728        .11718E-03   -1.5024    
   7  norm          5.9697        4.7197        .14739E-03   -1.5219    
   8  Prefactor     .10000E-03    26.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6320        3.5826        .12632E-03   -1.5277    
  10  norm          2.9520        28.063        .23600E-03   -1.5364    
  11  Prefactor     3.4132        9.4916        .21886E-03   -1.5338    
  12  norm          30.256        8.1160        .72840E-04   -1.4607    
  13  Prefactor     1.0539        2.4391        .17337E-03   -1.5503    
  14  norm          .10000E-03    .33999        .74441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.781        65.954        .51460E-04   -1.4147    
  17  Prefactor     .10000E-03    13.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .66256        .18845        .29822E-03   -1.0539    
  20  Prefactor     .95956        .16411        .20885E-03   -.94090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58821e-09
Minuit parameter uncertainties:
  1  2.55281e-05
  2  3.17253
  3  38.3788
  4  0.000228022
  5  1.75036e-05
  6  43.848
  7  4.71996
  8  7.74583e-06
  9  3.58276
  10  18.2142
  11  9.49581
  12  8.11633
  13  2.43929
  14  7.11066e-06
  15  4.18168e-05
  16  66.0339
  17  7.94201e-05
  18  2.54859e-05
  19  0.188634
  20  0.164198
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.632e+00  3.583e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.596e-01  1.642e-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:  6.626e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.44e-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) = 6124.22527176
delta logL = 0.00169321441444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6124.22432703
delta logL = 0.00263794199782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8188       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9398       1.0000          .0000       10.000    
     3 'Normalizat'    .66401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95901       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=   6124.224     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8189        4.6620        .12961E-03   -.27989E-03
   2  Index         1.9398        .62560        .79789E-02   -.18499E-04
   3  Normalizat    .66402        .18606        .29792E-03   -.24003E-04
   4  Prefactor     .95901        .15474        .20891E-03   -.27863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.81888
  Index      = 1.9398
  Normalizat = 0.664025
  Prefactor  = 0.959005
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.224     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8189        4.4981        .51845E-05   -1.5269    
   2  Index         1.9398        .60347        .31915E-03   -.65864    
   3  Normalizat    .66402        .18604        .11917E-04   -1.0533    
   4  Prefactor     .95901        .15481        .83564E-05   -.94109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5297e-11
Minuit parameter uncertainties:
  1  4.49842
  2  0.605839
  3  0.186214
  4  0.154886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899941': 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) = 6124.22432703
delta logL = 0.00263794397051

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.819e+00  4.498e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.940e+00  6.058e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.590e-01  1.549e-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:  6.640e-01  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.02
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.94 +/- 0.61
Photon Flux (Free Index): 2.45e-08 +/- 2.68e-08
Energy Flux (Free Index): 1.98e-05 +/- 2.24e-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/899941/cmap_HighResolution_464313601_464572801_4FGL_J0152.6+0147_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='1.98e-05', photon_flux_error='2.00e-08', dlogl='2.64e-03', energy_flux='1.86e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-08-14 19:55:42.429594', photon_index_error2='0.61', photon_index2='1.94', ts='5.03', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.66', time_epoch_completed='1628996142.43', return_code='0', job_id='899941', GAL2='0.96', EG2='0.66', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='2.68e-08', ts2='5.02', photon_index='1.98' WHERE bin_id='868' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 899941: <4FGL_J0152.6+0147_daily_bin868> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin868 28.1614 1.7894 464313601 464572801 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 :                                   625.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            900 sec.

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

