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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin844
RA = 28.1614, Dec = 1.7894
tmin = 458092801, tmax = 458352001
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='899904', job_status='RUN', time_executed='2021-08-14 19:45:22.855419', time_epoch_executed='1628995522.86' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899904/ft1_4FGL_J0152.6+0147_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899904/ft2_4FGL_J0152.6+0147_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899904/ft1_4FGL_J0152.6+0147_daily_bin844.fits outfile=/scratch/kocevski/899904/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin844.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=458092801.0 tmax=458352001.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 3.60
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899904/ft2_4FGL_J0152.6+0147_daily_bin844.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/899904/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin844.fits evtable="EVENTS" outfile="/scratch/kocevski/899904/ft1_filtered_4FGL_J0152.6+0147_daily_bin844.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899904/ft1_filtered_4FGL_J0152.6+0147_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/899904/ft2_4FGL_J0152.6+0147_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/899904/ltcube_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.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/899904/ft2_4FGL_J0152.6+0147_daily_bin844.fits
.....................!
real 12.77
user 12.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899904/ft1_filtered_4FGL_J0152.6+0147_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/899904/ft2_4FGL_J0152.6+0147_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/899904/ltcube_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.fits outfile=/scratch/kocevski/899904/expmap_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.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/899904/ltcube_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.fits
.....................!
real 191.20
user 185.37
sys 5.44

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/899904/ft1_filtered_4FGL_J0152.6+0147_daily_bin844.fits scfile=/scratch/kocevski/899904/ft2_4FGL_J0152.6+0147_daily_bin844.fits outfile=/scratch/kocevski/899904/cmap_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899904/ft1_filtered_4FGL_J0152.6+0147_daily_bin844.fits scfile=/scratch/kocevski/899904/ft2_4FGL_J0152.6+0147_daily_bin844.fits outfile=/scratch/kocevski/899904/cmap_HighResolution_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.254       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1812       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.691       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.640       1.0000         .10000E-03   10000.    
     7 'norm      '    .48928E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5237       1.0000         .10000E-03   10000.    
    10 'norm      '    24.357       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.531       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7486       1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.308       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88888       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=   5471.164     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2055 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.253        84.778        .11807E-02    .77470E-04
   2  norm          1.1818        2.0300        .10513E-01    .87520E-03
   3  Prefactor     .10000E-03    179.94        .90712E-02** at limit **
   4  Prefactor     19.689        10.628        .22565E-02    .56207E-03
   5  Prefactor     .10000E-03    4.5814        .90712E-02** at limit **
   6  Prefactor     30.641        37.536        .18096E-02   -.55745E-04
   7  norm          .10000E-03    5.4474        .56693E-01** at limit **
   8  Prefactor     .10000E-03    33.790        .90712E-02** at limit **
   9  Prefactor     5.5241        5.0253        .42738E-02    .25746E-02
  10  norm          24.356        16.874        .20291E-02   -.34343E-03
  11  Prefactor     .10000E-03    4.8304        .90712E-02** at limit **
  12  norm          13.531        7.5944        .27223E-02   -.10273E-02
  13  Prefactor     1.7477        3.2390        .79277E-02    .78971E-03
  14  norm          .10000E-03    .47313        .19703E-01** at limit **
  15  Prefactor     .10000E-03    12.600        .90712E-02** at limit **
  16  Prefactor     51.416        66.884        .13983E-02   -.67443E-03
  17  Prefactor     .10000E-03    3.6275        .90712E-02** at limit **
  18  Prefactor     27.311        23.629        .19166E-02    .53964E-03
  19  Normalizat    1.0181        .19006        .43617E-01    .12187E-04
  20  Prefactor     .88903        .15773        .44863E-01    .15047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.2534
  norm       = 1.18175
  Prefactor  = 0.0001
  Prefactor  = 19.6894
  Prefactor  = 0.0001
  Prefactor  = 30.641
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.52414
  norm       = 24.3563
  Prefactor  = 0.0001
  norm       = 13.5313
  Prefactor  = 1.74774
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.4156
  Prefactor  = 0.0001
  Prefactor  = 27.3108
  Normalizat = 1.01806
  Prefactor  = 0.889032
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.164     FROM HESSE     STATUS=OK           289 CALLS     2344 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.253        83.539        .47230E-04   -1.4006    
   2  norm          1.1818        1.9622        .11569E-03   -1.5491    
   3  Prefactor     .10000E-03    182.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.689        10.517        .90260E-04   -1.4820    
   5  Prefactor     .10000E-03    4.6055        .15461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.641        37.527        .72383E-04   -1.4600    
   7  norm          .10000E-03    29.380        .33490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5241        5.0260        .75972E-03   -1.5238    
  10  norm          24.356        16.879        .81165E-04   -1.4721    
  11  Prefactor     .10000E-03    4.8751        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.531        7.5261        .10889E-03   -1.4972    
  13  Prefactor     1.7477        3.1718        .15870E-03   -1.5444    
  14  norm          .10000E-03    .80606        .97966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.416        66.710        .55932E-04   -1.4273    
  17  Prefactor     .10000E-03    3.6296        .13759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.311        23.645        .76662E-04   -1.4662    
  19  Normalizat    1.0181        .21590        .25690E-03   -.92428    
  20  Prefactor     .88903        .18058        .22624E-03   -.96525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5409e-09
Minuit parameter uncertainties:
  1  83.6746
  2  1.96232
  3  8.32374e-05
  4  10.5177
  5  1.0902e-06
  6  37.5562
  7  3.73595e-05
  8  7.85377e-06
  9  5.02642
  10  16.8818
  11  1.31945e-06
  12  7.52665
  13  3.17208
  14  2.70992e-07
  15  8.42363e-07
  16  66.807
  17  1.6668e-06
  18  23.6532
  19  0.216085
  20  0.1807
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.524e+00  5.026e+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:  8.890e-01  1.807e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.018e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.89
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/899904/likelihoodResults_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.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) = 5471.09318812
delta logL = 0.0710795689774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5471.09099891
delta logL = 0.0732687795389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3851       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2479       1.0000          .0000       10.000    
     3 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89558       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=   5471.091     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3836        94.366        .48083E-02    .25705E-03
   2  Index         2.2475        6.1234        .10224        .16049E-03
   3  Normalizat    1.0014        .10009        .46186E-01    .17722E-04
   4  Prefactor     .89584        .61149E-01    .44949E-01    .26340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.38362
  Index      = 2.24752
  Normalizat = 1.00138
  Prefactor  = 0.895837
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.091     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3836        5.7467        .12041E-03   -1.5289    
   2  Index         2.2475        .74736        .61748E-02   -.58296    
   3  Normalizat    1.0014        .21765        .25876E-03   -.92984    
   4  Prefactor     .89584        .17679        .22544E-03   -.96287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43876e-11
Minuit parameter uncertainties:
  1  5.74739
  2  0.751416
  3  0.217839
  4  0.1769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899904': 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) = 5471.09099666
delta logL = 0.0732710314642

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.958e-01  1.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.001e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.25 +/- 0.75
Photon Flux (Free Index): 4.48e-08 +/- 4.99e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.79e-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/899904/cmap_HighResolution_458092801_458352001_4FGL_J0152.6+0147_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-03', comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='1.85e-05', photon_flux_error='2.81e-08', dlogl='7.33e-02', energy_flux='2.22e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-08-14 19:55:24.145948', photon_index_error2='0.75', photon_index2='2.25', ts='2.89', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.95e-08', energy_flux_error2='1.79e-05', EG='1.02', time_epoch_completed='1628996124.15', return_code='0', job_id='899904', GAL2='0.90', EG2='1.00', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='4.99e-08', ts2='3.03', photon_index='1.98' WHERE bin_id='844' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 899904: <4FGL_J0152.6+0147_daily_bin844> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin844 28.1614 1.7894 458092801 458352001 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 :                                   601.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            885 sec.

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

