Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") [/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.1935/0.1958, allocations: 80.84 MB / 0.6706 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02795/0.2238, allocations: 22.53 MB / 0.6926 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01372/0.2376, allocations: 8.361 MB / 0.7008 GB, free: 3.031 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.2386, allocations: 31.75 kB / 0.7008 GB, free: 3 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.2398, allocations: 365.6 kB / 0.7012 GB, free: 2.641 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00269/0.2425, allocations: 0.9633 MB / 0.7021 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002198/0.2447, allocations: 0.7461 MB / 0.7028 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002093/0.2468, allocations: 1.699 MB / 0.7045 GB, free: 15.23 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000736/0.2475, allocations: 0.5374 MB / 0.705 GB, free: 14.68 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.2488, allocations: 0.7394 MB / 0.7058 GB, free: 13.93 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000672/0.2495, allocations: 0.5563 MB / 0.7063 GB, free: 13.38 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.065e-05/0.2496, allocations: 52 kB / 0.7063 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001641/0.2512, allocations: 0.7294 MB / 0.7071 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.2514, allocations: 163.4 kB / 0.7072 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004869/0.2519, allocations: 390 kB / 0.7076 GB, free: 12.05 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.2533, allocations: 1.067 MB / 0.7086 GB, free: 10.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.2533, allocations: 0 / 0.7086 GB, free: 10.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.075e-06/0.2534, allocations: 0 / 0.7086 GB, free: 10.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.854e-05/0.2534, allocations: 4 kB / 0.7086 GB, free: 10.98 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001907/0.2553, allocations: 1.075 MB / 0.7097 GB, free: 9.852 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.2554, allocations: 8.031 kB / 0.7097 GB, free: 9.844 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.2564, allocations: 175.9 kB / 0.7099 GB, free: 9.672 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009501/0.2574, allocations: 0.5221 MB / 0.7104 GB, free: 9.109 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/0.2574, allocations: 33 kB / 0.7104 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.2576, allocations: 48 kB / 0.7104 GB, free: 9.027 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004053/0.2616, allocations: 1.033 MB / 0.7115 GB, free: 7.957 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.2617, allocations: 4 kB / 0.7115 GB, free: 7.953 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.647e-05/0.2617, allocations: 20 kB / 0.7115 GB, free: 7.934 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.728e-05/0.2618, allocations: 19.98 kB / 0.7115 GB, free: 7.914 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003736/0.2655, allocations: 0.8609 MB / 0.7123 GB, free: 7.051 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004649/0.2702, allocations: 2.618 MB / 0.7149 GB, free: 4.281 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003558/0.2738, allocations: 0.7061 MB / 0.7156 GB, free: 3.547 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004168/0.2742, allocations: 110.5 kB / 0.7157 GB, free: 3.43 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003427/0.2746, allocations: 117.1 kB / 0.7158 GB, free: 3.297 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.485e-05/0.2746, allocations: 38.56 kB / 0.7158 GB, free: 3.25 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 3.357e-06/0.2746, allocations: 0 / 0.7158 GB, free: 3.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.006617/0.2813, allocations: 1.269 MB / 0.7171 GB, free: 1.973 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.2814, allocations: 162.2 kB / 0.7172 GB, free: 1.777 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008412/0.2822, allocations: 0.6488 MB / 0.7179 GB, free: 1.117 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.223e-05/0.2823, allocations: 37.7 kB / 0.7179 GB, free: 1.074 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.2827, allocations: 355.9 kB / 0.7182 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.871e-05/0.2827, allocations: 63.12 kB / 0.7183 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002161/0.283, allocations: 106 kB / 0.7184 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002309/0.2832, allocations: 366.8 kB / 0.7188 GB, free: 188 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.2843, allocations: 326.3 kB / 0.7191 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.2856, allocations: 460.3 kB / 0.7195 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00211/0.2877, allocations: 0.6681 MB / 0.7202 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.2877, allocations: 0 / 0.7202 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.002502/0.2903, allocations: 0.8241 MB / 0.721 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.2903, allocations: 8 kB / 0.721 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.2903, allocations: 4 kB / 0.721 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.2903, allocations: 4 kB / 0.721 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/0.2947, allocations: 0.6398 MB / 0.7216 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00727/0.302, allocations: 4.959 MB / 0.7264 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.3032, allocations: 147.3 kB / 0.7266 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.182e-05/0.3033, allocations: 27.97 kB / 0.7266 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005037/0.3038, allocations: 252.9 kB / 0.7268 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003971/0.3042, allocations: 272.2 kB / 0.7271 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005744/0.3048, allocations: 340.1 kB / 0.7274 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.073e-06/0.3048, allocations: 0 / 0.7274 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of matching and sorting (n=50) (initialization_lambda0): time 0.0008295/0.3056, allocations: 437.1 kB / 0.7279 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3056, allocations: 7.984 kB / 0.7279 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3057, allocations: 4 kB / 0.7279 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.394e-06/0.3057, allocations: 8 kB / 0.7279 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.3061, allocations: 108.3 kB / 0.728 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.3061, allocations: 12 kB / 0.728 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.3067, allocations: 63.64 kB / 0.728 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.3067, allocations: 31.92 kB / 0.7281 GB, free: 5.977 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002234/0.3069, allocations: 192.2 kB / 0.7283 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.3071, allocations: 67.16 kB / 0.7283 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/0.3093, allocations: 0.6082 MB / 0.7289 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3093, allocations: 4 kB / 0.7289 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3093, allocations: 3.938 kB / 0.7289 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3093, allocations: 3.984 kB / 0.7289 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.3104, allocations: 0.7489 MB / 0.7297 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3104, allocations: 4 kB / 0.7297 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003594/0.314, allocations: 0.55 MB / 0.7302 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.314, allocations: 0 / 0.7302 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.3141, allocations: 11.98 kB / 0.7302 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006437/0.3205, allocations: 4.837 MB / 0.7349 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.3205, allocations: 3.938 kB / 0.7349 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002399/0.3229, allocations: 0.703 MB / 0.7356 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.3232, allocations: 136.3 kB / 0.7358 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/0.3234, allocations: 8 kB / 0.7358 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009038/0.3243, allocations: 95.88 kB / 0.7359 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.3245, allocations: 19.92 kB / 0.7359 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/0.3245, allocations: 11.98 kB / 0.7359 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006302/0.3251, allocations: 455 kB / 0.7363 GB, free: 13 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3251, allocations: 3.938 kB / 0.7363 GB, free: 13 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001327/0.3265, allocations: 343.5 kB / 0.7367 GB, free: 12.66 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00056/0.327, allocations: 202.2 kB / 0.7368 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006434/0.3335, allocations: 1.322 MB / 0.7381 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.3335, allocations: 1 kB / 0.7381 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.007/0.3405, allocations: 1.166 MB / 0.7393 GB, free: 9.969 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/0.3425, allocations: 321.8 kB / 0.7396 GB, free: 9.66 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/0.3555, allocations: 2.546 MB / 0.7421 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007638/0.3563, allocations: 0.8863 MB / 0.7429 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008488/0.3572, allocations: 129 kB / 0.7431 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002842/0.3575, allocations: 59.39 kB / 0.7431 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of SimCode: time 1.884e-06/0.3575, allocations: 4 kB / 0.7431 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of Templates: time 0.4113/0.7688, allocations: 14.72 MB / 0.7575 GB, free: 74.7 MB / 0.5762 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)