/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 172 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin152
RA = 28.1614, Dec = 1.7894
tmin = 278726401, tmax = 278985601
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='895732', job_status='RUN', time_executed='2021-08-14 19:31:47.217070', time_epoch_executed='1628994707.22' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895732/ft1_4FGL_J0152.6+0147_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895732/ft2_4FGL_J0152.6+0147_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895732/ft1_4FGL_J0152.6+0147_daily_bin152.fits outfile=/scratch/kocevski/895732/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin152.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=278726401.0 tmax=278985601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.62
user 3.59
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895732/ft2_4FGL_J0152.6+0147_daily_bin152.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/895732/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin152.fits evtable="EVENTS" outfile="/scratch/kocevski/895732/ft1_filtered_4FGL_J0152.6+0147_daily_bin152.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.32
user 0.35
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895732/ft1_filtered_4FGL_J0152.6+0147_daily_bin152.fits" evtable="EVENTS" scfile=/scratch/kocevski/895732/ft2_4FGL_J0152.6+0147_daily_bin152.fits sctable="SC_DATA" outfile=/scratch/kocevski/895732/ltcube_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.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/895732/ft2_4FGL_J0152.6+0147_daily_bin152.fits
.....................!
real 14.92
user 13.57
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895732/ft1_filtered_4FGL_J0152.6+0147_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/895732/ft2_4FGL_J0152.6+0147_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/895732/ltcube_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.fits outfile=/scratch/kocevski/895732/expmap_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.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/895732/ltcube_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.fits
.....................!
real 192.43
user 186.38
sys 5.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/895732/ft1_filtered_4FGL_J0152.6+0147_daily_bin152.fits scfile=/scratch/kocevski/895732/ft2_4FGL_J0152.6+0147_daily_bin152.fits outfile=/scratch/kocevski/895732/cmap_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.33
user 0.39
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895732/ft1_filtered_4FGL_J0152.6+0147_daily_bin152.fits scfile=/scratch/kocevski/895732/ft2_4FGL_J0152.6+0147_daily_bin152.fits outfile=/scratch/kocevski/895732/cmap_HighResolution_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.34
user 0.39
sys 0.94

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19563E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.445       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0085       1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0664       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88068       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0039       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=   4574.236     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2014 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    43.341        .23457E-05** at limit **
   2  norm          6.0866        2.2893        .61079E-07    .10347E-02
   3  Prefactor     .10001E-03    16.433        .21409E-05** at limit **
   4  Prefactor     .10005E-03    17.110       -.63919E-05** at limit **
   5  Prefactor     7.2328        11.931        .24980E-06    .10991E-03
   6  Prefactor     47.445        64.696        .22758E-06    .23133E-05
   7  norm          1.0093        8.5164        .25908E-05    .42482E-04
   8  Prefactor     72.316        75.375        .34243E-05    .31167E-03
   9  Prefactor     .10000E-03    1.3090        .43174E-07** at limit **
  10  norm          8.3980        17.381        .34495E-06    .81655E-05
  11  Prefactor     .10000E-03    2.2011        .30627E-07** at limit **
  12  norm          3.7598        5.5206        .11187E-05    .78441E-03
  13  Prefactor     3.0636        3.2753        .16077E-06    .18907E-03
  14  norm          4.1191        1.2601        .20193E-07   -.14091E-03
  15  Prefactor     .10000E-03    9.7864        .11761E-07** at limit **
  16  Prefactor     .10001E-03    60.664       -.27350E-05** at limit **
  17  Prefactor     .10000E-03    4.5479        .40821E-07** at limit **
  18  Prefactor     .10000E-03    8.4753        .12785E-07** at limit **
  19  Normalizat    .88041        .21386       -.68824E-06    .56085E-04
  20  Prefactor     1.0042        .17885       -.57635E-06    .63921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 6.08661
  Prefactor  = 0.000100007
  Prefactor  = 0.000100046
  Prefactor  = 7.23282
  Prefactor  = 47.4448
  norm       = 1.00934
  Prefactor  = 72.3157
  Prefactor  = 0.0001
  norm       = 8.39802
  Prefactor  = 0.0001
  norm       = 3.75983
  Prefactor  = 3.06357
  norm       = 4.11914
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.880412
  Prefactor  = 1.00418
 **********
 **   18 **HESSE 
 **********

 FCN=   4574.236     FROM HESSE     STATUS=OK           293 CALLS     2307 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    43.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0866        2.2824        .60081E-04   -1.5214    
   3  Prefactor     .10001E-03    16.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    21.943        .31561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2328        11.930        .14917E-03   -1.5170    
   6  Prefactor     47.445        64.752        .58213E-04   -1.4329    
   7  norm          1.0093        10.794        .42461E-03   -1.5507    
   8  Prefactor     72.316        78.336        .23606E-03   -1.4005    
   9  Prefactor     .10000E-03    1.3105        .75577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3980        17.437        .13828E-03   -1.5128    
  11  Prefactor     .10000E-03    2.2118        .97982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7598        5.6459        .18432E-03   -1.5320    
  13  Prefactor     3.0636        3.2650        .11736E-03   -1.5358    
  14  norm          4.1191        1.2611        .40295E-04   -1.5302    
  15  Prefactor     .10000E-03    9.7953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    61.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5513        .14087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88041        .24769        .27631E-03   -.97152    
  20  Prefactor     1.0042        .20851        .21590E-03   -.92590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19345e-09
Minuit parameter uncertainties:
  1  0.00115145
  2  2.28245
  3  0.000665912
  4  0.00200498
  5  11.9336
  6  64.8485
  7  6.60269
  8  78.4477
  9  3.61444e-06
  10  17.4478
  11  2.37036e-06
  12  5.64674
  13  3.26516
  14  1.2611
  15  3.49127e-06
  16  0.00158339
  17  6.37658e-06
  18  3.0081e-06
  19  0.248013
  20  0.208674
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.614e-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.004e+00  2.087e-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.804e-01  2.480e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895732/likelihoodResults_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.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) = 4574.23964466
delta logL = -0.00335972696848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4574.23628402
delta logL = 9.07346475287e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9552       1.0000          .0000       10.000    
     3 'Normalizat'    .88042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0042       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=   4574.236     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      208 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2513        .90712E-02** at limit **
   2  Index         1.3818        5.6150        .50000        .95467E-06
   3  Normalizat    .88041        .85524E-02    .44651E-01   -.62260E-04
   4  Prefactor     1.0042        .71290E-02    .44376E-01   -.85817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.38183
  Normalizat = 0.880411
  Prefactor  = 1.00418
 **********
 **   18 **HESSE 
 **********

 FCN=   4574.236     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      239 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.163        .93467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3818        5.0590        .50000       -.80905    
   3  Normalizat    .88041        .27922E-01    .27631E-03   -.97152    
   4  Prefactor     1.0042        .23280E-01    .21590E-03   -.92590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.75472e-09
Minuit parameter uncertainties:
  1  1.08719e-05
  2  287.25
  3  0.0279222
  4  0.0232799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895732': 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) = 4574.23627175
delta logL = 1.31831466206e-05

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.087e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.382e+00  2.872e+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.004e+00  2.328e-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.804e-01  2.792e-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/895732/cmap_HighResolution_278726401_278985601_4FGL_J0152.6+0147_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.16e-08', time_completed='2021-08-14 19:40:59.299617', job_id='895732', GAL2='1.00', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1628995259.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.32e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='152' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:40:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 895732: <4FGL_J0152.6+0147_daily_bin152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin152 28.1614 1.7894 278726401 278985601 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 :                                   561.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            924 sec.

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

