Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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.451/1.451, allocations: 287.4 MB / 302.6 MB, free: 8.199 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.000846/0.0008459, allocations: 173 kB / 371.1 MB, free: 10.81 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.165/1.165, allocations: 205.4 MB / 0.6298 GB, free: 10.59 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.0005976/0.0005975, allocations: 93.22 kB / 0.7431 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003259, allocations: 13.5 kB / 0.8662 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1628, allocations: 115.3 MB / 0.9787 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00076/0.1637, allocations: 0.5255 MB / 0.9793 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1647, allocations: 1.169 MB / 0.9804 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.876e-05/0.1648, allocations: 0 / 0.9804 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.828e-05/0.1648, allocations: 3.938 kB / 0.9804 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.758e-05/0.1649, allocations: 11.92 kB / 0.9804 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000377/0.1653, allocations: 143.4 kB / 0.9806 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.814e-05/0.1654, allocations: 123.7 kB / 0.9807 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.74e-05/0.1655, allocations: 20.22 kB / 0.9807 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.015e-05/0.1655, allocations: 51.89 kB / 0.9807 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.399e-05/0.1656, allocations: 47.8 kB / 0.9808 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.1656, allocations: 8 kB / 0.9808 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.431e-05/0.1657, allocations: 27.92 kB / 0.9808 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.9e-05/0.1657, allocations: 15.92 kB / 0.9808 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.803e-05/0.1658, allocations: 45.64 kB / 0.9809 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.832e-05/0.1659, allocations: 99.98 kB / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1659, allocations: 0 / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.863e-06/0.1659, allocations: 0 / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.316e-06/0.1659, allocations: 0 / 0.981 GB, free: 25.8 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.0004657/0.1664, allocations: 429 kB / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.1664, allocations: 12.03 kB / 0.9814 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.794e-05/0.1664, allocations: 34.75 kB / 0.9814 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.655e-05/0.1665, allocations: 12.84 kB / 0.9814 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.336e-05/0.1665, allocations: 176.2 kB / 0.9816 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.1666, allocations: 8.312 kB / 0.9816 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.1666, allocations: 12.38 kB / 0.9816 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.1668, allocations: 106.2 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1669, allocations: 3.938 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1669, allocations: 4 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1669, allocations: 4 kB / 0.9817 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002939/0.1672, allocations: 111.9 kB / 0.9818 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000442/0.1676, allocations: 392.4 kB / 0.9822 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.1679, allocations: 102.7 kB / 0.9823 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.1681, allocations: 72.75 kB / 0.9824 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.1681, allocations: 0 / 0.9824 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000275/0.1684, allocations: 127.3 kB / 0.9825 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 1.754e-06/0.1684, allocations: 0 / 0.9825 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0005691/0.169, allocations: 253.3 kB / 0.9828 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.169, allocations: 55.34 kB / 0.9828 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.759e-05/0.1691, allocations: 127.5 kB / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.1691, allocations: 33.7 kB / 0.983 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.071e-05/0.1692, allocations: 96.12 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.1692, allocations: 35.55 kB / 0.9831 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.23e-05/0.1692, allocations: 8 kB / 0.9831 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.886e-05/0.1693, allocations: 326.8 kB / 0.9834 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.1695, allocations: 83.94 kB / 0.9835 GB, free: 23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.1697, allocations: 134.4 kB / 0.9836 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003411/0.17, allocations: 202.6 kB / 0.9838 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.17, allocations: 7.938 kB / 0.9838 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004916/0.1705, allocations: 284 kB / 0.9841 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.1706, allocations: 37.69 kB / 0.9841 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1706, allocations: 4 kB / 0.9841 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.1706, allocations: 0 / 0.9841 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.1707, allocations: 28.02 kB / 0.9841 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.1708, allocations: 3.938 kB / 0.9842 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.171, allocations: 67.78 kB / 0.9842 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.171, allocations: 12 kB / 0.9842 GB, free: 22.18 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 7.546e-05/0.1711, allocations: 135 kB / 0.9844 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.365e-05/0.1711, allocations: 7.906 kB / 0.9844 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000397/0.1715, allocations: 193.9 kB / 0.9845 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1715, allocations: 3.984 kB / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1715, allocations: 3.938 kB / 0.9846 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1716, allocations: 4 kB / 0.9846 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.1721, allocations: 478.2 kB / 0.985 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1721, allocations: 0 / 0.985 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.387e-05/0.1722, allocations: 19.98 kB / 0.985 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1722, allocations: 0 / 0.985 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.1722, allocations: 8 kB / 0.985 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1722, allocations: 0 / 0.985 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.1722, allocations: 3.938 kB / 0.985 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/0.1726, allocations: 280.1 kB / 0.9853 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.907e-05/0.1726, allocations: 85 kB / 0.9854 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.1726, allocations: 8 kB / 0.9854 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.1727, allocations: 15.98 kB / 0.9854 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.1728, allocations: 23.84 kB / 0.9854 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.1728, allocations: 4 kB / 0.9854 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.123e-05/0.1729, allocations: 97.39 kB / 0.9855 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1729, allocations: 4 kB / 0.9855 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000223/0.1731, allocations: 35.92 kB / 0.9856 GB, free: 20.7 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.0005452/0.1736, allocations: 0.8256 MB / 0.9864 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004318/0.1741, allocations: 259.2 kB / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1741, allocations: 256 / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.1743, allocations: 75.95 kB / 0.9867 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002494/0.1745, allocations: 23.86 kB / 0.9867 GB, free: 19.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.1758, allocations: 0.8625 MB / 0.9876 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.547e-05/0.1759, allocations: 0.6926 MB / 0.9882 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.869e-05/0.1759, allocations: 12.55 kB / 0.9883 GB, free: 17.83 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.648e-05/0.176, allocations: 31.42 kB / 0.9883 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.176, allocations: 0 / 0.9883 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01159/0.1876, allocations: 2.734 MB / 0.991 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/0.1878, allocations: 193.6 kB / 0.9911 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.423/1.611, allocations: 2.391 kB / 0.9911 GB, free: 14.98 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)