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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin289
RA = 28.1614, Dec = 1.7894
tmin = 314236801, tmax = 314496001
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='896844', job_status='RUN', time_executed='2021-08-14 19:35:23.200702', time_epoch_executed='1628994923.2' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896844

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896844/ft1_4FGL_J0152.6+0147_daily_bin289.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896844/ft2_4FGL_J0152.6+0147_daily_bin289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896844/ft1_4FGL_J0152.6+0147_daily_bin289.fits outfile=/scratch/kocevski/896844/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin289.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=314236801.0 tmax=314496001.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.47
user 3.13
sys 3.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896844/ft2_4FGL_J0152.6+0147_daily_bin289.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/896844/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin289.fits evtable="EVENTS" outfile="/scratch/kocevski/896844/ft1_filtered_4FGL_J0152.6+0147_daily_bin289.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 4.01
user 0.36
sys 3.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896844/ft1_filtered_4FGL_J0152.6+0147_daily_bin289.fits" evtable="EVENTS" scfile=/scratch/kocevski/896844/ft2_4FGL_J0152.6+0147_daily_bin289.fits sctable="SC_DATA" outfile=/scratch/kocevski/896844/ltcube_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.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/896844/ft2_4FGL_J0152.6+0147_daily_bin289.fits
.....................!
real 16.59
user 12.37
sys 4.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896844/ft1_filtered_4FGL_J0152.6+0147_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/896844/ft2_4FGL_J0152.6+0147_daily_bin289.fits sctable="SC_DATA" expcube=/scratch/kocevski/896844/ltcube_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.fits outfile=/scratch/kocevski/896844/expmap_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.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/896844/ltcube_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.fits
.....................!
real 195.74
user 185.34
sys 9.89

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/896844/ft1_filtered_4FGL_J0152.6+0147_daily_bin289.fits scfile=/scratch/kocevski/896844/ft2_4FGL_J0152.6+0147_daily_bin289.fits outfile=/scratch/kocevski/896844/cmap_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.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.93
user 0.38
sys 3.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896844/ft1_filtered_4FGL_J0152.6+0147_daily_bin289.fits scfile=/scratch/kocevski/896844/ft2_4FGL_J0152.6+0147_daily_bin289.fits outfile=/scratch/kocevski/896844/cmap_HighResolution_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.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.96
user 0.40
sys 3.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.2944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11970       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0397       1.0000         .10000E-03   10000.    
    12 'norm      '    28.101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0686       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1502       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    113.94       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97658       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7292.126     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1725 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10046E-03    30.314        .35956E-06** at limit **
   2  norm          7.2942        1.8040        .47311E-07    .26214E-04
   3  Prefactor     .10023E-03    26.828        .46526E-05** at limit **
   4  Prefactor     .10000E-03    3.3935        .61695E-07** at limit **
   5  Prefactor     5.0086        4.7692       -.25581E-06   -.15067E-03
   6  Prefactor     .10011E-03    25.429       -.28941E-05** at limit **
   7  norm          12.921        2.5171        .22806E-07    .75135E-02
   8  Prefactor     .10001E-03    17.801        .36389E-05** at limit **
   9  Prefactor     .10000E-03    4.8534       -.59156E-06** at limit **
  10  norm          .10024E-03    430.98        .13693E-04** at limit **
  11  Prefactor     8.0424        6.2970       -.66147E-06    .23964E-02
  12  norm          28.100        3.6811       -.11337E-06   -.15531E-01
  13  Prefactor     1.0678        1.4207       -.22887E-06   -.17967E-03
  14  norm          1.1500        .71516       -.32852E-08   -.20682E-03
  15  Prefactor     .10001E-03    21.465       -.28847E-05** at limit **
  16  Prefactor     113.95        1.0248       -.58038E-08   -.46217E-03
  17  Prefactor     .19377        4.8720        .15893E-05   -.76603E-03
  18  Prefactor     .10000E-03    11.497        .29663E-05** at limit **
  19  Normalizat    .97651        .18531       -.36087E-05   -.22025E-03
  20  Prefactor     .91540        .15535        .23008E-05   -.10553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100462
  norm       = 7.29419
  Prefactor  = 0.000100232
  Prefactor  = 0.0001
  Prefactor  = 5.00856
  Prefactor  = 0.000100112
  norm       = 12.9212
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.000100242
  Prefactor  = 8.04238
  norm       = 28.0998
  Prefactor  = 1.06776
  norm       = 1.14999
  Prefactor  = 0.00010001
  Prefactor  = 113.946
  Prefactor  = 0.193769
  Prefactor  = 0.0001
  Normalizat = 0.97651
  Prefactor  = 0.915402
 **********
 **   18 **HESSE 
 **********

 FCN=   7292.126     FROM HESSE     STATUS=OK           339 CALLS     2064 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10046E-03    39.697        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.2942        1.8053        .37127E-02   -1.5168    
   3  Prefactor     .10023E-03    47.084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0086        4.7707        .44920E-02   -1.5260    
   6  Prefactor     .10011E-03    26.627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.921        7.3461        .27851E-02   -1.4989    
   8  Prefactor     .10001E-03    45.910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10024E-03    9.1268        .96047E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0424        6.6818        .35351E-02   -1.5141    
  12  norm          28.100        7.1343        .18894E-02   -1.4647    
  13  Prefactor     1.0678        1.7764        .26464E-01   -1.5501    
  14  norm          1.1500        .71929        .10790E-01   -1.5493    
  15  Prefactor     .10001E-03    21.489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     113.95        94.286        .94221E-03   -1.3569    
  17  Prefactor     .19377        5.1513        .10021       -1.5620    
  18  Prefactor     .10000E-03    11.502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97651        .16395        .45873E-01   -.93822    
  20  Prefactor     .91540        .13735        .45199E-01   -.95605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62085e-08
Minuit parameter uncertainties:
  1  0.0085713
  2  1.80532
  3  0.00661586
  4  2.37497e-06
  5  4.77103
  6  0.00345314
  7  7.34661
  8  0.00130568
  9  2.0362e-05
  10  0.00297217
  11  6.6824
  12  7.13454
  13  1.77645
  14  0.719292
  15  0.000916757
  16  94.4108
  17  1.99784
  18  3.6116e-05
  19  0.164036
  20  0.137397
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.036e-05  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:  9.154e-01  1.374e-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.765e-01  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/896844/likelihoodResults_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7292.12664879
delta logL = -0.000982734790341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7292.12566683
delta logL = -7.69869075157e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12559E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0465       1.0000          .0000       10.000    
     3 'Normalizat'    .97667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91529       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=   7292.126     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      218 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    .22991        .64970E-01** at limit **
   2  Index         2.1349        1.3896        .50000       -.14675E-03
   3  Normalizat    .97651        .14680E-02    .45874E-01    .99427E-04
   4  Prefactor     .91540        .12216E-02    .45200E-01    .37270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100084
  Index      = 2.13493
  Normalizat = 0.976512
  Prefactor  = 0.915401
 **********
 **   18 **HESSE 
 **********

 FCN=   7292.126     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      253 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    383.85        .23124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1349        5.6285        .50000       -.61018    
   3  Normalizat    .97651        .29631E-01    .26823E-03   -.93822    
   4  Prefactor     .91540        .24642E-01    .22855E-03   -.95605    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60942e-06
Minuit parameter uncertainties:
  1  0.0114136
  2  27.2177
  3  0.0296318
  4  0.0246419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896844': 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): 102
logL (Free Index) = 7292.12566138
delta logL = 4.67613335786e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.001e-04  1.141e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.135e+00  2.722e+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:  9.154e-01  2.464e-02  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.765e-01  2.963e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.161 1.789

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/896844/cmap_HighResolution_314236801_314496001_4FGL_J0152.6+0147_daily_bin289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-08-14 19:46:51.828894', job_id='896844', GAL2='0.92', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1628995611.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='289' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:46:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 896844: <4FGL_J0152.6+0147_daily_bin289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin289 28.1614 1.7894 314236801 314496001 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 :                                   737.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            986 sec.

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

