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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin375
RA = 28.1614, Dec = 1.7894
tmin = 336528001, tmax = 336787201
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='896968', job_status='RUN', time_executed='2021-08-14 19:37:38.339982', time_epoch_executed='1628995058.34' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896968

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896968/ft1_4FGL_J0152.6+0147_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896968/ft2_4FGL_J0152.6+0147_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896968/ft1_4FGL_J0152.6+0147_daily_bin375.fits outfile=/scratch/kocevski/896968/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin375.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=336528001.0 tmax=336787201.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 7.70
user 5.58
sys 2.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896968/ft2_4FGL_J0152.6+0147_daily_bin375.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/896968/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/896968/ft1_filtered_4FGL_J0152.6+0147_daily_bin375.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 2.38
user 0.33
sys 2.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896968/ft1_filtered_4FGL_J0152.6+0147_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/896968/ft2_4FGL_J0152.6+0147_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/896968/ltcube_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.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/896968/ft2_4FGL_J0152.6+0147_daily_bin375.fits
.....................!
real 13.87
user 11.44
sys 2.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896968/ft1_filtered_4FGL_J0152.6+0147_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/896968/ft2_4FGL_J0152.6+0147_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/896968/ltcube_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.fits outfile=/scratch/kocevski/896968/expmap_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.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/896968/ltcube_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.fits
.....................!
real 192.63
user 184.87
sys 7.34

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/896968/ft1_filtered_4FGL_J0152.6+0147_daily_bin375.fits scfile=/scratch/kocevski/896968/ft2_4FGL_J0152.6+0147_daily_bin375.fits outfile=/scratch/kocevski/896968/cmap_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.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 2.36
user 0.37
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896968/ft1_filtered_4FGL_J0152.6+0147_daily_bin375.fits scfile=/scratch/kocevski/896968/ft2_4FGL_J0152.6+0147_daily_bin375.fits outfile=/scratch/kocevski/896968/cmap_HighResolution_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.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 2.53
user 0.38
sys 1.95

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8748       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9664       1.0000         .10000E-03   10000.    
    12 'norm      '    17.843       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7043       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11153E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1138       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98603       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86201       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=   4942.423     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     1743 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    68.049        .36808E-04** at limit **
   2  norm          7.8737        2.4452        .98004E-07   -.30988E-03
   3  Prefactor     4.3248        102.09       -.42786E-04    .46628E-04
   4  Prefactor     .10001E-03    15.151        .10402E-05** at limit **
   5  Prefactor     .10000E-03    3.9744        .51197E-07** at limit **
   6  Prefactor     .10000E-03    43.170       -.92667E-05** at limit **
   7  norm          .10000E-03    1.6859        .99593E-07** at limit **
   8  Prefactor     .10000E-03    18.145        .17265E-05** at limit **
   9  Prefactor     .10000E-03    5.4706        .15961E-06** at limit **
  10  norm          .10000E-03    7.9342       -.17525E-06** at limit **
  11  Prefactor     6.9665        6.5304       -.23401E-06   -.40729E-04
  12  norm          17.844        6.7900       -.77430E-07    .48954E-04
  13  Prefactor     1.7044        1.7627       -.69982E-07    .47908E-04
  14  norm          .10000E-03    .29397       -.77325E-07** at limit **
  15  Prefactor     .10000E-03    5.9787       -.22997E-06** at limit **
  16  Prefactor     .10001E-03    86.654       -.30386E-04** at limit **
  17  Prefactor     1.1131        12.100       -.46572E-05   -.71401E-03
  18  Prefactor     .10000E-03    5.3839       -.12537E-06** at limit **
  19  Normalizat    .98602        .17943        .13367E-05    .74565E-04
  20  Prefactor     .86201        .15025        .29125E-06    .14279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  norm       = 7.87369
  Prefactor  = 4.32483
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.96647
  norm       = 17.8439
  Prefactor  = 1.70439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 1.11314
  Prefactor  = 0.0001
  Normalizat = 0.986024
  Prefactor  = 0.862006
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.423     FROM HESSE     STATUS=OK           287 CALLS     2030 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    66.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8737        2.4436        .58738E-04   -1.5147    
   3  Prefactor     4.3248        101.32        .19331E-03   -1.5292    
   4  Prefactor     .10001E-03    15.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9991        .13687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6870        .89145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5914        .16046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.9474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9665        6.5345        .15200E-03   -1.5180    
  12  norm          17.844        6.7885        .94816E-04   -1.4863    
  13  Prefactor     1.7044        1.7614        .91665E-04   -1.5447    
  14  norm          .10000E-03    .37911        .74001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9813        .16789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    86.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1131        13.120        .44667E-03   -1.5497    
  18  Prefactor     .10000E-03    5.3861        .15932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98602        .20539        .24424E-03   -.93500    
  20  Prefactor     .86201        .17261        .21717E-03   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96638e-09
Minuit parameter uncertainties:
  1  0.00192822
  2  2.44359
  3  41.9464
  4  0.000888786
  5  4.3552e-06
  6  0.000367077
  7  1.5601e-06
  8  4.82904e-05
  9  2.16843e-05
  10  1.20641e-06
  11  6.5352
  12  6.78881
  13  1.76147
  14  1.97775e-06
  15  1.51048e-06
  16  0.0019457
  17  7.64491
  18  1.98986e-07
  19  0.205559
  20  0.172719
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.168e-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:  8.620e-01  1.727e-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.860e-01  2.056e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896968/likelihoodResults_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.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) = 4942.4235017
delta logL = -0.00085263256824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4942.42264889
delta logL = 1.76136381924e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0073       1.0000          .0000       10.000    
     3 'Normalizat'    .98603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86199       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4942.423     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      246 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    7.6855        .32702E-02** at limit **
   2  Index         2.0629        8.6077        .50000       -.32308E-04
   3  Normalizat    .98603        .53409E-02    .24424E-03    .12084E-03
   4  Prefactor     .86200        .44938E-02    .21717E-03    .89359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101509
  Index      = 2.06286
  Normalizat = 0.986025
  Prefactor  = 0.862005
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.423     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10151E-03    108.76        .65405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0629        8.9620        .50000       -.62788    
   3  Normalizat    .98603        .20456E-01    .97695E-05   -.93500    
   4  Prefactor     .86200        .17201E-01    .86869E-05   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88078e-08
Minuit parameter uncertainties:
  1  0.0256725
  2  245.052
  3  0.0204561
  4  0.0172014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896968': 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) = 4942.42264855
delta logL = 5.11048710905e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.015e-04  2.567e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.063e+00  2.451e+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:  8.620e-01  1.720e-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.860e-01  2.046e-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/896968/cmap_HighResolution_336528001_336787201_4FGL_J0152.6+0147_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-08-14 19:47:06.551185', job_id='896968', GAL2='0.86', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1628995626.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='375' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:47:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 896968: <4FGL_J0152.6+0147_daily_bin375> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin375> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:36 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:33:06 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:33:06 2021
Terminated at Sat Aug 14 19:47:07 2021
Results reported at Sat Aug 14 19:47:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin375 28.1614 1.7894 336528001 336787201 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 :                                   592.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            991 sec.

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

