Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0009746/0.0009746, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001/0.001, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001779/0.001779, allocations: 266.5 kB / 291.3 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9456/0.9456, allocations: 169.5 MB / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005591/0.0005593, allocations: 16.22 kB / 0.598 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.1735, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4338/0.6073, allocations: 104 MB / 0.7861 GB, free: 27.01 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02256/0.6299, allocations: 19.1 MB / 0.8047 GB, free: 23.7 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004157/0.6341, allocations: 94.12 kB / 0.8048 GB, free: 23.66 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002707/0.6368, allocations: 0.8899 MB / 0.8057 GB, free: 23.24 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008023/0.6449, allocations: 2.866 MB / 0.8085 GB, free: 22.1 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007053/0.6519, allocations: 2.385 MB / 0.8108 GB, free: 21.32 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01092/0.6629, allocations: 8.125 MB / 0.8187 GB, free: 17.56 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003168/0.6661, allocations: 1.823 MB / 0.8205 GB, free: 16.48 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005145/0.6712, allocations: 2.233 MB / 0.8227 GB, free: 15.38 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003396/0.6747, allocations: 1.916 MB / 0.8246 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003506/0.675, allocations: 90.16 kB / 0.8247 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002993/0.678, allocations: 1.145 MB / 0.8258 GB, free: 13.92 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004457/0.6785, allocations: 0.4921 MB / 0.8263 GB, free: 13.57 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0007469/0.6792, allocations: 0.5647 MB / 0.8268 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002754/0.682, allocations: 3.277 MB / 0.83 GB, free: 11.09 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.682, allocations: 0 / 0.83 GB, free: 11.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.944e-06/0.682, allocations: 0 / 0.83 GB, free: 11.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.488e-05/0.6821, allocations: 0 / 0.83 GB, free: 11.09 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003871/0.686, allocations: 2.729 MB / 0.8327 GB, free: 9.121 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.686, allocations: 8.594 kB / 0.8327 GB, free: 9.121 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000605/0.6866, allocations: 317.8 kB / 0.833 GB, free: 8.969 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002835/0.6895, allocations: 2.068 MB / 0.835 GB, free: 7.488 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.868e-05/0.6896, allocations: 123.5 kB / 0.8351 GB, free: 7.434 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/0.6897, allocations: 170.8 kB / 0.8353 GB, free: 7.379 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.692, allocations: 1.605 MB / 0.8369 GB, free: 6.375 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/0.692, allocations: 3.984 kB / 0.8369 GB, free: 6.371 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.6921, allocations: 66.94 kB / 0.8369 GB, free: 6.32 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.382e-05/0.6922, allocations: 38.53 kB / 0.837 GB, free: 6.32 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.6938, allocations: 1.145 MB / 0.8381 GB, free: 5.742 MB / 0.545 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.008136/0.702, allocations: 7.907 MB / 0.8458 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006931/0.7027, allocations: 481.6 kB / 0.8463 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004588/0.7032, allocations: 323.8 kB / 0.8466 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005648/0.7037, allocations: 0.7588 MB / 0.8473 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.7038, allocations: 38.97 kB / 0.8473 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.455e-06/0.7038, allocations: 0 / 0.8473 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60): time 0.001709/0.7055, allocations: 1.008 MB / 0.8483 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.7056, allocations: 55.97 kB / 0.8484 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.7083, allocations: 2.292 MB / 0.8506 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.6e-05/0.7084, allocations: 45.7 kB / 0.8507 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009028/0.7093, allocations: 1.154 MB / 0.8518 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.7095, allocations: 219.3 kB / 0.852 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/0.7096, allocations: 20 kB / 0.852 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.7097, allocations: 353.9 kB / 0.8524 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006056/0.7103, allocations: 338.5 kB / 0.8527 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008563/0.7112, allocations: 0.7346 MB / 0.8534 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007407/0.7119, allocations: 466.7 kB / 0.8538 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.712, allocations: 0 / 0.8538 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001976/0.7139, allocations: 1.279 MB / 0.8551 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002025/0.7141, allocations: 343.1 kB / 0.8554 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.7142, allocations: 8 kB / 0.8554 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.7142, allocations: 15.94 kB / 0.8554 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009513/0.7152, allocations: 259.6 kB / 0.8557 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.939e-05/0.7152, allocations: 19.94 kB / 0.8557 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.7167, allocations: 254.2 kB / 0.856 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.491e-05/0.7168, allocations: 51.98 kB / 0.856 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.113e-06/0.7168, allocations: 4 kB / 0.856 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001637/0.7185, allocations: 1.023 MB / 0.857 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.7185, allocations: 8 kB / 0.857 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.7185, allocations: 16.28 kB / 0.857 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008688/0.7194, allocations: 251.6 kB / 0.8573 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/0.7194, allocations: 23.92 kB / 0.8573 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.7207, allocations: 222.8 kB / 0.8575 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.633e-05/0.7208, allocations: 47.98 kB / 0.8576 GB, free: 3.113 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000903/0.7217, allocations: 0.5755 MB / 0.8581 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002984/0.722, allocations: 241 kB / 0.8583 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001649/0.7236, allocations: 0.8999 MB / 0.8592 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.7237, allocations: 11.95 kB / 0.8592 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.7237, allocations: 0 / 0.8592 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009757/0.7246, allocations: 0.6853 MB / 0.8599 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003639/0.7283, allocations: 2.578 MB / 0.8624 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.7283, allocations: 4 kB / 0.8624 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/0.7289, allocations: 135.9 kB / 0.8626 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.7289, allocations: 0 / 0.8626 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.773e-05/0.7289, allocations: 19.98 kB / 0.8626 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.725e-06/0.729, allocations: 4 kB / 0.8626 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.729, allocations: 0 / 0.8626 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.731, allocations: 1.317 MB / 0.8639 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009012/0.7319, allocations: 457.8 kB / 0.8643 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003675/0.7323, allocations: 15.95 kB / 0.8643 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.7335, allocations: 123.7 kB / 0.8644 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.7336, allocations: 40.5 kB / 0.8645 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.366e-05/0.7336, allocations: 35.98 kB / 0.8645 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002007/0.7356, allocations: 1.538 MB / 0.866 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7356, allocations: 0 / 0.866 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002896/0.7385, allocations: 1.091 MB / 0.8671 GB, free: 9.195 MB / 0.5762 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001536/0.7401, allocations: 0.7097 MB / 0.8678 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002324/0.7424, allocations: 1.358 MB / 0.8691 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.7424, allocations: 0 / 0.8691 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000497/0.743, allocations: 331.5 kB / 0.8694 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006062/0.749, allocations: 1.388 MB / 0.8708 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006467/0.7555, allocations: 4.409 MB / 0.8751 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.7568, allocations: 1.594 MB / 0.8766 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00228/0.7591, allocations: 0.4936 MB / 0.8771 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000452/0.7596, allocations: 175.4 kB / 0.8773 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of SimCode: time 1.002e-06/0.7596, allocations: 0 / 0.8773 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of Templates: time 0.07027/0.8299, allocations: 43.82 MB / 0.9201 GB, free: 3.711 MB / 0.6231 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)