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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin710
RA = 28.1614, Dec = 1.7894
tmin = 423360001, tmax = 423619201
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='898611', job_status='RUN', time_executed='2021-08-14 19:42:07.420712', time_epoch_executed='1628995327.42' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898611/ft1_4FGL_J0152.6+0147_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898611/ft2_4FGL_J0152.6+0147_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898611/ft1_4FGL_J0152.6+0147_daily_bin710.fits outfile=/scratch/kocevski/898611/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin710.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=423360001.0 tmax=423619201.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 5.73
user 5.44
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898611/ft1_filtered_4FGL_J0152.6+0147_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/898611/ft2_4FGL_J0152.6+0147_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/898611/ltcube_423360001_423619201_4FGL_J0152.6+0147_daily_bin710.fits outfile=/scratch/kocevski/898611/expmap_423360001_423619201_4FGL_J0152.6+0147_daily_bin710.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/898611/ltcube_423360001_423619201_4FGL_J0152.6+0147_daily_bin710.fits
.....................!
real 191.40
user 186.71
sys 3.85

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11532E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6704       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.266       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1393       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75105       1.0000         .10000E-03   10000.    
    10 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9331       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4064       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28701E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64339       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1234       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=   5743.321     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2074 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.906        .41748E-05** at limit **
   2  norm          5.4929        1.8780       -.88161E-07   -.11245E-03
   3  Prefactor     .10000E-03    10.688        .51972E-06** at limit **
   4  Prefactor     3.6707        5.8001        .26624E-05    .45302E-04
   5  Prefactor     .10000E-03    2.4076       -.10755E-07** at limit **
   6  Prefactor     45.248        39.261        .10969E-05   -.35433E-06
   7  norm          7.1396        5.8884        .28953E-07    .32484E-05
   8  Prefactor     37.301        54.533       -.74433E-06   -.18617E-06
   9  Prefactor     .75165        4.2782        .79431E-06   -.93918E-04
  10  norm          .10000E-03    12.180       -.52875E-06** at limit **
  11  Prefactor     1.9334        5.8049        .57795E-06    .33397E-04
  12  norm          .10000E-03    3.4078       -.37372E-06** at limit **
  13  Prefactor     6.4048        2.9275        .75833E-07    .34520E-03
  14  norm          .10000E-03    .35405       -.23906E-07** at limit **
  15  Prefactor     .10006E-03    21.263       -.10074E-05** at limit **
  16  Prefactor     .10000E-03    30.677       -.44841E-05** at limit **
  17  Prefactor     .10000E-03    3.8870       -.10989E-07** at limit **
  18  Prefactor     .10000E-03    7.7930       -.19897E-06** at limit **
  19  Normalizat    .64334        .17052       -.23127E-06    .97172E-04
  20  Prefactor     1.1234        .14465       -.11240E-06    .19561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.49287
  Prefactor  = 0.0001
  Prefactor  = 3.67071
  Prefactor  = 0.0001
  Prefactor  = 45.2485
  norm       = 7.13957
  Prefactor  = 37.3014
  Prefactor  = 0.751648
  norm       = 0.0001
  Prefactor  = 1.93338
  norm       = 0.0001
  Prefactor  = 6.40481
  norm       = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.643336
  Prefactor  = 1.1234
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.321     FROM HESSE     STATUS=OK           297 CALLS     2371 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4929        1.8773        .58340E-04   -1.5239    
   3  Prefactor     .10000E-03    10.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6707        5.8272        .10542E-02   -1.5325    
   5  Prefactor     .10000E-03    2.4110        .11484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.248        39.218        .29796E-03   -1.4362    
   7  norm          7.1396        5.8882        .15013E-03   -1.5174    
   8  Prefactor     37.301        54.538        .65628E-04   -1.4486    
   9  Prefactor     .75165        7.7095        .28862E-02   -1.5535    
  10  norm          .10000E-03    12.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9334        5.7688        .29870E-03   -1.5430    
  12  norm          .10000E-03    7.1779        .26730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4048        2.8806        .82389E-04   -1.5202    
  14  norm          .10000E-03    .59261        .86548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    178.31        .65415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8963        .14592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64334        .18963        .29507E-03   -1.0617    
  20  Prefactor     1.1234        .16290        .19460E-03   -.88722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52503e-08
Minuit parameter uncertainties:
  1  5.97545e-06
  2  1.87735
  3  2.50174e-07
  4  5.82814
  5  3.02023e-07
  6  39.2406
  7  5.88869
  8  54.6114
  9  4.81497
  10  5.52156e-06
  11  5.77049
  12  1.70464e-05
  13  2.8807
  14  8.28103e-07
  15  0.00645502
  16  1.43709e-05
  17  1.09523e-06
  18  8.70618e-08
  19  0.189824
  20  0.162968
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.516e-01  4.815e+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.123e+00  1.630e-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.433e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898611/likelihoodResults_423360001_423619201_4FGL_J0152.6+0147_daily_bin710.txt

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) = 5743.26314421
delta logL = 0.0582190370487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5743.26144274
delta logL = 0.0599205145709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65610       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5914       1.0000          .0000       10.000    
     3 'Normalizat'    .63214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1267       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5743.261     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      253 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65616        4.7067        .15750E-03    .13047E-02
   2  Index         2.5916        2.0243        .46452E-02   -.21601E-04
   3  Normalizat    .63211        .19151        .29755E-03    .26745E-06
   4  Prefactor     1.1267        .16095        .19433E-03    .35101E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.656156
  Index      = 2.59162
  Normalizat = 0.632107
  Prefactor  = 1.12673
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.261     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65616        3.1474        .62998E-05   -1.5546    
   2  Index         2.5916        1.6745        .18581E-03   -.50257    
   3  Normalizat    .63211        .19139        .11902E-04   -1.0664    
   4  Prefactor     1.1267        .16075        .77731E-05   -.88617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91181e-09
Minuit parameter uncertainties:
  1  2.87417
  2  1.71816
  3  0.191591
  4  0.160819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898611': 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) = 5743.26144271
delta logL = 0.0599205421886

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.562e-01  2.874e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.592e+00  1.718e+00  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.127e+00  1.608e-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.321e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 28.161 1.789

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/898611/cmap_HighResolution_423360001_423619201_4FGL_J0152.6+0147_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-08-14 19:52:03.637414', job_id='898611', GAL2='1.13', fit_tolerance='1e-08', EG2='0.63', EG='0.64', time_epoch_completed='1628995923.64', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.99e-02', ts2='0.15', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='710' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 898611: <4FGL_J0152.6+0147_daily_bin710> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin710 28.1614 1.7894 423360001 423619201 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 :                                   594.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            968 sec.

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

