Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.001429/0.001429, allocations: 105.6 kB / 15.98 MB, free: 6.34 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.001097/0.001097, allocations: 196.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.001/1.001, allocations: 143 MB / 433.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 0.5143 GB, free: 15.53 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.3892, allocations: 82.03 MB / 0.5944 GB, free: 16.35 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02412/0.4134, allocations: 29.59 MB / 0.6233 GB, free: 2.73 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.4248, allocations: 8.135 MB / 0.6313 GB, free: 10.61 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00163/0.4265, allocations: 27.81 kB / 0.6313 GB, free: 10.59 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.4278, allocations: 357.9 kB / 0.6316 GB, free: 10.23 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004011/0.4318, allocations: 1.264 MB / 0.6329 GB, free: 8.965 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002865/0.4347, allocations: 1.042 MB / 0.6339 GB, free: 7.938 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004122/0.4388, allocations: 3.54 MB / 0.6374 GB, free: 4.391 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001899/0.4408, allocations: 1.32 MB / 0.6386 GB, free: 3.059 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002981/0.4438, allocations: 1.702 MB / 0.6403 GB, free: 1.352 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002535/0.4463, allocations: 1.651 MB / 0.6419 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003917/0.4467, allocations: 124 kB / 0.642 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002132/0.4489, allocations: 1.026 MB / 0.643 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004454/0.4493, allocations: 414.6 kB / 0.6434 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009947/0.4503, allocations: 0.7428 MB / 0.6442 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.4524, allocations: 1.668 MB / 0.6458 GB, free: 11.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.4524, allocations: 0 / 0.6458 GB, free: 11.72 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4524, allocations: 0 / 0.6458 GB, free: 11.72 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.4524, allocations: 3.938 kB / 0.6458 GB, free: 11.72 MB / 494.1 MB 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.002911/0.4554, allocations: 1.668 MB / 0.6474 GB, free: 10 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.4554, allocations: 12.03 kB / 0.6474 GB, free: 9.988 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003979/0.4558, allocations: 147.4 kB / 0.6476 GB, free: 9.844 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.4574, allocations: 0.9025 MB / 0.6485 GB, free: 8.883 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.355e-05/0.4575, allocations: 81.31 kB / 0.6485 GB, free: 8.805 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/0.4577, allocations: 116 kB / 0.6486 GB, free: 8.691 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.4588, allocations: 0.6395 MB / 0.6493 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.4588, allocations: 0 / 0.6493 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.4589, allocations: 24 kB / 0.6493 GB, free: 8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.4589, allocations: 12 kB / 0.6493 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008432/0.4597, allocations: 468.8 kB / 0.6497 GB, free: 7.531 MB / 494.1 MB 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.004397/0.4641, allocations: 2.867 MB / 0.6525 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/0.4647, allocations: 319.2 kB / 0.6529 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/0.465, allocations: 149.3 kB / 0.653 GB, free: 4.043 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000303/0.4653, allocations: 348.7 kB / 0.6533 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.4654, allocations: 30.84 kB / 0.6534 GB, free: 3.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=33): time 2.345e-06/0.4654, allocations: 0 / 0.6534 GB, free: 3.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.00133/0.4667, allocations: 0.5327 MB / 0.6539 GB, free: 3.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.4668, allocations: 59.34 kB / 0.6539 GB, free: 2.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.4678, allocations: 0.9075 MB / 0.6548 GB, free: 2.055 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.468, allocations: 57.7 kB / 0.6549 GB, free: 1.992 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004489/0.4684, allocations: 0.5225 MB / 0.6554 GB, free: 1.461 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.255e-05/0.4685, allocations: 118.4 kB / 0.6555 GB, free: 1.344 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004154/0.4689, allocations: 298.9 kB / 0.6558 GB, free: 1.047 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.4691, allocations: 326.1 kB / 0.6561 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.4695, allocations: 197.4 kB / 0.6563 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.4708, allocations: 1.151 MB / 0.6574 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007895/0.4716, allocations: 455.4 kB / 0.6578 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.4716, allocations: 4 kB / 0.6578 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001335/0.4729, allocations: 0.6501 MB / 0.6585 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.473, allocations: 8 kB / 0.6585 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.473, allocations: 3.938 kB / 0.6585 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.473, allocations: 4 kB / 0.6585 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.4745, allocations: 239.8 kB / 0.6587 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.476, allocations: 2.95 MB / 0.6616 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.4794, allocations: 0.7223 MB / 0.6623 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.4796, allocations: 35.98 kB / 0.6623 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007904/0.4804, allocations: 365.3 kB / 0.6627 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001267/0.4816, allocations: 1.162 MB / 0.6638 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007421/0.4824, allocations: 457 kB / 0.6643 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.508e-06/0.4824, allocations: 3.938 kB / 0.6643 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001517/0.4839, allocations: 0.651 MB / 0.6649 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.484, allocations: 4 kB / 0.6649 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.484, allocations: 4 kB / 0.6649 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.835e-06/0.484, allocations: 7.938 kB / 0.6649 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006855/0.4847, allocations: 164.1 kB / 0.6651 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.4847, allocations: 8 kB / 0.6651 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0044/0.4891, allocations: 0.9885 MB / 0.666 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.4892, allocations: 28 kB / 0.6661 GB, free: 5.551 MB / 0.4981 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.0003494/0.4896, allocations: 241.1 kB / 0.6663 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/0.4899, allocations: 94.78 kB / 0.6664 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001212/0.4911, allocations: 0.5117 MB / 0.6669 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.4911, allocations: 8 kB / 0.6669 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.4911, allocations: 0 / 0.6669 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.4912, allocations: 3.938 kB / 0.6669 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.4932, allocations: 1.25 MB / 0.6681 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.4933, allocations: 0 / 0.6681 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/0.4938, allocations: 123.9 kB / 0.6682 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.4938, allocations: 4 kB / 0.6682 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.4939, allocations: 15.98 kB / 0.6683 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.4952, allocations: 2.938 MB / 0.6711 GB, free: 176 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4952, allocations: 3.938 kB / 0.6711 GB, free: 172 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000962/0.4962, allocations: 0.5702 MB / 0.6717 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003254/0.4965, allocations: 211.7 kB / 0.6719 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.4967, allocations: 19.92 kB / 0.6719 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005275/0.4972, allocations: 59.78 kB / 0.672 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/0.4973, allocations: 31.91 kB / 0.672 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.41e-05/0.4973, allocations: 12 kB / 0.672 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007333/0.4981, allocations: 0.6084 MB / 0.6726 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4981, allocations: 0 / 0.6726 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001572/0.4997, allocations: 0.5345 MB / 0.6731 GB, free: 14.07 MB / 0.5137 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.0007222/0.5004, allocations: 342.8 kB / 0.6735 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002708/0.5031, allocations: 0.8696 MB / 0.6743 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5031, allocations: 0 / 0.6743 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000575/0.5037, allocations: 227.7 kB / 0.6745 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.5055, allocations: 424.6 kB / 0.6749 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.5082, allocations: 1.888 MB / 0.6768 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005304/0.5087, allocations: 1.029 MB / 0.6778 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.509, allocations: 75.42 kB / 0.6778 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of SimCode: time 5.31e-07/0.509, allocations: 4 kB / 0.6779 GB, free: 9.18 MB / 0.5137 GB Notification: Performance of Templates: time 0.04167/0.5506, allocations: 36.3 MB / 0.7133 GB, free: 5.172 MB / 0.545 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)