/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 230 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 = 7633
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin890
RA = 28.1614, Dec = 1.7894
tmin = 470016001, tmax = 470275201
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='899975', job_status='RUN', time_executed='2021-08-14 19:46:21.531335', time_epoch_executed='1628995581.53' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899975

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899975/ft1_4FGL_J0152.6+0147_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899975/ft2_4FGL_J0152.6+0147_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899975/ft1_4FGL_J0152.6+0147_daily_bin890.fits outfile=/scratch/kocevski/899975/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin890.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=470016001.0 tmax=470275201.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.23
user 3.32
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899975/ft1_filtered_4FGL_J0152.6+0147_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/899975/ft2_4FGL_J0152.6+0147_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/899975/ltcube_470016001_470275201_4FGL_J0152.6+0147_daily_bin890.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/899975/ft2_4FGL_J0152.6+0147_daily_bin890.fits
.....................!
real 13.83
user 12.68
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899975/ft1_filtered_4FGL_J0152.6+0147_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/899975/ft2_4FGL_J0152.6+0147_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/899975/ltcube_470016001_470275201_4FGL_J0152.6+0147_daily_bin890.fits outfile=/scratch/kocevski/899975/expmap_470016001_470275201_4FGL_J0152.6+0147_daily_bin890.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/899975/ltcube_470016001_470275201_4FGL_J0152.6+0147_daily_bin890.fits
.....................!
real 191.89
user 185.37
sys 5.12

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/899975/ft1_filtered_4FGL_J0152.6+0147_daily_bin890.fits scfile=/scratch/kocevski/899975/ft2_4FGL_J0152.6+0147_daily_bin890.fits outfile=/scratch/kocevski/899975/cmap_470016001_470275201_4FGL_J0152.6+0147_daily_bin890.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.21
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899975/ft1_filtered_4FGL_J0152.6+0147_daily_bin890.fits scfile=/scratch/kocevski/899975/ft2_4FGL_J0152.6+0147_daily_bin890.fits outfile=/scratch/kocevski/899975/cmap_HighResolution_470016001_470275201_4FGL_J0152.6+0147_daily_bin890.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.19
user 0.40
sys 0.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    44.305       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .68783E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16531E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0526       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.810       1.0000         .10000E-03   10000.    
     7 'norm      '    11.399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5565       1.0000         .10000E-03   10000.    
    10 'norm      '    10.508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.452       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8991       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.896       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80020       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85811       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=   7780.815     FROM MIGRAD    STATUS=CONVERGED     63 CALLS     1699 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    24.063        .55416E-05** at limit **
   2  norm          44.306        3.7843        .86684E-06    .26048E-02
   3  Prefactor     .14252E-03    4.3095       -.14108E-04** at limit **
   4  Prefactor     .10013E-03    18.906       -.23329E-05** at limit **
   5  Prefactor     5.0513        5.9061        .80949E-05    .38508E-02
   6  Prefactor     43.812        1.0427        .17185E-06   -.14425E-02
   7  norm          11.400        2.2151       -.14451E-05   -.30960E-02
   8  Prefactor     .10478E-03    18.407        .85378E-05** at limit **
   9  Prefactor     5.5571        3.8014        .18009E-05    .10446E-02
  10  norm          10.508        1.0079       -.12506E-06   -.13707E-03
  11  Prefactor     13.452        1.9307       -.74949E-06   -.42286E-03
  12  norm          8.2314        5.3017        .54649E-05    .42706E-02
  13  Prefactor     2.8996        2.3479        .28890E-06   -.31702E-04
  14  norm          2.1251        .91431        .24885E-06   -.11987E-03
  15  Prefactor     .10002E-03    17.951       -.17299E-05** at limit **
  16  Prefactor     .10400E-03    23.376       -.13050E-04** at limit **
  17  Prefactor     9.2579        1.0071       -.10596E-06   -.19985E-03
  18  Prefactor     35.903        1.3510        .54545E-06   -.34897E-02
  19  Normalizat    .80005        .18853        .34234E-05    .71927E-05
  20  Prefactor     .85815        .16037       -.45835E-05    .15537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100223
  norm       = 44.3058
  Prefactor  = 0.000142521
  Prefactor  = 0.000100126
  Prefactor  = 5.05127
  Prefactor  = 43.8119
  norm       = 11.3996
  Prefactor  = 0.00010478
  Prefactor  = 5.55712
  norm       = 10.5082
  Prefactor  = 13.4524
  norm       = 8.23135
  Prefactor  = 2.89956
  norm       = 2.12507
  Prefactor  = 0.000100021
  Prefactor  = 0.000103996
  Prefactor  = 9.2579
  Prefactor  = 35.9027
  Normalizat = 0.800052
  Prefactor  = 0.858147
 **********
 **   18 **HESSE 
 **********

 FCN=   7780.815     FROM HESSE     STATUS=OK           345 CALLS     2044 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    24.648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          44.306        3.8540        .15058E-02   -1.4376    
   3  Prefactor     .14252E-03    152.80        .10495E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    4.6415        .66592E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0513        6.5722        .44721E-02   -1.5258    
   6  Prefactor     43.812        41.478        .15142E-02   -1.4383    
   7  norm          11.400        5.9348        .29664E-02   -1.5033    
   8  Prefactor     .10478E-03    51.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5571        3.8054        .42609E-02   -1.5236    
  10  norm          10.508        11.319        .30901E-02   -1.5060    
  11  Prefactor     13.452        6.8832        .27302E-02   -1.4974    
  12  norm          8.2314        5.4323        .34936E-02   -1.5134    
  13  Prefactor     2.8996        2.3673        .59663E-02   -1.5367    
  14  norm          2.1251        .91978        .70723E-02   -1.5416    
  15  Prefactor     .10002E-03    17.964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10400E-03    62.117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2579        9.9501        .32932E-02   -1.5099    
  18  Prefactor     35.903        26.442        .16722E-02   -1.4509    
  19  Normalizat    .80005        .16539        .68011E-01   -1.0007    
  20  Prefactor     .85815        .13953        .44469E-01   -.97619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8478e-07
Minuit parameter uncertainties:
  1  0.00469229
  2  3.85405
  3  0.161625
  4  0.00152664
  5  6.5731
  6  41.5051
  7  5.93512
  8  0.0312755
  9  3.8056
  10  11.3209
  11  6.88358
  12  5.43262
  13  2.3674
  14  0.919787
  15  0.00124143
  16  0.031541
  17  9.95192
  18  26.4503
  19  0.165493
  20  0.139587
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.557e+00  3.806e+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.581e-01  1.396e-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:  8.001e-01  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.15
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.53e-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) = 7780.064987
delta logL = 0.749663863931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7780.06490006
delta logL = 0.749750804634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3544       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4299       1.0000          .0000       10.000    
     3 'Normalizat'    .81589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85332       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=   7780.065     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      263 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3546        5.4080        .14790E-03   -.11951E-02
   2  Index         1.4302        .44208        .85983E-02   -.24052E-03
   3  Normalizat    .81638        .18564        .29809E-03    .87870E-04
   4  Prefactor     .85299        .15672        .24491E-03    .11178E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.35458
  Index      = 1.43024
  Normalizat = 0.816376
  Prefactor  = 0.852989
 **********
 **   18 **HESSE 
 **********

 FCN=   7780.065     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3546        5.4336        .29579E-04   -1.5166    
   2  Index         1.4302        .44419        .34393E-03   -.79513    
   3  Normalizat    .81638        .18581        .11924E-04   -.99464    
   4  Prefactor     .85299        .15687        .97966E-05   -.97804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81804e-09
Minuit parameter uncertainties:
  1  5.434
  2  0.445389
  3  0.185952
  4  0.156954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899975': 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) = 7780.06489631
delta logL = 0.74975456261

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.355e+00  5.434e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.430e+00  4.454e-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.530e-01  1.570e-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:  8.164e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.61
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.43 +/- 0.45
Photon Flux (Free Index): 1.53e-08 +/- 1.53e-08
Energy Flux (Free Index): 6.13e-05 +/- 6.65e-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/899975/cmap_HighResolution_470016001_470275201_4FGL_J0152.6+0147_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='6.13e-05', photon_flux_error='2.13e-08', dlogl='7.50e-01', energy_flux='2.24e-05', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-08-14 19:56:41.263569', photon_index_error2='0.45', photon_index2='1.43', ts='10.15', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='6.65e-05', EG='0.80', time_epoch_completed='1628996201.26', return_code='0', job_id='899975', GAL2='0.85', EG2='0.82', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.53e-08', ts2='11.61', photon_index='1.98' WHERE bin_id='890' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 899975: <4FGL_J0152.6+0147_daily_bin890> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin890> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:46 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:42:11 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:42:11 2021
Terminated at Sat Aug 14 19:56:42 2021
Results reported at Sat Aug 14 19:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin890 28.1614 1.7894 470016001 470275201 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 :                                   627.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            956 sec.

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

