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.001375/0.001375, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 188 kB / 16.62 MB, free: 6.613 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.666/1.666, allocations: 205.1 MB / 222.5 MB, free: 4.578 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.846/1.846, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.002523/0.002523, allocations: 68.03 kB / 0.6723 GB, free: 25.92 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3454, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.04854/0.3939, allocations: 30.23 MB / 0.8136 GB, free: 14.41 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01806/0.4121, allocations: 11.53 MB / 0.8249 GB, free: 2.848 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001903/0.414, allocations: 43.62 kB / 0.8249 GB, free: 2.805 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.4154, allocations: 429 kB / 0.8254 GB, free: 2.383 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004297/0.4197, allocations: 1.371 MB / 0.8267 GB, free: 1.008 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003246/0.423, allocations: 1.15 MB / 0.8278 GB, free: 15.87 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004694/0.4277, allocations: 3.516 MB / 0.8313 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002175/0.4299, allocations: 1.329 MB / 0.8325 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003133/0.433, allocations: 1.66 MB / 0.8342 GB, free: 9.328 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003285/0.4363, allocations: 1.608 MB / 0.8357 GB, free: 7.715 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0004893/0.4368, allocations: 124 kB / 0.8359 GB, free: 7.594 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.4392, allocations: 1.018 MB / 0.8369 GB, free: 6.574 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004345/0.4396, allocations: 406.7 kB / 0.8372 GB, free: 6.176 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.4406, allocations: 0.7467 MB / 0.838 GB, free: 5.426 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.00331/0.444, allocations: 2.193 MB / 0.8401 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.444, allocations: 0 / 0.8401 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.934e-06/0.444, allocations: 0 / 0.8401 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.412e-05/0.444, allocations: 0 / 0.8401 GB, free: 3.227 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.002988/0.447, allocations: 1.655 MB / 0.8417 GB, free: 1.52 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.4471, allocations: 8.031 kB / 0.8417 GB, free: 1.512 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003683/0.4475, allocations: 147.1 kB / 0.8419 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001756/0.4492, allocations: 0.9296 MB / 0.8428 GB, free: 400 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.841e-05/0.4493, allocations: 77.31 kB / 0.8429 GB, free: 324 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.4495, allocations: 120 kB / 0.843 GB, free: 204 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.4506, allocations: 0.6395 MB / 0.8436 GB, free: 15.53 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4506, allocations: 0 / 0.8436 GB, free: 15.53 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.4506, allocations: 20 kB / 0.8436 GB, free: 15.51 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.4507, allocations: 19.94 kB / 0.8436 GB, free: 15.49 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008478/0.4515, allocations: 464.8 kB / 0.8441 GB, free: 15.04 MB / 0.67 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.004393/0.4559, allocations: 2.859 MB / 0.8469 GB, free: 12.03 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.4565, allocations: 310.8 kB / 0.8472 GB, free: 11.72 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.4568, allocations: 149.3 kB / 0.8473 GB, free: 11.57 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000309/0.4572, allocations: 340.7 kB / 0.8476 GB, free: 11.16 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.4572, allocations: 42.84 kB / 0.8477 GB, free: 11.11 MB / 0.67 GB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/0.4572, allocations: 0 / 0.8477 GB, free: 11.11 MB / 0.67 GB Notification: Performance of matching and sorting (n=33): time 0.001387/0.4586, allocations: 0.5274 MB / 0.8482 GB, free: 10.58 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.4587, allocations: 51.41 kB / 0.8482 GB, free: 10.52 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.4597, allocations: 0.8908 MB / 0.8491 GB, free: 9.605 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.4598, allocations: 57.7 kB / 0.8492 GB, free: 9.543 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004523/0.4603, allocations: 490.6 kB / 0.8496 GB, free: 9.059 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 8.929e-05/0.4604, allocations: 114.4 kB / 0.8497 GB, free: 8.945 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00042/0.4608, allocations: 290.9 kB / 0.85 GB, free: 8.656 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.461, allocations: 330.1 kB / 0.8503 GB, free: 8.328 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.4614, allocations: 193.4 kB / 0.8505 GB, free: 8.137 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.4627, allocations: 1.151 MB / 0.8516 GB, free: 6.617 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007997/0.4635, allocations: 459.4 kB / 0.8521 GB, free: 6.148 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.4635, allocations: 4 kB / 0.8521 GB, free: 6.145 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001361/0.4649, allocations: 0.6501 MB / 0.8527 GB, free: 5.484 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4649, allocations: 4 kB / 0.8527 GB, free: 5.48 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.4649, allocations: 4 kB / 0.8527 GB, free: 5.477 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.465, allocations: 4 kB / 0.8527 GB, free: 5.473 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.4663, allocations: 247.8 kB / 0.853 GB, free: 5.23 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.4682, allocations: 2.95 MB / 0.8558 GB, free: 2.164 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003289/0.4715, allocations: 0.6989 MB / 0.8565 GB, free: 1.465 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.471e-05/0.4716, allocations: 27.98 kB / 0.8566 GB, free: 1.438 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008339/0.4725, allocations: 365.3 kB / 0.8569 GB, free: 1.078 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001644/0.4741, allocations: 1.158 MB / 0.858 GB, free: 15.54 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000873/0.475, allocations: 464.9 kB / 0.8585 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.52e-06/0.475, allocations: 3.938 kB / 0.8585 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001636/0.4767, allocations: 0.6551 MB / 0.8591 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.4767, allocations: 4 kB / 0.8591 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.4767, allocations: 4 kB / 0.8591 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/0.4768, allocations: 8 kB / 0.8591 GB, free: 14.37 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000663/0.4774, allocations: 155.8 kB / 0.8593 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.4775, allocations: 8 kB / 0.8593 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004319/0.4818, allocations: 0.9614 MB / 0.8602 GB, free: 13.24 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-05/0.4819, allocations: 23.98 kB / 0.8603 GB, free: 13.22 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.0004609/0.4823, allocations: 248.3 kB / 0.8605 GB, free: 12.97 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/0.4826, allocations: 94.78 kB / 0.8606 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/0.4839, allocations: 0.5047 MB / 0.8611 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.4839, allocations: 4 kB / 0.8611 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.4839, allocations: 4 kB / 0.8611 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.4839, allocations: 3.984 kB / 0.8611 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.4862, allocations: 1.249 MB / 0.8623 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.4863, allocations: 0 / 0.8623 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005151/0.4868, allocations: 111.8 kB / 0.8624 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/0.4868, allocations: 4 kB / 0.8624 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.4868, allocations: 15.92 kB / 0.8624 GB, free: 10.91 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.4885, allocations: 2.942 MB / 0.8653 GB, free: 7.852 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.4886, allocations: 7.969 kB / 0.8653 GB, free: 7.844 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009184/0.4895, allocations: 0.564 MB / 0.8659 GB, free: 7.254 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003305/0.4898, allocations: 207.7 kB / 0.8661 GB, free: 7.031 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.49, allocations: 8 kB / 0.8661 GB, free: 7.023 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004763/0.4904, allocations: 35.95 kB / 0.8661 GB, free: 6.988 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.267e-05/0.4905, allocations: 23.91 kB / 0.8661 GB, free: 6.965 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.4906, allocations: 23.98 kB / 0.8661 GB, free: 6.941 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000781/0.4914, allocations: 0.5962 MB / 0.8667 GB, free: 6.336 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4914, allocations: 0 / 0.8667 GB, free: 6.336 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001702/0.4931, allocations: 0.5345 MB / 0.8673 GB, free: 5.801 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.0008661/0.494, allocations: 333.1 kB / 0.8676 GB, free: 5.473 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00279/0.4968, allocations: 0.843 MB / 0.8684 GB, free: 4.629 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.4968, allocations: 4.062 kB / 0.8684 GB, free: 4.625 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.4974, allocations: 228.3 kB / 0.8686 GB, free: 4.402 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/0.4993, allocations: 424.5 kB / 0.869 GB, free: 3.992 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/0.502, allocations: 1.492 MB / 0.8705 GB, free: 2.457 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006636/0.5027, allocations: 1.025 MB / 0.8715 GB, free: 1.402 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001044/0.5037, allocations: 214.9 kB / 0.8717 GB, free: 1.188 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.504, allocations: 79.42 kB / 0.8718 GB, free: 1.109 MB / 0.6856 GB Notification: Performance of SimCode: time 3.81e-07/0.504, allocations: 0 / 0.8718 GB, free: 1.109 MB / 0.6856 GB Notification: Performance of Templates: time 0.04422/0.5482, allocations: 25.08 MB / 0.8962 GB, free: 8.547 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)