Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.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.LogicalSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",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.448/1.448, allocations: 287.4 MB / 302.5 MB, free: 8.188 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.0008718/0.0008718, allocations: 183.4 kB / 371.1 MB, free: 10.75 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.194/1.194, allocations: 205.4 MB / 0.6298 GB, free: 10.54 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.0007123/0.0007123, allocations: 104.2 kB / 0.7431 GB, free: 6.516 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003418, allocations: 18.5 kB / 0.8662 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1607, allocations: 115.3 MB / 0.9788 GB, free: 28.07 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.0006864/0.1615, allocations: 430.4 kB / 0.9792 GB, free: 27.64 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.1627, allocations: 1.246 MB / 0.9804 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.516e-05/0.1627, allocations: 0 / 0.9804 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.861e-05/0.1628, allocations: 7.922 kB / 0.9804 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.449e-05/0.1628, allocations: 15.86 kB / 0.9804 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007034/0.1635, allocations: 277.4 kB / 0.9807 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.1637, allocations: 207.5 kB / 0.9809 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.571e-05/0.1638, allocations: 12.19 kB / 0.9809 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.1639, allocations: 87.86 kB / 0.981 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.153e-05/0.164, allocations: 71.77 kB / 0.981 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.809e-05/0.1641, allocations: 12 kB / 0.981 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.039e-05/0.1641, allocations: 23.98 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.1642, allocations: 11.98 kB / 0.9811 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.054e-05/0.1642, allocations: 49.64 kB / 0.9811 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.1643, allocations: 151.8 kB / 0.9813 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1643, allocations: 0 / 0.9813 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.283e-06/0.1644, allocations: 0 / 0.9813 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.1644, allocations: 0 / 0.9813 GB, free: 25.47 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003471/0.1647, allocations: 462.4 kB / 0.9817 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1648, allocations: 12.03 kB / 0.9817 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.545e-05/0.1648, allocations: 34.75 kB / 0.9818 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.27e-05/0.1648, allocations: 16.84 kB / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.367e-05/0.1649, allocations: 176.2 kB / 0.9819 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.165, allocations: 8.375 kB / 0.9819 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.165, allocations: 20.31 kB / 0.982 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.429e-05/0.1651, allocations: 61.97 kB / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.892e-06/0.1651, allocations: 0 / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.1651, allocations: 0 / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1651, allocations: 0 / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.208e-05/0.1652, allocations: 23.92 kB / 0.982 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.1656, allocations: 416.6 kB / 0.9824 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.858e-05/0.1656, allocations: 42.44 kB / 0.9825 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.934e-05/0.1657, allocations: 24.94 kB / 0.9825 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 8.697e-06/0.1657, allocations: 0 / 0.9825 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001432/0.1658, allocations: 103.2 kB / 0.9826 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.1658, allocations: 0 / 0.9826 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0002309/0.1661, allocations: 141.5 kB / 0.9827 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.468e-05/0.1661, allocations: 55.41 kB / 0.9828 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.661e-05/0.1662, allocations: 125.8 kB / 0.9829 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.1662, allocations: 33.7 kB / 0.9829 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.1663, allocations: 104 kB / 0.983 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.1663, allocations: 23.81 kB / 0.9831 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.917e-05/0.1663, allocations: 4 kB / 0.9831 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.02e-05/0.1664, allocations: 326.8 kB / 0.9834 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.1665, allocations: 87.95 kB / 0.9835 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.1667, allocations: 130 kB / 0.9836 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.1669, allocations: 237.6 kB / 0.9838 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1669, allocations: 4 kB / 0.9838 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004455/0.1673, allocations: 382.5 kB / 0.9842 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.1674, allocations: 97.09 kB / 0.9843 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1674, allocations: 0 / 0.9843 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.1674, allocations: 4 kB / 0.9843 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.85e-05/0.1674, allocations: 11.92 kB / 0.9843 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.1674, allocations: 0 / 0.9843 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004863/0.1679, allocations: 113.9 kB / 0.9844 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.168, allocations: 19.98 kB / 0.9844 GB, free: 21.9 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.534e-05/0.168, allocations: 143 kB / 0.9846 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.142e-05/0.1681, allocations: 7.906 kB / 0.9846 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.006e-05/0.1681, allocations: 8.375 kB / 0.9846 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1681, allocations: 384 / 0.9846 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1681, allocations: 4 kB / 0.9846 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1681, allocations: 0 / 0.9846 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.518e-05/0.1682, allocations: 193.5 kB / 0.9848 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1682, allocations: 11.94 kB / 0.9848 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.277e-06/0.1682, allocations: 3.938 kB / 0.9848 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1682, allocations: 3.938 kB / 0.9848 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.1682, allocations: 8 kB / 0.9848 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1683, allocations: 3.984 kB / 0.9848 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1683, allocations: 0 / 0.9848 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.1684, allocations: 136.9 kB / 0.9849 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.679e-05/0.1684, allocations: 81.02 kB / 0.985 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.1684, allocations: 15.98 kB / 0.985 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.082e-05/0.1685, allocations: 0 / 0.985 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.87e-05/0.1685, allocations: 7.984 kB / 0.985 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.1685, allocations: 8 kB / 0.985 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.114e-05/0.1685, allocations: 95.27 kB / 0.9851 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1685, allocations: 0 / 0.9851 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002224/0.1688, allocations: 43.91 kB / 0.9852 GB, free: 21.05 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002879/0.1691, allocations: 0.6787 MB / 0.9858 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003197/0.1694, allocations: 362 kB / 0.9862 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-06/0.1694, allocations: 0 / 0.9862 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.766e-05/0.1695, allocations: 40.11 kB / 0.9862 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.1697, allocations: 33.59 kB / 0.9862 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.1708, allocations: 0.8883 MB / 0.9871 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/0.1709, allocations: 0.7004 MB / 0.9878 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.353e-05/0.1709, allocations: 8.438 kB / 0.9878 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.171, allocations: 27.48 kB / 0.9878 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of SimCode: time 7.11e-07/0.171, allocations: 0 / 0.9878 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5643/0.7353, allocations: 3.469 MB / 0.9912 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.7355, allocations: 203.2 kB / 0.9914 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/2.349, allocations: 2.391 kB / 0.9914 GB, free: 14.63 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1)