aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 63 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 = 7365
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin1695
RA = 28.1614, Dec = 1.7894
tmin = 678672001, tmax = 678931201
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='720466', job_status='RUN', time_executed='2022-07-08 00:06:11.055113', time_epoch_executed='1657263971.06' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/720466

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/720466/ft1_4FGL_J0152.6+0147_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/720466/ft2_4FGL_J0152.6+0147_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/720466/ft1_4FGL_J0152.6+0147_daily_bin1695.fits outfile=/scratch/kocevski/720466/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin1695.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=678672001.0 tmax=678931201.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 4.09
user 3.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/720466/ft2_4FGL_J0152.6+0147_daily_bin1695.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/720466/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin1695.fits evtable="EVENTS" outfile="/scratch/kocevski/720466/ft1_filtered_4FGL_J0152.6+0147_daily_bin1695.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.05
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 693

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/720466/ft1_filtered_4FGL_J0152.6+0147_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/720466/ft2_4FGL_J0152.6+0147_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/720466/ltcube_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.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/720466/ft2_4FGL_J0152.6+0147_daily_bin1695.fits
.....................!
real 19.19
user 18.09
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/720466/ft1_filtered_4FGL_J0152.6+0147_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/720466/ft2_4FGL_J0152.6+0147_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/720466/ltcube_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.fits outfile=/scratch/kocevski/720466/expmap_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.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/720466/ltcube_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.fits
.....................!
real 194.30
user 187.41
sys 5.19

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/720466/ft1_filtered_4FGL_J0152.6+0147_daily_bin1695.fits scfile=/scratch/kocevski/720466/ft2_4FGL_J0152.6+0147_daily_bin1695.fits outfile=/scratch/kocevski/720466/cmap_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.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.42
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/720466/ft1_filtered_4FGL_J0152.6+0147_daily_bin1695.fits scfile=/scratch/kocevski/720466/ft2_4FGL_J0152.6+0147_daily_bin1695.fits outfile=/scratch/kocevski/720466/cmap_HighResolution_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.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.02
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.050       1.0000         .10000E-03   10000.    
     2 'norm      '    46.461       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51630E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    7.2726       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2370       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6068       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0561       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9091       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.732       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66492       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2495       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=   7416.760     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     1807 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.959        70.774       -.14978E-03    .74523E-05
   2  norm          46.462        4.4035        .12539E-05   -.47115E-04
   3  Prefactor     13.184        40.669       -.80932E-06   -.39598E-05
   4  Prefactor     .10000E-03    2.1913       -.30972E-07** at limit **
   5  Prefactor     .10000E-03    3.2341       -.15963E-07** at limit **
   6  Prefactor     .10000E-03    211.31        .20541E-04** at limit **
   7  norm          7.2723        6.6344       -.38501E-06   -.47179E-04
   8  Prefactor     .10000E-03    31.901       -.62583E-06** at limit **
   9  Prefactor     3.2370        3.5665       -.19635E-06   -.27927E-03
  10  norm          .10000E-03    8.2591       -.19888E-07** at limit **
  11  Prefactor     .10000E-03    10.186       -.68792E-07** at limit **
  12  norm          7.1351        4.7783       -.37218E-06   -.87395E-04
  13  Prefactor     2.6069        2.3434       -.14261E-06   -.49510E-03
  14  norm          3.0562        1.0595       -.75660E-07   -.90363E-03
  15  Prefactor     9.9093        18.386       -.50730E-06   -.20068E-04
  16  Prefactor     .10000E-03    24.626        .34471E-06** at limit **
  17  Prefactor     7.6901        11.062       -.29145E-06   -.53540E-04
  18  Prefactor     12.731        17.060        .34942E-06   -.12772E-04
  19  Normalizat    .66501        .18740        .89490E-06   -.67751E-05
  20  Prefactor     1.2494        .15671        .66402E-06   -.16386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9594
  norm       = 46.462
  Prefactor  = 13.184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.2723
  Prefactor  = 0.0001
  Prefactor  = 3.237
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.13513
  Prefactor  = 2.6069
  norm       = 3.05617
  Prefactor  = 9.90932
  Prefactor  = 0.0001
  Prefactor  = 7.69009
  Prefactor  = 12.7314
  Normalizat = 0.665013
  Prefactor  = 1.2494
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.760     FROM HESSE     STATUS=OK           297 CALLS     2104 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.959        70.845        .89449E-04   -1.4814    
   2  norm          46.462        4.4030        .52463E-04   -1.4344    
   3  Prefactor     13.184        40.663        .11032E-03   -1.4982    
   4  Prefactor     .10000E-03    2.1955        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2451        .15125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    215.28        .19158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.2723        6.6381        .14873E-03   -1.5169    
   8  Prefactor     .10000E-03    31.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2370        3.5594        .16550E-03   -1.5348    
  10  norm          .10000E-03    8.2902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1351        4.7820        .14767E-03   -1.5174    
  13  Prefactor     2.6069        2.3305        .11799E-03   -1.5385    
  14  norm          3.0562        1.0598        .11603E-03   -1.5358    
  15  Prefactor     9.9093        18.346        .12730E-03   -1.5078    
  16  Prefactor     .10000E-03    24.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6901        11.060        .14461E-03   -1.5153    
  18  Prefactor     12.731        17.079        .11226E-03   -1.4994    
  19  Normalizat    .66501        .21597        .36107E-03   -1.0529    
  20  Prefactor     1.2494        .18227        .22789E-03   -.84824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24712e-10
Minuit parameter uncertainties:
  1  71.1457
  2  4.40306
  3  40.7485
  4  4.78097e-06
  5  2.44451e-06
  6  0.000350242
  7  6.63873
  8  9.31595e-06
  9  3.55966
  10  5.93386e-06
  11  2.28029e-05
  12  4.7823
  13  2.33056
  14  1.05985
  15  18.3569
  16  8.79962e-07
  17  11.0632
  18  17.086
  19  0.216244
  20  0.182366
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.237e+00  3.560e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.249e+00  1.824e-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:  6.650e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.81e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/720466/likelihoodResults_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.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): 0
logL (Free Index) = 7416.75985101
delta logL = 0.000120850045278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7416.75979431
delta logL = 0.000177552459718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1932       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9977       1.0000          .0000       10.000    
     3 'Normalizat'    .66460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2495       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=   7416.760     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      249 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1914        117.49        .56688E-02    .31125E-03
   2  Index         1.9968        5.9296        .16285        .10919E-03
   3  Normalizat    .66472        .75102E-01    .81544E-01    .32445E-04
   4  Prefactor     1.2495        .54370E-01    .51548E-01    .86407E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19136
  Index      = 1.99678
  Normalizat = 0.66472
  Prefactor  = 1.24953
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.760     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1914        4.5331        .16406E-03   -1.5351    
   2  Index         1.9968        .71708        .87510E-02   -.64431    
   3  Normalizat    .66472        .21158        .36115E-03   -1.0530    
   4  Prefactor     1.2495        .17856        .22788E-03   -.84821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33444e-11
Minuit parameter uncertainties:
  1  4.53362
  2  0.720987
  3  0.211844
  4  0.178649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/720466': 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) = 7416.75979195
delta logL = 0.000179914803994

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.191e+00  4.534e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.997e+00  7.210e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.250e+00  1.786e-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:  6.647e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.00 +/- 0.72
Photon Flux (Free Index): 1.84e-08 +/- 2.36e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.99e-05

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/720466/cmap_HighResolution_678672001_678931201_4FGL_J0152.6+0147_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', comment='SUCCESS', photon_flux='1.81e-08', energy_flux2='1.28e-05', photon_flux_error='1.99e-08', dlogl='1.80e-04', energy_flux='1.30e-05', photon_flux2='1.84e-08', job_status='DONE', time_completed='2022-07-08 00:17:53.913952', photon_index_error2='0.72', photon_index2='2.00', ts='1.48', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='1.99e-05', EG='0.67', time_epoch_completed='1657264673.91', return_code='0', job_id='720466', GAL2='1.25', EG2='0.66', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='2.36e-08', ts2='1.47', photon_index='1.98' WHERE bin_id='1695' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:17:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 720466: <4FGL_J0152.6+0147_daily_bin1695> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin1695> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul  8 00:04:50 2022
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:04:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:04:52 2022
Terminated at Fri Jul  8 00:17:54 2022
Results reported at Fri Jul  8 00:17:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin1695 28.1614 1.7894 678672001 678931201 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 :                                   667.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             327.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

