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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin825
RA = 28.1614, Dec = 1.7894
tmin = 453168001, tmax = 453427201
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='899875', job_status='RUN', time_executed='2021-08-14 19:46:22.704622', time_epoch_executed='1628995582.7' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899875

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899875/ft1_4FGL_J0152.6+0147_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899875/ft2_4FGL_J0152.6+0147_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899875/ft1_4FGL_J0152.6+0147_daily_bin825.fits outfile=/scratch/kocevski/899875/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin825.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=453168001.0 tmax=453427201.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.96
user 3.40
sys 4.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899875/ft2_4FGL_J0152.6+0147_daily_bin825.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/899875/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin825.fits evtable="EVENTS" outfile="/scratch/kocevski/899875/ft1_filtered_4FGL_J0152.6+0147_daily_bin825.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.46
user 0.34
sys 4.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899875/ft1_filtered_4FGL_J0152.6+0147_daily_bin825.fits" evtable="EVENTS" scfile=/scratch/kocevski/899875/ft2_4FGL_J0152.6+0147_daily_bin825.fits sctable="SC_DATA" outfile=/scratch/kocevski/899875/ltcube_453168001_453427201_4FGL_J0152.6+0147_daily_bin825.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/899875/ft2_4FGL_J0152.6+0147_daily_bin825.fits
.....................!
real 18.18
user 12.38
sys 5.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899875/ft1_filtered_4FGL_J0152.6+0147_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/899875/ft2_4FGL_J0152.6+0147_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/899875/ltcube_453168001_453427201_4FGL_J0152.6+0147_daily_bin825.fits outfile=/scratch/kocevski/899875/expmap_453168001_453427201_4FGL_J0152.6+0147_daily_bin825.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/899875/ltcube_453168001_453427201_4FGL_J0152.6+0147_daily_bin825.fits
.....................!
real 196.94
user 186.06
sys 10.43

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/899875/ft1_filtered_4FGL_J0152.6+0147_daily_bin825.fits scfile=/scratch/kocevski/899875/ft2_4FGL_J0152.6+0147_daily_bin825.fits outfile=/scratch/kocevski/899875/cmap_453168001_453427201_4FGL_J0152.6+0147_daily_bin825.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.14
user 0.38
sys 4.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899875/ft1_filtered_4FGL_J0152.6+0147_daily_bin825.fits scfile=/scratch/kocevski/899875/ft2_4FGL_J0152.6+0147_daily_bin825.fits outfile=/scratch/kocevski/899875/cmap_HighResolution_453168001_453427201_4FGL_J0152.6+0147_daily_bin825.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 5.36
user 0.38
sys 4.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    263.78       1.0000         .10000E-03   10000.    
     2 'norm      '    9.5372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51830E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.295       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5946       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7924       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.855       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3313       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0184       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=   5040.054     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2065 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     263.84        147.72       -.17801E-05   -.16204E-04
   2  norm          9.5363        3.1420        .37174E-07   -.10187E-03
   3  Prefactor     .10080E-03    36.660        .33337E-05** at limit **
   4  Prefactor     7.2176        6.9100       -.11320E-07   -.61897E-04
   5  Prefactor     22.234        18.691       -.34544E-06   -.38348E-04
   6  Prefactor     .10000E-03    17.097       -.11312E-07** at limit **
   7  norm          .10000E-03    16.491       -.14605E-06** at limit **
   8  Prefactor     .10000E-03    43.990        .51521E-07** at limit **
   9  Prefactor     13.296        7.5948       -.46569E-07    .20654E-04
  10  norm          1.5947        52.403        .32509E-05    .22362E-04
  11  Prefactor     .10000E-03    2.0038        .38467E-07** at limit **
  12  norm          .10000E-03    5.2207       -.76932E-07** at limit **
  13  Prefactor     2.7921        2.9046        .34474E-06    .10703E-03
  14  norm          .10000E-03    .33255       -.12270E-06** at limit **
  15  Prefactor     .10000E-03    19.448        .19193E-06** at limit **
  16  Prefactor     15.430        162.62       -.18920E-04   -.26431E-04
  17  Prefactor     .10000E-03    14.472       -.13655E-06** at limit **
  18  Prefactor     19.857        21.210        .49307E-06    .14135E-04
  19  Normalizat    1.3317        .23818        .17488E-05    .89935E-05
  20  Prefactor     1.0180        .19251       -.80677E-06    .21205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 263.843
  norm       = 9.53628
  Prefactor  = 0.000100799
  Prefactor  = 7.21764
  Prefactor  = 22.2342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2955
  norm       = 1.59469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.79211
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4303
  Prefactor  = 0.0001
  Prefactor  = 19.8572
  Normalizat = 1.33167
  Prefactor  = 1.01803
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.054     FROM HESSE     STATUS=OK           293 CALLS     2358 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     263.84        147.86        .12480E-03   -1.2445    
   2  norm          9.5363        3.1442        .65097E-04   -1.5090    
   3  Prefactor     .10080E-03    213.82        .75130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2176        6.8973        .14928E-03   -1.5171    
   5  Prefactor     22.234        18.679        .84927E-04   -1.4765    
   6  Prefactor     .10000E-03    17.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    16.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.296        7.6023        .10985E-03   -1.4979    
  10  norm          1.5947        53.296        .16795E-02   -1.5455    
  11  Prefactor     .10000E-03    2.0056        .98141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.3301        .15827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7921        2.8970        .11554E-03   -1.5374    
  14  norm          .10000E-03    .40416        .79650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.430        166.63        .10264E-03   -1.4922    
  17  Prefactor     .10000E-03    14.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.857        21.211        .89887E-04   -1.4816    
  19  Normalizat    1.3317        .26982        .28064E-03   -.82626    
  20  Prefactor     1.0180        .21772        .25244E-03   -.92131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54817e-09
Minuit parameter uncertainties:
  1  148.07
  2  3.1443
  3  0.0262281
  4  6.89804
  5  18.6842
  6  2.72793e-06
  7  3.1505e-05
  8  6.94447e-06
  9  7.60286
  10  18.4553
  11  8.05052e-08
  12  1.34887e-06
  13  2.89716
  14  1.06385e-06
  15  3.59302e-05
  16  101.776
  17  1.67697e-05
  18  21.2189
  19  0.27011
  20  0.21791
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.332e+00  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.89
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 7.44e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 5.35e-05 +/- 3.06e-05

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) = 5039.81276281
delta logL = 0.241340088462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5039.80677134
delta logL = 0.247331554336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2236       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2812       1.0000          .0000       10.000    
     3 'Normalizat'    1.3039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0291       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=   5039.807     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2273        96.902        .32991E-02    .52758E-04
   2  Index         2.2812        2.6178        .95077E-01    .12793E-03
   3  Normalizat    1.3035        .13765        .63995E-01    .80807E-06
   4  Prefactor     1.0291        .85403E-01    .41332E-01   -.34925E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.22728
  Index      = 2.28115
  Normalizat = 1.30347
  Prefactor  = 1.02911
 **********
 **   18 **HESSE 
 **********

 FCN=   5039.807     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2273        8.4396        .10905E-03   -1.5100    
   2  Index         2.2812        .45889        .36954E-02   -.57492    
   3  Normalizat    1.3035        .26936        .28307E-03   -.83463    
   4  Prefactor     1.0291        .21316        .25117E-03   -.91765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45871e-12
Minuit parameter uncertainties:
  1  8.4407
  2  0.459805
  3  0.269649
  4  0.21333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899875': 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) = 5039.80676592
delta logL = 0.247336973234

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  9.227e+00  8.441e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.281e+00  4.598e-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.029e+00  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.303e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.37
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.28 +/- 0.46
Photon Flux (Free Index): 1.02e-07 +/- 6.52e-08
Energy Flux (Free Index): 3.99e-05 +/- 2.61e-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/899875/cmap_HighResolution_453168001_453427201_4FGL_J0152.6+0147_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.44e-08', energy_flux2='3.99e-05', photon_flux_error='4.25e-08', dlogl='2.47e-01', energy_flux='5.35e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-14 19:56:16.917007', photon_index_error2='0.46', photon_index2='2.28', ts='10.89', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.33', time_epoch_completed='1628996176.92', return_code='0', job_id='899875', GAL2='1.03', EG2='1.30', return_code2='0', energy_flux_error='3.06e-05', photon_flux_error2='6.52e-08', ts2='11.37', photon_index='1.98' WHERE bin_id='825' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 899875: <4FGL_J0152.6+0147_daily_bin825> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin825> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:37 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:41:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:41:35 2021
Terminated at Sat Aug 14 19:56:18 2021
Results reported at Sat Aug 14 19:56:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin825 28.1614 1.7894 453168001 453427201 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            941 sec.

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

