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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin389
RA = 28.1614, Dec = 1.7894
tmin = 340156801, tmax = 340416001
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='896988', job_status='RUN', time_executed='2021-08-14 19:35:52.942500', time_epoch_executed='1628994952.94' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896988/ft1_4FGL_J0152.6+0147_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896988/ft2_4FGL_J0152.6+0147_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896988/ft1_4FGL_J0152.6+0147_daily_bin389.fits outfile=/scratch/kocevski/896988/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin389.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=340156801.0 tmax=340416001.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 3.73
user 2.54
sys 1.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896988/ft2_4FGL_J0152.6+0147_daily_bin389.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/896988/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin389.fits evtable="EVENTS" outfile="/scratch/kocevski/896988/ft1_filtered_4FGL_J0152.6+0147_daily_bin389.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 1.40
user 0.29
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896988/ft1_filtered_4FGL_J0152.6+0147_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/896988/ft2_4FGL_J0152.6+0147_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/896988/ltcube_340156801_340416001_4FGL_J0152.6+0147_daily_bin389.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/896988/ft2_4FGL_J0152.6+0147_daily_bin389.fits
.....................!
real 11.69
user 10.44
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896988/ft1_filtered_4FGL_J0152.6+0147_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/896988/ft2_4FGL_J0152.6+0147_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/896988/ltcube_340156801_340416001_4FGL_J0152.6+0147_daily_bin389.fits outfile=/scratch/kocevski/896988/expmap_340156801_340416001_4FGL_J0152.6+0147_daily_bin389.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/896988/ltcube_340156801_340416001_4FGL_J0152.6+0147_daily_bin389.fits
.....................!
real 156.23
user 150.49
sys 5.38

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/896988/ft1_filtered_4FGL_J0152.6+0147_daily_bin389.fits scfile=/scratch/kocevski/896988/ft2_4FGL_J0152.6+0147_daily_bin389.fits outfile=/scratch/kocevski/896988/cmap_340156801_340416001_4FGL_J0152.6+0147_daily_bin389.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 1.38
user 0.32
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896988/ft1_filtered_4FGL_J0152.6+0147_daily_bin389.fits scfile=/scratch/kocevski/896988/ft2_4FGL_J0152.6+0147_daily_bin389.fits outfile=/scratch/kocevski/896988/cmap_HighResolution_340156801_340416001_4FGL_J0152.6+0147_daily_bin389.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 1.37
user 0.31
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .18061       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.1569       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9435       1.0000         .10000E-03   10000.    
    10 'norm      '    5.8509       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.046       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8392       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11397E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95186       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86077       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=   5275.570     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     1891 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.196       -.42957E-06** at limit **
   2  norm          .18097        1.2931        .34610E-07    .20269E-04
   3  Prefactor     .10000E-03    12.568        .12862E-06** at limit **
   4  Prefactor     .10000E-03    7.5028        .33511E-07** at limit **
   5  Prefactor     .79718        1.2192        .20624E-06   -.11363E-02
   6  Prefactor     .10000E-03    63.078       -.48533E-04** at limit **
   7  norm          7.1560        5.1886       -.25984E-07    .52974E-04
   8  Prefactor     .10000E-03    86.430        .39319E-04** at limit **
   9  Prefactor     5.9432        4.3440        .13613E-07    .75355E-05
  10  norm          5.8462        13.078        .35385E-05    .18127E-05
  11  Prefactor     10.047        7.1169       -.13529E-06   -.15479E-04
  12  norm          7.3094        5.8177        .30349E-08   -.33468E-04
  13  Prefactor     1.8393        2.1588       -.12224E-07   -.96485E-04
  14  norm          2.6710        .99522        .70849E-08    .50900E-04
  15  Prefactor     .10000E-03    9.6070        .17469E-06** at limit **
  16  Prefactor     .10000E-03    52.480        .21399E-04** at limit **
  17  Prefactor     .10180E-03    15.162       -.13494E-05** at limit **
  18  Prefactor     .10000E-03    10.696       -.11345E-06** at limit **
  19  Normalizat    .95199        .18372        .10318E-06    .97196E-04
  20  Prefactor     .86068        .15027       -.37101E-06    .13689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.180968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.797182
  Prefactor  = 0.0001
  norm       = 7.15599
  Prefactor  = 0.0001
  Prefactor  = 5.9432
  norm       = 5.84615
  Prefactor  = 10.0468
  norm       = 7.30943
  Prefactor  = 1.83932
  norm       = 2.67103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101802
  Prefactor  = 0.0001
  Normalizat = 0.951985
  Prefactor  = 0.860679
 **********
 **   18 **HESSE 
 **********

 FCN=   5275.570     FROM HESSE     STATUS=OK           305 CALLS     2196 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .18097        2.8369        .15615E-02   -1.5623    
   3  Prefactor     .10000E-03    12.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .79718        13.349        .24868E-02   -1.5529    
   6  Prefactor     .10000E-03    63.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.1560        5.1949        .68692E-03   -1.5173    
   8  Prefactor     .10000E-03    86.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9432        4.3445        .12532E-03   -1.5220    
  10  norm          5.8462        13.086        .16603E-03   -1.5224    
  11  Prefactor     10.047        7.1147        .12642E-03   -1.5074    
  12  norm          7.3094        5.8391        .14674E-03   -1.5167    
  13  Prefactor     1.8393        2.1431        .11026E-03   -1.5437    
  14  norm          2.6710        .99515        .42456E-04   -1.5381    
  15  Prefactor     .10000E-03    9.6182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10180E-03    19.223        .77725E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95199        .21261        .25421E-03   -.94657    
  20  Prefactor     .86068        .17516        .21580E-03   -.97529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85449e-09
Minuit parameter uncertainties:
  1  1.41783e-06
  2  1.43271
  3  6.08444e-07
  4  3.90235e-06
  5  6.52559
  6  0.000187962
  7  5.19525
  8  1.25909e-05
  9  4.34477
  10  13.0927
  11  7.11527
  12  5.83954
  13  2.14316
  14  0.995157
  15  9.87448e-08
  16  2.33698e-06
  17  0.0117756
  18  1.27384e-06
  19  0.212796
  20  0.175272
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.943e+00  4.345e+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.607e-01  1.753e-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.520e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.75e-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) = 5275.56689118
delta logL = 0.00296831044216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5275.56546104
delta logL = 0.00439845005985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2096       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9276       1.0000          .0000       10.000    
     3 'Normalizat'    .95449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85976       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5275.565     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2093        5.4943        .12996E-03    .39015E-04
   2  Index         1.9278        .61754        .75116E-02    .19804E-04
   3  Normalizat    .95450        .20779        .25392E-03    .51220E-04
   4  Prefactor     .85975        .16786        .21591E-03    .67661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.20934
  Index      = 1.92782
  Normalizat = 0.954497
  Prefactor  = 0.859754
 **********
 **   18 **HESSE 
 **********

 FCN=   5275.565     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2093        5.3074        .51984E-05   -1.5210    
   2  Index         1.9278        .59629        .30046E-03   -.66167    
   3  Normalizat    .95450        .20778        .10157E-04   -.94571    
   4  Prefactor     .85975        .16797        .86365E-05   -.97562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53464e-12
Minuit parameter uncertainties:
  1  5.30784
  2  0.598586
  3  0.20796
  4  0.168073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896988': 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) = 5275.56546091
delta logL = 0.00439858328991

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.209e+00  5.308e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.928e+00  5.986e-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.598e-01  1.681e-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.545e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.56
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.93 +/- 0.60
Photon Flux (Free Index): 3.08e-08 +/- 3.44e-08
Energy Flux (Free Index): 2.56e-05 +/- 2.72e-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/896988/cmap_HighResolution_340156801_340416001_4FGL_J0152.6+0147_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='2.56e-05', photon_flux_error='2.43e-08', dlogl='4.40e-03', energy_flux='2.39e-05', photon_flux2='3.08e-08', job_status='DONE', time_completed='2021-08-14 19:43:00.886540', photon_index_error2='0.60', photon_index2='1.93', ts='4.56', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.72e-05', EG='0.95', time_epoch_completed='1628995380.89', return_code='0', job_id='896988', GAL2='0.86', EG2='0.95', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='3.44e-08', ts2='4.56', photon_index='1.98' WHERE bin_id='389' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:43:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 896988: <4FGL_J0152.6+0147_daily_bin389> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin389> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:37 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:33:16 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:33:16 2021
Terminated at Sat Aug 14 19:43:01 2021
Results reported at Sat Aug 14 19:43:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin389 28.1614 1.7894 340156801 340416001 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 :                                   441.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             225.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            744 sec.

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

