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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin843
RA = 28.1614, Dec = 1.7894
tmin = 457833601, tmax = 458092801
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='899902', job_status='RUN', time_executed='2021-08-14 19:45:22.406957', time_epoch_executed='1628995522.41' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='843'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899902/ft1_4FGL_J0152.6+0147_daily_bin843.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899902/ft2_4FGL_J0152.6+0147_daily_bin843.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899902/ft1_4FGL_J0152.6+0147_daily_bin843.fits outfile=/scratch/kocevski/899902/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin843.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=457833601.0 tmax=458092801.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 8.98
user 3.47
sys 5.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899902/ft2_4FGL_J0152.6+0147_daily_bin843.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/899902/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin843.fits evtable="EVENTS" outfile="/scratch/kocevski/899902/ft1_filtered_4FGL_J0152.6+0147_daily_bin843.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 5.79
user 0.35
sys 5.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899902/ft1_filtered_4FGL_J0152.6+0147_daily_bin843.fits" evtable="EVENTS" scfile=/scratch/kocevski/899902/ft2_4FGL_J0152.6+0147_daily_bin843.fits sctable="SC_DATA" outfile=/scratch/kocevski/899902/ltcube_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.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/899902/ft2_4FGL_J0152.6+0147_daily_bin843.fits
.....................!
real 18.89
user 12.33
sys 6.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899902/ft1_filtered_4FGL_J0152.6+0147_daily_bin843.fits evtable="EVENTS" scfile=/scratch/kocevski/899902/ft2_4FGL_J0152.6+0147_daily_bin843.fits sctable="SC_DATA" expcube=/scratch/kocevski/899902/ltcube_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.fits outfile=/scratch/kocevski/899902/expmap_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.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/899902/ltcube_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.fits
.....................!
real 198.48
user 186.25
sys 11.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/899902/ft1_filtered_4FGL_J0152.6+0147_daily_bin843.fits scfile=/scratch/kocevski/899902/ft2_4FGL_J0152.6+0147_daily_bin843.fits outfile=/scratch/kocevski/899902/cmap_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.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 5.68
user 0.37
sys 5.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899902/ft1_filtered_4FGL_J0152.6+0147_daily_bin843.fits scfile=/scratch/kocevski/899902/ft2_4FGL_J0152.6+0147_daily_bin843.fits outfile=/scratch/kocevski/899902/cmap_HighResolution_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.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 5.78
user 0.37
sys 5.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    8.5522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.390       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.973       1.0000         .10000E-03   10000.    
     7 'norm      '    8.7108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10834E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .47501       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5948       1.0000         .10000E-03   10000.    
    14 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2763       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2743       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82007       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1190       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=   5656.658     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1790 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.379        .18025E-05** at limit **
   2  norm          8.5523        2.2373       -.94220E-07   -.15162E-02
   3  Prefactor     25.383        32.028        .55003E-06   -.30621E-04
   4  Prefactor     3.5885        5.2146       -.15404E-07   -.19183E-03
   5  Prefactor     .10000E-03    4.8171        .20427E-06** at limit **
   6  Prefactor     19.932        52.309        .32305E-05   -.73791E-04
   7  norm          8.7109        7.0226        .17504E-07   -.39350E-04
   8  Prefactor     .10000E-03    34.645        .28439E-06** at limit **
   9  Prefactor     .10000E-03    1.5223        .74186E-07** at limit **
  10  norm          .10001E-03    33.793        .18545E-05** at limit **
  11  Prefactor     .10000E-03    2.5357        .24118E-06** at limit **
  12  norm          .47411        4.8033        .17324E-04   -.23292E-03
  13  Prefactor     3.5973        2.6285       -.72112E-06   -.66100E-03
  14  norm          .10000E-03    .52747        .34934E-06** at limit **
  15  Prefactor     7.2059        24.427        .76879E-05    .24079E-03
  16  Prefactor     .10000E-03    36.576       -.26189E-05** at limit **
  17  Prefactor     .10000E-03    5.6700        .19490E-06** at limit **
  18  Prefactor     6.2712        23.679       -.59798E-05   -.32237E-03
  19  Normalizat    .82007        .18536        .14748E-05   -.15035E-03
  20  Prefactor     1.1191        .15530       -.25538E-05    .59954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.55228
  Prefactor  = 25.3831
  Prefactor  = 3.5885
  Prefactor  = 0.0001
  Prefactor  = 19.932
  norm       = 8.71086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.474109
  Prefactor  = 3.59727
  norm       = 0.0001
  Prefactor  = 7.20589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.27119
  Normalizat = 0.820069
  Prefactor  = 1.11908
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.658     FROM HESSE     STATUS=OK           289 CALLS     2079 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.5523        2.2379        .55153E-04   -1.5123    
   3  Prefactor     25.383        32.003        .79500E-04   -1.4700    
   4  Prefactor     3.5885        5.1980        .19777E-03   -1.5329    
   5  Prefactor     .10000E-03    4.8504        .16121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.932        52.266        .89622E-04   -1.4815    
   7  norm          8.7109        7.0240        .13581E-03   -1.5118    
   8  Prefactor     .10000E-03    34.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5273        .90619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    34.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5492        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .47411        4.8179        .15434E-02   -1.5570    
  13  Prefactor     3.5973        2.6216        .97407E-04   -1.5329    
  14  norm          .10000E-03    .86453        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2059        24.515        .14870E-03   -1.5171    
  16  Prefactor     .10000E-03    36.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6786        .17491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2712        23.754        .16025E-03   -1.5207    
  19  Normalizat    .82007        .21149        .28426E-03   -.99329    
  20  Prefactor     1.1191        .17783        .20754E-03   -.88859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7389e-09
Minuit parameter uncertainties:
  1  0.000223464
  2  2.23789
  3  32.0244
  4  5.19865
  5  3.23554e-05
  6  52.3867
  7  7.02465
  8  0.000108597
  9  6.78117e-06
  10  0.000993767
  11  2.79036e-05
  12  3.02271
  13  2.62164
  14  1.99742e-05
  15  24.5495
  16  6.17161e-06
  17  3.70399e-05
  18  23.7898
  19  0.211699
  20  0.177928
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  6.781e-06  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.119e+00  1.779e-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.201e-01  2.117e-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: 4.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899902/likelihoodResults_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.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) = 5656.66075602
delta logL = -0.00304827168475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5656.65770923
delta logL = -1.48166600411e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9491       1.0000          .0000       10.000    
     3 'Normalizat'    .81996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1192       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=   5656.658     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      215 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2752        .90712E-02** at limit **
   2  Index         1.4271        8.6053        .50000        .34538E-07
   3  Normalizat    .82007        .69609E-02    .64260E-01    .18095E-04
   4  Prefactor     1.1191        .58754E-02    .36899E-01    .45597E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.42713
  Normalizat = 0.820072
  Prefactor  = 1.11908
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.658     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.057        .11456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4271        7.3026        .50000       -.79602    
   3  Normalizat    .82007        .21578E-01    .28426E-03   -.99328    
   4  Prefactor     1.1191        .18239E-01    .20754E-03   -.88859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65805e-09
Minuit parameter uncertainties:
  1  0.000263693
  2  250.682
  3  0.021578
  4  0.0182388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899902': 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) = 5656.65769551
delta logL = 1.22452029245e-05

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.637e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.427e+00  2.507e+02  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.119e+00  1.824e-02  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.201e-01  2.158e-02  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/899902/cmap_HighResolution_457833601_458092801_4FGL_J0152.6+0147_daily_bin843.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-03', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2021-08-14 19:56:07.436678', job_id='899902', GAL2='1.12', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1628996167.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.22e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='843' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:56:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 899902: <4FGL_J0152.6+0147_daily_bin843> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin843 28.1614 1.7894 457833601 458092801 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            929 sec.

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

