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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin765
RA = 28.1614, Dec = 1.7894
tmin = 437616001, tmax = 437875201
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='899782', job_status='RUN', time_executed='2021-08-14 19:45:12.351951', time_epoch_executed='1628995512.35' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899782/ft1_4FGL_J0152.6+0147_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899782/ft2_4FGL_J0152.6+0147_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899782/ft1_4FGL_J0152.6+0147_daily_bin765.fits outfile=/scratch/kocevski/899782/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin765.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=437616001.0 tmax=437875201.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 11.10
user 5.33
sys 5.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899782/ft1_filtered_4FGL_J0152.6+0147_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/899782/ft2_4FGL_J0152.6+0147_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/899782/ltcube_437616001_437875201_4FGL_J0152.6+0147_daily_bin765.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/899782/ft2_4FGL_J0152.6+0147_daily_bin765.fits
.....................!
real 19.84
user 13.44
sys 6.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899782/ft1_filtered_4FGL_J0152.6+0147_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/899782/ft2_4FGL_J0152.6+0147_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/899782/ltcube_437616001_437875201_4FGL_J0152.6+0147_daily_bin765.fits outfile=/scratch/kocevski/899782/expmap_437616001_437875201_4FGL_J0152.6+0147_daily_bin765.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/899782/ltcube_437616001_437875201_4FGL_J0152.6+0147_daily_bin765.fits
.....................!
real 198.20
user 185.58
sys 12.24

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/899782/ft1_filtered_4FGL_J0152.6+0147_daily_bin765.fits scfile=/scratch/kocevski/899782/ft2_4FGL_J0152.6+0147_daily_bin765.fits outfile=/scratch/kocevski/899782/cmap_437616001_437875201_4FGL_J0152.6+0147_daily_bin765.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 5.95
user 0.38
sys 5.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899782/ft1_filtered_4FGL_J0152.6+0147_daily_bin765.fits scfile=/scratch/kocevski/899782/ft2_4FGL_J0152.6+0147_daily_bin765.fits outfile=/scratch/kocevski/899782/cmap_HighResolution_437616001_437875201_4FGL_J0152.6+0147_daily_bin765.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 5.96
user 0.39
sys 5.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.186       1.0000         .10000E-03   10000.    
     2 'norm      '    6.7545       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49396E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    122.43       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2027       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9475       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9628       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2519       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.210       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .54273       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2335       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=   4977.141     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1994 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.381        99.757       -.20902E-06    .83900E-05
   2  norm          6.7549        2.2382       -.13866E-06   -.15499E-03
   3  Prefactor     20.218        42.972        .18894E-05    .82909E-04
   4  Prefactor     .10000E-03    2.4158       -.81578E-06** at limit **
   5  Prefactor     .10019E-03    10.453       -.24857E-05** at limit **
   6  Prefactor     .10000E-03    27.952        .26728E-06** at limit **
   7  norm          10.290        8.4548        .92857E-07    .18877E-03
   8  Prefactor     122.33        98.821        .78517E-06    .75610E-04
   9  Prefactor     5.2030        3.6099       -.99161E-07   -.16150E-04
  10  norm          .10000E-03    4.4490        .27724E-08** at limit **
  11  Prefactor     1.9476        4.9549        .70653E-06    .92374E-04
  12  norm          .10000E-03    2.6755       -.10071E-07** at limit **
  13  Prefactor     2.9625        2.5351        .46383E-07    .45340E-04
  14  norm          .10000E-03    .18438        .11541E-07** at limit **
  15  Prefactor     2.2589        56.938        .88169E-06    .71142E-05
  16  Prefactor     .10000E-03    29.724        .62013E-07** at limit **
  17  Prefactor     .10000E-03    4.3302        .66559E-09** at limit **
  18  Prefactor     20.212        18.727       -.56709E-07    .27161E-05
  19  Normalizat    .54263        .20755        .47026E-05    .31331E-03
  20  Prefactor     1.2336        .18072       -.17474E-05    .51301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3807
  norm       = 6.75489
  Prefactor  = 20.2185
  Prefactor  = 0.0001
  Prefactor  = 0.000100191
  Prefactor  = 0.0001
  norm       = 10.2903
  Prefactor  = 122.326
  Prefactor  = 5.20301
  norm       = 0.0001
  Prefactor  = 1.94758
  norm       = 0.0001
  Prefactor  = 2.96246
  norm       = 0.0001
  Prefactor  = 2.25894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2124
  Normalizat = 0.542626
  Prefactor  = 1.23358
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.141     FROM HESSE     STATUS=OK           291 CALLS     2285 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.381        99.322        .39142E-03   -1.4680    
   2  norm          6.7549        2.2419        .56920E-04   -1.5188    
   3  Prefactor     20.218        43.160        .88993E-04   -1.4808    
   4  Prefactor     .10000E-03    2.4622        .10779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10019E-03    52.079        .36558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.290        8.4576        .12490E-03   -1.5066    
   8  Prefactor     122.33        98.980        .18187E-03   -1.3491    
   9  Prefactor     5.2030        3.6135        .10861E-03   -1.5252    
  10  norm          .10000E-03    4.4500        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9476        4.9040        .24042E-03   -1.5429    
  12  norm          .10000E-03    2.6970        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9625        2.5120        .96973E-04   -1.5364    
  14  norm          .10000E-03    .18668        .29544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2589        55.788        .27381E-03   -1.5407    
  16  Prefactor     .10000E-03    29.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3425        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.212        18.685        .89094E-04   -1.4808    
  19  Normalizat    .54263        .21840        .32174E-03   -1.1048    
  20  Prefactor     1.2336        .19338        .19316E-03   -.85304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84427e-09
Minuit parameter uncertainties:
  1  99.9532
  2  2.24191
  3  43.2267
  4  2.48475e-05
  5  0.00631056
  6  7.04445e-06
  7  8.4586
  8  99.1147
  9  3.61362
  10  9.13316e-07
  11  4.90499
  12  4.06087e-06
  13  2.51211
  14  5.8311e-07
  15  22.4748
  16  1.07836e-05
  17  5.89838e-06
  18  18.69
  19  0.218748
  20  0.193489
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.234e+00  1.935e-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:  5.426e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.94
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.45e-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) = 4975.43961363
delta logL = 1.70182522825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4975.39256164
delta logL = 1.74887722103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5258       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1095       1.0000          .0000       10.000    
     3 'Normalizat'    .56076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2274       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=   4975.393     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5331        4.7391        .39275E-02    .14400E-03
   2  Index         1.1101        .38290        .19827       -.11257E-03
   3  Normalizat    .56065        .19021        .71544E-01    .19149E-03
   4  Prefactor     1.2275        .16734        .34013E-01   -.22837E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.53313
  Index      = 1.11007
  Normalizat = 0.560646
  Prefactor  = 1.22753
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.393     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5331        5.2968        .12763E-03   -1.5197    
   2  Index         1.1101        .44601        .83971E-02   -.89145    
   3  Normalizat    .56065        .21387        .31672E-03   -1.0968    
   4  Prefactor     1.2275        .18871        .19355E-03   -.85488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91742e-10
Minuit parameter uncertainties:
  1  5.29717
  2  0.447525
  3  0.214186
  4  0.188814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899782': 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) = 4975.39256029
delta logL = 1.74887857435

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.228e+00  1.888e-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:  5.606e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.42
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.11 +/- 0.45
Photon Flux (Free Index): 1.08e-08 +/- 9.13e-09
Energy Flux (Free Index): 1.17e-04 +/- 1.27e-04

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/899782/cmap_HighResolution_437616001_437875201_4FGL_J0152.6+0147_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='1.17e-04', photon_flux_error='2.02e-08', dlogl='1.75e+00', energy_flux='2.09e-05', photon_flux2='1.08e-08', job_status='DONE', time_completed='2021-08-14 19:55:08.122570', photon_index_error2='0.45', photon_index2='1.11', ts='14.94', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.27e-04', EG='0.54', time_epoch_completed='1628996108.12', return_code='0', job_id='899782', GAL2='1.23', EG2='0.56', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='9.13e-09', ts2='18.42', photon_index='1.98' WHERE bin_id='765' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 899782: <4FGL_J0152.6+0147_daily_bin765> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin765> 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) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:40:49 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:49 2021
Terminated at Sat Aug 14 19:55:10 2021
Results reported at Sat Aug 14 19:55:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin765 28.1614 1.7894 437616001 437875201 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 :                                   679.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            880 sec.

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

