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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin595
RA = 28.1614, Dec = 1.7894
tmin = 393552001, tmax = 393811201
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='898453', job_status='RUN', time_executed='2021-08-14 19:42:10.334883', time_epoch_executed='1628995330.33' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898453

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898453/ft1_4FGL_J0152.6+0147_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898453/ft2_4FGL_J0152.6+0147_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898453/ft1_4FGL_J0152.6+0147_daily_bin595.fits outfile=/scratch/kocevski/898453/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin595.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=393552001.0 tmax=393811201.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 8.74
user 3.25
sys 5.43

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898453/ft1_filtered_4FGL_J0152.6+0147_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/898453/ft2_4FGL_J0152.6+0147_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/898453/ltcube_393552001_393811201_4FGL_J0152.6+0147_daily_bin595.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/898453/ft2_4FGL_J0152.6+0147_daily_bin595.fits
.....................!
real 18.28
user 11.88
sys 6.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898453/ft1_filtered_4FGL_J0152.6+0147_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/898453/ft2_4FGL_J0152.6+0147_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/898453/ltcube_393552001_393811201_4FGL_J0152.6+0147_daily_bin595.fits outfile=/scratch/kocevski/898453/expmap_393552001_393811201_4FGL_J0152.6+0147_daily_bin595.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/898453/ltcube_393552001_393811201_4FGL_J0152.6+0147_daily_bin595.fits
.....................!
real 198.31
user 186.13
sys 11.59

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

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

This is gtbin version HEAD
real 5.83
user 0.36
sys 5.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898453/ft1_filtered_4FGL_J0152.6+0147_daily_bin595.fits scfile=/scratch/kocevski/898453/ft2_4FGL_J0152.6+0147_daily_bin595.fits outfile=/scratch/kocevski/898453/cmap_HighResolution_393552001_393811201_4FGL_J0152.6+0147_daily_bin595.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 6.45
user 0.38
sys 5.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.6536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.8124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1675       1.0000         .10000E-03   10000.    
    10 'norm      '    19.637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .93693       1.0000         .10000E-03   10000.    
    12 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4048       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11987E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    123.52       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.973       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98051       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81562       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=   4668.413     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1726 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.016       -.45840E-06** at limit **
   2  norm          7.6538        2.1622        .16401E-07    .41923E-04
   3  Prefactor     .10000E-03    61.592        .10490E-05** at limit **
   4  Prefactor     .10000E-03    3.6825       -.73338E-07** at limit **
   5  Prefactor     5.0953        9.6119        .46840E-05   -.48856E-03
   6  Prefactor     .10000E-03    19.285       -.36434E-07** at limit **
   7  norm          6.8124        6.1969       -.55116E-07   -.22821E-04
   8  Prefactor     .10000E-03    94.310        .29330E-06** at limit **
   9  Prefactor     1.1692        4.6464        .12756E-05   -.11720E-03
  10  norm          19.631        18.993       -.23889E-07    .12129E-04
  11  Prefactor     .92648        5.0435       -.80926E-07    .70331E-04
  12  norm          .10000E-03    3.1669       -.33826E-07** at limit **
  13  Prefactor     6.4041        3.4410        .26913E-06    .95687E-04
  14  norm          1.7560        1.0416        .74901E-09   -.35668E-03
  15  Prefactor     .10000E-03    23.782       -.50250E-06** at limit **
  16  Prefactor     123.47        80.864       -.60063E-05   -.40050E-03
  17  Prefactor     18.975        14.633        .12014E-06    .12942E-04
  18  Prefactor     .10000E-03    7.9056       -.18082E-07** at limit **
  19  Normalizat    .98017        .20134       -.91989E-06   -.67374E-05
  20  Prefactor     .81585        .15936       -.40443E-07   -.45436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.6538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.09528
  Prefactor  = 0.0001
  norm       = 6.8124
  Prefactor  = 0.0001
  Prefactor  = 1.16915
  norm       = 19.6308
  Prefactor  = 0.926475
  norm       = 0.0001
  Prefactor  = 6.40407
  norm       = 1.75603
  Prefactor  = 0.0001
  Prefactor  = 123.473
  Prefactor  = 18.9751
  Prefactor  = 0.0001
  Normalizat = 0.980174
  Prefactor  = 0.815853
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.413     FROM HESSE     STATUS=OK           293 CALLS     2019 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.6538        2.1630        .51703E-04   -1.5155    
   3  Prefactor     .10000E-03    62.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7233        .12803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0953        9.9871        .89061E-03   -1.5256    
   6  Prefactor     .10000E-03    19.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.8124        6.1981        .15372E-03   -1.5186    
   8  Prefactor     .10000E-03    94.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1692        4.6383        .28054E-03   -1.5492    
  10  norm          19.631        18.921        .90383E-04   -1.4822    
  11  Prefactor     .92648        14.649        .28280E-02   -1.5515    
  12  norm          .10000E-03    3.2042        .11861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4041        3.4430        .87021E-04   -1.5202    
  14  norm          1.7560        1.0374        .51183E-04   -1.5443    
  15  Prefactor     .10000E-03    23.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     123.47        87.749        .18108E-03   -1.3481    
  17  Prefactor     18.975        14.648        .91950E-04   -1.4836    
  18  Prefactor     .10000E-03    7.9113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98017        .23030        .25453E-03   -.93698    
  20  Prefactor     .81585        .18354        .22238E-03   -.99147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61899e-09
Minuit parameter uncertainties:
  1  0.000157372
  2  2.16306
  3  0.000289397
  4  8.37265e-06
  5  9.99041
  6  9.67264e-06
  7  6.19866
  8  8.52882e-05
  9  4.63977
  10  18.9271
  11  7.36967
  12  2.14706e-06
  13  3.4431
  14  1.03744
  15  1.70683e-05
  16  87.8416
  17  14.6507
  18  1.56625e-05
  19  0.23053
  20  0.183679
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.169e+00  4.640e+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.159e-01  1.837e-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:  9.802e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898453/likelihoodResults_393552001_393811201_4FGL_J0152.6+0147_daily_bin595.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) = 4667.37610536
delta logL = 1.03685108734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4667.33623756
delta logL = 1.0767188884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22530       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6316       1.0000          .0000       10.000    
     3 'Normalizat'    .87013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86713       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=   4667.336     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      292 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22431        2.6256        .51677E-02    .13154E-02
   2  Index         3.6333        1.9933        .82692E-01    .16146E-03
   3  Normalizat    .87018        .53080E-01    .44519E-01    .13227E-04
   4  Prefactor     .86711        .42431E-01    .44585E-01   -.46877E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224306
  Index      = 3.63331
  Normalizat = 0.87018
  Prefactor  = 0.867114
 **********
 **   18 **HESSE 
 **********

 FCN=   4667.336     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22431        5.9064        .23373E-04   -1.5613    
   2  Index         3.6333        3.4284        .30801E-02   -.27686    
   3  Normalizat    .87018        .22700        .26841E-03   -.97516    
   4  Prefactor     .86711        .17697        .21633E-03   -.97300    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.64396e-07
Minuit parameter uncertainties:
  1  2.30177
  2  3.81652
  3  0.227249
  4  0.177087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898453': 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): 102
logL (Free Index) = 4667.33623623
delta logL = 1.07672021903

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.243e-01  2.302e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.633e+00  3.817e+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:  8.671e-01  1.771e-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.702e-01  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 28.161 1.789
Photon Index (Free Index): 3.63 +/- 3.82
Photon Flux (Free Index): 8.94e-08 +/- 7.89e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.25e-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/898453/cmap_HighResolution_393552001_393811201_4FGL_J0152.6+0147_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.08e+00', photon_flux2='8.94e-08', job_status='DONE', time_completed='2021-08-14 19:52:16.764908', photon_index_error2='3.82', photon_index2='3.63', ts='0.07', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.10e-08', energy_flux_error2='1.25e-05', EG='0.98', time_epoch_completed='1628995936.77', return_code='0', job_id='898453', GAL2='0.87', EG2='0.87', return_code2='102', photon_flux_error2='7.89e-08', ts2='2.42', photon_index='1.98' WHERE bin_id='595' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 898453: <4FGL_J0152.6+0147_daily_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin595 28.1614 1.7894 393552001 393811201 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 :                                   684.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            994 sec.

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

