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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin938
RA = 28.1614, Dec = 1.7894
tmin = 482457601, tmax = 482716801
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='901169', job_status='RUN', time_executed='2021-08-14 19:48:37.964886', time_epoch_executed='1628995717.96' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901169/ft1_4FGL_J0152.6+0147_daily_bin938.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901169/ft2_4FGL_J0152.6+0147_daily_bin938.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901169/ft1_4FGL_J0152.6+0147_daily_bin938.fits outfile=/scratch/kocevski/901169/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin938.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=482457601.0 tmax=482716801.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.06
user 3.32
sys 2.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901169/ft2_4FGL_J0152.6+0147_daily_bin938.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/901169/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin938.fits evtable="EVENTS" outfile="/scratch/kocevski/901169/ft1_filtered_4FGL_J0152.6+0147_daily_bin938.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 2.98
user 0.32
sys 2.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901169/ft1_filtered_4FGL_J0152.6+0147_daily_bin938.fits" evtable="EVENTS" scfile=/scratch/kocevski/901169/ft2_4FGL_J0152.6+0147_daily_bin938.fits sctable="SC_DATA" outfile=/scratch/kocevski/901169/ltcube_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.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/901169/ft2_4FGL_J0152.6+0147_daily_bin938.fits
.....................!
real 15.21
user 12.09
sys 3.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901169/ft1_filtered_4FGL_J0152.6+0147_daily_bin938.fits evtable="EVENTS" scfile=/scratch/kocevski/901169/ft2_4FGL_J0152.6+0147_daily_bin938.fits sctable="SC_DATA" expcube=/scratch/kocevski/901169/ltcube_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.fits outfile=/scratch/kocevski/901169/expmap_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.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/901169/ltcube_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.fits
.....................!
real 194.38
user 186.27
sys 7.67

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/901169/ft1_filtered_4FGL_J0152.6+0147_daily_bin938.fits scfile=/scratch/kocevski/901169/ft2_4FGL_J0152.6+0147_daily_bin938.fits outfile=/scratch/kocevski/901169/cmap_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.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 2.88
user 0.37
sys 2.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901169/ft1_filtered_4FGL_J0152.6+0147_daily_bin938.fits scfile=/scratch/kocevski/901169/ft2_4FGL_J0152.6+0147_daily_bin938.fits outfile=/scratch/kocevski/901169/cmap_HighResolution_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.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 2.97
user 0.39
sys 2.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    20.828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.356       1.0000         .10000E-03   10000.    
     7 'norm      '    10.582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3123       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2544       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31368E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99373       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4172       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=   6980.061     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     2105 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.842        .18142E-02** at limit **
   2  norm          20.829        3.3704        .59490E-04   -.85786E-03
   3  Prefactor     .10000E-03    16.251        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.0631        .16399E-02** at limit **
   5  Prefactor     2.5149        13.935        .12889E-02    .52603E-04
   6  Prefactor     18.357        28.545        .93483E-04   -.42564E-05
   7  norm          10.583        7.5317        .12317E-03   -.10190E-03
   8  Prefactor     .10000E-03    51.565        .18142E-02** at limit **
   9  Prefactor     2.3129        3.6069        .19287E-03   -.17684E-04
  10  norm          .10000E-03    6.9932        .18142E-02** at limit **
  11  Prefactor     2.2561        8.9926        .13682E-02    .20367E-03
  12  norm          .10000E-03    2.2389        .12151E-02** at limit **
  13  Prefactor     .10000E-03    3.7049        .21314E-02** at limit **
  14  norm          .42287        .58170        .85032E-03    .46415E-02
  15  Prefactor     .10000E-03    30.172        .11337    ** at limit **
  16  Prefactor     .10000E-03    40.306        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.2146        .16742E-02** at limit **
  18  Prefactor     .10000E-03    22.101        .18142E-02** at limit **
  19  Normalizat    .99365        .23542        .32913E-03    .53540E-04
  20  Prefactor     1.4171        .19496        .23228E-03    .41710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 20.8291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51494
  Prefactor  = 18.3568
  norm       = 10.5835
  Prefactor  = 0.0001
  Prefactor  = 2.31288
  norm       = 0.0001
  Prefactor  = 2.25608
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.422866
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.993654
  Prefactor  = 1.4171
 **********
 **   18 **HESSE 
 **********

 FCN=   6980.061     FROM HESSE     STATUS=OK           287 CALLS     2392 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.829        3.3703        .11898E-04   -1.4795    
   3  Prefactor     .10000E-03    16.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0639        .32798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5149        13.918        .51558E-04   -1.5391    
   6  Prefactor     18.357        28.545        .37393E-05   -1.4851    
   7  norm          10.583        7.5315        .49267E-05   -1.5057    
   8  Prefactor     .10000E-03    51.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3129        3.6067        .77147E-05   -1.5404    
  10  norm          .10000E-03    6.9934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2561        8.9803        .54727E-04   -1.5408    
  12  norm          .10000E-03    2.2393        .24302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7212        .42628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42287        .58133        .17006E-03   -1.5578    
  15  Prefactor     .10000E-03    28.780        .11687       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2147        .33485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99365        .23555        .13165E-04   -.93243    
  20  Prefactor     1.4171        .19501        .46456E-04   -.79889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60194e-10
Minuit parameter uncertainties:
  1  1.50997e-05
  2  3.37036
  3  1.54431e-05
  4  1.33227e-05
  5  11.8367
  6  28.566
  7  7.53214
  8  4.30949e-05
  9  3.60708
  10  1.09846e-05
  11  8.98569
  12  6.95465e-06
  13  0.000140949
  14  0.581335
  15  0.000748997
  16  9.58456e-05
  17  5.58562e-06
  18  9.28682e-05
  19  0.235792
  20  0.195107
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.313e+00  3.607e+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.417e+00  1.951e-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.937e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/901169/likelihoodResults_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.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) = 6978.5264416
delta logL = 1.53469601858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6978.47032067
delta logL = 1.59081694347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6257       1.0000         .10000E-03   10000.    
     2 'Index     '    .83450       1.0000          .0000       10.000    
     3 'Normalizat'    .98178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4269       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=   6978.470     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6276        3.1025        .53045E-02   -.23314E-02
   2  Index         .83436        .39222        .25392       -.68687E-04
   3  Normalizat    .98200        .19915        .74669E-01   -.23769E-04
   4  Prefactor     1.4268        .16494        .52380E-01   -.45336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62763
  Index      = 0.834365
  Normalizat = 0.982001
  Prefactor  = 1.42678
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.470     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6276        4.3567        .65942E-03   -1.5327    
   2  Index         .83436        .53477        .11519E-01   -.98474    
   3  Normalizat    .98200        .23223        .33041E-03   -.93636    
   4  Prefactor     1.4268        .19267        .23157E-03   -.79611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44002e-11
Minuit parameter uncertainties:
  1  4.35713
  2  0.538161
  3  0.232473
  4  0.192773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901169': 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) = 6978.47031977
delta logL = 1.59081784754

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.628e+00  4.357e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  8.344e-01  5.382e-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.427e+00  1.928e-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.820e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 28.161 1.789
Photon Index (Free Index): 0.83 +/- 0.54
Photon Flux (Free Index): 6.66e-09 +/- 6.13e-09
Energy Flux (Free Index): 1.39e-04 +/- 1.52e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/901169/cmap_HighResolution_482457601_482716801_4FGL_J0152.6+0147_daily_bin938.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', comment='SUCCESS', energy_flux2='1.39e-04', dlogl='1.59e+00', photon_flux2='6.66e-09', job_status='DONE', time_completed='2021-08-14 19:59:59.669018', photon_index_error2='0.54', photon_index2='0.83', ts='0.68', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='7.49e-08', energy_flux_error2='1.52e-04', EG='0.99', time_epoch_completed='1628996399.67', return_code='0', job_id='901169', GAL2='1.43', EG2='0.98', return_code2='0', photon_flux_error2='6.13e-09', ts2='3.87', photon_index='1.98' WHERE bin_id='938' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:59:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 901169: <4FGL_J0152.6+0147_daily_bin938> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin938> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:45:18 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:45:21 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:45:21 2021
Terminated at Sat Aug 14 20:00:00 2021
Results reported at Sat Aug 14 20:00:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin938 28.1614 1.7894 482457601 482716801 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 :                                   719.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

