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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin126
RA = 29.646, Dec = -39.5358
tmin = 271987201, tmax = 272246401
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='966005', job_status='RUN', time_executed='2021-08-14 23:08:31.125913', time_epoch_executed='1629007711.13' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/966005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/966005/ft1_4FGL_J0158.5-3932_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/966005/ft1_4FGL_J0158.5-3932_daily_bin126.fits outfile=/scratch/kocevski/966005/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin126.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=271987201.0 tmax=272246401.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.32
user 1.46
sys 0.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.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/966005/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.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.19
user 0.34
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/966005/ltcube_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.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/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits
.....................!
real 15.54
user 14.47
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/966005/ltcube_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.fits outfile=/scratch/kocevski/966005/expmap_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.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/966005/ltcube_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.fits
.....................!
real 193.31
user 186.86
sys 6.01

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 174 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0158.5-3932 @ 29.646 -39.5358

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits scfile=/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits outfile=/scratch/kocevski/966005/cmap_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.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=29.646 yref=-39.5358 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.14
user 0.40
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits scfile=/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits outfile=/scratch/kocevski/966005/cmap_HighResolution_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.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=29.646 yref=-39.5358 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.39
sys 0.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/966005/Model_4FGL_J0158.5-3932_daily_bin126.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits.....................!
real 106.45
user 104.13
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits', '/scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits', expMap='/scratch/kocevski/966005/expmap_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.fits', expCube='/scratch/kocevski/966005/ltcube_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/966005/Model_4FGL_J0158.5-3932_daily_bin126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0158.5-3932'

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  4.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/966005/ft1_filtered_4FGL_J0158.5-3932_daily_bin126.fits
Spacecraft file(s): /scratch/kocevski/966005/ft2_4FGL_J0158.5-3932_daily_bin126.fits
Exposure map: /scratch/kocevski/966005/expmap_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.fits
Exposure cube: /scratch/kocevski/966005/ltcube_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/966005/Model_4FGL_J0158.5-3932_daily_bin126.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) = 5691.15163563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9851       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3901       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8783       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0946       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11724E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .92629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5556       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.347       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2805       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.111       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88179       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74879       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5691.118     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2354 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7100       -.41512E-07** at limit **
   2  Prefactor     .34472        2.6567       -.16859E-05    .98362E-03
   3  Prefactor     .10000E-03    4.4393        .31453E-08** at limit **
   4  Prefactor     1.2220        120.03        .24130E-05    .27230E-04
   5  Prefactor     .10000E-03    1.7448       -.94607E-07** at limit **
   6  Prefactor     5.9846        5.3021        .31338E-07    .25515E-04
   7  norm          6.4589        5.0885        .63533E-07    .68283E-04
   8  Prefactor     5.3880        11.932       -.34768E-07    .21678E-05
   9  Prefactor     4.8746        34.476        .38391E-06    .13018E-04
  10  norm          2.0944        1.4235        .13337E-07    .81242E-04
  11  Prefactor     5.3989        9.3583        .83330E-07    .44133E-04
  12  Prefactor     .10000E-03    9.4834       -.10800E-06** at limit **
  13  Prefactor     .10000E-03    60.327       -.23638E-06** at limit **
  14  norm          .92372        2.3780       -.58202E-07   -.31374E-04
  15  Prefactor     2.5557        7.1722        .20267E-05    .30439E-03
  16  Prefactor     .10000E-03    16.404       -.40746E-07** at limit **
  17  Prefactor     16.343        26.005        .24804E-06    .18355E-04
  18  Prefactor     .10000E-03    .99560       -.75058E-08** at limit **
  19  norm          5.2804        1.4529       -.13351E-07    .13423E-03
  20  Prefactor     33.888        108.00        .14177E-04    .70150E-04
  21  Normalizat    .88182        .14608       -.54082E-06    .21811E-03
  22  Prefactor     .74881        .15771        .46048E-06    .16243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.344721
  Prefactor  = 0.0001
  Prefactor  = 1.22196
  Prefactor  = 0.0001
  Prefactor  = 5.98462
  norm       = 6.45889
  Prefactor  = 5.38801
  Prefactor  = 4.87455
  norm       = 2.09443
  Prefactor  = 5.39891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.923717
  Prefactor  = 2.55575
  Prefactor  = 0.0001
  Prefactor  = 16.3426
  Prefactor  = 0.0001
  norm       = 5.2804
  Prefactor  = 33.8883
  Normalizat = 0.881817
  Prefactor  = 0.748809
 **********
 **   18 **HESSE 
 **********

 FCN=   5691.118     FROM HESSE     STATUS=OK           352 CALLS     2706 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .34472        5.5349        .18386E-02   -1.5591    
   3  Prefactor     .10000E-03    4.4426        .15524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2220        123.67        .40067E-02   -1.5487    
   5  Prefactor     .10000E-03    1.7682        .97109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9846        5.2974        .15516E-03   -1.5219    
   7  norm          6.4589        5.0422        .12531E-03   -1.5200    
   8  Prefactor     5.3880        11.920        .17309E-03   -1.5244    
   9  Prefactor     4.8746        33.892        .18212E-03   -1.5266    
  10  norm          2.0944        1.4167        .71677E-04   -1.5419    
  11  Prefactor     5.3989        9.3264        .17294E-03   -1.5243    
  12  Prefactor     .10000E-03    9.4910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .92372        2.3694        .16991E-03   -1.5516    
  15  Prefactor     2.5557        7.3649        .12770E-02   -1.5388    
  16  Prefactor     .10000E-03    16.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.343        25.943        .99059E-04   -1.4899    
  18  Prefactor     .10000E-03    .99770        .73511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2804        1.4530        .45853E-04   -1.5248    
  20  Prefactor     33.888        110.91        .34306E-03   -1.4543    
  21  Normalizat    .88182        .17410        .19847E-03   -.97102    
  22  Prefactor     .74881        .18802        .24430E-03   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95699e-09
Minuit parameter uncertainties:
  1  3.61581e-07
  2  2.7625
  3  7.98262e-08
  4  24.6375
  5  2.81191e-06
  6  5.29781
  7  5.04258
  8  11.9257
  9  25.7273
  10  1.41673
  11  9.32891
  12  1.66725e-05
  13  2.92346e-05
  14  2.36966
  15  7.36753
  16  9.12001e-06
  17  25.9604
  18  1.94748e-07
  19  1.45296
  20  111.59
  21  0.174215
  22  0.188181
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  5.388e+00  1.193e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.091e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  7.488e-01  1.882e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  8.818e-01  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 29.646 -39.536
Photon Flux Upper Limit: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/966005/likelihoodResults_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.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) = 5690.66603666
delta logL = 0.452382144212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5690.45074937
delta logL = 0.667669430794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3989       1.0000          .0000       10.000    
     3 'Normalizat'    .82146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5690.451     FROM MIGRAD    STATUS=CONVERGED    266 CALLS      684 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27984E-02    .34459E-03** at limit **
   2  Index         7.3989        2.2276        .13113        .18375E-03
   3  Normalizat    .82150        .31141E-01    .43890E-01    .35059E-03
   4  Prefactor     .80521        .35382E-01    .43787E-01    .11886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.39885
  Normalizat = 0.821498
  Prefactor  = 0.805211
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.451     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      723 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .25935E-01    .15569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3989        7.5948        .47252E-02    .50039    
   3  Normalizat    .82150        .80269E-01    .20484E-03   -.99276    
   4  Prefactor     .80521        .90995E-01    .23656E-03   -.99537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28271e-09
Minuit parameter uncertainties:
  1  1.95257e-07
  2  4.79297
  3  0.0802804
  4  0.0910121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/966005': 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) = 5690.45074679
delta logL = 0.667672009004

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.953e-07  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  7.399e+00  4.793e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.384e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.052e-01  9.101e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  8.215e-01  8.028e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 29.646 -39.536
Photon Index (Free Index): 7.40 +/- 4.79
Photon Flux (Free Index): 4.41e-08 +/- 5.13e-07
Energy Flux (Free Index): 5.20e-06 +/- 6.01e-05

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/966005/cmap_HighResolution_271987201_272246401_4FGL_J0158.5-3932_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', comment='SUCCESS', energy_flux2='5.20e-06', dlogl='6.68e-01', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-08-14 23:20:12.669245', photon_index_error2='4.79', photon_index2='7.40', ts='0.24', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='7.24e-08', energy_flux_error2='6.01e-05', EG='0.88', time_epoch_completed='1629008412.67', return_code='0', job_id='966005', GAL2='0.81', EG2='0.82', return_code2='102', photon_flux_error2='5.13e-07', ts2='1.69', photon_index='2.09' WHERE bin_id='126' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:20:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 966005: <4FGL_J0158.5-3932_daily_bin126> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin126> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 23:05:37 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:06:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 23:06:18 2021
Terminated at Sat Aug 14 23:20:13 2021
Results reported at Sat Aug 14 23:20:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin126 29.646 -39.5358 271987201 272246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0158.5-3932 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            876 sec.

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

