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.001723/0.001723, allocations: 103.1 kB / 16.4 MB, free: 6.469 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.001882/0.001882, allocations: 196 kB / 17.34 MB, free: 5.715 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8204/0.8204, allocations: 125.3 MB / 416.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 69.27 kB / 0.5716 GB, free: 27.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.134, allocations: 78.57 MB / 0.6484 GB, free: 5.648 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01788/0.1519, allocations: 15.49 MB / 0.6635 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006588/0.1586, allocations: 4.3 MB / 0.6677 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000436/0.159, allocations: 19.88 kB / 0.6677 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008514/0.1599, allocations: 258.4 kB / 0.6679 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.1614, allocations: 0.5999 MB / 0.6685 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.1631, allocations: 0.7001 MB / 0.6692 GB, free: 220 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001318/0.1645, allocations: 1.013 MB / 0.6702 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004844/0.165, allocations: 340 kB / 0.6705 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007806/0.1658, allocations: 462.2 kB / 0.671 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.1662, allocations: 306.6 kB / 0.6713 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.152e-05/0.1663, allocations: 31.94 kB / 0.6713 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.1674, allocations: 0.6239 MB / 0.6719 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.1676, allocations: 107.6 kB / 0.672 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002385/0.1678, allocations: 226.7 kB / 0.6722 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.1689, allocations: 0.7511 MB / 0.673 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1689, allocations: 0 / 0.673 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1689, allocations: 0 / 0.673 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.1689, allocations: 4 kB / 0.673 GB, free: 12.37 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.001235/0.1702, allocations: 0.8399 MB / 0.6738 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1702, allocations: 12.03 kB / 0.6738 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.741e-05/0.1703, allocations: 54.73 kB / 0.6738 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1704, allocations: 56.61 kB / 0.6739 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.1711, allocations: 436.9 kB / 0.6743 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.1711, allocations: 20.44 kB / 0.6743 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.1712, allocations: 28 kB / 0.6744 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004372/0.1716, allocations: 211.2 kB / 0.6746 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1716, allocations: 0 / 0.6746 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.1717, allocations: 8 kB / 0.6746 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1717, allocations: 8 kB / 0.6746 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.1721, allocations: 169.6 kB / 0.6747 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.1737, allocations: 0.9421 MB / 0.6757 GB, free: 9.414 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003153/0.174, allocations: 138.6 kB / 0.6758 GB, free: 9.27 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.1742, allocations: 68.81 kB / 0.6759 GB, free: 9.199 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003191/0.1745, allocations: 340.4 kB / 0.6762 GB, free: 8.793 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.1746, allocations: 38.5 kB / 0.6762 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 1.522e-06/0.1746, allocations: 0 / 0.6762 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14): time 0.0006593/0.1753, allocations: 233.3 kB / 0.6764 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.1753, allocations: 51.41 kB / 0.6765 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005511/0.1759, allocations: 461.9 kB / 0.6769 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.1759, allocations: 37.7 kB / 0.677 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001985/0.1761, allocations: 232.8 kB / 0.6772 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/0.1762, allocations: 47.53 kB / 0.6772 GB, free: 7.664 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.1763, allocations: 57.69 kB / 0.6773 GB, free: 7.602 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1765, allocations: 358.7 kB / 0.6776 GB, free: 7.242 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.1767, allocations: 68.81 kB / 0.6777 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.177, allocations: 159.5 kB / 0.6778 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/0.1773, allocations: 160.3 kB / 0.678 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1774, allocations: 0 / 0.678 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000546/0.1779, allocations: 267.3 kB / 0.6783 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1779, allocations: 4 kB / 0.6783 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1779, allocations: 4 kB / 0.6783 GB, free: 6.551 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.178, allocations: 0 / 0.6783 GB, free: 6.551 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.1782, allocations: 43.97 kB / 0.6783 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1782, allocations: 0 / 0.6783 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003155/0.1785, allocations: 43.8 kB / 0.6783 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.1786, allocations: 15.98 kB / 0.6784 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002947/0.1789, allocations: 188 kB / 0.6785 GB, free: 6.262 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002627/0.1792, allocations: 155.3 kB / 0.6787 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003586/0.1795, allocations: 179.3 kB / 0.6789 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.1795, allocations: 0 / 0.6789 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005337/0.1801, allocations: 257.2 kB / 0.6791 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.457e-06/0.1801, allocations: 4 kB / 0.6791 GB, free: 5.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-06/0.1801, allocations: 0 / 0.6791 GB, free: 5.629 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.026e-06/0.1801, allocations: 4 kB / 0.6791 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.1803, allocations: 43.97 kB / 0.6792 GB, free: 5.582 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-06/0.1803, allocations: 3.938 kB / 0.6792 GB, free: 5.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.1807, allocations: 39.86 kB / 0.6792 GB, free: 5.539 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.1807, allocations: 11.94 kB / 0.6792 GB, free: 5.527 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.0001276/0.1809, allocations: 192.3 kB / 0.6794 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.668e-05/0.1809, allocations: 43.72 kB / 0.6794 GB, free: 5.289 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005802/0.1815, allocations: 257.1 kB / 0.6797 GB, free: 5.035 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.1816, allocations: 4 kB / 0.6797 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1816, allocations: 0 / 0.6797 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1816, allocations: 7.875 kB / 0.6797 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.1826, allocations: 0.6968 MB / 0.6804 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.1827, allocations: 4 kB / 0.6804 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001349/0.1828, allocations: 39.84 kB / 0.6804 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1828, allocations: 0 / 0.6804 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.1828, allocations: 12.12 kB / 0.6804 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.1828, allocations: 4 kB / 0.6804 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1828, allocations: 0 / 0.6804 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005121/0.1834, allocations: 347.9 kB / 0.6808 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001456/0.1835, allocations: 140.9 kB / 0.6809 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/0.1836, allocations: 0 / 0.6809 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.1838, allocations: 19.97 kB / 0.6809 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.1838, allocations: 11.98 kB / 0.6809 GB, free: 3.645 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.1839, allocations: 8 kB / 0.6809 GB, free: 3.637 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003702/0.1842, allocations: 327.1 kB / 0.6812 GB, free: 3.32 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1843, allocations: 4 kB / 0.6812 GB, free: 3.316 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006443/0.1849, allocations: 199.5 kB / 0.6814 GB, free: 3.121 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.002268/0.1872, allocations: 1.252 MB / 0.6827 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006992/0.1879, allocations: 269.8 kB / 0.6829 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1879, allocations: 0 / 0.6829 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001984/0.1881, allocations: 87.89 kB / 0.683 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.1892, allocations: 197.1 kB / 0.6832 GB, free: 1.434 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004691/0.1939, allocations: 3.316 MB / 0.6864 GB, free: 14 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.1944, allocations: 0.827 MB / 0.6872 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002994/0.1947, allocations: 83.52 kB / 0.6873 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.1949, allocations: 143.4 kB / 0.6875 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of SimCode: time 6.61e-07/0.1949, allocations: 0 / 0.6875 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03655/0.2315, allocations: 12.74 MB / 0.6999 GB, free: 380 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.551/8.783, allocations: 3.938 kB / 0.6999 GB, free: 376 kB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)