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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin512
RA = 28.1614, Dec = 1.7894
tmin = 372038401, tmax = 372297601
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='898332', job_status='RUN', time_executed='2021-08-14 19:40:25.852111', time_epoch_executed='1628995225.85' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898332/ft1_4FGL_J0152.6+0147_daily_bin512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898332/ft2_4FGL_J0152.6+0147_daily_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898332/ft1_4FGL_J0152.6+0147_daily_bin512.fits outfile=/scratch/kocevski/898332/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin512.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=372038401.0 tmax=372297601.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 11.72
user 4.27
sys 7.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898332/ft2_4FGL_J0152.6+0147_daily_bin512.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/898332/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin512.fits evtable="EVENTS" outfile="/scratch/kocevski/898332/ft1_filtered_4FGL_J0152.6+0147_daily_bin512.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 7.10
user 0.33
sys 6.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898332/ft1_filtered_4FGL_J0152.6+0147_daily_bin512.fits" evtable="EVENTS" scfile=/scratch/kocevski/898332/ft2_4FGL_J0152.6+0147_daily_bin512.fits sctable="SC_DATA" outfile=/scratch/kocevski/898332/ltcube_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.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/898332/ft2_4FGL_J0152.6+0147_daily_bin512.fits
.....................!
real 20.94
user 12.35
sys 7.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898332/ft1_filtered_4FGL_J0152.6+0147_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/898332/ft2_4FGL_J0152.6+0147_daily_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/898332/ltcube_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.fits outfile=/scratch/kocevski/898332/expmap_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.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/898332/ltcube_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.fits
.....................!
real 203.50
user 186.26
sys 13.56

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/898332/ft1_filtered_4FGL_J0152.6+0147_daily_bin512.fits scfile=/scratch/kocevski/898332/ft2_4FGL_J0152.6+0147_daily_bin512.fits outfile=/scratch/kocevski/898332/cmap_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.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 7.02
user 0.38
sys 6.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898332/ft1_filtered_4FGL_J0152.6+0147_daily_bin512.fits scfile=/scratch/kocevski/898332/ft2_4FGL_J0152.6+0147_daily_bin512.fits outfile=/scratch/kocevski/898332/cmap_HighResolution_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.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 7.05
user 0.40
sys 6.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0384       1.0000         .10000E-03   10000.    
     2 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3199       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9091       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13435E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0699       1.0000         .10000E-03   10000.    
    12 'norm      '    13.617       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1830       1.0000         .10000E-03   10000.    
    14 'norm      '    .37134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0696       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79287       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=   4551.887     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2082 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0350        51.718       -.43129E-05   -.13700E-04
   2  norm          .10000E-03    .86887        .20886E-06** at limit **
   3  Prefactor     .10000E-03    19.075        .26585E-07** at limit **
   4  Prefactor     3.3187        6.3744       -.86546E-06   -.38632E-03
   5  Prefactor     .10000E-03    9.4616        .14594E-07** at limit **
   6  Prefactor     .10000E-03    18.468       -.41208E-07** at limit **
   7  norm          6.9090        6.4727        .17203E-06   -.33860E-05
   8  Prefactor     25.319        65.326        .61335E-04   -.94476E-06
   9  Prefactor     .10012E-03    3.2408        .92812E-07** at limit **
  10  norm          4.5641        23.964        .12664E-05   -.52283E-04
  11  Prefactor     5.0686        8.8031        .87894E-06   -.22194E-03
  12  norm          13.617        6.9827        .75984E-06   -.18616E-03
  13  Prefactor     4.1817        3.4357       -.20323E-06   -.10561E-02
  14  norm          .37132        .94317       -.80972E-07   -.13696E-02
  15  Prefactor     .10075E-03    14.747        .32662E-05** at limit **
  16  Prefactor     .10000E-03    96.792       -.10255E-04** at limit **
  17  Prefactor     .10000E-03    11.593        .68329E-07** at limit **
  18  Prefactor     .10000E-03    6.7056        .48641E-07** at limit **
  19  Normalizat    1.0696        .20113       -.16672E-05   -.20361E-03
  20  Prefactor     .79290        .16354       -.97918E-06   -.24371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.90903
  Prefactor  = 25.3189
  Prefactor  = 0.000100124
  norm       = 4.5641
  Prefactor  = 5.06858
  norm       = 13.6168
  Prefactor  = 4.18166
  norm       = 0.371319
  Prefactor  = 0.000100746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06965
  Prefactor  = 0.792903
 **********
 **   18 **HESSE 
 **********

 FCN=   4551.887     FROM HESSE     STATUS=OK           303 CALLS     2385 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0350        51.418        .14142E-03   -1.5141    
   2  norm          .10000E-03    1.9132        .12133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3187        6.3482        .22217E-03   -1.5344    
   5  Prefactor     .10000E-03    9.6267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9090        6.4754        .15263E-03   -1.5182    
   8  Prefactor     25.319        65.020        .79682E-04   -1.4701    
   9  Prefactor     .10012E-03    5.3172        .42658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5641        23.818        .18841E-03   -1.5281    
  11  Prefactor     5.0686        8.7502        .17857E-03   -1.5258    
  12  norm          13.617        6.9782        .10854E-03   -1.4970    
  13  Prefactor     4.1817        3.3290        .10279E-03   -1.5299    
  14  norm          .37132        .92937        .97007E-04   -1.5586    
  15  Prefactor     .10075E-03    111.84        .48286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    97.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7105        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0696        .22842        .24206E-03   -.90732    
  20  Prefactor     .79290        .18816        .22202E-03   -.99990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36762e-09
Minuit parameter uncertainties:
  1  40.7029
  2  2.5859e-05
  3  1.51131e-05
  4  6.34944
  5  1.77997e-05
  6  1.12801e-05
  7  6.47607
  8  65.2032
  9  0.0016214
  10  20.8654
  11  8.75236
  12  6.97857
  13  3.32917
  14  0.929401
  15  0.0182995
  16  6.92495e-05
  17  2.00076e-05
  18  7.00631e-08
  19  0.228627
  20  0.188314
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.001e-04  1.621e-03  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:  7.929e-01  1.883e-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.070e+00  2.286e-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: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898332/likelihoodResults_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.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) = 4551.88739242
delta logL = -3.56259315595e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4551.85017675
delta logL = 0.0371800420635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34548       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7431       1.0000          .0000       10.000    
     3 'Normalizat'    1.0583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79570       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=   4551.850     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34367        40.849        .10623E-01    .14870E-02
   2  Index         2.7450        6.3717        .14628        .74085E-04
   3  Normalizat    1.0582        .31673E-01    .40033E-01   -.44462E-05
   4  Prefactor     .79573        .25505E-01    .43661E-01    .44851E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.343669
  Index      = 2.74499
  Normalizat = 1.05825
  Prefactor  = 0.795734
 **********
 **   18 **HESSE 
 **********

 FCN=   4551.850     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34367        18.621        .14010E-03   -1.5591    
   2  Index         2.7450        6.3462        .12363E-01   -.46789    
   3  Normalizat    1.0582        .22974        .24322E-03   -.91104    
   4  Prefactor     .79573        .18234        .22164E-03   -.99886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14135e-10
Minuit parameter uncertainties:
  1  5.06039
  2  5.56965
  3  0.229953
  4  0.182478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898332': 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) = 4551.85017629
delta logL = 0.0371804957795

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.437e-01  5.060e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.745e+00  5.570e+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:  7.957e-01  1.825e-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.058e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/898332/cmap_HighResolution_372038401_372297601_4FGL_J0152.6+0147_daily_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-08-14 19:51:05.541869', job_id='898332', GAL2='0.80', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1628995865.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.72e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='512' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 898332: <4FGL_J0152.6+0147_daily_bin512> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin512> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:35 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:36:24 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:36:24 2021
Terminated at Sat Aug 14 19:51:07 2021
Results reported at Sat Aug 14 19:51:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin512 28.1614 1.7894 372038401 372297601 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 :                                   737.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            932 sec.

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

