Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007013/0.007013, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.00133/0.00133, allocations: 193.5 kB / 16.67 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.693/1.693, allocations: 251.7 MB / 0.5094 GB, free: 3.051 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 76.22 kB / 0.7258 GB, free: 9.027 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2493, allocations: 104.7 MB / 0.828 GB, free: 236 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.5979/0.8473, allocations: 113.2 MB / 0.9386 GB, free: 22.66 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.03456/0.8819, allocations: 23.97 MB / 0.962 GB, free: 11.72 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004644/0.8866, allocations: 121.1 kB / 0.9621 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003348/0.89, allocations: 1.302 MB / 0.9634 GB, free: 10.86 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01045/0.9004, allocations: 3.827 MB / 0.9672 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.007844/0.9083, allocations: 3.028 MB / 0.9701 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.009486/0.9178, allocations: 7.119 MB / 0.9771 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003827/0.9217, allocations: 2.536 MB / 0.9795 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007233/0.9289, allocations: 2.854 MB / 0.9823 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004041/0.933, allocations: 2.1 MB / 0.9844 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0007834/0.9338, allocations: 247.4 kB / 0.9846 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007745/0.9415, allocations: 1.634 MB / 0.9862 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.943, allocations: 0.6683 MB / 0.9869 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.004022/0.947, allocations: 1.483 MB / 0.9883 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.008942/0.956, allocations: 4.314 MB / 0.9925 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.9561, allocations: 3.031 kB / 0.9925 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9561, allocations: 7.938 kB / 0.9925 GB, free: 9.355 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001115/0.9562, allocations: 0 / 0.9925 GB, free: 9.355 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.005686/0.9619, allocations: 3.163 MB / 0.9956 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.9619, allocations: 9.906 kB / 0.9956 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009656/0.9629, allocations: 320.1 kB / 0.9959 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004461/0.9674, allocations: 2.148 MB / 0.998 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.45e-05/0.9675, allocations: 128.5 kB / 0.9982 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002811/0.9678, allocations: 167.4 kB / 0.9983 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003088/0.9709, allocations: 1.598 MB / 0.9999 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.061e-05/0.971, allocations: 0 / 0.9999 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001617/0.9711, allocations: 64 kB / 0.9999 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.979e-05/0.9712, allocations: 47.88 kB / 1 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002377/0.9736, allocations: 1.139 MB / 1.001 GB, free: 2.328 MB / 0.7325 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.01203/0.9856, allocations: 7.868 MB / 1.009 GB, free: 9.949 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008422/0.9865, allocations: 477 kB / 1.009 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004918/0.987, allocations: 314.9 kB / 1.01 GB, free: 9.168 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007292/0.9878, allocations: 0.768 MB / 1.01 GB, free: 8.234 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.9878, allocations: 43.06 kB / 1.01 GB, free: 8.184 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=60): time 2.555e-06/0.9878, allocations: 4 kB / 1.01 GB, free: 8.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=60): time 0.002265/0.9901, allocations: 0.9686 MB / 1.011 GB, free: 7.207 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.9902, allocations: 59.97 kB / 1.011 GB, free: 7.137 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004135/0.9943, allocations: 2.281 MB / 1.014 GB, free: 4.844 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.000258/0.9946, allocations: 41.7 kB / 1.014 GB, free: 4.797 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.9959, allocations: 1.145 MB / 1.015 GB, free: 3.641 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.9963, allocations: 216.9 kB / 1.015 GB, free: 3.426 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006018/0.9969, allocations: 254.6 kB / 1.015 GB, free: 3.168 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001856/0.9971, allocations: 345.9 kB / 1.015 GB, free: 2.824 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000776/0.9979, allocations: 353.9 kB / 1.016 GB, free: 2.477 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.9991, allocations: 0.758 MB / 1.017 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/1.001, allocations: 0.9668 MB / 1.018 GB, free: 488 kB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/1.001, allocations: 11.94 kB / 1.018 GB, free: 476 kB / 0.7481 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002731/1.004, allocations: 1.279 MB / 1.019 GB, free: 15.17 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/1.004, allocations: 8 kB / 1.019 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/1.004, allocations: 8 kB / 1.019 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/1.004, allocations: 16.72 kB / 1.019 GB, free: 15.14 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009554/1.005, allocations: 251.6 kB / 1.019 GB, free: 14.89 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.067e-05/1.005, allocations: 19.92 kB / 1.019 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/1.006, allocations: 170.3 kB / 1.019 GB, free: 14.71 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/1.007, allocations: 47.98 kB / 1.019 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001511/1.008, allocations: 0.7524 MB / 1.02 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009997/1.009, allocations: 0.7426 MB / 1.021 GB, free: 13 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001387/1.01, allocations: 0.9485 MB / 1.022 GB, free: 11.94 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.688e-06/1.01, allocations: 4 kB / 1.022 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002705/1.013, allocations: 1.254 MB / 1.023 GB, free: 10.67 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/1.013, allocations: 8.156 kB / 1.023 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/1.013, allocations: 12 kB / 1.023 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/1.013, allocations: 16 kB / 1.023 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008906/1.014, allocations: 243.6 kB / 1.023 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.486e-05/1.014, allocations: 23.92 kB / 1.023 GB, free: 10.37 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/1.016, allocations: 123.1 kB / 1.023 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/1.016, allocations: 51.98 kB / 1.023 GB, free: 10.2 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0003456/1.016, allocations: 259.8 kB / 1.024 GB, free: 9.938 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007321/1.017, allocations: 233 kB / 1.024 GB, free: 9.707 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/1.019, allocations: 0.8693 MB / 1.025 GB, free: 8.824 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/1.019, allocations: 8 kB / 1.025 GB, free: 8.816 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/1.019, allocations: 4 kB / 1.025 GB, free: 8.812 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009799/1.02, allocations: 0.6775 MB / 1.025 GB, free: 8.109 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004618/1.025, allocations: 2.542 MB / 1.028 GB, free: 5.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/1.025, allocations: 4 kB / 1.028 GB, free: 5.496 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005376/1.025, allocations: 127.8 kB / 1.028 GB, free: 5.371 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/1.025, allocations: 4 kB / 1.028 GB, free: 5.367 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.836e-05/1.025, allocations: 15.98 kB / 1.028 GB, free: 5.352 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/1.025, allocations: 4 kB / 1.028 GB, free: 5.348 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/1.025, allocations: 0 / 1.028 GB, free: 5.348 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/1.028, allocations: 1.305 MB / 1.029 GB, free: 4.016 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000995/1.029, allocations: 402 kB / 1.03 GB, free: 3.602 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005177/1.029, allocations: 15.98 kB / 1.03 GB, free: 3.586 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/1.03, allocations: 39.95 kB / 1.03 GB, free: 3.547 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/1.031, allocations: 44.44 kB / 1.03 GB, free: 3.504 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/1.031, allocations: 31.98 kB / 1.03 GB, free: 3.473 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002945/1.034, allocations: 1.533 MB / 1.031 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.41e-07/1.034, allocations: 0 / 1.031 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004363/1.038, allocations: 1.103 MB / 1.032 GB, free: 0.8281 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001858/1.04, allocations: 0.7537 MB / 1.033 GB, free: 216 kB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002887/1.043, allocations: 1.351 MB / 1.034 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/1.043, allocations: 0 / 1.034 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005738/1.043, allocations: 323.6 kB / 1.035 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006712/1.05, allocations: 1.397 MB / 1.036 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007082/1.057, allocations: 3.624 MB / 1.04 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001646/1.059, allocations: 1.578 MB / 1.041 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002047/1.061, allocations: 494.6 kB / 1.042 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005173/1.061, allocations: 179.4 kB / 1.042 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of SimCode: time 9.41e-07/1.061, allocations: 4 kB / 1.042 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of Templates: time 0.07578/1.137, allocations: 44.71 MB / 1.085 GB, free: 11.2 MB / 0.8262 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)