Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 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.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001398/0.001398, allocations: 101.4 kB / 15.7 MB, free: 28 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.001549/0.00155, allocations: 194.8 kB / 16.64 MB, free: 6.477 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.607/1.607, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.853/1.853, allocations: 292.3 MB / 0.549 GB, free: 12.78 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.001449/0.001449, allocations: 71 kB / 0.6723 GB, free: 25.94 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2745, allocations: 114.5 MB / 0.7841 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1097/0.3842, allocations: 113.2 MB / 0.8947 GB, free: 11.12 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.545/0.9293, allocations: 24.01 MB / 0.9182 GB, free: 35.56 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006339/0.9357, allocations: 122 kB / 0.9183 GB, free: 35.56 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.004865/0.9406, allocations: 1.268 MB / 0.9195 GB, free: 35.54 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01254/0.9532, allocations: 3.649 MB / 0.9231 GB, free: 35.39 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.009131/0.9624, allocations: 3.069 MB / 0.9261 GB, free: 35.3 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01292/0.9753, allocations: 7.109 MB / 0.933 GB, free: 35.29 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007423/0.9828, allocations: 2.553 MB / 0.9355 GB, free: 34.98 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009975/0.9928, allocations: 2.781 MB / 0.9382 GB, free: 34.77 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005293/0.9981, allocations: 2.116 MB / 0.9403 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.00177/0.9999, allocations: 252 kB / 0.9405 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006976/1.007, allocations: 1.634 MB / 0.9421 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001331/1.008, allocations: 0.6807 MB / 0.9428 GB, free: 34.26 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.003538/1.012, allocations: 1.494 MB / 0.9442 GB, free: 33.83 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.009962/1.022, allocations: 4.345 MB / 0.9485 GB, free: 32.36 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/1.022, allocations: 1.594 kB / 0.9485 GB, free: 32.36 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.004e-06/1.022, allocations: 1.219 kB / 0.9485 GB, free: 32.36 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001365/1.022, allocations: 0 / 0.9485 GB, free: 32.36 MB / 0.7169 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.007778/1.03, allocations: 3.186 MB / 0.9516 GB, free: 30.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/1.03, allocations: 13.09 kB / 0.9516 GB, free: 30.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/1.031, allocations: 317 kB / 0.9519 GB, free: 30.25 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004675/1.036, allocations: 2.154 MB / 0.954 GB, free: 29.15 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/1.036, allocations: 129.5 kB / 0.9541 GB, free: 29.09 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002741/1.036, allocations: 168.7 kB / 0.9543 GB, free: 29.04 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003166/1.04, allocations: 1.606 MB / 0.9559 GB, free: 28.31 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.454e-05/1.04, allocations: 12.59 kB / 0.9559 GB, free: 28.3 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/1.04, allocations: 62.97 kB / 0.9559 GB, free: 28.26 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.73e-05/1.04, allocations: 39.97 kB / 0.956 GB, free: 28.26 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002117/1.042, allocations: 1.148 MB / 0.9571 GB, free: 27.84 MB / 0.7169 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.01095/1.053, allocations: 7.89 MB / 0.9648 GB, free: 21.71 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007552/1.054, allocations: 477.9 kB / 0.9653 GB, free: 21.48 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000431/1.054, allocations: 324.6 kB / 0.9656 GB, free: 21.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004475/1.055, allocations: 0.7504 MB / 0.9663 GB, free: 20.45 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/1.055, allocations: 44.41 kB / 0.9663 GB, free: 20.4 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 3.055e-06/1.055, allocations: 6.344 kB / 0.9664 GB, free: 20.4 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.002168/1.057, allocations: 0.9853 MB / 0.9673 GB, free: 19.89 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/1.057, allocations: 59.03 kB / 0.9674 GB, free: 19.83 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002918/1.06, allocations: 2.28 MB / 0.9696 GB, free: 18.62 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002628/1.06, allocations: 49.33 kB / 0.9696 GB, free: 18.57 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008142/1.061, allocations: 1.141 MB / 0.9708 GB, free: 17.57 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/1.061, allocations: 217.8 kB / 0.971 GB, free: 17.39 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/1.061, allocations: 256.4 kB / 0.9712 GB, free: 17.24 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.955e-05/1.062, allocations: 344.9 kB / 0.9715 GB, free: 16.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005944/1.062, allocations: 366.1 kB / 0.9719 GB, free: 16.73 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008475/1.063, allocations: 0.7478 MB / 0.9726 GB, free: 16.07 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/1.064, allocations: 0.979 MB / 0.9736 GB, free: 15.37 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.186e-06/1.064, allocations: 2.844 kB / 0.9736 GB, free: 15.37 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002458/1.067, allocations: 1.292 MB / 0.9748 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/1.067, allocations: 12.19 kB / 0.9749 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/1.067, allocations: 8.156 kB / 0.9749 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.119e-05/1.067, allocations: 14.25 kB / 0.9749 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009518/1.068, allocations: 253.3 kB / 0.9751 GB, free: 14.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-05/1.068, allocations: 16.78 kB / 0.9751 GB, free: 14.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/1.07, allocations: 176.6 kB / 0.9753 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/1.07, allocations: 52.55 kB / 0.9754 GB, free: 14.52 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001455/1.071, allocations: 0.759 MB / 0.9761 GB, free: 14.07 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007859/1.072, allocations: 0.7403 MB / 0.9768 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001155/1.073, allocations: 0.9553 MB / 0.9777 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.58e-06/1.073, allocations: 2.469 kB / 0.9778 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002407/1.076, allocations: 1.259 MB / 0.979 GB, free: 12.06 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/1.076, allocations: 13.41 kB / 0.979 GB, free: 12.06 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/1.076, allocations: 11.89 kB / 0.979 GB, free: 12.05 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/1.076, allocations: 13.75 kB / 0.979 GB, free: 12.05 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008653/1.077, allocations: 252.1 kB / 0.9793 GB, free: 12 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/1.077, allocations: 17.34 kB / 0.9793 GB, free: 11.99 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/1.079, allocations: 123.2 kB / 0.9794 GB, free: 11.92 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/1.079, allocations: 55.61 kB / 0.9794 GB, free: 11.9 MB / 0.7169 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.0003799/1.08, allocations: 248.3 kB / 0.9797 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005327/1.08, allocations: 235.7 kB / 0.9799 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/1.082, allocations: 0.8797 MB / 0.9808 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/1.082, allocations: 4.906 kB / 0.9808 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.082, allocations: 2.562 kB / 0.9808 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000891/1.083, allocations: 0.6821 MB / 0.9814 GB, free: 10.62 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004336/1.087, allocations: 2.562 MB / 0.9839 GB, free: 8.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.087, allocations: 0 / 0.9839 GB, free: 8.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005038/1.088, allocations: 126.1 kB / 0.9841 GB, free: 8.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/1.088, allocations: 2.125 kB / 0.9841 GB, free: 8.836 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/1.088, allocations: 16.66 kB / 0.9841 GB, free: 8.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/1.088, allocations: 10.72 kB / 0.9841 GB, free: 8.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.088, allocations: 0 / 0.9841 GB, free: 8.82 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/1.09, allocations: 1.312 MB / 0.9854 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/1.091, allocations: 407.3 kB / 0.9858 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/1.091, allocations: 16.64 kB / 0.9858 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009528/1.092, allocations: 47.36 kB / 0.9858 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/1.092, allocations: 43.88 kB / 0.9859 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.165e-05/1.092, allocations: 33.95 kB / 0.9859 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002294/1.095, allocations: 1.533 MB / 0.9874 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/1.095, allocations: 0 / 0.9874 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0038/1.098, allocations: 1.106 MB / 0.9885 GB, free: 6.578 MB / 0.7169 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.001833/1.1, allocations: 0.7603 MB / 0.9892 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002381/1.103, allocations: 1.354 MB / 0.9905 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.103, allocations: 3.938 kB / 0.9905 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004459/1.103, allocations: 324.6 kB / 0.9908 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006298/1.11, allocations: 1.392 MB / 0.9922 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005556/1.115, allocations: 3.628 MB / 0.9958 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/1.116, allocations: 1.588 MB / 0.9973 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00243/1.119, allocations: 0.4906 MB / 0.9978 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005417/1.119, allocations: 171.4 kB / 0.9979 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/1.119, allocations: 4 kB / 0.9979 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of Templates: time 0.08012/1.199, allocations: 44.62 MB / 1.042 GB, free: 1.363 MB / 0.7637 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)