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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin228
RA = 28.1614, Dec = 1.7894
tmin = 298425601, tmax = 298684801
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='896759', job_status='RUN', time_executed='2021-08-14 19:31:25.303760', time_epoch_executed='1628994685.3' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896759

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896759/ft1_4FGL_J0152.6+0147_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896759/ft2_4FGL_J0152.6+0147_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896759/ft1_4FGL_J0152.6+0147_daily_bin228.fits outfile=/scratch/kocevski/896759/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin228.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=298425601.0 tmax=298684801.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 6.19
user 3.08
sys 2.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896759/ft1_filtered_4FGL_J0152.6+0147_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/896759/ft2_4FGL_J0152.6+0147_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/896759/ltcube_298425601_298684801_4FGL_J0152.6+0147_daily_bin228.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/896759/ft2_4FGL_J0152.6+0147_daily_bin228.fits
.....................!
real 14.03
user 11.48
sys 2.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896759/ft1_filtered_4FGL_J0152.6+0147_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/896759/ft2_4FGL_J0152.6+0147_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/896759/ltcube_298425601_298684801_4FGL_J0152.6+0147_daily_bin228.fits outfile=/scratch/kocevski/896759/expmap_298425601_298684801_4FGL_J0152.6+0147_daily_bin228.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/896759/ltcube_298425601_298684801_4FGL_J0152.6+0147_daily_bin228.fits
.....................!
real 192.51
user 185.17
sys 6.78

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/896759/ft1_filtered_4FGL_J0152.6+0147_daily_bin228.fits scfile=/scratch/kocevski/896759/ft2_4FGL_J0152.6+0147_daily_bin228.fits outfile=/scratch/kocevski/896759/cmap_298425601_298684801_4FGL_J0152.6+0147_daily_bin228.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 2.39
user 0.37
sys 2.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896759/ft1_filtered_4FGL_J0152.6+0147_daily_bin228.fits scfile=/scratch/kocevski/896759/ft2_4FGL_J0152.6+0147_daily_bin228.fits outfile=/scratch/kocevski/896759/cmap_HighResolution_298425601_298684801_4FGL_J0152.6+0147_daily_bin228.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 2.36
user 0.37
sys 1.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4201       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4255       1.0000         .10000E-03   10000.    
    10 'norm      '    10.115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .74755       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.602       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76666       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=   4953.531     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2000 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.055        .54098E-06** at limit **
   2  norm          3.4191        1.8144       -.10084E-06   -.10440E-03
   3  Prefactor     30.379        46.583        .58073E-05   -.93997E-04
   4  Prefactor     .10000E-03    3.4111        .43250E-07** at limit **
   5  Prefactor     .10000E-03    3.6517       -.88347E-07** at limit **
   6  Prefactor     .10000E-03    15.047       -.44184E-07** at limit **
   7  norm          .10000E-03    5.9324        .12359E-06** at limit **
   8  Prefactor     .10000E-03    36.378        .77444E-06** at limit **
   9  Prefactor     4.4256        4.0944        .14453E-05   -.40302E-03
  10  norm          10.115        13.428       -.70447E-06   -.38459E-03
  11  Prefactor     .10000E-03    2.5652        .66800E-07** at limit **
  12  norm          3.4215        4.7533       -.14733E-05   -.12869E-03
  13  Prefactor     .10000E-03    1.7357        .26558E-06** at limit **
  14  norm          .74752        .98999       -.14519E-06   -.91499E-03
  15  Prefactor     27.533        25.217        .45257E-06    .49097E-05
  16  Prefactor     33.597        101.74       -.77783E-05    .27116E-04
  17  Prefactor     12.130        16.074       -.94535E-07   -.19100E-04
  18  Prefactor     .10000E-03    11.443        .42198E-06** at limit **
  19  Normalizat    1.0938        .19535       -.81141E-06    .43628E-04
  20  Prefactor     .76664        .15602        .97642E-06   -.75073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.41909
  Prefactor  = 30.3786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.4256
  norm       = 10.1149
  Prefactor  = 0.0001
  norm       = 3.42147
  Prefactor  = 0.0001
  norm       = 0.747515
  Prefactor  = 27.5326
  Prefactor  = 33.5971
  Prefactor  = 12.1303
  Prefactor  = 0.0001
  Normalizat = 1.09379
  Prefactor  = 0.766637
 **********
 **   18 **HESSE 
 **********

 FCN=   4953.531     FROM HESSE     STATUS=OK           287 CALLS     2287 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4191        1.8147        .66607E-04   -1.5338    
   3  Prefactor     30.379        45.854        .72700E-04   -1.4605    
   4  Prefactor     .10000E-03    3.4224        .12684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6567        .13135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.0185        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4256        4.0410        .13091E-03   -1.5287    
  10  norm          10.115        13.766        .62995E-03   -1.5072    
  11  Prefactor     .10000E-03    2.5727        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4215        4.8655        .17632E-03   -1.5338    
  13  Prefactor     .10000E-03    1.7817        .18087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .74752        .97204        .76288E-04   -1.5535    
  15  Prefactor     27.533        25.177        .76348E-04   -1.4658    
  16  Prefactor     33.597        101.43        .69128E-04   -1.4548    
  17  Prefactor     12.130        16.123        .11502E-03   -1.5011    
  18  Prefactor     .10000E-03    11.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0938        .22995        .24254E-03   -.89951    
  20  Prefactor     .76664        .18448        .22550E-03   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50717e-10
Minuit parameter uncertainties:
  1  4.16995e-05
  2  1.81474
  3  45.9074
  4  1.97051e-05
  5  1.44627e-06
  6  3.0892e-07
  7  4.92317e-06
  8  5.44751e-05
  9  4.04126
  10  13.7702
  11  3.63393e-06
  12  4.86607
  13  1.62576e-05
  14  0.97206
  15  25.1863
  16  101.962
  17  16.1286
  18  3.63406e-06
  19  0.23016
  20  0.184631
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.426e+00  4.041e+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:  7.666e-01  1.846e-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.094e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.48e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.63e-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) = 4953.53007871
delta logL = 0.000697656360899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4953.52978604
delta logL = 0.000990331923276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3209       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0174       1.0000          .0000       10.000    
     3 'Normalizat'    1.0923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76722       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=   4953.530     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      220 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3199        126.95        .48448E-02    .13800E-03
   2  Index         2.0180        5.6804        .14528        .10528E-03
   3  Normalizat    1.0923        .12931        .54884E-01   -.41746E-04
   4  Prefactor     .76723        .66528E-01    .43289E-01   -.82871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31985
  Index      = 2.018
  Normalizat = 1.0923
  Prefactor  = 0.767231
 **********
 **   18 **HESSE 
 **********

 FCN=   4953.530     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3199        4.8238        .12824E-03   -1.5292    
   2  Index         2.0180        .79323        .81569E-02   -.63901    
   3  Normalizat    1.0923        .22697        .24268E-03   -.90000    
   4  Prefactor     .76723        .17853        .22542E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71853e-11
Minuit parameter uncertainties:
  1  4.82428
  2  0.798486
  3  0.227172
  4  0.178661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896759': 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) = 4953.52978571
delta logL = 0.000990657853436

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.320e+00  4.824e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.018e+00  7.985e-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:  7.672e-01  1.787e-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.092e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.02 +/- 0.80
Photon Flux (Free Index): 2.60e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.72e-05 +/- 2.10e-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/896759/cmap_HighResolution_298425601_298684801_4FGL_J0152.6+0147_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.48e-08', energy_flux2='1.72e-05', photon_flux_error='2.26e-08', dlogl='9.91e-04', energy_flux='1.78e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-08-14 19:40:11.327063', photon_index_error2='0.80', photon_index2='2.02', ts='4.24', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.09', time_epoch_completed='1628995211.33', return_code='0', job_id='896759', GAL2='0.77', EG2='1.09', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='3.72e-08', ts2='4.24', photon_index='1.98' WHERE bin_id='228' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:40:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 896759: <4FGL_J0152.6+0147_daily_bin228> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin228> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:21 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:30:38 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:30:38 2021
Terminated at Sat Aug 14 19:40:12 2021
Results reported at Sat Aug 14 19:40:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin228 28.1614 1.7894 298425601 298684801 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 :                                   552.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            591 sec.

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

