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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin541
RA = 28.1614, Dec = 1.7894
tmin = 379555201, tmax = 379814401
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='898376', job_status='RUN', time_executed='2021-08-14 19:39:43.614123', time_epoch_executed='1628995183.61' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898376/ft1_4FGL_J0152.6+0147_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898376/ft2_4FGL_J0152.6+0147_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898376/ft1_4FGL_J0152.6+0147_daily_bin541.fits outfile=/scratch/kocevski/898376/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin541.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=379555201.0 tmax=379814401.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.22
user 3.32
sys 0.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898376/ft2_4FGL_J0152.6+0147_daily_bin541.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/898376/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin541.fits evtable="EVENTS" outfile="/scratch/kocevski/898376/ft1_filtered_4FGL_J0152.6+0147_daily_bin541.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.33
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898376/ft1_filtered_4FGL_J0152.6+0147_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/898376/ft2_4FGL_J0152.6+0147_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/898376/ltcube_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.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/898376/ft2_4FGL_J0152.6+0147_daily_bin541.fits
.....................!
real 13.16
user 11.87
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898376/ft1_filtered_4FGL_J0152.6+0147_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/898376/ft2_4FGL_J0152.6+0147_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/898376/ltcube_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.fits outfile=/scratch/kocevski/898376/expmap_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.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/898376/ltcube_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.fits
.....................!
real 192.87
user 186.06
sys 6.17

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/898376/ft1_filtered_4FGL_J0152.6+0147_daily_bin541.fits scfile=/scratch/kocevski/898376/ft2_4FGL_J0152.6+0147_daily_bin541.fits outfile=/scratch/kocevski/898376/cmap_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.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.21
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898376/ft1_filtered_4FGL_J0152.6+0147_daily_bin541.fits scfile=/scratch/kocevski/898376/ft2_4FGL_J0152.6+0147_daily_bin541.fits outfile=/scratch/kocevski/898376/cmap_HighResolution_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.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.33
user 0.37
sys 0.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9804       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   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      '    10.857       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    29.782       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.303       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6350       1.0000         .10000E-03   10000.    
    14 'norm      '    .32155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14990E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2250       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70191       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=   4772.951     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1760 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9814        128.55        .35483E-02   -.15578E-03
   2  norm          3.7129        1.9633        .52397E-02    .12323E-03
   3  Prefactor     .10000E-03    16.566        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.4693        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.0633        .90712E-02** at limit **
   6  Prefactor     .10000E-03    28.883        .90712E-02** at limit **
   7  norm          10.858        8.2055        .30397E-02   -.35208E-03
   8  Prefactor     .10007E-03    37.468        .90712E-02** at limit **
   9  Prefactor     .10000E-03    2.9792        .90712E-02** at limit **
  10  norm          29.780        18.058        .18354E-02   -.38141E-03
  11  Prefactor     .10000E-03    4.4278        .90712E-02** at limit **
  12  norm          11.300        5.9836        .29791E-02   -.32354E-02
  13  Prefactor     1.6330        2.3008        .82650E-02    .48806E-03
  14  norm          .22190E-03    .44493        .37531E-01** at limit **
  15  Prefactor     .10006E-03    38.455        .90712E-02** at limit **
  16  Prefactor     .10000E-03    139.12        .90712E-02** at limit **
  17  Prefactor     .10000E-03    5.2726        .90712E-02** at limit **
  18  Prefactor     .10000E-03    8.5524        .90712E-02** at limit **
  19  Normalizat    1.2250        .19020        .52596E-01    .29489E-05
  20  Prefactor     .70180        .15072        .42427E-01    .13033E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.98137
  norm       = 3.71287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.858
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  norm       = 29.7798
  Prefactor  = 0.0001
  norm       = 11.3005
  Prefactor  = 1.63302
  norm       = 0.000221902
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22502
  Prefactor  = 0.701798
 **********
 **   18 **HESSE 
 **********

 FCN=   4772.951     FROM HESSE     STATUS=OK           291 CALLS     2051 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9814        128.48        .14193E-03   -1.5143    
   2  norm          3.7129        1.9617        .65536E-04   -1.5323    
   3  Prefactor     .10000E-03    16.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5372        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0671        .11809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.858        8.2091        .12159E-03   -1.5049    
   8  Prefactor     .10007E-03    37.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0048        .11642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.780        18.069        .73416E-04   -1.4616    
  11  Prefactor     .10000E-03    4.4713        .14192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.300        5.9840        .11717E-03   -1.5036    
  13  Prefactor     1.6330        2.2732        .11830E-03   -1.5452    
  14  norm          .22190E-03    1.9093        .14750E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    38.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    139.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2771        .15494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2250        .21939        .23254E-03   -.85833    
  20  Prefactor     .70180        .17300        .23586E-03   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6351e-09
Minuit parameter uncertainties:
  1  64.2077
  2  1.96169
  3  5.04089e-06
  4  5.99537e-06
  5  8.81263e-08
  6  0.000181932
  7  8.20996
  8  0.00321943
  9  7.57191e-08
  10  18.072
  11  7.25227e-07
  12  5.9843
  13  2.27333
  14  0.0305132
  15  0.00314265
  16  0.00048672
  17  4.41426e-06
  18  4.08395e-06
  19  0.21956
  20  0.173134
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  7.572e-08  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.018e-01  1.731e-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.225e+00  2.196e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898376/likelihoodResults_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.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) = 4772.95268797
delta logL = -0.00158078891218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4772.95110721
delta logL = -2.41871020989e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9978       1.0000          .0000       10.000    
     3 'Normalizat'    1.2250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70181       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=   4772.951     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.663        .90712E-02** at limit **
   2  Index         2.0127        6.7806        .50000       -.42228E-04
   3  Normalizat    1.2250        .13241E-01    .52596E-01   -.84727E-04
   4  Prefactor     .70180        .10507E-01    .42425E-01    .30848E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01265
  Normalizat = 1.22502
  Prefactor  = 0.701799
 **********
 **   18 **HESSE 
 **********

 FCN=   4772.951     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      234 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.13        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0127        6.1183        .50000       -.64034    
   3  Normalizat    1.2250        .30181E-01    .23254E-03   -.85833    
   4  Prefactor     .70180        .23945E-01    .23586E-03   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.34327e-08
Minuit parameter uncertainties:
  1  0.000270559
  2  23.2291
  3  0.0301816
  4  0.0239458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898376': 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) = 4772.9511069
delta logL = 2.8336125979e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.706e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.013e+00  2.323e+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:  7.018e-01  2.395e-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:  1.225e+00  3.018e-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/898376/cmap_HighResolution_379555201_379814401_4FGL_J0152.6+0147_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-08-14 19:48:37.574360', job_id='898376', GAL2='0.70', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1628995717.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='541' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:48:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 898376: <4FGL_J0152.6+0147_daily_bin541> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin541 28.1614 1.7894 379555201 379814401 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            780 sec.

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

