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.001091/0.001091, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001125/0.001125, allocations: 195.2 kB / 16.14 MB, free: 6.707 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002038/0.002037, allocations: 286.8 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9127/0.9127, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 87.52 kB / 0.5945 GB, free: 28.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1566, allocations: 86.99 MB / 0.6794 GB, free: 1.191 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4406/0.5972, allocations: 111.9 MB / 0.7887 GB, free: 32.29 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02562/0.6229, allocations: 20.34 MB / 0.8086 GB, free: 31.8 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004584/0.6275, allocations: 101.9 kB / 0.8087 GB, free: 31.8 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003649/0.6312, allocations: 1.04 MB / 0.8097 GB, free: 31.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01017/0.6414, allocations: 3.39 MB / 0.813 GB, free: 30.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.008283/0.6497, allocations: 2.842 MB / 0.8158 GB, free: 29.36 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01362/0.6634, allocations: 9.539 MB / 0.8251 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003727/0.6671, allocations: 2.136 MB / 0.8272 GB, free: 25.03 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005917/0.6731, allocations: 2.395 MB / 0.8295 GB, free: 23.81 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004389/0.6775, allocations: 2.138 MB / 0.8316 GB, free: 22.74 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0007953/0.6783, allocations: 121.8 kB / 0.8317 GB, free: 22.74 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00432/0.6826, allocations: 1.467 MB / 0.8331 GB, free: 22.04 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.6839, allocations: 0.5687 MB / 0.8337 GB, free: 21.64 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002687/0.6866, allocations: 1.371 MB / 0.835 GB, free: 20.77 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004753/0.6913, allocations: 4.255 MB / 0.8392 GB, free: 17.95 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.6914, allocations: 4 kB / 0.8392 GB, free: 17.95 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.182e-06/0.6914, allocations: 2.469 kB / 0.8392 GB, free: 17.95 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.634e-05/0.6914, allocations: 0 / 0.8392 GB, free: 17.95 MB / 0.5606 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.004283/0.6957, allocations: 3.227 MB / 0.8423 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.6958, allocations: 9.562 kB / 0.8424 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006803/0.6964, allocations: 328.6 kB / 0.8427 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002815/0.6993, allocations: 2.15 MB / 0.8448 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.109e-05/0.6993, allocations: 127.1 kB / 0.8449 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001829/0.6995, allocations: 169.6 kB / 0.845 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.7018, allocations: 1.612 MB / 0.8466 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/0.7018, allocations: 6.656 kB / 0.8466 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.7019, allocations: 62.38 kB / 0.8467 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.374e-05/0.702, allocations: 37.41 kB / 0.8467 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001794/0.7037, allocations: 1.15 MB / 0.8478 GB, free: 12.12 MB / 0.5606 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.008847/0.7126, allocations: 7.874 MB / 0.8555 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006779/0.7133, allocations: 478 kB / 0.856 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004061/0.7137, allocations: 323.1 kB / 0.8563 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003991/0.7141, allocations: 0.7561 MB / 0.857 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.7142, allocations: 43.12 kB / 0.8571 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.014e-06/0.7142, allocations: 0 / 0.8571 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of matching and sorting (n=60): time 0.001798/0.716, allocations: 0.9919 MB / 0.858 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.716, allocations: 59.97 kB / 0.8581 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002417/0.7184, allocations: 2.308 MB / 0.8604 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001239/0.7186, allocations: 49.7 kB / 0.8604 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000901/0.7195, allocations: 1.161 MB / 0.8615 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.7197, allocations: 227 kB / 0.8618 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003879/0.7201, allocations: 254.6 kB / 0.862 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.7203, allocations: 345.9 kB / 0.8623 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000673/0.721, allocations: 357.9 kB / 0.8627 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.722, allocations: 0.7541 MB / 0.8634 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.7235, allocations: 0.9785 MB / 0.8644 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.7235, allocations: 4 kB / 0.8644 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002424/0.7259, allocations: 1.295 MB / 0.8656 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.726, allocations: 8 kB / 0.8656 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.726, allocations: 8 kB / 0.8656 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.726, allocations: 16 kB / 0.8657 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.727, allocations: 248.2 kB / 0.8659 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.169e-05/0.7271, allocations: 23.92 kB / 0.8659 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.7288, allocations: 246.2 kB / 0.8662 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.729, allocations: 59.97 kB / 0.8662 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001507/0.7305, allocations: 0.7531 MB / 0.8669 GB, free: 9.605 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009852/0.7315, allocations: 0.7387 MB / 0.8677 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001356/0.7328, allocations: 0.96 MB / 0.8686 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.028e-06/0.7329, allocations: 0 / 0.8686 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002292/0.7352, allocations: 1.259 MB / 0.8698 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.7352, allocations: 8 kB / 0.8698 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.7352, allocations: 16.12 kB / 0.8699 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.7352, allocations: 12 kB / 0.8699 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009016/0.7361, allocations: 255.6 kB / 0.8701 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-05/0.7362, allocations: 15.94 kB / 0.8701 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.7379, allocations: 183.1 kB / 0.8703 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-05/0.738, allocations: 51.98 kB / 0.8704 GB, free: 5.828 MB / 0.5762 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.0003017/0.7383, allocations: 244.6 kB / 0.8706 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003508/0.7387, allocations: 240.9 kB / 0.8708 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001762/0.7404, allocations: 0.8896 MB / 0.8717 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.7405, allocations: 4 kB / 0.8717 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.7405, allocations: 0 / 0.8717 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001014/0.7415, allocations: 0.6853 MB / 0.8724 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004084/0.7456, allocations: 2.569 MB / 0.8749 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.7456, allocations: 0 / 0.8749 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005446/0.7462, allocations: 127.8 kB / 0.875 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.097e-06/0.7462, allocations: 4 kB / 0.875 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.7462, allocations: 23.92 kB / 0.875 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.7462, allocations: 4 kB / 0.875 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7462, allocations: 3.984 kB / 0.875 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/0.7483, allocations: 1.31 MB / 0.8763 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007617/0.7491, allocations: 421.9 kB / 0.8767 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.7493, allocations: 16 kB / 0.8767 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.7505, allocations: 115.7 kB / 0.8768 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.7506, allocations: 52.39 kB / 0.8769 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.511e-05/0.7507, allocations: 35.97 kB / 0.8769 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00217/0.7529, allocations: 1.554 MB / 0.8784 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7529, allocations: 0 / 0.8784 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00272/0.7556, allocations: 1.083 MB / 0.8795 GB, free: 12.3 MB / 0.5919 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.001617/0.7572, allocations: 0.7328 MB / 0.8802 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00249/0.7597, allocations: 1.361 MB / 0.8815 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.7597, allocations: 4 kB / 0.8815 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005192/0.7603, allocations: 324.4 kB / 0.8818 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005961/0.7662, allocations: 1.378 MB / 0.8832 GB, free: 8.707 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006474/0.7727, allocations: 4.539 MB / 0.8876 GB, free: 4.145 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.774, allocations: 1.59 MB / 0.8892 GB, free: 2.52 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002205/0.7762, allocations: 0.4971 MB / 0.8897 GB, free: 2.023 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003692/0.7766, allocations: 171.4 kB / 0.8898 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of SimCode: time 8.72e-07/0.7766, allocations: 0 / 0.8898 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of Templates: time 0.07624/0.8528, allocations: 45.28 MB / 0.934 GB, free: 5.246 MB / 0.6387 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)