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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin280
RA = 28.1614, Dec = 1.7894
tmin = 311904001, tmax = 312163201
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='896832', job_status='RUN', time_executed='2021-08-14 19:32:49.485284', time_epoch_executed='1628994769.49' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896832/ft1_4FGL_J0152.6+0147_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896832/ft2_4FGL_J0152.6+0147_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896832/ft1_4FGL_J0152.6+0147_daily_bin280.fits outfile=/scratch/kocevski/896832/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin280.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=311904001.0 tmax=312163201.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.23
user 3.27
sys 2.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896832/ft2_4FGL_J0152.6+0147_daily_bin280.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/896832/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin280.fits evtable="EVENTS" outfile="/scratch/kocevski/896832/ft1_filtered_4FGL_J0152.6+0147_daily_bin280.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.30
user 0.36
sys 2.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896832/ft1_filtered_4FGL_J0152.6+0147_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/896832/ft2_4FGL_J0152.6+0147_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/896832/ltcube_311904001_312163201_4FGL_J0152.6+0147_daily_bin280.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/896832/ft2_4FGL_J0152.6+0147_daily_bin280.fits
.....................!
real 16.31
user 12.88
sys 3.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896832/ft1_filtered_4FGL_J0152.6+0147_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/896832/ft2_4FGL_J0152.6+0147_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/896832/ltcube_311904001_312163201_4FGL_J0152.6+0147_daily_bin280.fits outfile=/scratch/kocevski/896832/expmap_311904001_312163201_4FGL_J0152.6+0147_daily_bin280.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/896832/ltcube_311904001_312163201_4FGL_J0152.6+0147_daily_bin280.fits
.....................!
real 196.08
user 187.29
sys 8.31

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/896832/ft1_filtered_4FGL_J0152.6+0147_daily_bin280.fits scfile=/scratch/kocevski/896832/ft2_4FGL_J0152.6+0147_daily_bin280.fits outfile=/scratch/kocevski/896832/cmap_311904001_312163201_4FGL_J0152.6+0147_daily_bin280.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 3.24
user 0.38
sys 2.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896832/ft1_filtered_4FGL_J0152.6+0147_daily_bin280.fits scfile=/scratch/kocevski/896832/ft2_4FGL_J0152.6+0147_daily_bin280.fits outfile=/scratch/kocevski/896832/cmap_HighResolution_311904001_312163201_4FGL_J0152.6+0147_daily_bin280.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 3.25
user 0.40
sys 2.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    120.67       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3825       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    89.760       1.0000         .10000E-03   10000.    
     7 'norm      '    9.4400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6307       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7760       1.0000         .10000E-03   10000.    
    14 'norm      '    .81090E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4859       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97369       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88176       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=   5321.123     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2053 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.67        88.459        .14062E-06    .28684E-05
   2  norm          3.9819        1.8155        .25179E-07   -.10226E-04
   3  Prefactor     5.3726        60.444       -.63090E-05   -.77457E-04
   4  Prefactor     .10000E-03    2.4779       -.25887E-07** at limit **
   5  Prefactor     14.977        11.379        .31827E-06    .99065E-04
   6  Prefactor     89.758        62.296       -.47154E-06   -.39067E-04
   7  norm          9.4399        7.5105        .12990E-05    .59195E-03
   8  Prefactor     .10000E-03    49.702        .20468E-05** at limit **
   9  Prefactor     3.6306        3.4524       -.19952E-08    .27908E-04
  10  norm          .10000E-03    7.5252       -.35271E-07** at limit **
  11  Prefactor     .10000E-03    6.9015        .43202E-07** at limit **
  12  norm          10.846        6.5472       -.10562E-05   -.79943E-03
  13  Prefactor     1.7758        1.7534        .10876E-06    .10536E-03
  14  norm          .80136E-01    .70329        .21135E-07   -.32955E-03
  15  Prefactor     .10000E-03    4.9114        .59182E-07** at limit **
  16  Prefactor     .10000E-03    84.845       -.16295E-05** at limit **
  17  Prefactor     4.4854        11.689        .41040E-05   -.54659E-03
  18  Prefactor     .10000E-03    36.175       -.75530E-06** at limit **
  19  Normalizat    .97372        .18562       -.91876E-06    .59642E-04
  20  Prefactor     .88173        .14964        .65063E-06   -.21017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.669
  norm       = 3.98192
  Prefactor  = 5.3726
  Prefactor  = 0.0001
  Prefactor  = 14.9773
  Prefactor  = 89.7581
  norm       = 9.43987
  Prefactor  = 0.000100001
  Prefactor  = 3.6306
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8458
  Prefactor  = 1.77583
  norm       = 0.0801362
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.48539
  Prefactor  = 0.0001
  Normalizat = 0.973725
  Prefactor  = 0.881727
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.123     FROM HESSE     STATUS=OK           295 CALLS     2348 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.67        88.510        .36636E-04   -1.3507    
   2  norm          3.9819        1.8146        .62104E-04   -1.5309    
   3  Prefactor     5.3726        63.085        .17322E-03   -1.5244    
   4  Prefactor     .10000E-03    2.4864        .11207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.977        11.381        .10349E-03   -1.4934    
   6  Prefactor     89.758        62.483        .42411E-04   -1.3810    
   7  norm          9.4399        7.6489        .13043E-03   -1.5093    
   8  Prefactor     .10000E-03    49.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6306        3.4577        .12833E-03   -1.5327    
  10  norm          .10000E-03    7.5381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.0142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.846        6.7945        .12165E-03   -1.5049    
  13  Prefactor     1.7758        1.7545        .92110E-04   -1.5441    
  14  norm          .80136E-01    1.7534        .11507E-02   -1.5651    
  15  Prefactor     .10000E-03    4.9130        .15789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    85.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4854        13.825        .95051E-03   -1.5284    
  18  Prefactor     .10000E-03    37.295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97372        .21043        .25832E-03   -.93916    
  20  Prefactor     .88173        .17038        .21962E-03   -.96783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91043e-08
Minuit parameter uncertainties:
  1  88.6069
  2  1.81466
  3  36.8685
  4  8.20967e-06
  5  11.3824
  6  62.5288
  7  7.64968
  8  0.000388783
  9  3.45794
  10  3.2526e-06
  11  3.27846e-05
  12  6.79493
  13  1.75457
  14  0.749253
  15  4.60472e-06
  16  0.000414137
  17  13.8347
  18  0.000148734
  19  0.210613
  20  0.17048
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.631e+00  3.458e+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.817e-01  1.705e-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.737e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.39e-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) = 5320.9934063
delta logL = 0.129485718337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5320.98762709
delta logL = 0.135264923268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6956       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6120       1.0000          .0000       10.000    
     3 'Normalizat'    .98227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87829       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=   5320.988     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6966        222.51        .46426E-02   -.10203E-03
   2  Index         1.6124        6.1524        .18466        .25898E-04
   3  Normalizat    .98222        .19800        .45944E-01    .14781E-04
   4  Prefactor     .87834        .93502E-01    .44728E-01   -.24152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.69658
  Index      = 1.61237
  Normalizat = 0.982224
  Prefactor  = 0.878343
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.988     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6966        4.7072        .14986E-03   -1.5275    
   2  Index         1.6124        .66884        .10791E-01   -.74439    
   3  Normalizat    .98222        .20440        .25729E-03   -.93628    
   4  Prefactor     .87834        .16681        .21999E-03   -.96902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47812e-12
Minuit parameter uncertainties:
  1  4.70757
  2  0.672586
  3  0.204563
  4  0.166908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896832': 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) = 5320.98762681
delta logL = 0.135265208549

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.697e+00  4.708e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.612e+00  6.726e-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:  8.783e-01  1.669e-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.822e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.68
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.61 +/- 0.67
Photon Flux (Free Index): 1.28e-08 +/- 1.67e-08
Energy Flux (Free Index): 2.77e-05 +/- 4.62e-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/896832/cmap_HighResolution_311904001_312163201_4FGL_J0152.6+0147_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='2.77e-05', photon_flux_error='1.93e-08', dlogl='1.35e-01', energy_flux='1.46e-05', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-08-14 19:42:17.532395', photon_index_error2='0.67', photon_index2='1.61', ts='5.41', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.62e-05', EG='0.97', time_epoch_completed='1628995337.53', return_code='0', job_id='896832', GAL2='0.88', EG2='0.98', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='1.67e-08', ts2='5.68', photon_index='1.98' WHERE bin_id='280' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:42:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 896832: <4FGL_J0152.6+0147_daily_bin280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin280 28.1614 1.7894 311904001 312163201 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 :                                   608.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            713 sec.

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

