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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin762
RA = 28.1614, Dec = 1.7894
tmin = 436838401, tmax = 437097601
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='899777', job_status='RUN', time_executed='2021-08-14 19:44:06.332500', time_epoch_executed='1628995446.33' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899777/ft1_4FGL_J0152.6+0147_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899777/ft2_4FGL_J0152.6+0147_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899777/ft1_4FGL_J0152.6+0147_daily_bin762.fits outfile=/scratch/kocevski/899777/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin762.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=436838401.0 tmax=437097601.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 9.75
user 4.69
sys 5.02

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899777/ft2_4FGL_J0152.6+0147_daily_bin762.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/899777/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/899777/ft1_filtered_4FGL_J0152.6+0147_daily_bin762.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.32
user 0.34
sys 4.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899777/ft1_filtered_4FGL_J0152.6+0147_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/899777/ft2_4FGL_J0152.6+0147_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/899777/ltcube_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.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/899777/ft2_4FGL_J0152.6+0147_daily_bin762.fits
.....................!
real 18.50
user 12.71
sys 5.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899777/ft1_filtered_4FGL_J0152.6+0147_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/899777/ft2_4FGL_J0152.6+0147_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/899777/ltcube_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.fits outfile=/scratch/kocevski/899777/expmap_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.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/899777/ltcube_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.fits
.....................!
real 197.57
user 185.77
sys 11.38

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/899777/ft1_filtered_4FGL_J0152.6+0147_daily_bin762.fits scfile=/scratch/kocevski/899777/ft2_4FGL_J0152.6+0147_daily_bin762.fits outfile=/scratch/kocevski/899777/cmap_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.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.29
user 0.39
sys 4.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899777/ft1_filtered_4FGL_J0152.6+0147_daily_bin762.fits scfile=/scratch/kocevski/899777/ft2_4FGL_J0152.6+0147_daily_bin762.fits outfile=/scratch/kocevski/899777/cmap_HighResolution_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.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.24
user 0.38
sys 4.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.737       1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83040       1.0000         .10000E-03   10000.    
    10 'norm      '    8.6695       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4191       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4696       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11634E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16189E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .58713       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2447       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=   4311.116     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2373 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.586        .93819E-06** at limit **
   2  norm          3.8155        2.3169       -.34789E-06    .13168E-03
   3  Prefactor     .10000E-03    16.267       -.19682E-07** at limit **
   4  Prefactor     .10000E-03    2.8298       -.21946E-07** at limit **
   5  Prefactor     .10015E-03    22.059       -.30235E-05** at limit **
   6  Prefactor     82.732        70.893       -.13590E-05    .17147E-04
   7  norm          .10000E-03    3.6791       -.12803E-06** at limit **
   8  Prefactor     .10000E-03    43.436        .20189E-05** at limit **
   9  Prefactor     .83460        4.6036       -.10551E-05    .68181E-04
  10  norm          8.6676        27.350       -.11650E-05    .21730E-04
  11  Prefactor     4.4191        9.9646       -.27788E-05    .62834E-04
  12  norm          6.7357        6.0421        .43588E-06   -.22119E-04
  13  Prefactor     2.4691        3.3031        .89417E-06    .31518E-03
  14  norm          .10000E-03    .29620       -.12755E-06** at limit **
  15  Prefactor     .10021E-03    150.89        .60808E-05** at limit **
  16  Prefactor     .10000E-03    415.09        .94538E-05** at limit **
  17  Prefactor     .10000E-03    4.2021       -.62574E-07** at limit **
  18  Prefactor     .10000E-03    32.170        .16410E-06** at limit **
  19  Normalizat    .58710        .21332        .15182E-05    .19192E-03
  20  Prefactor     1.2447        .18904        .30619E-05    .13426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.81555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010015
  Prefactor  = 82.7318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.834599
  norm       = 8.66762
  Prefactor  = 4.41913
  norm       = 6.73566
  Prefactor  = 2.46908
  norm       = 0.0001
  Prefactor  = 0.000100206
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.587101
  Prefactor  = 1.24474
 **********
 **   18 **HESSE 
 **********

 FCN=   4311.116     FROM HESSE     STATUS=OK           295 CALLS     2668 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8155        2.3135        .74719E-04   -1.5317    
   3  Prefactor     .10000E-03    16.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8345        .10785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10015E-03    54.936        .38961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     82.732        70.902        .44159E-04   -1.3886    
   7  norm          .10000E-03    3.6880        .12301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83460        13.723        .26179E-02   -1.5525    
  10  norm          8.6676        27.319        .13614E-03   -1.5119    
  11  Prefactor     4.4191        9.9051        .19157E-03   -1.5288    
  12  norm          6.7357        6.0206        .14288E-03   -1.5189    
  13  Prefactor     2.4691        3.2006        .12488E-03   -1.5394    
  14  norm          .10000E-03    .40116        .69816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10021E-03    193.17        .65022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    413.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2062        .13146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .58710        .24149        .32044E-03   -1.0853    
  20  Prefactor     1.2447        .21271        .19284E-03   -.84966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04559e-09
Minuit parameter uncertainties:
  1  0.000118851
  2  2.31357
  3  9.31186e-06
  4  3.84858e-06
  5  0.00574004
  6  70.9745
  7  9.21916e-06
  8  0.000215373
  9  6.76998
  10  27.3588
  11  9.90875
  12  6.02113
  13  3.20085
  14  6.19796e-06
  15  0.0126578
  16  0.0020611
  17  5.68742e-06
  18  0.000133418
  19  0.241921
  20  0.212859
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  8.346e-01  6.770e+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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.245e+00  2.129e-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:  5.871e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899777/likelihoodResults_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.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) = 4310.83507208
delta logL = 0.280701810047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4310.80767206
delta logL = 0.308101831898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67149       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9627       1.0000          .0000       10.000    
     3 'Normalizat'    .54381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2619       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=   4310.808     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67023        20.746        .11952E-01    .88627E-03
   2  Index         2.9634        3.0033        .93610E-01    .13531E-03
   3  Normalizat    .54387        .46898E-01    .75007E-01    .23990E-04
   4  Prefactor     1.2618        .39889E-01    .33309E-01   -.15948E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.670232
  Index      = 2.9634
  Normalizat = 0.543871
  Prefactor  = 1.26181
 **********
 **   18 **HESSE 
 **********

 FCN=   4310.808     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67023        59.377        .70936E-04   -1.5544    
   2  Index         2.9634        6.2804        .55860E-02   -.41952    
   3  Normalizat    .54387        .24491        .33212E-03   -1.1042    
   4  Prefactor     1.2618        .21060        .19162E-03   -.84450    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1295e-09
Minuit parameter uncertainties:
  1  12.6289
  2  7.10249
  3  0.245402
  4  0.210745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899777': 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) = 4310.80767181
delta logL = 0.308102079382

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.262e+00  2.107e-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:  5.439e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/899777/cmap_HighResolution_436838401_437097601_4FGL_J0152.6+0147_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-08-14 19:54:13.549058', job_id='899777', GAL2='1.26', fit_tolerance='1e-08', EG2='0.54', EG='0.59', time_epoch_completed='1628996053.55', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.08e-01', ts2='0.67', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='762' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:54:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 899777: <4FGL_J0152.6+0147_daily_bin762> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin762 28.1614 1.7894 436838401 437097601 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 :                                   679.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            826 sec.

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

