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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin529
RA = 28.1614, Dec = 1.7894
tmin = 376444801, tmax = 376704001
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='898358', job_status='RUN', time_executed='2021-08-14 19:39:15.998217', time_epoch_executed='1628995156.0' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898358/ft1_4FGL_J0152.6+0147_daily_bin529.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898358/ft2_4FGL_J0152.6+0147_daily_bin529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898358/ft1_4FGL_J0152.6+0147_daily_bin529.fits outfile=/scratch/kocevski/898358/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin529.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=376444801.0 tmax=376704001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.76
user 4.24
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898358/ft2_4FGL_J0152.6+0147_daily_bin529.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/898358/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin529.fits evtable="EVENTS" outfile="/scratch/kocevski/898358/ft1_filtered_4FGL_J0152.6+0147_daily_bin529.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.20
user 0.35
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898358/ft1_filtered_4FGL_J0152.6+0147_daily_bin529.fits" evtable="EVENTS" scfile=/scratch/kocevski/898358/ft2_4FGL_J0152.6+0147_daily_bin529.fits sctable="SC_DATA" outfile=/scratch/kocevski/898358/ltcube_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.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/898358/ft2_4FGL_J0152.6+0147_daily_bin529.fits
.....................!
real 14.95
user 13.79
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898358/ft1_filtered_4FGL_J0152.6+0147_daily_bin529.fits evtable="EVENTS" scfile=/scratch/kocevski/898358/ft2_4FGL_J0152.6+0147_daily_bin529.fits sctable="SC_DATA" expcube=/scratch/kocevski/898358/ltcube_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.fits outfile=/scratch/kocevski/898358/expmap_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.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/898358/ltcube_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.fits
.....................!
real 192.95
user 185.54
sys 6.27

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/898358/ft1_filtered_4FGL_J0152.6+0147_daily_bin529.fits scfile=/scratch/kocevski/898358/ft2_4FGL_J0152.6+0147_daily_bin529.fits outfile=/scratch/kocevski/898358/cmap_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.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.17
user 0.38
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898358/ft1_filtered_4FGL_J0152.6+0147_daily_bin529.fits scfile=/scratch/kocevski/898358/ft2_4FGL_J0152.6+0147_daily_bin529.fits outfile=/scratch/kocevski/898358/cmap_HighResolution_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.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.22
user 0.40
sys 0.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.355       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9986       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8868       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3137       1.0000         .10000E-03   10000.    
     8 'Prefactor '    355.88       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    36.722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.709       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0329       1.0000         .10000E-03   10000.    
    14 'norm      '    .32755E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    84.812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68791       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1836       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=   5058.161     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2026 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.348        62.285       -.11185E-04    .12977E-05
   2  norm          4.9984        2.1308        .24025E-06   -.70112E-04
   3  Prefactor     39.397        51.438       -.21137E-04   -.76085E-06
   4  Prefactor     .10000E-03    2.9629        .16422E-06** at limit **
   5  Prefactor     2.8862        10.682        .10425E-06   -.15335E-03
   6  Prefactor     .10000E-03    24.061       -.80245E-06** at limit **
   7  norm          2.3138        5.3943       -.56101E-06   -.36904E-03
   8  Prefactor     355.87        160.51       -.52954E-05    .49731E-05
   9  Prefactor     .10000E-03    3.4709        .65462E-07** at limit **
  10  norm          36.721        21.190       -.18203E-06    .12287E-04
  11  Prefactor     .10000E-03    14.227       -.60141E-06** at limit **
  12  norm          15.709        6.9733        .76290E-06    .18023E-04
  13  Prefactor     3.0326        2.4982        .97721E-07    .48220E-04
  14  norm          .10000E-03    .41712       -.86252E-07** at limit **
  15  Prefactor     4.2393        22.234       -.10226E-04   -.43125E-04
  16  Prefactor     84.804        71.663       -.81153E-05    .74531E-05
  17  Prefactor     7.5293        10.745       -.34061E-06   -.28250E-04
  18  Prefactor     .10000E-03    26.126        .14740E-05** at limit **
  19  Normalizat    .68781        .21548        .27651E-05    .23731E-04
  20  Prefactor     1.1838        .17798        .71179E-06    .80856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.3483
  norm       = 4.99843
  Prefactor  = 39.3966
  Prefactor  = 0.0001
  Prefactor  = 2.88623
  Prefactor  = 0.0001
  norm       = 2.3138
  Prefactor  = 355.865
  Prefactor  = 0.0001
  norm       = 36.7215
  Prefactor  = 0.0001
  norm       = 15.7086
  Prefactor  = 3.03265
  norm       = 0.0001
  Prefactor  = 4.23931
  Prefactor  = 84.8036
  Prefactor  = 7.52931
  Prefactor  = 0.0001
  Normalizat = 0.687813
  Prefactor  = 1.18377
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.161     FROM HESSE     STATUS=OK           295 CALLS     2321 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.348        62.309        .72722E-04   -1.4606    
   2  norm          4.9984        2.1319        .63923E-04   -1.5261    
   3  Prefactor     39.397        51.240        .63847E-04   -1.4452    
   4  Prefactor     .10000E-03    2.9745        .11956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8862        10.673        .23919E-03   -1.5368    
   6  Prefactor     .10000E-03    24.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3138        5.3783        .24573E-03   -1.5404    
   8  Prefactor     355.87        160.50        .10796E-03   -1.1912    
   9  Prefactor     .10000E-03    3.5745        .25871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          36.721        21.197        .66136E-04   -1.4495    
  11  Prefactor     .10000E-03    14.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.709        6.9665        .10105E-03   -1.4915    
  13  Prefactor     3.0326        2.4925        .96585E-04   -1.5360    
  14  norm          .10000E-03    4.7635        .88699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2393        22.441        .19553E-03   -1.5296    
  16  Prefactor     84.804        71.555        .21810E-03   -1.3864    
  17  Prefactor     7.5293        10.742        .14615E-03   -1.5159    
  18  Prefactor     .10000E-03    27.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .68781        .24303        .32507E-03   -1.0438    
  20  Prefactor     1.1838        .20248        .21082E-03   -.86832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25746e-10
Minuit parameter uncertainties:
  1  62.4429
  2  2.13195
  3  51.2975
  4  4.94999e-05
  5  10.6801
  6  8.63717e-06
  7  5.37938
  8  160.706
  9  1.21591e-05
  10  21.2015
  11  0.000129662
  12  6.96688
  13  2.4926
  14  4.37471e-05
  15  19.5184
  16  71.6279
  17  10.7452
  18  3.77285e-05
  19  0.243413
  20  0.202613
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.184e+00  2.026e-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:  6.878e-01  2.434e-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: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898358/likelihoodResults_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.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) = 5058.16206292
delta logL = -0.00133178187025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5058.16073113
delta logL = 1.10803739517e-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.9735       1.0000          .0000       10.000    
     3 'Normalizat'    .68782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1838       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=   5058.161     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.029        .90712E-02** at limit **
   2  Index         1.9637        5.5093        .50000        .20612E-04
   3  Normalizat    .68781        .10931E-01    .73436E-01    .43345E-04
   4  Prefactor     1.1838        .91215E-02    .35026E-01    .32709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96366
  Normalizat = 0.687814
  Prefactor  = 1.18377
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.161     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7926        .25996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9637        5.9125        .50000       -.65262    
   3  Normalizat    .68781        .23432        .32507E-03   -1.0438    
   4  Prefactor     1.1838        .19611        .21082E-03   -.86832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19424e-10
Minuit parameter uncertainties:
  1  1.46927e-05
  2  4.58493
  3  0.234665
  4  0.196235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898358': 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): 0
logL (Free Index) = 5058.16073103
delta logL = 1.1099200492e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.469e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.964e+00  4.585e+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.184e+00  1.962e-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:  6.878e-01  2.347e-01  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/898358/cmap_HighResolution_376444801_376704001_4FGL_J0152.6+0147_daily_bin529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-08-14 19:48:38.959963', job_id='898358', GAL2='1.18', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1628995718.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='529' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:48:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 898358: <4FGL_J0152.6+0147_daily_bin529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin529 28.1614 1.7894 376444801 376704001 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 :                                   570.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            782 sec.

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

