/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 3 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin636
RA = 28.1614, Dec = 1.7894
tmin = 404179201, tmax = 404438401
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='898513', job_status='RUN', time_executed='2021-08-14 19:38:12.467614', time_epoch_executed='1628995092.47' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='636'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898513/ft1_4FGL_J0152.6+0147_daily_bin636.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898513/ft1_4FGL_J0152.6+0147_daily_bin636.fits outfile=/scratch/kocevski/898513/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin636.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=404179201.0 tmax=404438401.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 2.92
user 2.69
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.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/898513/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin636.fits evtable="EVENTS" outfile="/scratch/kocevski/898513/ft1_filtered_4FGL_J0152.6+0147_daily_bin636.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 0.43
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898513/ft1_filtered_4FGL_J0152.6+0147_daily_bin636.fits" evtable="EVENTS" scfile=/scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits sctable="SC_DATA" outfile=/scratch/kocevski/898513/ltcube_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.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/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits
.....................!
real 10.54
user 10.21
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898513/ft1_filtered_4FGL_J0152.6+0147_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits sctable="SC_DATA" expcube=/scratch/kocevski/898513/ltcube_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.fits outfile=/scratch/kocevski/898513/expmap_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.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/898513/ltcube_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.fits
.....................!
real 152.13
user 147.07
sys 4.73

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/898513/ft1_filtered_4FGL_J0152.6+0147_daily_bin636.fits scfile=/scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits outfile=/scratch/kocevski/898513/cmap_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.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 0.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898513/ft1_filtered_4FGL_J0152.6+0147_daily_bin636.fits scfile=/scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits outfile=/scratch/kocevski/898513/cmap_HighResolution_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.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 0.49
user 0.32
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/898513/ft1_filtered_4FGL_J0152.6+0147_daily_bin636.fits', '/scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits', expMap='/scratch/kocevski/898513/expmap_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.fits', expCube='/scratch/kocevski/898513/ltcube_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/898513/Model_4FGL_J0152.6+0147_daily_bin636.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/898513/ft1_filtered_4FGL_J0152.6+0147_daily_bin636.fits
Spacecraft file(s): /scratch/kocevski/898513/ft2_4FGL_J0152.6+0147_daily_bin636.fits
Exposure map: /scratch/kocevski/898513/expmap_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.fits
Exposure cube: /scratch/kocevski/898513/ltcube_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/898513/Model_4FGL_J0152.6+0147_daily_bin636.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4617.33715598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.0406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8948       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.187       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .79593       1.0000         .10000E-03   10000.    
    10 'norm      '    23.190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66883       1.0000         .10000E-03   10000.    
    12 'norm      '    6.6502       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8141       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    134.30       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.390       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.084       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1034       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .68504       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=   4617.232     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1765 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.795       -.10332E-05** at limit **
   2  norm          9.0404        2.5445       -.38728E-06   -.13285E-03
   3  Prefactor     23.236        58.654       -.15001E-04   -.28934E-04
   4  Prefactor     4.8977        9.9074        .71757E-05    .49882E-04
   5  Prefactor     4.6255        12.623        .16510E-05   -.11761E-04
   6  Prefactor     46.200        44.547        .10396E-04    .16343E-05
   7  norm          .10000E-03    2.2802        .25087E-06** at limit **
   8  Prefactor     .10000E-03    138.31       -.13396E-05** at limit **
   9  Prefactor     .79648        2.7267       -.23142E-06   -.84622E-04
  10  norm          23.165        24.999        .10744E-05   -.40561E-05
  11  Prefactor     .68057        1.1311        .26739E-06   -.16367E-02
  12  norm          6.6502        5.0181        .59151E-06   -.17110E-04
  13  Prefactor     1.8107        2.2636        .90120E-06    .37397E-03
  14  norm          .10000E-03    .35421        .38524E-07** at limit **
  15  Prefactor     .10000E-03    9.2757        .11257E-05** at limit **
  16  Prefactor     134.25        100.16       -.32644E-04   -.25383E-04
  17  Prefactor     17.385        16.259        .42508E-05   -.11320E-05
  18  Prefactor     15.085        22.806        .35141E-06   -.63743E-05
  19  Normalizat    1.1035        .20445       -.16412E-05    .63038E-06
  20  Prefactor     .68492        .16597        .56900E-06   -.10913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.04037
  Prefactor  = 23.2357
  Prefactor  = 4.89773
  Prefactor  = 4.62549
  Prefactor  = 46.2003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.796476
  norm       = 23.1645
  Prefactor  = 0.680569
  norm       = 6.65023
  Prefactor  = 1.81066
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.253
  Prefactor  = 17.3851
  Prefactor  = 15.0853
  Normalizat = 1.10353
  Prefactor  = 0.684924
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.232     FROM HESSE     STATUS=OK           301 CALLS     2066 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0404        2.5446        .54571E-04   -1.5107    
   3  Prefactor     23.236        58.333        .83080E-04   -1.4744    
   4  Prefactor     4.8977        9.8370        .18180E-03   -1.5265    
   5  Prefactor     4.6255        12.611        .18712E-03   -1.5278    
   6  Prefactor     46.200        44.536        .29499E-03   -1.4348    
   7  norm          .10000E-03    2.2824        .10021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    138.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .79648        2.5498        .20095E-02   -1.5529    
  10  norm          23.165        25.440        .83179E-04   -1.4745    
  11  Prefactor     .68057        12.003        .21758E-02   -1.5543    
  12  norm          6.6502        5.0146        .12628E-03   -1.5192    
  13  Prefactor     1.8107        2.2435        .10755E-03   -1.5439    
  14  norm          .10000E-03    .36188        .39425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     134.25        100.01        .17376E-03   -1.3385    
  17  Prefactor     17.385        16.290        .96045E-04   -1.4874    
  18  Prefactor     15.085        22.826        .10312E-03   -1.4931    
  19  Normalizat    1.1035        .24147        .24307E-03   -.89639    
  20  Prefactor     .68492        .19715        .23930E-03   -1.0412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06112e-08
Minuit parameter uncertainties:
  1  3.34501e-06
  2  2.54467
  3  58.4769
  4  9.8402
  5  12.6184
  6  44.5681
  7  1.74932e-07
  8  6.93594e-06
  9  2.5501
  10  25.4522
  11  5.71726
  12  5.01496
  13  2.24356
  14  1.87356e-06
  15  5.99956e-05
  16  100.139
  17  16.2938
  18  22.8389
  19  0.241711
  20  0.197354
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.965e-01  2.550e+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:  6.849e-01  1.974e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.104e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898513/likelihoodResults_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.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) = 4617.22297989
delta logL = 0.0092210762532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4617.21913749
delta logL = 0.0130634736124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0722       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7605       1.0000          .0000       10.000    
     3 'Normalizat'    1.1045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68423       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=   4617.219     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0800        87.829        .47132E-01    .70915E-03
   2  Index         1.7590        5.7293        .27380        .33193E-04
   3  Normalizat    1.1049        .29156E-01    .54942E-01    .83448E-05
   4  Prefactor     .68400        .23118E-01    .42191E-01   -.52797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07996
  Index      = 1.75901
  Normalizat = 1.10485
  Prefactor  = 0.684
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.219     FROM HESSE     STATUS=OK            35 CALLS      255 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0800        3.6563        .22669E-02   -1.5500    
   2  Index         1.7590        1.3771        .14658E-01   -.70522    
   3  Normalizat    1.1049        .23514        .24294E-03   -.89596    
   4  Prefactor     .68400        .18764        .23944E-03   -1.0416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0205e-08
Minuit parameter uncertainties:
  1  3.65705
  2  1.409
  3  0.235359
  4  0.187813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898513': 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) = 4617.21913395
delta logL = 0.0130670121562

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.080e+00  3.657e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.759e+00  1.409e+00  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:  6.840e-01  1.878e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.105e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 28.161 1.789

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/898513/cmap_HighResolution_404179201_404438401_4FGL_J0152.6+0147_daily_bin636.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-08-14 19:45:14.949438', job_id='898513', GAL2='0.68', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1628995514.95', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.31e-02', ts2='0.15', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='636' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:45:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 898513: <4FGL_J0152.6+0147_daily_bin636> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin636> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:48 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:38:01 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:38:01 2021
Terminated at Sat Aug 14 19:45:15 2021
Results reported at Sat Aug 14 19:45:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin636 28.1614 1.7894 404179201 404438401 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 :                                   420.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             408.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   434 sec.
    Turnaround time :                            567 sec.

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

