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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin766
RA = 28.1614, Dec = 1.7894
tmin = 437875201, tmax = 438134401
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='899783', job_status='RUN', time_executed='2021-08-14 19:43:41.595921', time_epoch_executed='1628995421.6' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899783/ft1_4FGL_J0152.6+0147_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899783/ft2_4FGL_J0152.6+0147_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899783/ft1_4FGL_J0152.6+0147_daily_bin766.fits outfile=/scratch/kocevski/899783/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin766.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=437875201.0 tmax=438134401.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 7.69
user 5.53
sys 2.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899783/ft2_4FGL_J0152.6+0147_daily_bin766.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/899783/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin766.fits evtable="EVENTS" outfile="/scratch/kocevski/899783/ft1_filtered_4FGL_J0152.6+0147_daily_bin766.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.40
user 0.34
sys 2.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899783/ft1_filtered_4FGL_J0152.6+0147_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/899783/ft2_4FGL_J0152.6+0147_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/899783/ltcube_437875201_438134401_4FGL_J0152.6+0147_daily_bin766.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/899783/ft2_4FGL_J0152.6+0147_daily_bin766.fits
.....................!
real 16.09
user 13.62
sys 2.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899783/ft1_filtered_4FGL_J0152.6+0147_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/899783/ft2_4FGL_J0152.6+0147_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/899783/ltcube_437875201_438134401_4FGL_J0152.6+0147_daily_bin766.fits outfile=/scratch/kocevski/899783/expmap_437875201_438134401_4FGL_J0152.6+0147_daily_bin766.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/899783/ltcube_437875201_438134401_4FGL_J0152.6+0147_daily_bin766.fits
.....................!
real 193.15
user 185.33
sys 7.39

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/899783/ft1_filtered_4FGL_J0152.6+0147_daily_bin766.fits scfile=/scratch/kocevski/899783/ft2_4FGL_J0152.6+0147_daily_bin766.fits outfile=/scratch/kocevski/899783/cmap_437875201_438134401_4FGL_J0152.6+0147_daily_bin766.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.38
user 0.38
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899783/ft1_filtered_4FGL_J0152.6+0147_daily_bin766.fits scfile=/scratch/kocevski/899783/ft2_4FGL_J0152.6+0147_daily_bin766.fits outfile=/scratch/kocevski/899783/cmap_HighResolution_437875201_438134401_4FGL_J0152.6+0147_daily_bin766.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.39
user 0.38
sys 1.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2719       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7022       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0105       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4527       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4720       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.489       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95791       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74865       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=   4841.484     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     1771 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.698       -.18809E-06** at limit **
   2  norm          12.017        2.7399       -.14102E-06   -.84620E-04
   3  Prefactor     .10000E-03    27.372        .29343E-05** at limit **
   4  Prefactor     3.8581        7.3952        .38339E-05    .15288E-03
   5  Prefactor     .49151        8.2235        .31985E-05   -.13181E-03
   6  Prefactor     .10000E-03    21.378       -.12895E-05** at limit **
   7  norm          4.2717        6.4511        .38970E-06   -.32215E-04
   8  Prefactor     .10000E-03    83.841        .16814E-05** at limit **
   9  Prefactor     10.666        6.3811       -.12723E-06    .67750E-04
  10  norm          .10000E-03    5.4892        .21281E-07** at limit **
  11  Prefactor     2.7006        6.4599        .18499E-06    .38270E-04
  12  norm          2.1912        3.0483        .10126E-06    .41047E-04
  13  Prefactor     1.0106        1.1072        .83012E-08    .46659E-04
  14  norm          1.4527        .92243        .45460E-07    .33731E-04
  15  Prefactor     .10000E-03    13.011        .82969E-07** at limit **
  16  Prefactor     .10000E-03    39.314       -.23828E-05** at limit **
  17  Prefactor     8.4720        8.4729        .65332E-07   -.47911E-05
  18  Prefactor     29.489        22.002        .16323E-06    .89361E-05
  19  Normalizat    .95786        .18495       -.70497E-06   -.19041E-04
  20  Prefactor     .74872        .15157       -.15346E-06   -.44505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.0175
  Prefactor  = 0.0001
  Prefactor  = 3.85806
  Prefactor  = 0.491505
  Prefactor  = 0.0001
  norm       = 4.27172
  Prefactor  = 0.0001
  Prefactor  = 10.666
  norm       = 0.0001
  Prefactor  = 2.70056
  norm       = 2.19116
  Prefactor  = 1.01056
  norm       = 1.45273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.47203
  Prefactor  = 29.4887
  Normalizat = 0.957859
  Prefactor  = 0.748715
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.484     FROM HESSE     STATUS=OK           299 CALLS     2070 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.017        2.7467        .52416E-04   -1.5015    
   3  Prefactor     .10000E-03    27.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8581        7.7306        .10274E-02   -1.5315    
   5  Prefactor     .49151        16.222        .33862E-02   -1.5568    
   6  Prefactor     .10000E-03    21.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2717        6.4457        .19493E-03   -1.5295    
   8  Prefactor     .10000E-03    83.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.666        6.3878        .12268E-03   -1.5055    
  10  norm          .10000E-03    5.4965        .15922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7006        6.4828        .24781E-03   -1.5379    
  12  norm          2.1912        3.0368        .13860E-03   -1.5412    
  13  Prefactor     1.0106        1.1076        .74550E-04   -1.5507    
  14  norm          1.4527        .92326        .50514E-04   -1.5467    
  15  Prefactor     .10000E-03    13.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4720        8.4871        .13773E-03   -1.5126    
  18  Prefactor     29.489        22.027        .73779E-04   -1.4621    
  19  Normalizat    .95786        .21325        .24309E-03   -.94456    
  20  Prefactor     .74872        .17505        .22321E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02017e-08
Minuit parameter uncertainties:
  1  2.61122e-05
  2  2.74671
  3  0.000209589
  4  7.73263
  5  5.6484
  6  7.31299e-05
  7  6.4467
  8  0.000262407
  9  6.38818
  10  2.74301e-06
  11  6.48447
  12  3.03704
  13  1.10759
  14  0.923268
  15  8.26623e-06
  16  0.000179354
  17  8.48827
  18  22.0326
  19  0.213436
  20  0.175184
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.067e+01  6.388e+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.487e-01  1.752e-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:  9.579e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.17
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.97e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 2.57e-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) = 4841.141239
delta logL = 0.343154483015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4841.13978312
delta logL = 0.3446103649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7667       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3377       1.0000          .0000       10.000    
     3 'Normalizat'    .93041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75979       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=   4841.140     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      243 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7681        68.487        .38562E-02    .34091E-03
   2  Index         2.3379        2.4801        .87430E-01    .18572E-03
   3  Normalizat    .93037        .95269E-01    .45289E-01   -.11311E-05
   4  Prefactor     .75980        .64274E-01    .43192E-01   -.28729E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7681
  Index      = 2.3379
  Normalizat = 0.930368
  Prefactor  = 0.759798
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.140     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7681        6.8479        .91431E-04   -1.5188    
   2  Index         2.3379        .48110        .34323E-02   -.56146    
   3  Normalizat    .93037        .20702        .24606E-03   -.95401    
   4  Prefactor     .75980        .16782        .22161E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98625e-11
Minuit parameter uncertainties:
  1  6.84867
  2  0.48214
  3  0.207199
  4  0.167933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899783': 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) = 4841.13978261
delta logL = 0.344610872223

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.768e+00  6.849e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.338e+00  4.821e-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.598e-01  1.679e-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:  9.304e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.86
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.34 +/- 0.48
Photon Flux (Free Index): 8.60e-08 +/- 5.30e-08
Energy Flux (Free Index): 3.07e-05 +/- 2.04e-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/899783/cmap_HighResolution_437875201_438134401_4FGL_J0152.6+0147_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.97e-08', energy_flux2='3.07e-05', photon_flux_error='3.57e-08', dlogl='3.45e-01', energy_flux='4.29e-05', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-08-14 19:52:35.099533', photon_index_error2='0.48', photon_index2='2.34', ts='6.17', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.96', time_epoch_completed='1628995955.1', return_code='0', job_id='899783', GAL2='0.76', EG2='0.93', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='5.30e-08', ts2='6.86', photon_index='1.98' WHERE bin_id='766' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 899783: <4FGL_J0152.6+0147_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin766 28.1614 1.7894 437875201 438134401 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 :                                   560.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             232.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            726 sec.

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

