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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin709
RA = 28.1614, Dec = 1.7894
tmin = 423100801, tmax = 423360001
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='898610', job_status='RUN', time_executed='2021-08-14 19:41:54.115105', time_epoch_executed='1628995314.12' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898610/ft1_4FGL_J0152.6+0147_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898610/ft2_4FGL_J0152.6+0147_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898610/ft1_4FGL_J0152.6+0147_daily_bin709.fits outfile=/scratch/kocevski/898610/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin709.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=423100801.0 tmax=423360001.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 4.99
user 4.71
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898610/ft2_4FGL_J0152.6+0147_daily_bin709.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/898610/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/898610/ft1_filtered_4FGL_J0152.6+0147_daily_bin709.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898610/ft1_filtered_4FGL_J0152.6+0147_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/898610/ft2_4FGL_J0152.6+0147_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/898610/ltcube_423100801_423360001_4FGL_J0152.6+0147_daily_bin709.fits outfile=/scratch/kocevski/898610/expmap_423100801_423360001_4FGL_J0152.6+0147_daily_bin709.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/898610/ltcube_423100801_423360001_4FGL_J0152.6+0147_daily_bin709.fits
.....................!
real 190.85
user 185.37
sys 5.09

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/898610/ft1_filtered_4FGL_J0152.6+0147_daily_bin709.fits scfile=/scratch/kocevski/898610/ft2_4FGL_J0152.6+0147_daily_bin709.fits outfile=/scratch/kocevski/898610/cmap_423100801_423360001_4FGL_J0152.6+0147_daily_bin709.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898610/ft1_filtered_4FGL_J0152.6+0147_daily_bin709.fits scfile=/scratch/kocevski/898610/ft2_4FGL_J0152.6+0147_daily_bin709.fits outfile=/scratch/kocevski/898610/cmap_HighResolution_423100801_423360001_4FGL_J0152.6+0147_daily_bin709.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.489       1.0000         .10000E-03   10000.    
     2 'norm      '    8.4892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2864       1.0000         .10000E-03   10000.    
    10 'norm      '    20.995       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1938       1.0000         .10000E-03   10000.    
    12 'norm      '    18.371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25731       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7820       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89362       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87129       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=   5813.096     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2018 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.472        96.097       -.34680E-04    .11201E-03
   2  norm          8.4885        2.6421        .72111E-06    .45571E-03
   3  Prefactor     .10000E-03    22.428        .19428E-05** at limit **
   4  Prefactor     1.2893        15.453       -.72035E-05   -.46131E-03
   5  Prefactor     .10000E-03    5.3074       -.42367E-07** at limit **
   6  Prefactor     .10000E-03    43.666        .76702E-05** at limit **
   7  norm          11.796        7.1767       -.13236E-06   -.59863E-06
   8  Prefactor     .10000E-03    28.142       -.61593E-05** at limit **
   9  Prefactor     2.2864        4.4749       -.67901E-06   -.53938E-03
  10  norm          20.994        15.321       -.14571E-06    .99336E-05
  11  Prefactor     4.1932        5.4635        .47700E-06   -.41524E-03
  12  norm          18.375        6.3654        .76847E-07    .10928E-03
  13  Prefactor     .23889        1.6114       -.39726E-06   -.53379E-04
  14  norm          1.7142        .91277       -.50504E-07   -.33682E-04
  15  Prefactor     23.415        27.804       -.16852E-05    .22306E-03
  16  Prefactor     .10000E-03    42.007        .12104E-04** at limit **
  17  Prefactor     9.7826        8.4716       -.21967E-06    .39958E-04
  18  Prefactor     .10001E-03    49.893       -.15976E-04** at limit **
  19  Normalizat    .89342        .18358        .19118E-05    .21519E-03
  20  Prefactor     .87144        .14954        .22762E-06    .33841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4718
  norm       = 8.48852
  Prefactor  = 0.0001
  Prefactor  = 1.28926
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 11.796
  Prefactor  = 0.000100001
  Prefactor  = 2.28642
  norm       = 20.9944
  Prefactor  = 4.19318
  norm       = 18.3747
  Prefactor  = 0.238893
  norm       = 1.71415
  Prefactor  = 23.4149
  Prefactor  = 0.000100005
  Prefactor  = 9.78262
  Prefactor  = 0.000100012
  Normalizat = 0.893421
  Prefactor  = 0.87144
 **********
 **   18 **HESSE 
 **********

 FCN=   5813.096     FROM HESSE     STATUS=OK           293 CALLS     2311 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.472        93.866        .90727E-04   -1.4825    
   2  norm          8.4885        2.6500        .60496E-04   -1.5125    
   3  Prefactor     .10000E-03    22.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2893        17.441        .39090E-03   -1.5481    
   5  Prefactor     .10000E-03    5.3640        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.796        7.1794        .11664E-03   -1.5021    
   8  Prefactor     .10000E-03    28.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2864        4.4940        .21764E-03   -1.5406    
  10  norm          20.994        15.331        .87413E-04   -1.4791    
  11  Prefactor     4.1932        5.4483        .19484E-03   -1.5298    
  12  norm          18.375        6.3441        .93445E-04   -1.4850    
  13  Prefactor     .23889        5.9974        .17164E-02   -1.5610    
  14  norm          1.7142        .90959        .50694E-04   -1.5446    
  15  Prefactor     23.415        27.346        .82771E-04   -1.4740    
  16  Prefactor     .10000E-03    41.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7826        8.4800        .12812E-03   -1.5082    
  18  Prefactor     .10001E-03    49.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89342        .21080        .26874E-03   -.96692    
  20  Prefactor     .87144        .17303        .22160E-03   -.97146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83353e-08
Minuit parameter uncertainties:
  1  85.7227
  2  2.65002
  3  2.68787e-05
  4  9.48675
  5  4.35681e-07
  6  0.000588452
  7  7.17988
  8  0.00036943
  9  4.49465
  10  15.3334
  11  5.44891
  12  6.34434
  13  2.39371
  14  0.909594
  15  27.3606
  16  0.000889855
  17  8.481
  18  0.00156522
  19  0.210995
  20  0.173142
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.286e+00  4.495e+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.714e-01  1.731e-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:  8.934e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898610/likelihoodResults_423100801_423360001_4FGL_J0152.6+0147_daily_bin709.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) = 5813.09362139
delta logL = 0.00203534533466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5813.09319921
delta logL = 0.00245753270792

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1569       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0524       1.0000          .0000       10.000    
     3 'Normalizat'    .89213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87189       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5813.093     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      249 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1569        5.0200        .20849E-03    .25001E-03
   2  Index         2.0526        1.0404        .11183E-01    .53081E-04
   3  Normalizat    .89208        .20508        .26892E-03   -.51490E-03
   4  Prefactor     .87192        .16745        .22154E-03   -.31549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15687
  Index      = 2.05259
  Normalizat = 0.892079
  Prefactor  = 0.871922
 **********
 **   18 **HESSE 
 **********

 FCN=   5813.093     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1569        4.7113        .83397E-05   -1.5414    
   2  Index         2.0526        .97740        .44731E-03   -.63042    
   3  Normalizat    .89208        .20505        .53785E-04   -.96739    
   4  Prefactor     .87192        .16747        .44308E-04   -.97129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11975e-10
Minuit parameter uncertainties:
  1  4.71206
  2  0.987201
  3  0.205232
  4  0.167568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898610': 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) = 5813.09319917
delta logL = 0.00245757025186

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.157e+00  4.712e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.053e+00  9.872e-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.719e-01  1.676e-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:  8.921e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/898610/cmap_HighResolution_423100801_423360001_4FGL_J0152.6+0147_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-08-14 19:51:44.543394', job_id='898610', GAL2='0.87', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1628995904.54', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.46e-03', ts2='0.33', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='709' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 898610: <4FGL_J0152.6+0147_daily_bin709> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin709> 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) <bullet0231>, 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:51:45 2021
Results reported at Sat Aug 14 19:51:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin709 28.1614 1.7894 423100801 423360001 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 :                                   589.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            949 sec.

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

