/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 1 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin199
RA = 28.1614, Dec = 1.7894
tmin = 290908801, tmax = 291168001
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='895800', job_status='RUN', time_executed='2021-08-14 19:29:39.738840', time_epoch_executed='1628994579.74' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895800/ft1_4FGL_J0152.6+0147_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895800/ft2_4FGL_J0152.6+0147_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895800/ft1_4FGL_J0152.6+0147_daily_bin199.fits outfile=/scratch/kocevski/895800/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin199.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=290908801.0 tmax=291168001.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.86
user 3.21
sys 0.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895800/ft1_filtered_4FGL_J0152.6+0147_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/895800/ft2_4FGL_J0152.6+0147_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/895800/ltcube_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.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/895800/ft2_4FGL_J0152.6+0147_daily_bin199.fits
.....................!
real 13.97
user 13.18
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895800/ft1_filtered_4FGL_J0152.6+0147_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/895800/ft2_4FGL_J0152.6+0147_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/895800/ltcube_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.fits outfile=/scratch/kocevski/895800/expmap_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.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/895800/ltcube_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.fits
.....................!
real 191.78
user 185.32
sys 5.89

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/895800/ft1_filtered_4FGL_J0152.6+0147_daily_bin199.fits scfile=/scratch/kocevski/895800/ft2_4FGL_J0152.6+0147_daily_bin199.fits outfile=/scratch/kocevski/895800/cmap_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.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.90
user 0.37
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895800/ft1_filtered_4FGL_J0152.6+0147_daily_bin199.fits scfile=/scratch/kocevski/895800/ft2_4FGL_J0152.6+0147_daily_bin199.fits outfile=/scratch/kocevski/895800/cmap_HighResolution_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.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.90
user 0.41
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.723       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1882       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3480       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .99199E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    27.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5883       1.0000         .10000E-03   10000.    
    10 'norm      '    16.776       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1334       1.0000         .10000E-03   10000.    
    12 'norm      '    8.8361       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .35140       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8163       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81249       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2617       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=   6920.605     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2063 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.714        85.409        .70349E-06    .97415E-05
   2  norm          5.1879        1.9185       -.62067E-07    .25505E-03
   3  Prefactor     .10000E-03    21.796        .16514E-07** at limit **
   4  Prefactor     4.3471        7.1952        .27092E-05   -.13464E-03
   5  Prefactor     3.7492        8.6964        .34315E-05   -.12489E-03
   6  Prefactor     .10002E-03    772.24       -.43085E-05** at limit **
   7  norm          27.488        9.6221       -.53833E-07    .43210E-04
   8  Prefactor     .10000E-03    55.207       -.69090E-07** at limit **
   9  Prefactor     3.5881        3.6852        .48066E-07    .71007E-05
  10  norm          16.777        18.115        .17588E-06   -.13625E-04
  11  Prefactor     7.1334        6.6629        .18941E-06   -.13983E-03
  12  norm          8.8402        6.2833       -.10034E-06   -.58727E-03
  13  Prefactor     .10000E-03    1.9514        .15914E-05** at limit **
  14  norm          .35100        .66233        .41709E-07   -.51217E-03
  15  Prefactor     .10000E-03    9.6843        .24214E-06** at limit **
  16  Prefactor     8.9415        161.84       -.94971E-05   -.54031E-05
  17  Prefactor     .10000E-03    4.2863       -.37006E-07** at limit **
  18  Prefactor     .10000E-03    6.3326        .11960E-06** at limit **
  19  Normalizat    .81252        .17938        .83153E-06   -.71209E-04
  20  Prefactor     1.2617        .15689       -.13662E-05   -.33484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.7143
  norm       = 5.18795
  Prefactor  = 0.0001
  Prefactor  = 4.34714
  Prefactor  = 3.74918
  Prefactor  = 0.000100023
  norm       = 27.4875
  Prefactor  = 0.0001
  Prefactor  = 3.58809
  norm       = 16.7768
  Prefactor  = 7.13345
  norm       = 8.8402
  Prefactor  = 0.0001
  norm       = 0.350999
  Prefactor  = 0.0001
  Prefactor  = 8.94155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.812516
  Prefactor  = 1.26174
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.605     FROM HESSE     STATUS=OK           297 CALLS     2360 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.714        85.525        .55765E-04   -1.4268    
   2  norm          5.1879        1.9188        .64139E-04   -1.5252    
   3  Prefactor     .10000E-03    21.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3471        7.3021        .96586E-03   -1.5291    
   5  Prefactor     3.7492        8.7523        .10424E-02   -1.5321    
   6  Prefactor     .10002E-03    801.91        .36290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          27.488        9.6182        .76412E-04   -1.4659    
   8  Prefactor     .10000E-03    55.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5881        3.6860        .15654E-03   -1.5329    
  10  norm          16.777        18.143        .97785E-04   -1.4889    
  11  Prefactor     7.1334        6.6663        .15019E-03   -1.5174    
  12  norm          8.8402        6.2416        .13484E-03   -1.5113    
  13  Prefactor     .10000E-03    3.3614        .21475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .35100        .62040        .88531E-03   -1.5589    
  15  Prefactor     .10000E-03    9.6975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9415        164.09        .13499E-03   -1.5110    
  17  Prefactor     .10000E-03    4.2955        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81252        .20914        .30900E-03   -.99606    
  20  Prefactor     1.2617        .18326        .21731E-03   -.84452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64965e-09
Minuit parameter uncertainties:
  1  85.7291
  2  1.91883
  3  1.55322e-05
  4  7.3036
  5  8.7553
  6  0.0086762
  7  9.61873
  8  3.69593e-05
  9  3.68619
  10  18.1494
  11  6.66701
  12  6.24203
  13  5.83706e-05
  14  0.62041
  15  3.49353e-05
  16  76.8549
  17  4.00795e-06
  18  1.49418e-05
  19  0.20935
  20  0.183349
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.588e+00  3.686e+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.262e+00  1.833e-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.125e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/895800/likelihoodResults_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.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) = 6920.55222459
delta logL = 0.0525318099662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6920.55068726
delta logL = 0.0540691350816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7253       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6040       1.0000          .0000       10.000    
     3 'Normalizat'    .82375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2581       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=   6920.551     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7267        125.03        .52303E-02   -.98510E-04
   2  Index         1.6047        5.0462        .28722       -.23418E-04
   3  Normalizat    .82450        .10941        .69366E-01    .28312E-04
   4  Prefactor     1.2576        .60946E-01    .49226E-01   -.11869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72666
  Index      = 1.60465
  Normalizat = 0.824495
  Prefactor  = 1.25757
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.551     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7267        4.1497        .17121E-03   -1.5322    
   2  Index         1.6047        1.0210        .12306E-01   -.74649    
   3  Normalizat    .82450        .20339        .30692E-03   -.99166    
   4  Prefactor     1.2576        .17419        .21761E-03   -.84578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60966e-12
Minuit parameter uncertainties:
  1  4.15007
  2  1.03468
  3  0.203578
  4  0.174273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895800': 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) = 6920.55067999
delta logL = 0.0540764052121

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.727e+00  4.150e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.605e+00  1.035e+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.258e+00  1.743e-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.245e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.60 +/- 1.03
Photon Flux (Free Index): 1.00e-08 +/- 2.19e-08
Energy Flux (Free Index): 2.23e-05 +/- 4.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/895800/cmap_HighResolution_290908801_291168001_4FGL_J0152.6+0147_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='2.23e-05', photon_flux_error='2.06e-08', dlogl='5.41e-02', energy_flux='1.44e-05', photon_flux2='1.00e-08', job_status='DONE', time_completed='2021-08-14 19:40:38.057399', photon_index_error2='1.03', photon_index2='1.60', ts='2.56', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='7.80e-08', energy_flux_error2='4.19e-05', EG='0.81', time_epoch_completed='1628995238.06', return_code='0', job_id='895800', GAL2='1.26', EG2='0.82', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.19e-08', ts2='2.67', photon_index='1.98' WHERE bin_id='199' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:40:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 895800: <4FGL_J0152.6+0147_daily_bin199> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin199> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 19:25:42 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:29:20 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:29:20 2021
Terminated at Sat Aug 14 19:40:38 2021
Results reported at Sat Aug 14 19:40:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin199 28.1614 1.7894 290908801 291168001 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 :                                   661.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             378.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            896 sec.

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

