/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 201 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin124
RA = 28.1614, Dec = 1.7894
tmin = 271468801, tmax = 271728001
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='895691', job_status='RUN', time_executed='2021-08-14 19:31:39.939964', time_epoch_executed='1628994699.94' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895691

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895691/ft1_4FGL_J0152.6+0147_daily_bin124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895691/ft2_4FGL_J0152.6+0147_daily_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895691/ft1_4FGL_J0152.6+0147_daily_bin124.fits outfile=/scratch/kocevski/895691/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin124.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=271468801.0 tmax=271728001.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 2.48
user 1.18
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895691/ft2_4FGL_J0152.6+0147_daily_bin124.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/895691/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin124.fits evtable="EVENTS" outfile="/scratch/kocevski/895691/ft1_filtered_4FGL_J0152.6+0147_daily_bin124.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.74
user 0.28
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895691/ft1_filtered_4FGL_J0152.6+0147_daily_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/895691/ft2_4FGL_J0152.6+0147_daily_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/895691/ltcube_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.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/895691/ft2_4FGL_J0152.6+0147_daily_bin124.fits
.....................!
real 12.30
user 11.03
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895691/ft1_filtered_4FGL_J0152.6+0147_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/895691/ft2_4FGL_J0152.6+0147_daily_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/895691/ltcube_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.fits outfile=/scratch/kocevski/895691/expmap_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.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/895691/ltcube_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.fits
.....................!
real 159.09
user 153.09
sys 4.65

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/895691/ft1_filtered_4FGL_J0152.6+0147_daily_bin124.fits scfile=/scratch/kocevski/895691/ft2_4FGL_J0152.6+0147_daily_bin124.fits outfile=/scratch/kocevski/895691/cmap_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.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.01
user 0.31
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895691/ft1_filtered_4FGL_J0152.6+0147_daily_bin124.fits scfile=/scratch/kocevski/895691/ft2_4FGL_J0152.6+0147_daily_bin124.fits outfile=/scratch/kocevski/895691/cmap_HighResolution_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.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 0.99
user 0.31
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18205E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3410       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.523       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2315       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.311       1.0000         .10000E-03   10000.    
     7 'norm      '    9.8379       1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    43.245       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8487       1.0000         .10000E-03   10000.    
    12 'norm      '    12.336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5726       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3492       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46114E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.016       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86282       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92895       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=   7862.111     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2043 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    559.18       -.39960E-04** at limit **
   2  norm          4.3419        1.4039        .17631E-06    .53967E-03
   3  Prefactor     41.570        44.354       -.19511E-04   -.22884E-04
   4  Prefactor     4.2304        5.7462        .38796E-05   -.27478E-03
   5  Prefactor     .10000E-03    3.0630       -.14626E-07** at limit **
   6  Prefactor     62.324        43.709       -.47286E-05    .77226E-05
   7  norm          9.8414        5.4843        .26394E-07   -.35008E-05
   8  Prefactor     60.089        50.386        .22705E-05    .95241E-07
   9  Prefactor     .10000E-03    2.6423        .62398E-07** at limit **
  10  norm          43.247        19.926        .89495E-05   -.14519E-05
  11  Prefactor     3.8489        3.6676       -.47137E-06    .74213E-04
  12  norm          12.331        5.3029        .56721E-06   -.10289E-03
  13  Prefactor     4.5756        2.6163        .49668E-09   -.37832E-03
  14  norm          2.3491        .81300       -.58422E-08   -.23817E-03
  15  Prefactor     .10000E-03    14.945        .69436E-07** at limit **
  16  Prefactor     51.964        54.988       -.38703E-05   -.32432E-05
  17  Prefactor     .10000E-03    3.1353       -.10084E-06** at limit **
  18  Prefactor     .10000E-03    6.0403       -.30900E-06** at limit **
  19  Normalizat    .86284        .15361        .11608E-05   -.20670E-05
  20  Prefactor     .92898        .12898       -.63811E-06    .15718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 4.34186
  Prefactor  = 41.5705
  Prefactor  = 4.23041
  Prefactor  = 0.0001
  Prefactor  = 62.3244
  norm       = 9.84136
  Prefactor  = 60.0888
  Prefactor  = 0.0001
  norm       = 43.2467
  Prefactor  = 3.84888
  norm       = 12.3314
  Prefactor  = 4.57562
  norm       = 2.34911
  Prefactor  = 0.000100002
  Prefactor  = 51.9638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.862844
  Prefactor  = 0.92898
 **********
 **   18 **HESSE 
 **********

 FCN=   7862.111     FROM HESSE     STATUS=OK           297 CALLS     2340 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    576.41        .36455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3419        1.4025        .57567E-04   -1.5291    
   3  Prefactor     41.570        44.130        .62209E-04   -1.4418    
   4  Prefactor     4.2304        5.6797        .19589E-03   -1.5297    
   5  Prefactor     .10000E-03    3.0895        .15154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.324        43.716        .50833E-04   -1.4127    
   7  norm          9.8414        5.4869        .12776E-03   -1.5080    
   8  Prefactor     60.089        50.401        .51746E-04   -1.4156    
   9  Prefactor     .10000E-03    2.6945        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          43.247        19.928        .60962E-04   -1.4392    
  11  Prefactor     3.8489        3.6702        .16026E-03   -1.5316    
  12  norm          12.331        5.3025        .11405E-03   -1.5006    
  13  Prefactor     4.5756        2.5480        .98472E-04   -1.5280    
  14  norm          2.3491        .81125        .45088E-04   -1.5401    
  15  Prefactor     .10000E-03    150.53        .63522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.964        54.769        .55609E-04   -1.4265    
  17  Prefactor     .10000E-03    3.1403        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86284        .17358        .27382E-03   -.97778    
  20  Prefactor     .92898        .14614        .22077E-03   -.95136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86557e-10
Minuit parameter uncertainties:
  1  0.00216256
  2  1.40251
  3  44.1647
  4  5.6804
  5  9.82821e-06
  6  43.7384
  7  5.48717
  8  50.4369
  9  6.24321e-06
  10  19.9313
  11  3.67041
  12  5.30271
  13  2.5481
  14  0.811249
  15  0.00112613
  16  54.8225
  17  1.19829e-06
  18  7.65578e-07
  19  0.173689
  20  0.146203
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  6.243e-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:  9.290e-01  1.462e-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.628e-01  1.737e-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: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895691/likelihoodResults_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.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) = 7862.11315994
delta logL = -0.00176885991368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7862.11139122
delta logL = -1.36279595608e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0007       1.0000          .0000       10.000    
     3 'Normalizat'    .86278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92906       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=   7862.111     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      240 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    .27546E-01    .46161E-01** at limit **
   2  Index         2.0683        5.4642        .50000       -.54465E-04
   3  Normalizat    .86285        .49768E-03    .27382E-03    .18966E-03
   4  Prefactor     .92898        .41732E-03    .22077E-03    .22212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101866
  Index      = 2.0683
  Normalizat = 0.862845
  Prefactor  = 0.928979
 **********
 **   18 **HESSE 
 **********

 FCN=   7862.111     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    7.0755        .22764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0683        5.6431        .50000       -.62653    
   3  Normalizat    .86285        .62204E-02    .10953E-04   -.97778    
   4  Prefactor     .92898        .52159E-02    .44153E-04   -.95136    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88376e-08
Minuit parameter uncertainties:
  1  0.00726872
  2  82.4676
  3  0.00622038
  4  0.00521588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895691': 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) = 7862.11139034
delta logL = 7.47233571019e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.290e-01  5.216e-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.628e-01  6.220e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/895691/cmap_HighResolution_271468801_271728001_4FGL_J0152.6+0147_daily_bin124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-08-14 19:41:08.630624', job_id='895691', GAL2='0.93', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1628995268.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='124' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 895691: <4FGL_J0152.6+0147_daily_bin124> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin124> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 19:25:34 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:27:59 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:27:59 2021
Terminated at Sat Aug 14 19:41:09 2021
Results reported at Sat Aug 14 19:41:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin124 28.1614 1.7894 271468801 271728001 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 :                                   573.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            935 sec.

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

