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.008393/0.008393, allocations: 102.7 kB / 15.73 MB, free: 5.539 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.001659/0.001659, allocations: 193.2 kB / 16.67 MB, free: 5.469 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.582/1.582, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.498/1.498, allocations: 251.7 MB / 0.5094 GB, free: 408 kB / 430.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.002365/0.002366, allocations: 67.89 kB / 0.7258 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7084/0.7107, allocations: 104.7 MB / 0.828 GB, free: 2.633 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1076/0.8184, allocations: 113.2 MB / 0.9386 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.03845/0.8569, allocations: 23.98 MB / 0.962 GB, free: 8.98 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005011/0.8619, allocations: 127.1 kB / 0.9622 GB, free: 8.855 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.004935/0.867, allocations: 1.269 MB / 0.9634 GB, free: 7.578 MB / 0.7637 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.01296/0.88, allocations: 3.646 MB / 0.967 GB, free: 3.918 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.008498/0.8885, allocations: 3.012 MB / 0.9699 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01128/0.8998, allocations: 7.098 MB / 0.9768 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004269/0.9041, allocations: 2.547 MB / 0.9793 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006991/0.9111, allocations: 2.777 MB / 0.982 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003999/0.9151, allocations: 2.089 MB / 0.9841 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0007744/0.9159, allocations: 248 kB / 0.9843 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004679/0.9206, allocations: 1.63 MB / 0.9859 GB, free: 476 kB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000894/0.9215, allocations: 0.685 MB / 0.9866 GB, free: 15.78 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002786/0.9243, allocations: 1.477 MB / 0.988 GB, free: 14.29 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00819/0.9325, allocations: 4.311 MB / 0.9922 GB, free: 9.969 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 1.226e-05/0.9326, allocations: 4 kB / 0.9922 GB, free: 9.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 5.16e-06/0.9326, allocations: 0 / 0.9922 GB, free: 9.965 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001381/0.9328, allocations: 3.938 kB / 0.9922 GB, free: 9.961 MB / 0.795 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.006796/0.9396, allocations: 3.171 MB / 0.9953 GB, free: 6.719 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.946e-05/0.9396, allocations: 8.031 kB / 0.9953 GB, free: 6.711 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009313/0.9406, allocations: 324.3 kB / 0.9956 GB, free: 6.391 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003789/0.9444, allocations: 2.15 MB / 0.9977 GB, free: 4.168 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.9445, allocations: 127 kB / 0.9979 GB, free: 4.043 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002461/0.9448, allocations: 164 kB / 0.998 GB, free: 3.883 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00278/0.9475, allocations: 1.596 MB / 0.9996 GB, free: 2.223 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/0.9476, allocations: 7.906 kB / 0.9996 GB, free: 2.215 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.9477, allocations: 67.92 kB / 0.9996 GB, free: 2.148 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.818e-05/0.9478, allocations: 44 kB / 0.9997 GB, free: 2.105 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/0.9498, allocations: 1.143 MB / 1.001 GB, free: 0.957 MB / 0.795 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.01128/0.9611, allocations: 7.86 MB / 1.008 GB, free: 8.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008514/0.9619, allocations: 473.8 kB / 1.009 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005035/0.9624, allocations: 315.5 kB / 1.009 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007333/0.9632, allocations: 0.7602 MB / 1.01 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.139e-05/0.9633, allocations: 51.06 kB / 1.01 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=60): time 3.126e-06/0.9633, allocations: 0 / 1.01 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60): time 0.002454/0.9657, allocations: 0.9686 MB / 1.011 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.9658, allocations: 63.97 kB / 1.011 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003179/0.969, allocations: 2.277 MB / 1.013 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001604/0.9692, allocations: 49.7 kB / 1.013 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000977/0.9701, allocations: 1.141 MB / 1.014 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.00023/0.9704, allocations: 212.9 kB / 1.015 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003752/0.9708, allocations: 258.6 kB / 1.015 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.9709, allocations: 349.9 kB / 1.015 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006261/0.9715, allocations: 353.9 kB / 1.016 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009175/0.9725, allocations: 0.7462 MB / 1.016 GB, free: 208 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.9739, allocations: 0.9785 MB / 1.017 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.9739, allocations: 4 kB / 1.017 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002249/0.9761, allocations: 1.284 MB / 1.018 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.9762, allocations: 15.19 kB / 1.018 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.9762, allocations: 8 kB / 1.019 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.032e-05/0.9762, allocations: 16 kB / 1.019 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009823/0.9772, allocations: 247.6 kB / 1.019 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-05/0.9773, allocations: 23.92 kB / 1.019 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.9787, allocations: 170.3 kB / 1.019 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-05/0.9788, allocations: 51.98 kB / 1.019 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001271/0.98, allocations: 0.7485 MB / 1.02 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008596/0.9809, allocations: 0.7426 MB / 1.02 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001278/0.9822, allocations: 0.9522 MB / 1.021 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.767e-06/0.9822, allocations: 4 kB / 1.021 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002064/0.9843, allocations: 1.254 MB / 1.023 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.9843, allocations: 8 kB / 1.023 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.9843, allocations: 8 kB / 1.023 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.9843, allocations: 16 kB / 1.023 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008985/0.9852, allocations: 247.6 kB / 1.023 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.709e-05/0.9853, allocations: 19.92 kB / 1.023 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.9867, allocations: 131.5 kB / 1.023 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.833e-05/0.9868, allocations: 51.98 kB / 1.023 GB, free: 8.832 MB / 0.8262 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.0003129/0.9871, allocations: 243.9 kB / 1.023 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003364/0.9874, allocations: 229.1 kB / 1.024 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.9891, allocations: 0.8732 MB / 1.024 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.9891, allocations: 11.94 kB / 1.024 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.9891, allocations: 0 / 1.024 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009873/0.9901, allocations: 0.6814 MB / 1.025 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003823/0.994, allocations: 2.538 MB / 1.028 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.994, allocations: 0 / 1.028 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005215/0.9945, allocations: 127.8 kB / 1.028 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/0.9945, allocations: 4.094 kB / 1.028 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.9946, allocations: 27.92 kB / 1.028 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.9946, allocations: 0 / 1.028 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.9946, allocations: 7.938 kB / 1.028 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.9966, allocations: 1.297 MB / 1.029 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007647/0.9973, allocations: 402 kB / 1.029 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.9976, allocations: 15.98 kB / 1.029 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009047/0.9985, allocations: 43.95 kB / 1.029 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.9986, allocations: 44.44 kB / 1.029 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.838e-05/0.9987, allocations: 35.98 kB / 1.029 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.002125/1.001, allocations: 1.529 MB / 1.031 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.9e-07/1.001, allocations: 0 / 1.031 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002951/1.004, allocations: 1.099 MB / 1.032 GB, free: 15.47 MB / 0.8419 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.001677/1.005, allocations: 0.752 MB / 1.033 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002661/1.008, allocations: 1.351 MB / 1.034 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.008, allocations: 0 / 1.034 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005304/1.009, allocations: 323 kB / 1.034 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005887/1.015, allocations: 1.408 MB / 1.036 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005804/1.02, allocations: 3.622 MB / 1.039 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/1.022, allocations: 1.585 MB / 1.041 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001811/1.023, allocations: 489.1 kB / 1.041 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000372/1.024, allocations: 179.4 kB / 1.041 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of SimCode: time 1.002e-06/1.024, allocations: 3.938 kB / 1.041 GB, free: 5.895 MB / 0.8419 GB Notification: Performance of Templates: time 0.07047/1.094, allocations: 44.71 MB / 1.085 GB, free: 9.832 MB / 0.8887 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)