Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.2204/0.2226, allocations: 80.84 MB / 0.6706 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.08048/0.3032, allocations: 78.02 MB / 0.7468 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.5635/0.8668, allocations: 15.55 MB / 0.762 GB, free: 21.31 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003056/0.8698, allocations: 79.53 kB / 0.7621 GB, free: 21.31 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002891/0.8728, allocations: 0.8893 MB / 0.7629 GB, free: 21.3 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00864/0.8815, allocations: 2.472 MB / 0.7654 GB, free: 21.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005061/0.8866, allocations: 1.592 MB / 0.7669 GB, free: 21.16 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009241/0.8958, allocations: 4.588 MB / 0.7714 GB, free: 21.15 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002994/0.8989, allocations: 1.576 MB / 0.7729 GB, free: 20.96 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005512/0.9044, allocations: 1.861 MB / 0.7748 GB, free: 20.75 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003576/0.908, allocations: 1.412 MB / 0.7761 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004314/0.9084, allocations: 166.3 kB / 0.7763 GB, free: 20.43 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004747/0.9132, allocations: 1.198 MB / 0.7775 GB, free: 20.36 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005783/0.9138, allocations: 441 kB / 0.7779 GB, free: 20.1 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002354/0.9161, allocations: 0.9637 MB / 0.7788 GB, free: 19.52 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005307/0.9214, allocations: 2.821 MB / 0.7816 GB, free: 18.56 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.9215, allocations: 1.219 kB / 0.7816 GB, free: 18.56 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.796e-06/0.9215, allocations: 0 / 0.7816 GB, free: 18.56 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.622e-05/0.9215, allocations: 4 kB / 0.7816 GB, free: 18.55 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.0039/0.9254, allocations: 2.121 MB / 0.7837 GB, free: 17.21 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.9255, allocations: 9.844 kB / 0.7837 GB, free: 17.21 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000887/0.9264, allocations: 216.2 kB / 0.7839 GB, free: 17.11 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/0.9287, allocations: 1.349 MB / 0.7852 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.727e-05/0.9288, allocations: 86.48 kB / 0.7853 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.929, allocations: 121.4 kB / 0.7854 GB, free: 16.26 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003992/0.933, allocations: 1.543 MB / 0.7869 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.933, allocations: 6.5 kB / 0.7869 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-05/0.9331, allocations: 47.22 kB / 0.7869 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.154e-05/0.9332, allocations: 36.61 kB / 0.787 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003319/0.9365, allocations: 1.138 MB / 0.7881 GB, free: 15.18 MB / 0.5762 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.007138/0.9436, allocations: 6.72 MB / 0.7947 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002259/0.9459, allocations: 0.659 MB / 0.7953 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003611/0.9463, allocations: 217.6 kB / 0.7955 GB, free: 9.262 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002039/0.9465, allocations: 181.9 kB / 0.7957 GB, free: 9.066 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.9465, allocations: 41.48 kB / 0.7957 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=39): time 1.894e-06/0.9465, allocations: 0 / 0.7957 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.007898/0.9545, allocations: 2.542 MB / 0.7982 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.9545, allocations: 131.1 kB / 0.7983 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.9562, allocations: 1.44 MB / 0.7997 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.019e-05/0.9562, allocations: 37.48 kB / 0.7998 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004277/0.9567, allocations: 0.7662 MB / 0.8005 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.9568, allocations: 151.6 kB / 0.8007 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002807/0.9571, allocations: 198.9 kB / 0.8008 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.831e-05/0.9571, allocations: 347.1 kB / 0.8012 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009182/0.9581, allocations: 389 kB / 0.8016 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.9591, allocations: 0.6844 MB / 0.8022 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/0.9609, allocations: 0.9975 MB / 0.8032 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.9609, allocations: 6.844 kB / 0.8032 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002424/0.9633, allocations: 1.204 MB / 0.8044 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.9634, allocations: 8.188 kB / 0.8044 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.9634, allocations: 7.906 kB / 0.8044 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.281e-05/0.9634, allocations: 17.72 kB / 0.8044 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.9645, allocations: 252.2 kB / 0.8046 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.057e-05/0.9645, allocations: 18.97 kB / 0.8047 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.9659, allocations: 103 kB / 0.8048 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.508e-05/0.966, allocations: 44.55 kB / 0.8048 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008871/0.9669, allocations: 0.5484 MB / 0.8053 GB, free: 2.848 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005648/0.9675, allocations: 0.5737 MB / 0.8059 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009039/0.9684, allocations: 0.779 MB / 0.8067 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.938e-06/0.9684, allocations: 2.875 kB / 0.8067 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.001498/0.9699, allocations: 0.9681 MB / 0.8076 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.9699, allocations: 7.938 kB / 0.8076 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.97, allocations: 8.406 kB / 0.8076 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.97, allocations: 12.34 kB / 0.8076 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007041/0.9707, allocations: 209 kB / 0.8078 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.9707, allocations: 23.62 kB / 0.8079 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.9718, allocations: 51.62 kB / 0.8079 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-05/0.9718, allocations: 46.61 kB / 0.808 GB, free: 1.105 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (112): * Single equations (assignments): 112 * 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.0002497/0.9721, allocations: 239.3 kB / 0.8082 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.9723, allocations: 151.7 kB / 0.8083 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002236/0.9745, allocations: 0.9236 MB / 0.8092 GB, free: 300 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.9746, allocations: 5.562 kB / 0.8092 GB, free: 300 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.9746, allocations: 0 / 0.8092 GB, free: 300 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001961/0.9765, allocations: 1.055 MB / 0.8103 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004162/0.9807, allocations: 2.15 MB / 0.8124 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.9807, allocations: 2 kB / 0.8124 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006978/0.9814, allocations: 134.2 kB / 0.8125 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002324/0.9817, allocations: 80.97 kB / 0.8126 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.9817, allocations: 14 kB / 0.8126 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009702/0.9827, allocations: 1.158 MB / 0.8137 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.9827, allocations: 0 / 0.8137 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.9858, allocations: 1.381 MB / 0.8151 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005888/0.9864, allocations: 287.9 kB / 0.8153 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.9866, allocations: 10.62 kB / 0.8154 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009104/0.9875, allocations: 85.88 kB / 0.8154 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.066e-05/0.9876, allocations: 29.95 kB / 0.8155 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.997e-05/0.9877, allocations: 25.62 kB / 0.8155 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001346/0.9891, allocations: 0.97 MB / 0.8164 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9891, allocations: 0 / 0.8164 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002239/0.9913, allocations: 0.6529 MB / 0.8171 GB, free: 10.66 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U) * 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 (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008555/0.9922, allocations: 358.7 kB / 0.8174 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003082/0.9953, allocations: 1.283 MB / 0.8187 GB, free: 9.051 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.9953, allocations: 0 / 0.8187 GB, free: 9.051 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.9964, allocations: 386.4 kB / 0.819 GB, free: 8.676 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003781/1, allocations: 0.91 MB / 0.8199 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/1.012, allocations: 3.579 MB / 0.8234 GB, free: 4.195 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009387/1.013, allocations: 1.251 MB / 0.8246 GB, free: 2.914 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001477/1.014, allocations: 331.9 kB / 0.825 GB, free: 2.586 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/1.014, allocations: 119.4 kB / 0.8251 GB, free: 2.469 MB / 0.5919 GB Notification: Performance of SimCode: time 6.71e-07/1.014, allocations: 4 kB / 0.8251 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of Templates: time 0.05959/1.074, allocations: 32.45 MB / 0.8568 GB, free: 2.371 MB / 0.6231 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)