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.001721/0.001721, allocations: 103.3 kB / 16.4 MB, free: 6.508 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.001721/0.001721, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8197/0.8197, allocations: 126.7 MB / 417.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 69.61 kB / 0.5735 GB, free: 27.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1354, allocations: 78.85 MB / 0.6505 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01886/0.1543, allocations: 15.5 MB / 0.6657 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006832/0.1612, allocations: 4.29 MB / 0.6699 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005885/0.1618, allocations: 19.88 kB / 0.6699 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0008967/0.1627, allocations: 262.3 kB / 0.6701 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.1643, allocations: 0.5946 MB / 0.6707 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001954/0.1663, allocations: 0.7089 MB / 0.6714 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001332/0.1676, allocations: 1.009 MB / 0.6724 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004924/0.1681, allocations: 340 kB / 0.6727 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008052/0.169, allocations: 466.2 kB / 0.6732 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004313/0.1694, allocations: 310.5 kB / 0.6735 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.237e-05/0.1695, allocations: 28 kB / 0.6735 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.1707, allocations: 0.6278 MB / 0.6741 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.1708, allocations: 103.6 kB / 0.6742 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.1711, allocations: 226.7 kB / 0.6744 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.1722, allocations: 0.7511 MB / 0.6752 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1722, allocations: 4 kB / 0.6752 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.684e-06/0.1722, allocations: 0 / 0.6752 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.1722, allocations: 0 / 0.6752 GB, free: 10.3 MB / 0.5137 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.001237/0.1734, allocations: 0.8321 MB / 0.676 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.1735, allocations: 8.031 kB / 0.676 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.354e-05/0.1736, allocations: 54.73 kB / 0.676 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.1737, allocations: 64.59 kB / 0.6761 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006638/0.1744, allocations: 432.9 kB / 0.6765 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.1744, allocations: 20.44 kB / 0.6765 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/0.1744, allocations: 28 kB / 0.6765 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004435/0.1749, allocations: 211.2 kB / 0.6768 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1749, allocations: 0 / 0.6768 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.1749, allocations: 15.98 kB / 0.6768 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.175, allocations: 4 kB / 0.6768 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004049/0.1754, allocations: 165.6 kB / 0.6769 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.177, allocations: 0.9304 MB / 0.6778 GB, free: 7.367 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.1773, allocations: 138.6 kB / 0.678 GB, free: 7.223 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.1775, allocations: 68.81 kB / 0.678 GB, free: 7.152 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003173/0.1778, allocations: 336.4 kB / 0.6784 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.1779, allocations: 42.5 kB / 0.6784 GB, free: 6.699 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 3.146e-06/0.1779, allocations: 3.984 kB / 0.6784 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14): time 0.0006446/0.1785, allocations: 233.3 kB / 0.6786 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.1786, allocations: 51.41 kB / 0.6787 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005529/0.1791, allocations: 469.8 kB / 0.6791 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.1792, allocations: 33.7 kB / 0.6792 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.1794, allocations: 224.7 kB / 0.6794 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.1794, allocations: 55.53 kB / 0.6794 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-05/0.1795, allocations: 61.62 kB / 0.6795 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1797, allocations: 350.8 kB / 0.6798 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.1799, allocations: 76.81 kB / 0.6799 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.1802, allocations: 159.5 kB / 0.68 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.1806, allocations: 158.4 kB / 0.6802 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1806, allocations: 0 / 0.6802 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005592/0.1812, allocations: 259 kB / 0.6804 GB, free: 4.508 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1812, allocations: 8 kB / 0.6804 GB, free: 4.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1813, allocations: 0 / 0.6804 GB, free: 4.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1813, allocations: 4 kB / 0.6804 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.1815, allocations: 47.97 kB / 0.6805 GB, free: 4.449 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1816, allocations: 0 / 0.6805 GB, free: 4.449 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/0.1819, allocations: 39.8 kB / 0.6805 GB, free: 4.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.1819, allocations: 4 kB / 0.6805 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003133/0.1822, allocations: 196 kB / 0.6807 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002777/0.1825, allocations: 163.1 kB / 0.6809 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003636/0.1829, allocations: 170.9 kB / 0.681 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.152e-06/0.1829, allocations: 0 / 0.681 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005393/0.1834, allocations: 257.2 kB / 0.6813 GB, free: 3.582 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.1835, allocations: 4 kB / 0.6813 GB, free: 3.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/0.1835, allocations: 0 / 0.6813 GB, free: 3.578 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.09e-06/0.1835, allocations: 8.062 kB / 0.6813 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.1837, allocations: 47.91 kB / 0.6813 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.366e-06/0.1837, allocations: 0 / 0.6813 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.184, allocations: 40.03 kB / 0.6814 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.1841, allocations: 19.92 kB / 0.6814 GB, free: 3.465 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.0001387/0.1842, allocations: 184.3 kB / 0.6816 GB, free: 3.277 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.84e-05/0.1843, allocations: 51.7 kB / 0.6816 GB, free: 3.227 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005864/0.1849, allocations: 258.7 kB / 0.6819 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.1849, allocations: 4 kB / 0.6819 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1849, allocations: 3.938 kB / 0.6819 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1849, allocations: 3.938 kB / 0.6819 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.186, allocations: 0.7007 MB / 0.6826 GB, free: 2.191 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1861, allocations: 0 / 0.6826 GB, free: 2.191 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.1862, allocations: 35.86 kB / 0.6826 GB, free: 2.156 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1862, allocations: 0 / 0.6826 GB, free: 2.156 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.1862, allocations: 4 kB / 0.6826 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1862, allocations: 4 kB / 0.6826 GB, free: 2.148 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.1862, allocations: 4.125 kB / 0.6826 GB, free: 2.145 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005285/0.1868, allocations: 342.5 kB / 0.6829 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.1869, allocations: 144.7 kB / 0.6831 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.187, allocations: 8 kB / 0.6831 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.1872, allocations: 19.97 kB / 0.6831 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.1873, allocations: 7.984 kB / 0.6831 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1873, allocations: 8 kB / 0.6831 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003865/0.1877, allocations: 319.1 kB / 0.6834 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1877, allocations: 0 / 0.6834 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006761/0.1884, allocations: 207.5 kB / 0.6836 GB, free: 1.07 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.002308/0.1907, allocations: 1.246 MB / 0.6848 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0007037/0.1914, allocations: 275.6 kB / 0.6851 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1914, allocations: 0 / 0.6851 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.1916, allocations: 83.89 kB / 0.6852 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.1927, allocations: 196.3 kB / 0.6854 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.1976, allocations: 3.331 MB / 0.6886 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004645/0.198, allocations: 0.823 MB / 0.6894 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003099/0.1984, allocations: 83.2 kB / 0.6895 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.1986, allocations: 143.4 kB / 0.6896 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of SimCode: time 5.91e-07/0.1986, allocations: 4 kB / 0.6896 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03803/0.2366, allocations: 12.73 MB / 0.7021 GB, free: 14.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.574/8.81, allocations: 8.422 kB / 0.7021 GB, free: 14.31 MB / 0.545 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)