Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001212/0.001212, allocations: 190.7 kB / 16.25 MB, free: 6.629 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.8/1.8, allocations: 205.1 MB / 222.1 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.698/1.698, allocations: 292.2 MB / 0.5485 GB, free: 13.64 MB / 462.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.001356/0.001356, allocations: 63.95 kB / 0.671 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2942, allocations: 114.6 MB / 0.7829 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02978/0.324, allocations: 29.99 MB / 0.8121 GB, free: 15.81 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01789/0.3419, allocations: 11.58 MB / 0.8234 GB, free: 4.211 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002377/0.3443, allocations: 39.62 kB / 0.8235 GB, free: 4.172 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.3459, allocations: 365.9 kB / 0.8238 GB, free: 3.812 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004258/0.3502, allocations: 1.264 MB / 0.8251 GB, free: 2.543 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003212/0.3534, allocations: 1.031 MB / 0.8261 GB, free: 1.523 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004556/0.358, allocations: 3.517 MB / 0.8295 GB, free: 13.99 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001993/0.36, allocations: 1.298 MB / 0.8308 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003268/0.3633, allocations: 1.694 MB / 0.8324 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002829/0.3661, allocations: 1.655 MB / 0.834 GB, free: 9.32 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0004424/0.3666, allocations: 124 kB / 0.8342 GB, free: 9.199 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002459/0.369, allocations: 1.014 MB / 0.8352 GB, free: 8.184 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004778/0.3695, allocations: 402.7 kB / 0.8355 GB, free: 7.789 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0009951/0.3705, allocations: 0.7467 MB / 0.8363 GB, free: 7.039 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.002897/0.3734, allocations: 2.174 MB / 0.8384 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3734, allocations: 0 / 0.8384 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.595e-06/0.3734, allocations: 0 / 0.8384 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.482e-05/0.3735, allocations: 4 kB / 0.8384 GB, free: 4.855 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002747/0.3762, allocations: 1.655 MB / 0.84 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3763, allocations: 8.031 kB / 0.84 GB, free: 3.141 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003607/0.3766, allocations: 147.1 kB / 0.8402 GB, free: 2.996 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.3781, allocations: 0.8945 MB / 0.841 GB, free: 2.055 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-05/0.3782, allocations: 81.31 kB / 0.8411 GB, free: 1.977 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000219/0.3784, allocations: 116 kB / 0.8412 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.3796, allocations: 0.6356 MB / 0.8418 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.3796, allocations: 0 / 0.8418 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.3797, allocations: 24 kB / 0.8419 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.3797, allocations: 19.94 kB / 0.8419 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008231/0.3805, allocations: 468.8 kB / 0.8423 GB, free: 0.6953 MB / 0.6544 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.004134/0.3846, allocations: 2.852 MB / 0.8451 GB, free: 13.69 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005645/0.3852, allocations: 318.7 kB / 0.8454 GB, free: 13.38 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.3855, allocations: 145.3 kB / 0.8456 GB, free: 13.23 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003055/0.3858, allocations: 336.7 kB / 0.8459 GB, free: 12.83 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.3859, allocations: 42.84 kB / 0.8459 GB, free: 12.78 MB / 0.67 GB Notification: Performance of pre-optimization done (n=33): time 1.754e-06/0.3859, allocations: 0 / 0.8459 GB, free: 12.78 MB / 0.67 GB Notification: Performance of matching and sorting (n=33): time 0.001213/0.3871, allocations: 0.5236 MB / 0.8464 GB, free: 12.25 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.3872, allocations: 63.28 kB / 0.8465 GB, free: 12.17 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009374/0.3881, allocations: 0.883 MB / 0.8474 GB, free: 11.27 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.3882, allocations: 61.69 kB / 0.8474 GB, free: 11.2 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004659/0.3887, allocations: 0.5446 MB / 0.8479 GB, free: 10.65 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 9.004e-05/0.3888, allocations: 122.3 kB / 0.8481 GB, free: 10.53 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003898/0.3892, allocations: 287 kB / 0.8483 GB, free: 10.24 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3893, allocations: 330.1 kB / 0.8487 GB, free: 9.914 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000385/0.3897, allocations: 197.4 kB / 0.8488 GB, free: 9.719 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.391, allocations: 1.143 MB / 0.85 GB, free: 8.207 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007603/0.3918, allocations: 459.4 kB / 0.8504 GB, free: 7.734 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.3918, allocations: 4 kB / 0.8504 GB, free: 7.73 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001274/0.3931, allocations: 0.6501 MB / 0.851 GB, free: 7.074 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.3931, allocations: 8 kB / 0.851 GB, free: 7.066 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3931, allocations: 0 / 0.851 GB, free: 7.066 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.3931, allocations: 4 kB / 0.851 GB, free: 7.062 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/0.3946, allocations: 235.9 kB / 0.8513 GB, free: 6.832 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.3963, allocations: 2.953 MB / 0.8542 GB, free: 3.762 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003321/0.3996, allocations: 0.7223 MB / 0.8549 GB, free: 3.039 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.378e-05/0.3997, allocations: 27.98 kB / 0.8549 GB, free: 3.012 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007329/0.4004, allocations: 373.2 kB / 0.8552 GB, free: 2.645 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001319/0.4018, allocations: 1.158 MB / 0.8564 GB, free: 1.109 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007226/0.4025, allocations: 456.9 kB / 0.8568 GB, free: 0.6211 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.274e-06/0.4025, allocations: 0 / 0.8568 GB, free: 0.6211 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.00133/0.4038, allocations: 0.6471 MB / 0.8574 GB, free: 15.97 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4039, allocations: 8.297 kB / 0.8574 GB, free: 15.96 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.4039, allocations: 11.94 kB / 0.8575 GB, free: 15.95 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.4039, allocations: 4 kB / 0.8575 GB, free: 15.95 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006696/0.4046, allocations: 159.7 kB / 0.8576 GB, free: 15.79 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.4046, allocations: 11.98 kB / 0.8576 GB, free: 15.78 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004276/0.4089, allocations: 0.9924 MB / 0.8586 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-05/0.4089, allocations: 27.98 kB / 0.8586 GB, free: 14.75 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003398/0.4093, allocations: 240.4 kB / 0.8589 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002371/0.4095, allocations: 94.78 kB / 0.8589 GB, free: 14.42 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.4107, allocations: 0.5133 MB / 0.8594 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4107, allocations: 8 kB / 0.8595 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4108, allocations: 0 / 0.8595 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.4108, allocations: 3.984 kB / 0.8595 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.4129, allocations: 1.264 MB / 0.8607 GB, free: 12.56 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.4129, allocations: 0 / 0.8607 GB, free: 12.56 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000518/0.4135, allocations: 115.8 kB / 0.8608 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.4135, allocations: 4 kB / 0.8608 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.4135, allocations: 11.94 kB / 0.8608 GB, free: 12.43 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001515/0.415, allocations: 2.946 MB / 0.8637 GB, free: 9.371 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.415, allocations: 0 / 0.8637 GB, free: 9.371 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008545/0.4159, allocations: 0.5656 MB / 0.8642 GB, free: 8.777 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.4162, allocations: 207.8 kB / 0.8644 GB, free: 8.555 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.4163, allocations: 8 kB / 0.8645 GB, free: 8.547 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004999/0.4168, allocations: 67.77 kB / 0.8645 GB, free: 8.48 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.305e-05/0.4169, allocations: 19.97 kB / 0.8645 GB, free: 8.461 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.4169, allocations: 16 kB / 0.8645 GB, free: 8.445 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007785/0.4177, allocations: 0.6001 MB / 0.8651 GB, free: 7.836 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.51e-07/0.4177, allocations: 0 / 0.8651 GB, free: 7.836 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00153/0.4193, allocations: 0.5345 MB / 0.8657 GB, free: 7.301 MB / 0.6856 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000709/0.42, allocations: 332.2 kB / 0.866 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002467/0.4225, allocations: 0.8578 MB / 0.8668 GB, free: 6.113 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4225, allocations: 0 / 0.8668 GB, free: 6.113 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005325/0.423, allocations: 225.2 kB / 0.867 GB, free: 5.895 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/0.4248, allocations: 421 kB / 0.8674 GB, free: 5.488 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.4275, allocations: 1.861 MB / 0.8692 GB, free: 3.59 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.4281, allocations: 1.021 MB / 0.8702 GB, free: 2.539 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001029/0.4291, allocations: 199 kB / 0.8704 GB, free: 2.34 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.4293, allocations: 83.41 kB / 0.8705 GB, free: 2.258 MB / 0.6856 GB Notification: Performance of SimCode: time 5.11e-07/0.4293, allocations: 0 / 0.8705 GB, free: 2.258 MB / 0.6856 GB Notification: Performance of Templates: time 0.04204/0.4713, allocations: 24.94 MB / 0.8949 GB, free: 9.816 MB / 0.7169 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)