Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001547/0.001547, allocations: 194.4 kB / 16.14 MB, free: 6.664 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.311/1.311, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 278.8 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9317/0.9317, allocations: 169.2 MB / 0.4977 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 90.75 kB / 0.5945 GB, free: 28.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1492, allocations: 86.99 MB / 0.6794 GB, free: 1.211 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01542/0.1647, allocations: 15.47 MB / 0.6946 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005554/0.1703, allocations: 4.35 MB / 0.6988 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003228/0.1706, allocations: 15.88 kB / 0.6988 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007413/0.1714, allocations: 222.9 kB / 0.699 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001073/0.1725, allocations: 0.5526 MB / 0.6996 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.1739, allocations: 0.641 MB / 0.7002 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001185/0.1751, allocations: 1.302 MB / 0.7015 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.1754, allocations: 291.7 kB / 0.7017 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005336/0.176, allocations: 386.3 kB / 0.7021 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.1763, allocations: 334.4 kB / 0.7024 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.985e-05/0.1764, allocations: 16 kB / 0.7024 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008938/0.1773, allocations: 0.6004 MB / 0.703 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.1774, allocations: 91.59 kB / 0.7031 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.1776, allocations: 214.8 kB / 0.7033 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008095/0.1784, allocations: 0.7438 MB / 0.7041 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1784, allocations: 0 / 0.7041 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.71e-07/0.1784, allocations: 0 / 0.7041 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.972e-06/0.1785, allocations: 0 / 0.7041 GB, free: 7.93 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001119/0.1796, allocations: 0.8408 MB / 0.7049 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.1796, allocations: 8.031 kB / 0.7049 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.1797, allocations: 56.28 kB / 0.7049 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004829/0.1802, allocations: 413.4 kB / 0.7053 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.1803, allocations: 20.44 kB / 0.7054 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.1803, allocations: 28 kB / 0.7054 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003958/0.1807, allocations: 211.2 kB / 0.7056 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1807, allocations: 0 / 0.7056 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.1807, allocations: 8 kB / 0.7056 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.1808, allocations: 4 kB / 0.7056 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003487/0.1811, allocations: 173.6 kB / 0.7058 GB, free: 6.098 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.001432/0.1825, allocations: 0.9379 MB / 0.7067 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003681/0.1829, allocations: 130 kB / 0.7068 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.1831, allocations: 72.81 kB / 0.7069 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002535/0.1834, allocations: 344.4 kB / 0.7072 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.1834, allocations: 38.5 kB / 0.7072 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.203e-06/0.1834, allocations: 0 / 0.7072 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0005763/0.184, allocations: 237 kB / 0.7075 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.184, allocations: 51.41 kB / 0.7075 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004619/0.1845, allocations: 481.9 kB / 0.708 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.1845, allocations: 33.7 kB / 0.708 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.1847, allocations: 236.6 kB / 0.7082 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.39e-05/0.1847, allocations: 47.3 kB / 0.7083 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-05/0.1848, allocations: 57.69 kB / 0.7083 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.185, allocations: 354.7 kB / 0.7087 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.1851, allocations: 80.75 kB / 0.7087 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.1854, allocations: 149.3 kB / 0.7089 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.1857, allocations: 172.8 kB / 0.709 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1858, allocations: 8 kB / 0.7091 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004932/0.1863, allocations: 249 kB / 0.7093 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1863, allocations: 8 kB / 0.7093 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1863, allocations: 0 / 0.7093 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.1863, allocations: 0 / 0.7093 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.1865, allocations: 43.97 kB / 0.7093 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.1865, allocations: 4 kB / 0.7093 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.1869, allocations: 47.73 kB / 0.7094 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.1869, allocations: 12 kB / 0.7094 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002552/0.1872, allocations: 188.7 kB / 0.7096 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002267/0.1874, allocations: 157.4 kB / 0.7097 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003081/0.1877, allocations: 168.1 kB / 0.7099 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.152e-06/0.1877, allocations: 4 kB / 0.7099 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004676/0.1882, allocations: 248.9 kB / 0.7101 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.602e-06/0.1882, allocations: 4 kB / 0.7101 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-06/0.1882, allocations: 4 kB / 0.7101 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-06/0.1882, allocations: 0 / 0.7101 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.1884, allocations: 52.09 kB / 0.7102 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1884, allocations: 7.984 kB / 0.7102 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.1888, allocations: 43.86 kB / 0.7102 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.1888, allocations: 11.98 kB / 0.7103 GB, free: 1.172 MB / 0.4981 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 9.531e-05/0.1889, allocations: 196.9 kB / 0.7104 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.189, allocations: 43.44 kB / 0.7105 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005167/0.1895, allocations: 258.2 kB / 0.7107 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1895, allocations: 3.938 kB / 0.7107 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1896, allocations: 0 / 0.7107 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.1896, allocations: 4 kB / 0.7107 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009221/0.1905, allocations: 0.7113 MB / 0.7114 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1905, allocations: 0 / 0.7114 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.1906, allocations: 39.91 kB / 0.7115 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1906, allocations: 0 / 0.7115 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.1907, allocations: 4 kB / 0.7115 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.1907, allocations: 3.938 kB / 0.7115 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.1907, allocations: 4 kB / 0.7115 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004411/0.1911, allocations: 338.4 kB / 0.7118 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.1913, allocations: 140.5 kB / 0.7119 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.037e-05/0.1913, allocations: 8 kB / 0.7119 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.1916, allocations: 31.84 kB / 0.712 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.1916, allocations: 11.98 kB / 0.712 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.1916, allocations: 4 kB / 0.712 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003266/0.192, allocations: 338.9 kB / 0.7123 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.192, allocations: 4 kB / 0.7123 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005794/0.1925, allocations: 191.7 kB / 0.7125 GB, free: 14.75 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.001007/0.1936, allocations: 483.2 kB / 0.713 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005985/0.1942, allocations: 259.7 kB / 0.7132 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1942, allocations: 0 / 0.7132 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.1944, allocations: 88.2 kB / 0.7133 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.1956, allocations: 229.1 kB / 0.7135 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.1967, allocations: 0.8395 MB / 0.7143 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.197, allocations: 0.8272 MB / 0.7151 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002706/0.1973, allocations: 87.39 kB / 0.7152 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.691e-05/0.1974, allocations: 39.44 kB / 0.7153 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.1974, allocations: 0 / 0.7153 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of Templates: time 0.01304/0.2105, allocations: 8.342 MB / 0.7234 GB, free: 3.793 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)