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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin815
RA = 28.1614, Dec = 1.7894
tmin = 450576001, tmax = 450835201
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='899861', job_status='RUN', time_executed='2021-08-14 19:44:37.388692', time_epoch_executed='1628995477.39' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899861

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899861/ft1_4FGL_J0152.6+0147_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899861/ft2_4FGL_J0152.6+0147_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899861/ft1_4FGL_J0152.6+0147_daily_bin815.fits outfile=/scratch/kocevski/899861/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin815.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=450576001.0 tmax=450835201.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 5.79
user 3.26
sys 2.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899861/ft1_filtered_4FGL_J0152.6+0147_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/899861/ft2_4FGL_J0152.6+0147_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/899861/ltcube_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.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/899861/ft2_4FGL_J0152.6+0147_daily_bin815.fits
.....................!
real 14.63
user 11.56
sys 2.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899861/ft1_filtered_4FGL_J0152.6+0147_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/899861/ft2_4FGL_J0152.6+0147_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/899861/ltcube_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.fits outfile=/scratch/kocevski/899861/expmap_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.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/899861/ltcube_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.fits
.....................!
real 193.96
user 184.98
sys 8.39

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/899861/ft1_filtered_4FGL_J0152.6+0147_daily_bin815.fits scfile=/scratch/kocevski/899861/ft2_4FGL_J0152.6+0147_daily_bin815.fits outfile=/scratch/kocevski/899861/cmap_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.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.82
user 0.37
sys 2.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899861/ft1_filtered_4FGL_J0152.6+0147_daily_bin815.fits scfile=/scratch/kocevski/899861/ft2_4FGL_J0152.6+0147_daily_bin815.fits outfile=/scratch/kocevski/899861/cmap_HighResolution_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.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.77
user 0.38
sys 2.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3104       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .22761E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44357E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3463       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13357E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .69626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.453       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27131E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.855       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61505       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6582       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=   7311.060     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2168 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.040       -.23343E-05** at limit **
   2  norm          19.855        3.2062       -.14235E-07   -.21461E-04
   3  Prefactor     10.641        29.727        .12318E-04   -.82112E-05
   4  Prefactor     .10000E-03    3.6560       -.16728E-07** at limit **
   5  Prefactor     .10000E-03    3.4189        .15031E-06** at limit **
   6  Prefactor     5.2135        77.121        .22463E-04   -.82716E-05
   7  norm          4.7047        4.4040       -.26916E-06    .10157E-03
   8  Prefactor     .10000E-03    25.724        .22155E-06** at limit **
   9  Prefactor     .10000E-03    7.1257       -.49047E-06** at limit **
  10  norm          .10001E-03    9.1748        .94639E-06** at limit **
  11  Prefactor     .10000E-03    3.6330        .51991E-06** at limit **
  12  norm          5.3456        4.8521       -.18641E-05    .29271E-04
  13  Prefactor     .10000E-03    1.6009       -.45586E-06** at limit **
  14  norm          .69602        .66548       -.15335E-06   -.12622E-02
  15  Prefactor     23.437        30.223        .12311E-04    .29431E-03
  16  Prefactor     .10001E-03    597.82       -.21866E-03** at limit **
  17  Prefactor     .10000E-03    5.3056       -.35780E-06** at limit **
  18  Prefactor     29.837        25.753        .14020E-04    .19309E-03
  19  Normalizat    .61475        .19749       -.27383E-05    .90937E-04
  20  Prefactor     1.6585        .17071       -.91914E-06    .47130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.8545
  Prefactor  = 10.6407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21346
  norm       = 4.7047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 5.34557
  Prefactor  = 0.000100001
  norm       = 0.696016
  Prefactor  = 23.437
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 29.8375
  Normalizat = 0.614747
  Prefactor  = 1.65852
 **********
 **   18 **HESSE 
 **********

 FCN=   7311.060     FROM HESSE     STATUS=OK           293 CALLS     2461 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.855        3.2039        .59187E-04   -1.4817    
   3  Prefactor     10.641        29.683        .12276E-03   -1.5055    
   4  Prefactor     .10000E-03    3.6741        .15960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4421        .15440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2135        76.780        .17441E-03   -1.5251    
   7  norm          4.7047        4.4067        .16920E-03   -1.5274    
   8  Prefactor     .10000E-03    25.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    45.870        .50255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6373        .31569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3456        4.8308        .17208E-03   -1.5246    
  13  Prefactor     .10000E-03    2.8982        .20527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .69602        .63013        .65760E-03   -1.5541    
  15  Prefactor     23.437        30.056        .82712E-04   -1.4739    
  16  Prefactor     .10001E-03    605.79        .39870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.837        25.771        .73327E-04   -1.4615    
  19  Normalizat    .61475        .22080        .39335E-03   -1.0736    
  20  Prefactor     1.6585        .19174        .21710E-03   -.73192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39261e-09
Minuit parameter uncertainties:
  1  1.2124e-05
  2  3.20393
  3  29.7246
  4  1.32217e-05
  5  2.45061e-06
  6  40.076
  7  4.40698
  8  1.5811e-05
  9  4.60533e-05
  10  0.00123229
  11  4.41575e-05
  12  4.83111
  13  0.000130068
  14  0.630139
  15  30.0751
  16  0.00390666
  17  8.51343e-06
  18  25.7807
  19  0.221113
  20  0.191827
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.659e+00  1.918e-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.147e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/899861/likelihoodResults_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7311.06023101
delta logL = -0.000655407444356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7311.05956562
delta logL = 9.98477298708e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46551E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1198       1.0000          .0000       10.000    
     3 'Normalizat'    .61454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6587       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=   7307.304     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      303 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76600E-01    .39396        .21170E-02    .26373E-02
   2  Index         4.2904        1.4417        .53027E-01    .30913E-03
   3  Normalizat    .35858        .70236E-01    .11471        .72615E-04
   4  Prefactor     1.7842        .59281E-01    .47608E-01   -.85584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0765996
  Index      = 4.29043
  Normalizat = 0.35858
  Prefactor  = 1.78423
 **********
 **   18 **HESSE 
 **********

 FCN=   7307.304     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76600E-01    .62358        .94564E-05   -1.5653    
   2  Index         4.2904        1.9429        .22234E-02   -.14239    
   3  Normalizat    .35858        .21578        .50819E-03   -1.1950    
   4  Prefactor     1.7842        .18091        .21041E-03   -.69861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88197e-10
Minuit parameter uncertainties:
  1  0.436831
  2  1.99657
  3  0.216286
  4  0.180979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899861': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7307.30374133
delta logL = 3.75583426989

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.660e-02  4.368e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  4.290e+00  1.997e+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:  1.784e+00  1.810e-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:  3.586e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.78
Ra Dec: 28.161 1.789
Photon Index (Free Index): 4.29 +/- 2.00
Photon Flux (Free Index): 1.98e-07 +/- 8.54e-08
Energy Flux (Free Index): 2.84e-05 +/- 1.35e-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/899861/cmap_HighResolution_450576001_450835201_4FGL_J0152.6+0147_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', comment='SUCCESS', energy_flux2='2.84e-05', dlogl='3.76e+00', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-08-14 19:56:26.384494', photon_index_error2='2.00', photon_index2='4.29', ts='-0.00', fit_tolerance='1e-08', GAL='1.66', photon_index_error='0.00', photon_flux_upper_limit='8.26e-08', energy_flux_error2='1.35e-05', EG='0.61', time_epoch_completed='1628996186.38', return_code='0', job_id='899861', GAL2='1.78', EG2='0.36', return_code2='102', photon_flux_error2='8.54e-08', ts2='8.78', photon_index='1.98' WHERE bin_id='815' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:56:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 899861: <4FGL_J0152.6+0147_daily_bin815> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin815 28.1614 1.7894 450576001 450835201 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 :                                   740.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            951 sec.

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

