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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin267
RA = 28.1614, Dec = 1.7894
tmin = 308534401, tmax = 308793601
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='896813', job_status='RUN', time_executed='2021-08-14 19:34:23.067859', time_epoch_executed='1628994863.07' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896813

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896813/ft1_4FGL_J0152.6+0147_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896813/ft2_4FGL_J0152.6+0147_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896813/ft1_4FGL_J0152.6+0147_daily_bin267.fits outfile=/scratch/kocevski/896813/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin267.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=308534401.0 tmax=308793601.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.47
user 4.12
sys 3.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896813/ft2_4FGL_J0152.6+0147_daily_bin267.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/896813/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin267.fits evtable="EVENTS" outfile="/scratch/kocevski/896813/ft1_filtered_4FGL_J0152.6+0147_daily_bin267.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 4.61
user 0.28
sys 3.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896813/ft1_filtered_4FGL_J0152.6+0147_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/896813/ft2_4FGL_J0152.6+0147_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/896813/ltcube_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.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/896813/ft2_4FGL_J0152.6+0147_daily_bin267.fits
.....................!
real 15.21
user 10.34
sys 4.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896813/ft1_filtered_4FGL_J0152.6+0147_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/896813/ft2_4FGL_J0152.6+0147_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/896813/ltcube_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.fits outfile=/scratch/kocevski/896813/expmap_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.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/896813/ltcube_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.fits
.....................!
real 160.73
user 150.83
sys 8.64

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/896813/ft1_filtered_4FGL_J0152.6+0147_daily_bin267.fits scfile=/scratch/kocevski/896813/ft2_4FGL_J0152.6+0147_daily_bin267.fits outfile=/scratch/kocevski/896813/cmap_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.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 4.18
user 0.31
sys 3.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896813/ft1_filtered_4FGL_J0152.6+0147_daily_bin267.fits scfile=/scratch/kocevski/896813/ft2_4FGL_J0152.6+0147_daily_bin267.fits outfile=/scratch/kocevski/896813/cmap_HighResolution_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.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 4.23
user 0.30
sys 3.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.826       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5536       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5868       1.0000         .10000E-03   10000.    
    12 'norm      '    24.394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8169       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.315       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.604       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66819       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0866       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=   6624.271     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2058 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.218        .54112E-05** at limit **
   2  norm          4.2076        1.5476       -.11061E-07   -.24850E-04
   3  Prefactor     .10000E-03    15.257       -.11885E-05** at limit **
   4  Prefactor     1.1766        2.9735       -.75880E-07   -.23245E-04
   5  Prefactor     .10000E-03    10.032        .40603E-06** at limit **
   6  Prefactor     73.824        54.004       -.19651E-05    .93147E-06
   7  norm          5.1610        4.2241        .55816E-06    .13435E-04
   8  Prefactor     85.483        74.383       -.97957E-05   -.52768E-06
   9  Prefactor     3.5535        4.1977        .15077E-06   -.31822E-03
  10  norm          .10000E-03    8.6238       -.92417E-07** at limit **
  11  Prefactor     1.5869        1.9471       -.44227E-07   -.55474E-03
  12  norm          24.393        7.6104       -.64139E-07    .38526E-04
  13  Prefactor     2.8168        2.6245       -.36549E-07    .10536E-03
  14  norm          1.5095        .76651       -.28826E-07    .88617E-04
  15  Prefactor     .10000E-03    25.835       -.90124E-05** at limit **
  16  Prefactor     .10000E-03    24.361        .44102E-05** at limit **
  17  Prefactor     19.315        11.551       -.18044E-06    .61083E-05
  18  Prefactor     10.603        14.671       -.21952E-06    .39516E-04
  19  Normalizat    .66823        .16876        .97767E-06    .25764E-04
  20  Prefactor     1.0866        .14314        .17902E-06    .74567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.20763
  Prefactor  = 0.0001
  Prefactor  = 1.17663
  Prefactor  = 0.0001
  Prefactor  = 73.8237
  norm       = 5.16101
  Prefactor  = 85.4832
  Prefactor  = 3.5535
  norm       = 0.0001
  Prefactor  = 1.58687
  norm       = 24.3933
  Prefactor  = 2.81685
  norm       = 1.50953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3146
  Prefactor  = 10.6031
  Normalizat = 0.668227
  Prefactor  = 1.08659
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.271     FROM HESSE     STATUS=OK           293 CALLS     2351 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2076        1.5466        .59350E-04   -1.5298    
   3  Prefactor     .10000E-03    15.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1766        2.9065        .21654E-03   -1.5491    
   5  Prefactor     .10000E-03    10.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.824        54.069        .46728E-04   -1.3987    
   7  norm          5.1610        4.2254        .14720E-03   -1.5254    
   8  Prefactor     85.483        74.546        .43448E-04   -1.3856    
   9  Prefactor     3.5535        4.3702        .90555E-03   -1.5331    
  10  norm          .10000E-03    8.6453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5869        6.2765        .16849E-02   -1.5456    
  12  norm          24.393        7.6696        .81103E-04   -1.4720    
  13  Prefactor     2.8168        2.6133        .11968E-03   -1.5372    
  14  norm          1.5095        .76012        .48626E-04   -1.5462    
  15  Prefactor     .10000E-03    25.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.315        11.570        .91134E-04   -1.4829    
  18  Prefactor     10.603        14.673        .12304E-03   -1.5057    
  19  Normalizat    .66823        .19110        .30153E-03   -1.0516    
  20  Prefactor     1.0866        .16388        .20786E-03   -.89896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72124e-10
Minuit parameter uncertainties:
  1  1.36759e-07
  2  1.5466
  3  2.48999e-06
  4  2.90685
  5  2.32597e-06
  6  54.1051
  7  4.22563
  8  74.6275
  9  4.37056
  10  4.57512e-06
  11  6.27907
  12  7.66987
  13  2.61343
  14  0.760121
  15  1.91573e-05
  16  8.5906e-07
  17  11.5716
  18  14.6784
  19  0.191286
  20  0.163957
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
543   Normalization:  6.682e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/896813/likelihoodResults_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.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) = 6624.2009838
delta logL = 0.0700978360401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6624.19488335
delta logL = 0.0761982921631

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6624.195     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      293 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4722        5.5223        .95242E-03   -.46768E-04
   2  Index         1.6126        .88033        .13600E-01    .42751E-05
   3  Normalizat    .67574        .18522        .29987E-03   -.23589E-03
   4  Prefactor     1.0842        .16008        .20806E-03   -.41550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.47219
  Index      = 1.61264
  Normalizat = 0.675739
  Prefactor  = 1.08418
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.195     FROM HESSE     STATUS=OK            27 CALLS      320 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4722        5.5556        .38097E-04   -1.5285    
   2  Index         1.6126        .88587        .54398E-03   -.74432    
   3  Normalizat    .67574        .18530        .11995E-04   -1.0486    
   4  Prefactor     1.0842        .16019        .41612E-04   -.89974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23813e-10
Minuit parameter uncertainties:
  1  5.55619
  2  0.894667
  3  0.185466
  4  0.160256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896813': 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) = 6624.19488128
delta logL = 0.0762003587224

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.472e+00  5.556e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.613e+00  8.947e-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:  1.084e+00  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  6.757e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.61 +/- 0.89
Photon Flux (Free Index): 1.22e-08 +/- 2.48e-08
Energy Flux (Free Index): 2.64e-05 +/- 4.81e-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/896813/cmap_HighResolution_308534401_308793601_4FGL_J0152.6+0147_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', comment='SUCCESS', energy_flux2='2.64e-05', dlogl='7.62e-02', photon_flux2='1.22e-08', job_status='DONE', time_completed='2021-08-14 19:44:06.672700', photon_index_error2='0.89', photon_index2='1.61', ts='0.89', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.72e-08', energy_flux_error2='4.81e-05', EG='0.67', time_epoch_completed='1628995446.67', return_code='0', job_id='896813', GAL2='1.08', EG2='0.68', return_code2='0', photon_flux_error2='2.48e-08', ts2='1.04', photon_index='1.98' WHERE bin_id='267' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:44:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 896813: <4FGL_J0152.6+0147_daily_bin267> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin267> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:24 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:31:10 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:31:10 2021
Terminated at Sat Aug 14 19:44:08 2021
Results reported at Sat Aug 14 19:44:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin267 28.1614 1.7894 308534401 308793601 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 :                                   631.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            824 sec.

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

