Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.665/2.665, allocations: 287.9 MB / 302.9 MB, free: 8.23 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001405/0.001404, allocations: 175.9 kB / 371.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.123/2.123, allocations: 205.4 MB / 0.6301 GB, free: 10.43 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 104.9 kB / 0.7434 GB, free: 6.43 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005765/0.0005767, allocations: 21.41 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1587, allocations: 115.3 MB / 0.9788 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0008454/0.1596, allocations: 0.5139 MB / 0.9793 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.161, allocations: 1.161 MB / 0.9804 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.012e-05/0.161, allocations: 3.938 kB / 0.9804 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.745e-05/0.1611, allocations: 3.938 kB / 0.9804 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.725e-05/0.1611, allocations: 15.92 kB / 0.9804 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004901/0.1617, allocations: 126.2 kB / 0.9805 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.1618, allocations: 79.84 kB / 0.9806 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.469e-05/0.1619, allocations: 24.2 kB / 0.9806 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.652e-05/0.162, allocations: 47.91 kB / 0.9807 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.912e-05/0.1621, allocations: 47.8 kB / 0.9807 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.908e-05/0.1621, allocations: 8 kB / 0.9807 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.1622, allocations: 23.92 kB / 0.9808 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.1622, allocations: 11.98 kB / 0.9808 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.724e-05/0.1623, allocations: 45.64 kB / 0.9808 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.1624, allocations: 100 kB / 0.9809 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1624, allocations: 0 / 0.9809 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.916e-06/0.1624, allocations: 0 / 0.9809 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.573e-06/0.1625, allocations: 0 / 0.9809 GB, free: 25.99 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005595/0.163, allocations: 432.8 kB / 0.9813 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.1631, allocations: 12.03 kB / 0.9813 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/0.1631, allocations: 7.906 kB / 0.9814 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.555e-05/0.1632, allocations: 182.8 kB / 0.9815 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.1633, allocations: 15.92 kB / 0.9815 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.1633, allocations: 12 kB / 0.9816 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.1636, allocations: 105.6 kB / 0.9817 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.369e-06/0.1637, allocations: 0 / 0.9817 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1637, allocations: 4 kB / 0.9817 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.217e-06/0.1637, allocations: 0 / 0.9817 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003957/0.1641, allocations: 111.9 kB / 0.9818 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005815/0.1647, allocations: 388.5 kB / 0.9821 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.165, allocations: 98.66 kB / 0.9822 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.1651, allocations: 192 / 0.9822 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003415/0.1654, allocations: 143.2 kB / 0.9824 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 2.553e-06/0.1654, allocations: 0 / 0.9824 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0007597/0.1662, allocations: 241.4 kB / 0.9826 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.1662, allocations: 59.36 kB / 0.9827 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.848e-05/0.1663, allocations: 128.1 kB / 0.9828 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.1664, allocations: 33.64 kB / 0.9828 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.1665, allocations: 100 kB / 0.9829 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/0.1665, allocations: 27.66 kB / 0.9829 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.04e-05/0.1665, allocations: 8 kB / 0.9829 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.632e-05/0.1666, allocations: 326.7 kB / 0.9832 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.1669, allocations: 87.94 kB / 0.9833 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003263/0.1672, allocations: 132.1 kB / 0.9835 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.1675, allocations: 113.8 kB / 0.9836 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.961e-06/0.1676, allocations: 0 / 0.9836 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007452/0.1683, allocations: 283.8 kB / 0.9838 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.1684, allocations: 38.78 kB / 0.9839 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.388e-06/0.1684, allocations: 4 kB / 0.9839 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1684, allocations: 4.125 kB / 0.9839 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.1686, allocations: 27.94 kB / 0.9839 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.101e-06/0.1686, allocations: 11.91 kB / 0.9839 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.1689, allocations: 59.95 kB / 0.984 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.169, allocations: 8 kB / 0.984 GB, free: 22.6 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 0.000105/0.1691, allocations: 129.8 kB / 0.9841 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.1691, allocations: 11.81 kB / 0.9841 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005397/0.1697, allocations: 197.8 kB / 0.9843 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.996e-06/0.1697, allocations: 0 / 0.9843 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.194e-06/0.1697, allocations: 11.95 kB / 0.9843 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.554e-06/0.1697, allocations: 0 / 0.9843 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007232/0.1705, allocations: 466.4 kB / 0.9848 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.174e-06/0.1705, allocations: 3.984 kB / 0.9848 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.1706, allocations: 19.98 kB / 0.9848 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.171e-06/0.1706, allocations: 0 / 0.9848 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.1707, allocations: 15.94 kB / 0.9848 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.26e-06/0.1707, allocations: 4 kB / 0.9848 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.866e-06/0.1707, allocations: 3.938 kB / 0.9848 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005298/0.1712, allocations: 275.4 kB / 0.9851 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.463e-05/0.1713, allocations: 81.02 kB / 0.9852 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.1713, allocations: 4 kB / 0.9852 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.1715, allocations: 23.88 kB / 0.9852 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.536e-05/0.1716, allocations: 19.97 kB / 0.9852 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.1716, allocations: 7.984 kB / 0.9852 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.179e-05/0.1717, allocations: 102.5 kB / 0.9853 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.77e-07/0.1717, allocations: 0 / 0.9853 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003759/0.1721, allocations: 28 kB / 0.9853 GB, free: 21.12 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: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000146/0.1722, allocations: 103.2 kB / 0.9854 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006446/0.1729, allocations: 255.2 kB / 0.9857 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.84e-06/0.1729, allocations: 8.25 kB / 0.9857 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002427/0.1731, allocations: 76.98 kB / 0.9858 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.1734, allocations: 24.55 kB / 0.9858 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004313/0.1739, allocations: 215.2 kB / 0.986 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/0.174, allocations: 0.6965 MB / 0.9867 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.716e-05/0.1741, allocations: 20.48 kB / 0.9867 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.658e-05/0.1742, allocations: 11.44 kB / 0.9867 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of SimCode: time 1.35e-06/0.1742, allocations: 0 / 0.9867 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of Templates: time 0.004899/0.1791, allocations: 1.64 MB / 0.9883 GB, free: 18.03 MB / 0.6198 GB