Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 192.9 kB / 22.23 MB, free: 5.152 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002354/0.002354, allocations: 285.5 kB / 306.5 MB, free: 8.324 MB / 238.1 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.167/1.167, allocations: 180.9 MB / 0.53 GB, free: 14.36 MB / 382.1 MB
"
[Timeout remaining time 179]
Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo)
Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep")
translateModel(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 103.7 kB / 0.7309 GB, free: 38.81 MB / 0.545 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.171, allocations: 94.19 MB / 0.8229 GB, free: 1.785 MB / 0.5606 GB
Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.00172/0.1727, allocations: 0.5919 MB / 0.8234 GB, free: 1.195 MB / 0.5606 GB
Notification: Performance of NFInst.instExpressions: time 0.0003049/0.173, allocations: 56.19 kB / 0.8235 GB, free: 1.141 MB / 0.5606 GB
Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.173, allocations: 0 / 0.8235 GB, free: 1.141 MB / 0.5606 GB
Notification: Performance of NFTyping.typeComponents: time 1.896e-05/0.173, allocations: 0 / 0.8235 GB, free: 1.141 MB / 0.5606 GB
Notification: Performance of NFTyping.typeBindings: time 7.014e-06/0.173, allocations: 4 kB / 0.8235 GB, free: 1.137 MB / 0.5606 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.1733, allocations: 15.92 kB / 0.8235 GB, free: 1.121 MB / 0.5606 GB
Notification: Performance of NFFlatten.flatten: time 4.846e-05/0.1733, allocations: 4 kB / 0.8235 GB, free: 1.117 MB / 0.5606 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.45e-05/0.1734, allocations: 0 / 0.8235 GB, free: 1.117 MB / 0.5606 GB
Notification: Performance of NFEvalConstants.evaluate: time 1.291e-05/0.1734, allocations: 0 / 0.8235 GB, free: 1.117 MB / 0.5606 GB
Notification: Performance of NFSimplifyModel.simplify: time 2.101e-05/0.1734, allocations: 0 / 0.8235 GB, free: 1.117 MB / 0.5606 GB
Notification: Performance of NFPackage.collectConstants: time 1.064e-05/0.1734, allocations: 0 / 0.8235 GB, free: 1.117 MB / 0.5606 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.1735, allocations: 23.97 kB / 0.8235 GB, free: 1.094 MB / 0.5606 GB
Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.1735, allocations: 0 / 0.8235 GB, free: 1.094 MB / 0.5606 GB
Notification: Performance of NFVerifyModel.verify: time 1.949e-05/0.1736, allocations: 3.984 kB / 0.8235 GB, free: 1.09 MB / 0.5606 GB
Notification: Performance of NFConvertDAE.convert: time 9.535e-05/0.1737, allocations: 19.98 kB / 0.8236 GB, free: 1.07 MB / 0.5606 GB
Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1737, allocations: 0 / 0.8236 GB, free: 1.07 MB / 0.5606 GB
Notification: Performance of FrontEnd: time 1.583e-06/0.1737, allocations: 0 / 0.8236 GB, free: 1.07 MB / 0.5606 GB
Notification: Performance of Transformations before backend: time 1.15e-05/0.1737, allocations: 0 / 0.8236 GB, free: 1.07 MB / 0.5606 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 1
 * Number of variables: 1
Notification: Performance of Generate backend data structure: time 0.0003199/0.174, allocations: 250.3 kB / 0.8238 GB, free: 0.793 MB / 0.5606 GB
Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.174, allocations: 8.031 kB / 0.8238 GB, free: 0.7852 MB / 0.5606 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.1743, allocations: 20.91 kB / 0.8238 GB, free: 0.7656 MB / 0.5606 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 8.893e-05/0.1744, allocations: 106.5 kB / 0.8239 GB, free: 0.6367 MB / 0.5606 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.1744, allocations: 4.375 kB / 0.8239 GB, free: 0.6328 MB / 0.5606 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.1744, allocations: 384 / 0.8239 GB, free: 0.6328 MB / 0.5606 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/0.1745, allocations: 34.25 kB / 0.824 GB, free: 0.5938 MB / 0.5606 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.1745, allocations: 192 / 0.824 GB, free: 0.5938 MB / 0.5606 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1746, allocations: 3.938 kB / 0.824 GB, free: 0.5898 MB / 0.5606 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1746, allocations: 4 kB / 0.824 GB, free: 0.5859 MB / 0.5606 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.415e-05/0.1746, allocations: 7.984 kB / 0.824 GB, free: 0.5781 MB / 0.5606 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.1748, allocations: 124.8 kB / 0.8241 GB, free: 424 kB / 0.5606 GB
Notification: Performance of preOpt comSubExp (simulation): time 7.832e-05/0.1749, allocations: 22.55 kB / 0.8241 GB, free: 392 kB / 0.5606 GB
Notification: Performance of preOpt resolveLoops (simulation): time 5.443e-05/0.1749, allocations: 16.89 kB / 0.8241 GB, free: 372 kB / 0.5606 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.1749, allocations: 0 / 0.8241 GB, free: 372 kB / 0.5606 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.175, allocations: 38.56 kB / 0.8242 GB, free: 324 kB / 0.5606 GB
Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.175, allocations: 0 / 0.8242 GB, free: 324 kB / 0.5606 GB
Notification: Performance of matching and sorting (n=1): time 0.0002308/0.1752, allocations: 57.55 kB / 0.8242 GB, free: 260 kB / 0.5606 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.1752, allocations: 55.34 kB / 0.8243 GB, free: 192 kB / 0.5606 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.184e-05/0.1753, allocations: 93.86 kB / 0.8244 GB, free: 88 kB / 0.5606 GB
Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1753, allocations: 25.7 kB / 0.8244 GB, free: 56 kB / 0.5606 GB
Notification: Performance of collectInitialEqns (initialization): time 5.295e-05/0.1753, allocations: 80.14 kB / 0.8245 GB, free: 15.97 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.1754, allocations: 3.953 kB / 0.8245 GB, free: 15.97 MB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.1754, allocations: 9.719 kB / 0.8245 GB, free: 15.95 MB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 0.0001344/0.1755, allocations: 319 kB / 0.8248 GB, free: 15.63 MB / 0.5762 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.748e-05/0.1756, allocations: 3.984 kB / 0.8248 GB, free: 15.63 MB / 0.5762 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 4.136e-05/0.1756, allocations: 8 kB / 0.8248 GB, free: 15.62 MB / 0.5762 GB
Notification: Performance of analyzeInitialSystem (initialization): time 9.117e-05/0.1757, allocations: 16.84 kB / 0.8248 GB, free: 15.6 MB / 0.5762 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.1757, allocations: 0 / 0.8248 GB, free: 15.6 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001218/0.1758, allocations: 45.69 kB / 0.8249 GB, free: 15.55 MB / 0.5762 GB
Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1759, allocations: 9.875 kB / 0.8249 GB, free: 15.54 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.1759, allocations: 0 / 0.8249 GB, free: 15.54 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1759, allocations: 7.922 kB / 0.8249 GB, free: 15.54 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.99e-05/0.1759, allocations: 0 / 0.8249 GB, free: 15.54 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.1759, allocations: 4 kB / 0.8249 GB, free: 15.53 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.153e-05/0.176, allocations: 0 / 0.8249 GB, free: 15.53 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.176, allocations: 0 / 0.8249 GB, free: 15.53 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (1):
 * Single equations (assignments): 1
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 7.762e-05/0.1761, allocations: 106.5 kB / 0.825 GB, free: 15.42 MB / 0.5762 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.1761, allocations: 12.02 kB / 0.825 GB, free: 15.41 MB / 0.5762 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.1761, allocations: 14.88 kB / 0.825 GB, free: 15.39 MB / 0.5762 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1761, allocations: 0 / 0.825 GB, free: 15.39 MB / 0.5762 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1761, allocations: 0 / 0.825 GB, free: 15.39 MB / 0.5762 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1761, allocations: 0 / 0.825 GB, free: 15.39 MB / 0.5762 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.29e-05/0.1762, allocations: 112.8 kB / 0.8251 GB, free: 15.24 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1762, allocations: 4 kB / 0.8251 GB, free: 15.23 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.09e-05/0.1762, allocations: 3.984 kB / 0.8251 GB, free: 15.23 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1762, allocations: 0 / 0.8251 GB, free: 15.23 MB / 0.5762 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.1762, allocations: 7.938 kB / 0.8251 GB, free: 15.22 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1762, allocations: 4 kB / 0.8251 GB, free: 15.22 MB / 0.5762 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-07/0.1762, allocations: 0 / 0.8251 GB, free: 15.22 MB / 0.5762 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001469/0.1764, allocations: 69.05 kB / 0.8252 GB, free: 15.13 MB / 0.5762 GB
Notification: Performance of postOpt removeConstants (simulation): time 5.991e-06/0.1764, allocations: 4 kB / 0.8252 GB, free: 15.13 MB / 0.5762 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.1764, allocations: 3.938 kB / 0.8252 GB, free: 15.12 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.96e-05/0.1764, allocations: 0 / 0.8252 GB, free: 15.12 MB / 0.5762 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-06/0.1765, allocations: 4.031 kB / 0.8252 GB, free: 15.12 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.1765, allocations: 0 / 0.8252 GB, free: 15.12 MB / 0.5762 GB
Notification: Performance of sorting global known variables: time 3.246e-05/0.1765, allocations: 75.28 kB / 0.8253 GB, free: 15.05 MB / 0.5762 GB
Notification: Performance of sort global known variables: time 9.1e-08/0.1765, allocations: 4 kB / 0.8253 GB, free: 15.04 MB / 0.5762 GB
Notification: Performance of remove unused functions: time 0.0001656/0.1767, allocations: 0 / 0.8253 GB, free: 15.04 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (1):
 * Single equations (assignments): 1
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001372/0.1768, allocations: 103.1 kB / 0.8254 GB, free: 14.93 MB / 0.5762 GB
Notification: Performance of simCode: created initialization part: time 0.0001421/0.1769, allocations: 15.98 kB / 0.8254 GB, free: 14.91 MB / 0.5762 GB
Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1769, allocations: 0 / 0.8254 GB, free: 14.91 MB / 0.5762 GB
Notification: Performance of simCode: created simulation system equations: time 4.455e-05/0.177, allocations: 7.938 kB / 0.8254 GB, free: 14.91 MB / 0.5762 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.1771, allocations: 8 kB / 0.8254 GB, free: 14.9 MB / 0.5762 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002422/0.1773, allocations: 84.98 kB / 0.8255 GB, free: 14.79 MB / 0.5762 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.1776, allocations: 0.6729 MB / 0.8262 GB, free: 14.09 MB / 0.5762 GB
Notification: Performance of simCode: alias equations: time 2.973e-05/0.1777, allocations: 8.125 kB / 0.8262 GB, free: 14.08 MB / 0.5762 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/0.1777, allocations: 7.438 kB / 0.8262 GB, free: 14.07 MB / 0.5762 GB
Notification: Performance of SimCode: time 2.9e-07/0.1777, allocations: 0 / 0.8262 GB, free: 14.07 MB / 0.5762 GB
Notification: Performance of Templates: time 0.002159/0.1799, allocations: 239.5 kB / 0.8264 GB, free: 13.84 MB / 0.5762 GB
"
[Timeout remaining time 660]
make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.makefile [Timeout 660]
(rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.565004629082978]
Failed to read output from testmodel.py, exit status != 0:
0.18698695208877325 0.20190450899999995 0.025339869
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f6dd9e957b0>