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.001397/0.001397, allocations: 104.6 kB / 16.41 MB, free: 6.496 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.001296/0.001296, allocations: 183 kB / 17.34 MB, free: 5.734 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.437/1.437, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00242/0.00242, allocations: 299.7 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9903/0.9903, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 91.86 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4115/0.4133, allocations: 86.98 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01795/0.4313, allocations: 15.53 MB / 0.7822 GB, free: 4.34 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006459/0.4378, allocations: 4.334 MB / 0.7864 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006552/0.4385, allocations: 15.88 kB / 0.7865 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.4396, allocations: 266.3 kB / 0.7867 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001693/0.4413, allocations: 0.6023 MB / 0.7873 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001931/0.4432, allocations: 0.7106 MB / 0.788 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00145/0.4447, allocations: 1.032 MB / 0.789 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006189/0.4453, allocations: 339.6 kB / 0.7893 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008421/0.4462, allocations: 434.2 kB / 0.7897 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005649/0.4468, allocations: 318.6 kB / 0.79 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.462e-05/0.4469, allocations: 24 kB / 0.7901 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.4481, allocations: 0.6356 MB / 0.7907 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.4482, allocations: 99.59 kB / 0.7908 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.4485, allocations: 230.7 kB / 0.791 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001294/0.4498, allocations: 0.7658 MB / 0.7918 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.4498, allocations: 3.984 kB / 0.7918 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.4498, allocations: 0 / 0.7918 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.596e-05/0.4499, allocations: 0 / 0.7918 GB, free: 10.54 MB / 0.5606 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.001374/0.4512, allocations: 0.8329 MB / 0.7926 GB, free: 9.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.4513, allocations: 8.031 kB / 0.7926 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.4514, allocations: 52.38 kB / 0.7926 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007124/0.4522, allocations: 437.4 kB / 0.793 GB, free: 9.137 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.4522, allocations: 20.38 kB / 0.7931 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.4522, allocations: 28 kB / 0.7931 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004564/0.4527, allocations: 211.2 kB / 0.7933 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.4527, allocations: 0 / 0.7933 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.4528, allocations: 12 kB / 0.7933 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.4528, allocations: 11.94 kB / 0.7933 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.4532, allocations: 169.6 kB / 0.7935 GB, free: 8.691 MB / 0.5606 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.001674/0.4548, allocations: 0.9417 MB / 0.7944 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.4552, allocations: 134.6 kB / 0.7945 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.4553, allocations: 68.81 kB / 0.7946 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/0.4556, allocations: 332.4 kB / 0.7949 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.4557, allocations: 42.48 kB / 0.7949 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.4557, allocations: 0 / 0.7949 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0006388/0.4563, allocations: 237.1 kB / 0.7952 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.4564, allocations: 55.41 kB / 0.7952 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005342/0.4569, allocations: 477.9 kB / 0.7957 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.4569, allocations: 29.7 kB / 0.7957 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.4571, allocations: 228.6 kB / 0.7959 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.268e-05/0.4572, allocations: 47.36 kB / 0.796 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.4573, allocations: 61.59 kB / 0.796 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.4574, allocations: 354.7 kB / 0.7964 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.4576, allocations: 80.75 kB / 0.7964 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.4579, allocations: 148.9 kB / 0.7966 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.4582, allocations: 168.8 kB / 0.7968 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4582, allocations: 0 / 0.7968 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005241/0.4588, allocations: 253 kB / 0.797 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.4588, allocations: 4 kB / 0.797 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4588, allocations: 0 / 0.797 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.4588, allocations: 4 kB / 0.797 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.4591, allocations: 47.97 kB / 0.797 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.4591, allocations: 4 kB / 0.7971 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.4594, allocations: 47.66 kB / 0.7971 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.4595, allocations: 7.938 kB / 0.7971 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002854/0.4598, allocations: 198.3 kB / 0.7973 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002392/0.46, allocations: 164 kB / 0.7974 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003303/0.4603, allocations: 164.1 kB / 0.7976 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.593e-06/0.4604, allocations: 4 kB / 0.7976 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005342/0.4609, allocations: 253 kB / 0.7979 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.4609, allocations: 11.06 kB / 0.7979 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-06/0.4609, allocations: 192 / 0.7979 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.072e-06/0.4609, allocations: 4 kB / 0.7979 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.4611, allocations: 51.84 kB / 0.7979 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.327e-06/0.4612, allocations: 0 / 0.7979 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.4615, allocations: 35.94 kB / 0.7979 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.4615, allocations: 16.17 kB / 0.798 GB, free: 3.773 MB / 0.5606 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.0001205/0.4617, allocations: 192.1 kB / 0.7981 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.044e-05/0.4618, allocations: 43.44 kB / 0.7982 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005442/0.4623, allocations: 257.1 kB / 0.7984 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.4623, allocations: 4 kB / 0.7984 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4623, allocations: 0 / 0.7984 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.4623, allocations: 0 / 0.7984 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009659/0.4633, allocations: 0.6995 MB / 0.7991 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.4633, allocations: 8.125 kB / 0.7991 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.4635, allocations: 27.92 kB / 0.7992 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.4635, allocations: 4 kB / 0.7992 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.4635, allocations: 11.98 kB / 0.7992 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.4635, allocations: 3.938 kB / 0.7992 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4635, allocations: 0 / 0.7992 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.464, allocations: 341.2 kB / 0.7995 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.4641, allocations: 140.4 kB / 0.7996 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.983e-05/0.4642, allocations: 8 kB / 0.7996 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.4644, allocations: 15.92 kB / 0.7997 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.4645, allocations: 19.92 kB / 0.7997 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.4645, allocations: 8 kB / 0.7997 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003574/0.4649, allocations: 330.9 kB / 0.8 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4649, allocations: 0 / 0.8 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006786/0.4656, allocations: 199.7 kB / 0.8002 GB, free: 1.375 MB / 0.5606 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.001134/0.4667, allocations: 486.9 kB / 0.8007 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006762/0.4674, allocations: 267.8 kB / 0.8009 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4674, allocations: 3.938 kB / 0.8009 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001928/0.4676, allocations: 87.83 kB / 0.801 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.4686, allocations: 198.7 kB / 0.8012 GB, free: 496 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.4699, allocations: 0.7342 MB / 0.8019 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.4703, allocations: 0.8273 MB / 0.8027 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.986e-05/0.4704, allocations: 39.44 kB / 0.8027 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.1e-07/0.4704, allocations: 0 / 0.8027 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.01154/0.482, allocations: 7.361 MB / 0.8099 GB, free: 7.531 MB / 0.5762 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)