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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin729
RA = 28.1614, Dec = 1.7894
tmin = 428284801, tmax = 428544001
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='898630', job_status='RUN', time_executed='2021-08-14 19:42:33.256029', time_epoch_executed='1628995353.26' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898630/ft1_4FGL_J0152.6+0147_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898630/ft2_4FGL_J0152.6+0147_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898630/ft1_4FGL_J0152.6+0147_daily_bin729.fits outfile=/scratch/kocevski/898630/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin729.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=428284801.0 tmax=428544001.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.54
user 4.73
sys 0.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898630/ft2_4FGL_J0152.6+0147_daily_bin729.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/898630/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin729.fits evtable="EVENTS" outfile="/scratch/kocevski/898630/ft1_filtered_4FGL_J0152.6+0147_daily_bin729.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 0.98
user 0.29
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898630/ft1_filtered_4FGL_J0152.6+0147_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/898630/ft2_4FGL_J0152.6+0147_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/898630/ltcube_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.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/898630/ft2_4FGL_J0152.6+0147_daily_bin729.fits
.....................!
real 12.21
user 11.26
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898630/ft1_filtered_4FGL_J0152.6+0147_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/898630/ft2_4FGL_J0152.6+0147_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/898630/ltcube_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.fits outfile=/scratch/kocevski/898630/expmap_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.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/898630/ltcube_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.fits
.....................!
real 157.39
user 152.24
sys 4.70

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/898630/ft1_filtered_4FGL_J0152.6+0147_daily_bin729.fits scfile=/scratch/kocevski/898630/ft2_4FGL_J0152.6+0147_daily_bin729.fits outfile=/scratch/kocevski/898630/cmap_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.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 0.98
user 0.32
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898630/ft1_filtered_4FGL_J0152.6+0147_daily_bin729.fits scfile=/scratch/kocevski/898630/ft2_4FGL_J0152.6+0147_daily_bin729.fits outfile=/scratch/kocevski/898630/cmap_HighResolution_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.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 0.99
user 0.32
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.5299       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .97201E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.072       1.0000         .10000E-03   10000.    
     7 'norm      '    22.489       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.601       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94408       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0380       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=   4770.343     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1997 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.679       -.82083E-06** at limit **
   2  norm          5.5309        2.3511        .27422E-09    .83759E-04
   3  Prefactor     .10000E-03    15.401       -.36880E-07** at limit **
   4  Prefactor     .10006E-03    5.1367       -.16705E-05** at limit **
   5  Prefactor     .10000E-03    3.6282        .51541E-07** at limit **
   6  Prefactor     53.052        61.637        .43339E-05    .12785E-03
   7  norm          22.489        9.2412        .83087E-07    .15873E-04
   8  Prefactor     .10000E-03    49.711       -.26880E-05** at limit **
   9  Prefactor     .10000E-03    3.1492        .15419E-06** at limit **
  10  norm          .10000E-03    6.7508        .50886E-07** at limit **
  11  Prefactor     .10000E-03    3.1698        .19537E-07** at limit **
  12  norm          2.8712        5.3803        .33730E-05   -.89272E-04
  13  Prefactor     .10000E-03    .98872       -.80142E-07** at limit **
  14  norm          1.6431        .92187        .18986E-07   -.24081E-03
  15  Prefactor     .10000E-03    54.783        .11285E-05** at limit **
  16  Prefactor     34.673        72.122        .10263E-05    .93064E-05
  17  Prefactor     .10000E-03    3.8866        .34224E-07** at limit **
  18  Prefactor     19.584        30.148        .26809E-05    .81610E-04
  19  Normalizat    .94414        .20250       -.23432E-06   -.76587E-04
  20  Prefactor     1.0379        .17514       -.13824E-05   -.10666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.53086
  Prefactor  = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 53.0518
  norm       = 22.4889
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87116
  Prefactor  = 0.0001
  norm       = 1.64309
  Prefactor  = 0.0001
  Prefactor  = 34.673
  Prefactor  = 0.0001
  Prefactor  = 19.5842
  Normalizat = 0.944142
  Prefactor  = 1.03793
 **********
 **   18 **HESSE 
 **********

 FCN=   4770.343     FROM HESSE     STATUS=OK           289 CALLS     2286 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5309        2.3359        .66301E-04   -1.5238    
   3  Prefactor     .10000E-03    15.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    34.721        .27937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6368        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.052        62.173        .55056E-04   -1.4250    
   7  norm          22.489        9.2447        .84464E-04   -1.4759    
   8  Prefactor     .10000E-03    49.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1752        .11970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.7551        .17528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1791        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8712        5.4431        .10512E-02   -1.5369    
  13  Prefactor     .10000E-03    .99949        .67051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6431        .91786        .47626E-04   -1.5452    
  15  Prefactor     .10000E-03    55.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.673        72.252        .68049E-04   -1.4530    
  17  Prefactor     .10000E-03    3.8899        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.584        30.111        .90467E-04   -1.4823    
  19  Normalizat    .94414        .23064        .27071E-03   -.94926    
  20  Prefactor     1.0379        .19907        .21839E-03   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03209e-09
Minuit parameter uncertainties:
  1  0.000138142
  2  2.33592
  3  3.66517e-06
  4  0.00297702
  5  5.79239e-06
  6  62.2493
  7  9.24526
  8  0.000414743
  9  1.14394e-05
  10  7.44021e-06
  11  5.72749e-06
  12  5.444
  13  5.0211e-06
  14  0.917868
  15  0.000329919
  16  72.4349
  17  4.31146e-06
  18  30.1342
  19  0.230878
  20  0.199207
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.144e-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.038e+00  1.992e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.441e-01  2.309e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898630/likelihoodResults_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4770.34417479
delta logL = -0.00149792829416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4770.34267674
delta logL = 1.26349732454e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9997       1.0000          .0000       10.000    
     3 'Normalizat'    .94416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0379       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=   4770.343     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      195 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.978        .90712E-02** at limit **
   2  Index         2.0167        5.8220        .50000       -.47189E-04
   3  Normalizat    .94414        .11687E-01    .45463E-01    .34268E-05
   4  Prefactor     1.0379        .98895E-02    .40674E-01    .17431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01674
  Normalizat = 0.944143
  Prefactor  = 1.03793
 **********
 **   18 **HESSE 
 **********

 FCN=   4770.343     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      228 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.090        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0167        7.3171        .50000       -.63932    
   3  Normalizat    .94414        .28490E-01    .27071E-03   -.94926    
   4  Prefactor     1.0379        .24114E-01    .21839E-03   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.21195e-08
Minuit parameter uncertainties:
  1  0.000117733
  2  21.2959
  3  0.0284904
  4  0.0241144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898630': 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) = 4770.34267651
delta logL = 3.52307324647e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.038e+00  2.411e-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:  9.441e-01  2.849e-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/898630/cmap_HighResolution_428284801_428544001_4FGL_J0152.6+0147_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-08-14 19:50:18.035930', job_id='898630', GAL2='1.04', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1628995818.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='729' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:50:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 898630: <4FGL_J0152.6+0147_daily_bin729> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin729> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:57 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:39:20 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:39:20 2021
Terminated at Sat Aug 14 19:50:18 2021
Results reported at Sat Aug 14 19:50:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin729 28.1614 1.7894 428284801 428544001 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 :                                   470.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            861 sec.

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

