Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008462/0.008462, allocations: 168.9 kB / 16.26 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 223.3 MB / 240.3 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001717/0.001717, allocations: 278.4 kB / 291.7 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9088/0.9088, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004271/0.0004271, allocations: 15.59 kB / 0.5988 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1369, allocations: 88.55 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01429/0.1513, allocations: 16.84 MB / 0.7017 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005437/0.1567, allocations: 4.86 MB / 0.7064 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.157, allocations: 15.88 kB / 0.7064 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005597/0.1575, allocations: 210.9 kB / 0.7066 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009288/0.1585, allocations: 0.56 MB / 0.7072 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.1598, allocations: 0.6488 MB / 0.7078 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001063/0.1608, allocations: 1.274 MB / 0.7091 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003431/0.1612, allocations: 280.2 kB / 0.7093 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004812/0.1617, allocations: 370.4 kB / 0.7097 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.162, allocations: 318.5 kB / 0.71 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.1621, allocations: 16 kB / 0.71 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008871/0.163, allocations: 0.6861 MB / 0.7107 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.1631, allocations: 115.6 kB / 0.7108 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.1633, allocations: 260.3 kB / 0.711 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008127/0.1641, allocations: 0.8489 MB / 0.7119 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1641, allocations: 0 / 0.7119 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.92e-07/0.1641, allocations: 0 / 0.7119 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.1641, allocations: 0 / 0.7119 GB, free: 3.609 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009317/0.1651, allocations: 0.7865 MB / 0.7126 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1651, allocations: 12.03 kB / 0.7126 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.404e-05/0.1651, allocations: 58.73 kB / 0.7127 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.1653, allocations: 60.19 kB / 0.7128 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004848/0.1658, allocations: 449.4 kB / 0.7132 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.1658, allocations: 24.56 kB / 0.7132 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.1658, allocations: 28 kB / 0.7132 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004439/0.1663, allocations: 294.2 kB / 0.7135 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1663, allocations: 3.938 kB / 0.7135 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.1663, allocations: 12 kB / 0.7135 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1663, allocations: 4 kB / 0.7135 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.1667, allocations: 202.1 kB / 0.7137 GB, free: 1.59 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.1683, allocations: 1.484 MB / 0.7152 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.1686, allocations: 170.6 kB / 0.7153 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.1688, allocations: 92.83 kB / 0.7154 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001431/0.1702, allocations: 1.276 MB / 0.7167 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.1703, allocations: 38.5 kB / 0.7167 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.1703, allocations: 7.938 kB / 0.7167 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0005651/0.1708, allocations: 267.2 kB / 0.717 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.1709, allocations: 55.39 kB / 0.717 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005802/0.1715, allocations: 0.5847 MB / 0.7176 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.1715, allocations: 33.7 kB / 0.7176 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.1717, allocations: 264.1 kB / 0.7179 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.1717, allocations: 59.19 kB / 0.7179 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.1718, allocations: 29.7 kB / 0.718 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.1719, allocations: 358.8 kB / 0.7183 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.1721, allocations: 84.52 kB / 0.7184 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.1723, allocations: 214.7 kB / 0.7186 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.1727, allocations: 239.1 kB / 0.7188 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1727, allocations: 0 / 0.7188 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005382/0.1733, allocations: 332.7 kB / 0.7191 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.521e-05/0.1734, allocations: 159.9 kB / 0.7193 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1734, allocations: 0 / 0.7193 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1734, allocations: 4 kB / 0.7193 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.1736, allocations: 63.91 kB / 0.7194 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1737, allocations: 11.92 kB / 0.7194 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.174, allocations: 55.61 kB / 0.7194 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.174, allocations: 15.98 kB / 0.7194 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.671e-06/0.174, allocations: 4 kB / 0.7194 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004513/0.1745, allocations: 247.7 kB / 0.7197 GB, free: 11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-06/0.1745, allocations: 192 / 0.7197 GB, free: 11 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.77e-06/0.1745, allocations: 7.938 kB / 0.7197 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.1747, allocations: 67.91 kB / 0.7198 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1747, allocations: 4 kB / 0.7198 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.175, allocations: 51.83 kB / 0.7198 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.1751, allocations: 12 kB / 0.7198 GB, free: 10.86 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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 0.00018/0.1753, allocations: 262.3 kB / 0.7201 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.449e-05/0.1753, allocations: 51.42 kB / 0.7201 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005043/0.1758, allocations: 273.6 kB / 0.7204 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1759, allocations: 4.078 kB / 0.7204 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1759, allocations: 3.938 kB / 0.7204 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1759, allocations: 0 / 0.7204 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009018/0.1768, allocations: 0.7434 MB / 0.7211 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.1768, allocations: 4 kB / 0.7211 GB, free: 9.441 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.1769, allocations: 36.11 kB / 0.7211 GB, free: 9.406 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1769, allocations: 4 kB / 0.7212 GB, free: 9.402 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.1769, allocations: 7.922 kB / 0.7212 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.1769, allocations: 4 kB / 0.7212 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.177, allocations: 0 / 0.7212 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004357/0.1774, allocations: 363.5 kB / 0.7215 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.1775, allocations: 156.3 kB / 0.7217 GB, free: 8.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.888e-05/0.1776, allocations: 7.984 kB / 0.7217 GB, free: 8.828 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.1778, allocations: 23.98 kB / 0.7217 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.65e-05/0.1779, allocations: 15.92 kB / 0.7217 GB, free: 8.789 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.1779, allocations: 8 kB / 0.7217 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004065/0.1783, allocations: 418.8 kB / 0.7221 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1783, allocations: 0 / 0.7221 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006267/0.1789, allocations: 235.6 kB / 0.7223 GB, free: 8.145 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.007603/0.1865, allocations: 1.284 MB / 0.7236 GB, free: 6.969 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006762/0.1872, allocations: 335.8 kB / 0.7239 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1872, allocations: 0 / 0.7239 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.1874, allocations: 88.89 kB / 0.724 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.1888, allocations: 262.6 kB / 0.7242 GB, free: 6.305 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.1934, allocations: 4.205 MB / 0.7284 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.1938, allocations: 0.8506 MB / 0.7292 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003018/0.1941, allocations: 100.3 kB / 0.7293 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.1943, allocations: 167.3 kB / 0.7294 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of SimCode: time 3.1e-07/0.1943, allocations: 0 / 0.7294 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.431/1.626, allocations: 14.23 MB / 0.7433 GB, free: 2.902 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003131/1.626, allocations: 272.3 kB / 0.7436 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.152/3.778, allocations: 0 / 0.7436 GB, free: 2.539 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)