Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.001173/0.001173, allocations: 106.2 kB / 16.41 MB, free: 6.488 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.001305/0.001305, allocations: 191.9 kB / 17.34 MB, free: 5.762 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7455/0.7455, allocations: 122.9 MB / 414.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 68.22 kB / 0.568 GB, free: 28.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1265, allocations: 77.94 MB / 0.6441 GB, free: 9.52 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01679/0.1433, allocations: 15.52 MB / 0.6592 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006619/0.1499, allocations: 4.348 MB / 0.6635 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008702/0.1508, allocations: 15.88 kB / 0.6635 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.1519, allocations: 262.4 kB / 0.6637 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001929/0.1539, allocations: 0.6297 MB / 0.6643 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.1559, allocations: 0.7196 MB / 0.665 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001501/0.1575, allocations: 1.033 MB / 0.6661 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005869/0.158, allocations: 336 kB / 0.6664 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000831/0.1589, allocations: 430.3 kB / 0.6668 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000555/0.1595, allocations: 326.5 kB / 0.6671 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.371e-05/0.1596, allocations: 28 kB / 0.6671 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.1607, allocations: 0.6317 MB / 0.6677 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.1609, allocations: 103.5 kB / 0.6678 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000337/0.1612, allocations: 218.8 kB / 0.668 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.1626, allocations: 0.7627 MB / 0.6688 GB, free: 112 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1626, allocations: 0 / 0.6688 GB, free: 112 kB / 0.4981 GB Notification: Performance of FrontEnd: time 2.024e-06/0.1626, allocations: 0 / 0.6688 GB, free: 112 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.688e-05/0.1626, allocations: 0 / 0.6688 GB, free: 112 kB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001587/0.1642, allocations: 0.8556 MB / 0.6696 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.1643, allocations: 8.625 kB / 0.6696 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.394e-05/0.1644, allocations: 62.67 kB / 0.6697 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.1645, allocations: 56.61 kB / 0.6697 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008244/0.1653, allocations: 437.5 kB / 0.6702 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.1654, allocations: 24.44 kB / 0.6702 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.1654, allocations: 28 kB / 0.6702 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004367/0.1659, allocations: 207.2 kB / 0.6704 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1659, allocations: 0 / 0.6704 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.1659, allocations: 12 kB / 0.6704 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.1659, allocations: 11.92 kB / 0.6704 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003774/0.1663, allocations: 161.6 kB / 0.6706 GB, free: 14.16 MB / 0.5137 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.001601/0.1679, allocations: 0.9498 MB / 0.6715 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.1682, allocations: 134.6 kB / 0.6716 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.1684, allocations: 68.81 kB / 0.6717 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002885/0.1687, allocations: 332.4 kB / 0.672 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1687, allocations: 42.55 kB / 0.6721 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.1688, allocations: 0 / 0.6721 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14): time 0.0006248/0.1694, allocations: 243.5 kB / 0.6723 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.1694, allocations: 51.41 kB / 0.6724 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004864/0.1699, allocations: 474 kB / 0.6728 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.17, allocations: 33.7 kB / 0.6728 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.1701, allocations: 236.8 kB / 0.6731 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.791e-05/0.1702, allocations: 47.58 kB / 0.6731 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-05/0.1703, allocations: 65.64 kB / 0.6732 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1704, allocations: 350.7 kB / 0.6735 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.1706, allocations: 72.81 kB / 0.6736 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.1709, allocations: 155.6 kB / 0.6737 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.1713, allocations: 162.5 kB / 0.6739 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1713, allocations: 0 / 0.6739 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005394/0.1718, allocations: 266.6 kB / 0.6741 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1718, allocations: 4 kB / 0.6741 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1718, allocations: 0 / 0.6741 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.1719, allocations: 4 kB / 0.6741 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.1721, allocations: 43.91 kB / 0.6742 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.1721, allocations: 4 kB / 0.6742 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.1724, allocations: 31.86 kB / 0.6742 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.1725, allocations: 12 kB / 0.6742 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000286/0.1728, allocations: 196 kB / 0.6744 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002544/0.173, allocations: 169 kB / 0.6746 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003518/0.1734, allocations: 168.2 kB / 0.6747 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.939e-06/0.1734, allocations: 4.172 kB / 0.6747 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005085/0.1739, allocations: 248.2 kB / 0.675 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.174, allocations: 11.94 kB / 0.675 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-06/0.174, allocations: 8 kB / 0.675 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.949e-06/0.174, allocations: 4 kB / 0.675 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.1742, allocations: 43.97 kB / 0.675 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.1742, allocations: 4 kB / 0.675 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003426/0.1745, allocations: 35.86 kB / 0.6751 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.1746, allocations: 11.98 kB / 0.6751 GB, free: 9.23 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.0001165/0.1747, allocations: 196.1 kB / 0.6753 GB, free: 9.031 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.1748, allocations: 47.72 kB / 0.6753 GB, free: 8.984 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005416/0.1753, allocations: 255.2 kB / 0.6756 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.1753, allocations: 4 kB / 0.6756 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1754, allocations: 0 / 0.6756 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1754, allocations: 192 / 0.6756 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.1764, allocations: 0.7006 MB / 0.6763 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1764, allocations: 0 / 0.6763 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.1765, allocations: 27.98 kB / 0.6763 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.1766, allocations: 7.969 kB / 0.6763 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1766, allocations: 7.938 kB / 0.6763 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.1766, allocations: 7.938 kB / 0.6763 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1766, allocations: 4.125 kB / 0.6763 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004677/0.1771, allocations: 342.4 kB / 0.6766 GB, free: 7.539 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.1772, allocations: 144.8 kB / 0.6768 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.1773, allocations: 7.938 kB / 0.6768 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.1775, allocations: 15.98 kB / 0.6768 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.1776, allocations: 23.8 kB / 0.6768 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.1776, allocations: 8 kB / 0.6768 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003565/0.1779, allocations: 334.9 kB / 0.6771 GB, free: 7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.178, allocations: 0 / 0.6771 GB, free: 7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006529/0.1786, allocations: 207.6 kB / 0.6773 GB, free: 6.797 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 (16): * Single equations (assignments): 14 * 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.001798/0.1804, allocations: 1.24 MB / 0.6786 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006605/0.1811, allocations: 281.4 kB / 0.6788 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1811, allocations: 0 / 0.6788 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.1813, allocations: 79.89 kB / 0.6789 GB, free: 5.305 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.1824, allocations: 200.1 kB / 0.6791 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004561/0.1869, allocations: 3.342 MB / 0.6824 GB, free: 1.66 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.1874, allocations: 0.823 MB / 0.6832 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003156/0.1877, allocations: 91.14 kB / 0.6832 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.1879, allocations: 147.3 kB / 0.6834 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of SimCode: time 1.763e-06/0.1879, allocations: 0 / 0.6834 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03275/0.2207, allocations: 12.83 MB / 0.6959 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.303/8.524, allocations: 3.938 kB / 0.6959 GB, free: 3.93 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)