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


Performing analysis on: 4FGL_J0158.5-3932_daily_bin527
RA = 29.646, Dec = -39.5358
tmin = 375926401, tmax = 376185601
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='967982', job_status='RUN', time_executed='2021-08-14 23:15:33.217695', time_epoch_executed='1629008133.22' WHERE source_name='4FGL J0158.5-3932' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/967982

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/967982/ft1_4FGL_J0158.5-3932_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/967982/ft1_4FGL_J0158.5-3932_daily_bin527.fits outfile=/scratch/kocevski/967982/ft1_filteredMKT_4FGL_J0158.5-3932_daily_bin527.fits ra=29.646 dec=-39.5358 rad=12.0 tmin=375926401.0 tmax=376185601.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 7.55
user 3.19
sys 4.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/967982/ltcube_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.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/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits
.....................!
real 19.65
user 14.64
sys 4.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/967982/ltcube_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.fits outfile=/scratch/kocevski/967982/expmap_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.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/967982/ltcube_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.fits
.....................!
real 200.02
user 187.02
sys 10.70

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/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits scfile=/scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits outfile=/scratch/kocevski/967982/cmap_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.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 4.51
user 0.38
sys 4.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits scfile=/scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits outfile=/scratch/kocevski/967982/cmap_HighResolution_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.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 8.66
user 0.39
sys 4.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/967982/Model_4FGL_J0158.5-3932_daily_bin527.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/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits.....................!
real 76.97
user 69.46
sys 6.65

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits', '/scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits', expMap='/scratch/kocevski/967982/expmap_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.fits', expCube='/scratch/kocevski/967982/ltcube_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/967982/Model_4FGL_J0158.5-3932_daily_bin527.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/967982/ft1_filtered_4FGL_J0158.5-3932_daily_bin527.fits
Spacecraft file(s): /scratch/kocevski/967982/ft2_4FGL_J0158.5-3932_daily_bin527.fits
Exposure map: /scratch/kocevski/967982/expmap_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.fits
Exposure cube: /scratch/kocevski/967982/ltcube_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/967982/Model_4FGL_J0158.5-3932_daily_bin527.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) = 3486.60246362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    8.0870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22222E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    25.845       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11604E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.164       1.0000         .10000E-03   10000.    
    10 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.447       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4400       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20608E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94561       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76078       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=   3486.580     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2374 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3163       -.75549E-07** at limit **
   2  Prefactor     8.0880        6.4639        .21016E-05   -.35666E-05
   3  Prefactor     .10000E-03    81.516        .40552E-05** at limit **
   4  Prefactor     .10000E-03    27.279       -.71856E-08** at limit **
   5  Prefactor     5.4296        5.6960        .16556E-06   -.43356E-04
   6  Prefactor     .10000E-03    3.1565        .16628E-06** at limit **
   7  norm          25.830        10.852       -.21113E-06   -.44961E-04
   8  Prefactor     .10000E-03    16.857        .13529E-06** at limit **
   9  Prefactor     37.265        47.076        .14939E-05    .66698E-04
  10  norm          .10000E-03    .83219        .11539E-06** at limit **
  11  Prefactor     36.447        21.653        .19759E-06   -.26889E-04
  12  Prefactor     .10000E-03    17.463       -.20242E-06** at limit **
  13  Prefactor     .10000E-03    33.358       -.35237E-06** at limit **
  14  norm          1.4417        3.1086        .28322E-06    .15715E-04
  15  Prefactor     .10000E-03    8.3537        .51503E-07** at limit **
  16  Prefactor     24.920        32.089       -.29249E-06   -.75507E-05
  17  Prefactor     .10000E-03    28.536       -.47946E-07** at limit **
  18  Prefactor     .10000E-03    2.0055       -.38580E-07** at limit **
  19  norm          1.1040        1.6094        .18411E-06    .24914E-04
  20  Prefactor     .10000E-03    126.91       -.47984E-06** at limit **
  21  Normalizat    .94501        .22307       -.32964E-05    .72452E-04
  22  Prefactor     .76132        .23844        .33204E-05   -.11029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.08803
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.42964
  Prefactor  = 0.0001
  norm       = 25.8299
  Prefactor  = 0.0001
  Prefactor  = 37.2647
  norm       = 0.0001
  Prefactor  = 36.4469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44171
  Prefactor  = 0.0001
  Prefactor  = 24.9203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10403
  Prefactor  = 0.0001
  Normalizat = 0.945006
  Prefactor  = 0.761317
 **********
 **   18 **HESSE 
 **********

 FCN=   3486.580     FROM HESSE     STATUS=OK           340 CALLS     2714 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3203        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0880        6.5470        .63931E-03   -1.5139    
   3  Prefactor     .10000E-03    84.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4296        5.7021        .13590E-03   -1.5242    
   6  Prefactor     .10000E-03    3.1620        .10244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          25.830        10.890        .78798E-04   -1.4691    
   8  Prefactor     .10000E-03    17.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.265        47.370        .65743E-04   -1.4486    
  10  norm          .10000E-03    1.5375        .10461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.447        21.634        .66384E-04   -1.4500    
  12  Prefactor     .10000E-03    17.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4417        3.0560        .13873E-03   -1.5468    
  15  Prefactor     .10000E-03    8.3736        .16661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.920        31.950        .80233E-04   -1.4709    
  17  Prefactor     .10000E-03    28.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0081        .81664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1040        1.5807        .85569E-04   -1.5498    
  20  Prefactor     .10000E-03    127.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94501        .25187        .22036E-03   -.94896    
  22  Prefactor     .76132        .26951        .26753E-03   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39011e-10
Minuit parameter uncertainties:
  1  1.01629e-05
  2  6.54762
  3  0.000491261
  4  3.41482e-05
  5  5.7027
  6  1.35619e-07
  7  10.8907
  8  2.38914e-05
  9  47.4182
  10  8.09575e-06
  11  21.6385
  12  9.90236e-06
  13  0.000128603
  14  3.05628
  15  1.14062e-06
  16  31.9722
  17  1.60349e-05
  18  2.40809e-07
  19  1.58075
  20  0.00046977
  21  0.252183
  22  0.26998
Done.

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

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  2.389e-05  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.613e-01  2.700e-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:  9.450e-01  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/967982/likelihoodResults_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.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) = 3486.58065306
delta logL = -0.000273321820259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3486.58038019
delta logL = -4.52599124401e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1246       1.0000          .0000       10.000    
     3 'Normalizat'    .94500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76132       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3486.580     FROM MIGRAD    STATUS=FAILED        97 CALLS      296 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11534E-03    66.718        .36285E-02** at limit **
   2  Index         1.9691        7.6341        .50000        .33375E-04
   3  Normalizat    .94500        .77459E-02    .22037E-03    .10216E-03
   4  Prefactor     .76132        .85707E-02    .26753E-03    .94510E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3486.580     FROM SIMPLEX   STATUS=UNCHANGED    109 CALLS      405 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11534E-03    66.718        .84066E-03** at limit **
   2  Index         1.9691        7.6341        .14346E-02    .33375E-04
   3  Normalizat    .94500        .77459E-02    .98865E-05    .10216E-03
   4  Prefactor     .76132        .85707E-02    .12343E-04    .94510E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3486.580     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      438 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11035E-03    277.83        .72569E-03** at limit **
   2  Index         1.9793        5.9852        .50000        .33080E-04
   3  Normalizat    .94500        .16254E-01    .44073E-04    .10068E-03
   4  Prefactor     .76132        .17985E-01    .10701E-04    .92959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110348
  Index      = 1.97927
  Normalizat = 0.945002
  Prefactor  = 0.761322
 **********
 **   18 **HESSE 
 **********

 FCN=   3486.580     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      467 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11035E-03    815.38        .14514E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9793        8.3304        .50000       -.64869    
   3  Normalizat    .94500        .28765E-01    .88147E-05   -.94896    
   4  Prefactor     .76132        .31833E-01    .21402E-05   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.26428e-08
Minuit parameter uncertainties:
  1  0.186302
  2  438.768
  3  0.0287654
  4  0.0318342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/967982': 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) = 3486.58037894
delta logL = 7.98468136054e-07

Extracting fit parameters...

4FGL J0158.5-3932
   Spectrum: PowerLaw
278    Prefactor:  1.103e-04  1.863e-01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.979e+00  4.388e+02  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:  7.613e-01  3.183e-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:  9.450e-01  2.877e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.646 -39.536

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/967982/cmap_HighResolution_375926401_376185601_4FGL_J0158.5-3932_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-08-14 23:25:45.120840', job_id='967982', GAL2='0.76', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1629008745.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='7.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='527' AND source_name='4FGL J0158.5-3932' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 967982: <4FGL_J0158.5-3932_daily_bin527> in cluster <slac> Done

Job <4FGL_J0158.5-3932_daily_bin527> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 23:10:46 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:12:16 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:12:16 2021
Terminated at Sat Aug 14 23:25:46 2021
Results reported at Sat Aug 14 23:25:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0158.5-3932_daily_bin527 29.646 -39.5358 375926401 376185601 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 :                                   666.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            900 sec.

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

