/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 81 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin223
RA = 28.1614, Dec = 1.7894
tmin = 297129601, tmax = 297388801
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='896752', job_status='RUN', time_executed='2021-08-14 19:32:32.461114', time_epoch_executed='1628994752.46' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896752/ft1_4FGL_J0152.6+0147_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896752/ft2_4FGL_J0152.6+0147_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896752/ft1_4FGL_J0152.6+0147_daily_bin223.fits outfile=/scratch/kocevski/896752/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin223.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=297129601.0 tmax=297388801.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 4.55
user 3.35
sys 1.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896752/ft1_filtered_4FGL_J0152.6+0147_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/896752/ft2_4FGL_J0152.6+0147_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/896752/ltcube_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.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/896752/ft2_4FGL_J0152.6+0147_daily_bin223.fits
.....................!
real 14.22
user 12.82
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896752/ft1_filtered_4FGL_J0152.6+0147_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/896752/ft2_4FGL_J0152.6+0147_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/896752/ltcube_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.fits outfile=/scratch/kocevski/896752/expmap_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.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/896752/ltcube_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.fits
.....................!
real 192.53
user 185.87
sys 6.22

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/896752/ft1_filtered_4FGL_J0152.6+0147_daily_bin223.fits scfile=/scratch/kocevski/896752/ft2_4FGL_J0152.6+0147_daily_bin223.fits outfile=/scratch/kocevski/896752/cmap_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.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.44
user 0.37
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896752/ft1_filtered_4FGL_J0152.6+0147_daily_bin223.fits scfile=/scratch/kocevski/896752/ft2_4FGL_J0152.6+0147_daily_bin223.fits outfile=/scratch/kocevski/896752/cmap_HighResolution_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.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.47
user 0.40
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5444       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.462       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2510       1.0000         .10000E-03   10000.    
    12 'norm      '    8.4367       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4448       1.0000         .10000E-03   10000.    
    14 'norm      '    .46679       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.877       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.034       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7631       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88043       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99769       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=   4725.695     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2084 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.748       -.14660E-06** at limit **
   2  norm          2.9721        1.6483        .25284E-06   -.15756E-03
   3  Prefactor     .10000E-03    25.628        .11521E-06** at limit **
   4  Prefactor     3.4901        5.6618        .39363E-06   -.56024E-04
   5  Prefactor     9.5432        8.3342        .14043E-06   -.35031E-05
   6  Prefactor     51.460        47.144        .42076E-06   -.88463E-05
   7  norm          .10000E-03    2.9952        .12527E-06** at limit **
   8  Prefactor     .10000E-03    76.045        .11236E-05** at limit **
   9  Prefactor     .10000E-03    7.0283        .83621E-06** at limit **
  10  norm          10.912        12.910       -.76002E-06   -.35767E-04
  11  Prefactor     3.2515        7.8523        .14213E-04   -.46504E-03
  12  norm          8.4382        5.2369       -.86074E-06   -.18825E-03
  13  Prefactor     1.4461        1.5131       -.26519E-06    .25903E-04
  14  norm          .46674        .58695        .14569E-06    .38991E-03
  15  Prefactor     17.884        24.113        .74438E-06    .35516E-05
  16  Prefactor     55.813        81.641       -.43382E-05   -.42419E-03
  17  Prefactor     8.7631        11.285        .25348E-06   -.44024E-05
  18  Prefactor     .10000E-03    13.571       -.52134E-06** at limit **
  19  Normalizat    .88072        .19260       -.38286E-05   -.49873E-04
  20  Prefactor     .99748        .16364        .37120E-06   -.21253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.97211
  Prefactor  = 0.0001
  Prefactor  = 3.49008
  Prefactor  = 9.54321
  Prefactor  = 51.4605
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.9124
  Prefactor  = 3.25153
  norm       = 8.43816
  Prefactor  = 1.44611
  norm       = 0.46674
  Prefactor  = 17.8838
  Prefactor  = 55.8125
  Prefactor  = 8.76307
  Prefactor  = 0.0001
  Normalizat = 0.88072
  Prefactor  = 0.997484
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.695     FROM HESSE     STATUS=OK           295 CALLS     2379 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9721        1.6454        .31654E-03   -1.5363    
   3  Prefactor     .10000E-03    25.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4901        5.6448        .20060E-03   -1.5334    
   5  Prefactor     9.5432        8.3333        .12972E-03   -1.5090    
   6  Prefactor     51.460        47.158        .55906E-04   -1.4272    
   7  norm          .10000E-03    3.0039        .11619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    76.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1956        .17789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.912        12.914        .12129E-03   -1.5047    
  11  Prefactor     3.2515        7.8843        .11231E-02   -1.5347    
  12  norm          8.4382        5.2476        .11829E-03   -1.5127    
  13  Prefactor     1.4461        1.5117        .83336E-04   -1.5467    
  14  norm          .46674        .54759        .57107E-03   -1.5571    
  15  Prefactor     17.884        24.087        .94727E-04   -1.4862    
  16  Prefactor     55.813        81.639        .26794E-03   -1.4212    
  17  Prefactor     8.7631        11.283        .13540E-03   -1.5116    
  18  Prefactor     .10000E-03    13.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88072        .21871        .26818E-03   -.97141    
  20  Prefactor     .99748        .18745        .21203E-03   -.92813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55911e-09
Minuit parameter uncertainties:
  1  0.000169891
  2  1.64538
  3  3.64582e-05
  4  5.64565
  5  8.3343
  6  47.1923
  7  3.3459e-06
  8  0.000633269
  9  3.09825e-05
  10  12.9169
  11  7.88682
  12  5.24785
  13  1.5117
  14  0.547595
  15  24.0997
  16  81.8034
  17  11.2862
  18  3.10637e-05
  19  0.218934
  20  0.187575
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.098e-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:  9.975e-01  1.876e-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.807e-01  2.189e-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: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896752/likelihoodResults_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.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) = 4725.69598547
delta logL = -0.000662471175929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4725.69532295
delta logL = 5.21749825566e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0096       1.0000          .0000       10.000    
     3 'Normalizat'    .88069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99753       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=   4725.695     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.037        .90712E-02** at limit **
   2  Index         2.0368        5.6032        .50000       -.31010E-04
   3  Normalizat    .88072        .76630E-02    .44654E-01   -.68625E-05
   4  Prefactor     .99748        .64447E-02    .46236E-01   -.13701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.03682
  Normalizat = 0.880719
  Prefactor  = 0.997484
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.695     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0368        5.9942        .50000       -.63433    
   3  Normalizat    .88072        .21475        .26818E-03   -.97141    
   4  Prefactor     .99748        .18070        .21202E-03   -.92813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80553e-09
Minuit parameter uncertainties:
  1  0.000241446
  2  4.33216
  3  0.214956
  4  0.180814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896752': 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) = 4725.6953226
delta logL = 3.92680703953e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.414e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.037e+00  4.332e+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:  9.975e-01  1.808e-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.807e-01  2.150e-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/896752/cmap_HighResolution_297129601_297388801_4FGL_J0152.6+0147_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-08-14 19:41:50.462858', job_id='896752', GAL2='1.00', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1628995310.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='223' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 896752: <4FGL_J0152.6+0147_daily_bin223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin223 28.1614 1.7894 297129601 297388801 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 :                                   569.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            691 sec.

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

