Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.473/1.473, allocations: 287.4 MB / 302.6 MB, free: 8.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008936/0.0008935, allocations: 189.2 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205.4 MB / 0.6298 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007316/0.0007317, allocations: 93.27 kB / 0.7431 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003592, allocations: 16.73 kB / 0.8662 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1689, allocations: 115.3 MB / 0.9787 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0006998/0.1696, allocations: 385.8 kB / 0.9791 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009492/0.1706, allocations: 1.036 MB / 0.9801 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.858e-05/0.1706, allocations: 0 / 0.9801 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.398e-05/0.1706, allocations: 3.938 kB / 0.9801 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.815e-05/0.1707, allocations: 0 / 0.9801 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001971/0.1709, allocations: 39.89 kB / 0.9802 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 5.887e-05/0.171, allocations: 35.86 kB / 0.9802 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.784e-05/0.171, allocations: 8 kB / 0.9802 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.781e-05/0.1711, allocations: 11.98 kB / 0.9802 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 3.908e-05/0.1712, allocations: 19.92 kB / 0.9802 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.1712, allocations: 4 kB / 0.9802 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.425e-05/0.1712, allocations: 23.91 kB / 0.9803 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.138e-05/0.1713, allocations: 0 / 0.9803 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.552e-05/0.1713, allocations: 33.7 kB / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.193e-05/0.1714, allocations: 35.92 kB / 0.9803 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1714, allocations: 0 / 0.9803 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.684e-06/0.1714, allocations: 0 / 0.9803 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.1714, allocations: 3.938 kB / 0.9803 GB, free: 26.45 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003879/0.1718, allocations: 353.6 kB / 0.9807 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.1718, allocations: 12.03 kB / 0.9807 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.813e-05/0.1719, allocations: 34.69 kB / 0.9807 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.406e-05/0.1719, allocations: 12.83 kB / 0.9807 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.935e-05/0.172, allocations: 164.3 kB / 0.9809 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.172, allocations: 8.375 kB / 0.9809 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.172, allocations: 4.375 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.1721, allocations: 62.23 kB / 0.981 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1722, allocations: 3.938 kB / 0.981 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.1722, allocations: 4 kB / 0.981 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1722, allocations: 3.984 kB / 0.981 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.1723, allocations: 59.89 kB / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.1727, allocations: 284.7 kB / 0.9813 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.1728, allocations: 46.56 kB / 0.9813 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.045e-05/0.1729, allocations: 36.92 kB / 0.9814 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.1729, allocations: 0 / 0.9814 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001508/0.1731, allocations: 75.33 kB / 0.9815 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.1731, allocations: 0 / 0.9815 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0003162/0.1734, allocations: 121.6 kB / 0.9816 GB, free: 25 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.232e-05/0.1734, allocations: 51.41 kB / 0.9816 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.195e-05/0.1735, allocations: 109.8 kB / 0.9817 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.1735, allocations: 33.7 kB / 0.9818 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.345e-05/0.1735, allocations: 84.05 kB / 0.9818 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.298e-05/0.1736, allocations: 15.84 kB / 0.9818 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-06/0.1736, allocations: 0 / 0.9818 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.128e-05/0.1736, allocations: 322.8 kB / 0.9822 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.607e-05/0.1737, allocations: 27.98 kB / 0.9822 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.627e-05/0.1738, allocations: 55.34 kB / 0.9822 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.174, allocations: 87.39 kB / 0.9823 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.174, allocations: 0 / 0.9823 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002062/0.1742, allocations: 113.4 kB / 0.9824 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.809e-06/0.1742, allocations: 8 kB / 0.9824 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.1742, allocations: 0 / 0.9824 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.1742, allocations: 0 / 0.9824 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.805e-05/0.1743, allocations: 15.98 kB / 0.9824 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.1743, allocations: 4.125 kB / 0.9825 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.916e-05/0.1744, allocations: 15.98 kB / 0.9825 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.1744, allocations: 0 / 0.9825 GB, free: 24.01 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.1745, allocations: 131 kB / 0.9826 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-06/0.1745, allocations: 4 kB / 0.9826 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002133/0.1747, allocations: 101.6 kB / 0.9827 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1747, allocations: 0 / 0.9827 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1747, allocations: 0 / 0.9827 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1747, allocations: 0 / 0.9827 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002903/0.175, allocations: 362.7 kB / 0.983 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.175, allocations: 4 kB / 0.983 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.212e-05/0.1751, allocations: 12 kB / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1751, allocations: 3.938 kB / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.1751, allocations: 0 / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1751, allocations: 3.984 kB / 0.9831 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1751, allocations: 0 / 0.9831 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.1753, allocations: 199.4 kB / 0.9833 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.565e-05/0.1754, allocations: 81.02 kB / 0.9833 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1754, allocations: 4 kB / 0.9833 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-05/0.1755, allocations: 11.98 kB / 0.9833 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.959e-05/0.1755, allocations: 7.938 kB / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.1755, allocations: 3.984 kB / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.097e-05/0.1755, allocations: 83.28 kB / 0.9834 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1755, allocations: 0 / 0.9834 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001979/0.1757, allocations: 12 kB / 0.9834 GB, free: 22.9 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003714/0.1761, allocations: 0.7281 MB / 0.9842 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002035/0.1763, allocations: 71.89 kB / 0.9842 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1763, allocations: 0 / 0.9842 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.118e-05/0.1764, allocations: 35.91 kB / 0.9843 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.1767, allocations: 12.19 kB / 0.9843 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006994/0.1774, allocations: 490.6 kB / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.99e-05/0.1775, allocations: 0.6809 MB / 0.9854 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.839e-05/0.1775, allocations: 11.98 kB / 0.9854 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.745e-05/0.1775, allocations: 15.38 kB / 0.9854 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.1775, allocations: 3.938 kB / 0.9854 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01096/0.1885, allocations: 1.426 MB / 0.9868 GB, free: 19.47 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000133/0.1887, allocations: 196.8 kB / 0.987 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.44/1.629, allocations: 0 / 0.987 GB, free: 19.22 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)