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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin244
RA = 28.1614, Dec = 1.7894
tmin = 302572801, tmax = 302832001
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='896781', job_status='RUN', time_executed='2021-08-14 19:34:33.932554', time_epoch_executed='1628994873.93' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896781/ft1_4FGL_J0152.6+0147_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896781/ft2_4FGL_J0152.6+0147_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896781/ft1_4FGL_J0152.6+0147_daily_bin244.fits outfile=/scratch/kocevski/896781/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin244.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=302572801.0 tmax=302832001.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 6.80
user 3.28
sys 3.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896781/ft2_4FGL_J0152.6+0147_daily_bin244.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/896781/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin244.fits evtable="EVENTS" outfile="/scratch/kocevski/896781/ft1_filtered_4FGL_J0152.6+0147_daily_bin244.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 3.76
user 0.32
sys 3.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896781/ft1_filtered_4FGL_J0152.6+0147_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/896781/ft2_4FGL_J0152.6+0147_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/896781/ltcube_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.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/896781/ft2_4FGL_J0152.6+0147_daily_bin244.fits
.....................!
real 16.95
user 12.85
sys 3.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896781/ft1_filtered_4FGL_J0152.6+0147_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/896781/ft2_4FGL_J0152.6+0147_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/896781/ltcube_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.fits outfile=/scratch/kocevski/896781/expmap_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.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/896781/ltcube_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.fits
.....................!
real 196.87
user 186.30
sys 9.90

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/896781/ft1_filtered_4FGL_J0152.6+0147_daily_bin244.fits scfile=/scratch/kocevski/896781/ft2_4FGL_J0152.6+0147_daily_bin244.fits outfile=/scratch/kocevski/896781/cmap_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.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 3.74
user 0.36
sys 3.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896781/ft1_filtered_4FGL_J0152.6+0147_daily_bin244.fits scfile=/scratch/kocevski/896781/ft2_4FGL_J0152.6+0147_daily_bin244.fits outfile=/scratch/kocevski/896781/cmap_HighResolution_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.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 3.77
user 0.38
sys 3.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.192       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .83769       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.213       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9811       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.232       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85302       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88783       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=   4514.466     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2032 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.129        112.26        .85738E-05   -.22867E-04
   2  norm          4.5373        2.1370       -.21302E-06    .57074E-04
   3  Prefactor     .10000E-03    49.453        .46281E-06** at limit **
   4  Prefactor     .83181        5.2239        .22496E-05   -.32026E-03
   5  Prefactor     .10000E-03    4.5582        .42188E-07** at limit **
   6  Prefactor     82.223        45.520       -.11417E-05   -.51354E-05
   7  norm          1.9813        5.4928        .56590E-05    .15561E-03
   8  Prefactor     .10000E-03    49.508        .38453E-06** at limit **
   9  Prefactor     .10000E-03    3.4026        .38796E-07** at limit **
  10  norm          .10000E-03    11.692        .21494E-05** at limit **
  11  Prefactor     .10000E-03    6.4239        .30149E-07** at limit **
  12  norm          13.261        5.9083        .11372E-06   -.65824E-05
  13  Prefactor     .10000E-03    1.0681        .38777E-07** at limit **
  14  norm          .10000E-03    .31707        .22084E-07** at limit **
  15  Prefactor     .10000E-03    11.168       -.18590E-05** at limit **
  16  Prefactor     91.083        66.927       -.38290E-06    .12158E-04
  17  Prefactor     .10000E-03    20.275       -.50252E-06** at limit **
  18  Prefactor     20.229        21.117        .52698E-06    .34181E-04
  19  Normalizat    .85287        .18418       -.74405E-06   -.43987E-04
  20  Prefactor     .88790        .14996       -.25674E-06   -.93765E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.1291
  norm       = 4.53731
  Prefactor  = 0.0001
  Prefactor  = 0.831814
  Prefactor  = 0.0001
  Prefactor  = 82.2233
  norm       = 1.98129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2615
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.0827
  Prefactor  = 0.0001
  Prefactor  = 20.2291
  Normalizat = 0.852871
  Prefactor  = 0.887901
 **********
 **   18 **HESSE 
 **********

 FCN=   4514.466     FROM HESSE     STATUS=OK           289 CALLS     2321 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.129        112.45        .22564E-03   -1.3927    
   2  norm          4.5373        2.1359        .58919E-04   -1.5282    
   3  Prefactor     .10000E-03    49.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83181        15.029        .27252E-02   -1.5526    
   5  Prefactor     .10000E-03    4.5760        .14010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     82.223        45.541        .22149E-03   -1.3892    
   7  norm          1.9813        5.5497        .12926E-02   -1.5426    
   8  Prefactor     .10000E-03    49.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4296        .12099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5356        .16620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.261        5.9137        .10477E-03   -1.4979    
  13  Prefactor     .10000E-03    1.0952        .13549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .33139        .73789E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     91.083        66.904        .21053E-03   -1.3796    
  17  Prefactor     .10000E-03    20.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.229        21.143        .89047E-04   -1.4808    
  19  Normalizat    .85287        .21106        .25384E-03   -.98137    
  20  Prefactor     .88790        .17233        .20430E-03   -.96565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93554e-10
Minuit parameter uncertainties:
  1  112.753
  2  2.13592
  3  3.87038e-05
  4  7.07313
  5  1.25559e-06
  6  45.5599
  7  5.55114
  8  1.05217e-05
  9  4.5659e-06
  10  1.14038e-05
  11  7.32368e-07
  12  5.91398
  13  2.34559e-06
  14  7.74921e-07
  15  1.12917e-05
  16  66.9599
  17  4.02883e-05
  18  21.1511
  19  0.211264
  20  0.172437
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.879e-01  1.724e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  8.529e-01  2.113e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896781/likelihoodResults_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.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) = 4514.46724437
delta logL = -0.00138881426938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4514.46585561
delta logL = -5.10017343913e-08

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 'Index     '    1.9867       1.0000          .0000       10.000    
     3 'Normalizat'    .85287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88793       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=   4514.466     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      250 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14020E-01    .14470E-01** at limit **
   2  Index         3.2119        1.1944        .50000        .67297E-06
   3  Normalizat    .85287        .81829E-03    .25384E-03    .21783E-02
   4  Prefactor     .88790        .67476E-03    .20430E-03    .18066E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.21194
  Normalizat = 0.852871
  Prefactor  = 0.887902
 **********
 **   18 **HESSE 
 **********

 FCN=   4514.466     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1054        .91081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2119        6.5957        .50000       -.36571    
   3  Normalizat    .85287        .35275E-02    .50768E-04   -.98137    
   4  Prefactor     .88790        .29088E-02    .40860E-04   -.96565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73485e-11
Minuit parameter uncertainties:
  1  3.53932e-05
  2  5.20407
  3  0.00352751
  4  0.00290879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896781': 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) = 4514.46585336
delta logL = 2.191585736e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.539e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.212e+00  5.204e+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:  8.879e-01  2.909e-03  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  8.529e-01  3.528e-03  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/896781/cmap_HighResolution_302572801_302832001_4FGL_J0152.6+0147_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-08-14 19:44:11.691673', job_id='896781', GAL2='0.89', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1628995451.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='244' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:44:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 896781: <4FGL_J0152.6+0147_daily_bin244> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin244> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:22 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:30:51 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:30:51 2021
Terminated at Sat Aug 14 19:44:12 2021
Results reported at Sat Aug 14 19:44:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin244 28.1614 1.7894 302572801 302832001 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            830 sec.

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

