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.001283/0.001283, allocations: 102.9 kB / 16.29 MB, free: 6.43 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.001323/0.001324, allocations: 187.9 kB / 17.22 MB, free: 5.934 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.609/1.609, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.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.814/1.814, allocations: 292.3 MB / 0.5495 GB, free: 17.39 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.001448/0.001448, allocations: 67.91 kB / 0.6722 GB, free: 6.5 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.315, allocations: 114.5 MB / 0.7841 GB, free: 3.832 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.7499/1.065, allocations: 113.2 MB / 0.8946 GB, free: 2.812 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.04711/1.112, allocations: 24.02 MB / 0.9181 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007261/1.12, allocations: 120.7 kB / 0.9182 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005024/1.125, allocations: 1.277 MB / 0.9195 GB, free: 14.41 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.01504/1.14, allocations: 3.66 MB / 0.923 GB, free: 11.49 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01002/1.15, allocations: 3.07 MB / 0.926 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01397/1.164, allocations: 7.105 MB / 0.933 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005006/1.169, allocations: 2.545 MB / 0.9355 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008394/1.177, allocations: 2.79 MB / 0.9382 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00523/1.182, allocations: 2.112 MB / 0.9402 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0009245/1.183, allocations: 252 kB / 0.9405 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005268/1.189, allocations: 1.634 MB / 0.9421 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0009511/1.19, allocations: 0.6812 MB / 0.9427 GB, free: 8.27 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.002615/1.192, allocations: 1.497 MB / 0.9442 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.007423/1.2, allocations: 4.342 MB / 0.9484 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/1.2, allocations: 4 kB / 0.9485 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.384e-06/1.2, allocations: 4 kB / 0.9485 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.327e-05/1.2, allocations: 0 / 0.9485 GB, free: 2.402 MB / 0.7325 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.00627/1.206, allocations: 3.178 MB / 0.9516 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/1.206, allocations: 12.03 kB / 0.9516 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/1.207, allocations: 316.3 kB / 0.9519 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003783/1.211, allocations: 2.063 MB / 0.9539 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/1.211, allocations: 134.9 kB / 0.954 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002581/1.211, allocations: 164 kB / 0.9542 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002884/1.214, allocations: 1.608 MB / 0.9557 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.896e-05/1.214, allocations: 7.984 kB / 0.9557 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/1.215, allocations: 63.94 kB / 0.9558 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.758e-05/1.215, allocations: 44 kB / 0.9559 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002104/1.217, allocations: 1.143 MB / 0.957 GB, free: 9.477 MB / 0.7481 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.01127/1.228, allocations: 7.894 MB / 0.9647 GB, free: 1.07 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008162/1.229, allocations: 470.7 kB / 0.9651 GB, free: 0.6055 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/1.229, allocations: 327 kB / 0.9654 GB, free: 292 kB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007238/1.23, allocations: 0.7563 MB / 0.9662 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/1.23, allocations: 47.06 kB / 0.9662 GB, free: 15.31 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=60): time 3.857e-06/1.23, allocations: 0 / 0.9662 GB, free: 15.31 MB / 0.7637 GB Notification: Performance of matching and sorting (n=60): time 0.002309/1.233, allocations: 0.9765 MB / 0.9672 GB, free: 14.32 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/1.233, allocations: 59.97 kB / 0.9672 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00334/1.236, allocations: 2.289 MB / 0.9695 GB, free: 11.95 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001384/1.236, allocations: 45.7 kB / 0.9695 GB, free: 11.9 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009779/1.237, allocations: 1.141 MB / 0.9706 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/1.237, allocations: 220.8 kB / 0.9708 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000451/1.238, allocations: 254.6 kB / 0.9711 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002118/1.238, allocations: 353.9 kB / 0.9714 GB, free: 9.918 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006885/1.239, allocations: 361.9 kB / 0.9718 GB, free: 9.562 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/1.24, allocations: 0.7487 MB / 0.9725 GB, free: 8.66 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/1.241, allocations: 0.9823 MB / 0.9735 GB, free: 7.566 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/1.241, allocations: 0 / 0.9735 GB, free: 7.566 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002462/1.244, allocations: 1.287 MB / 0.9747 GB, free: 6.27 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/1.244, allocations: 8.906 kB / 0.9747 GB, free: 6.262 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/1.244, allocations: 8 kB / 0.9747 GB, free: 6.254 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.812e-05/1.244, allocations: 20 kB / 0.9747 GB, free: 6.234 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009657/1.245, allocations: 251.6 kB / 0.975 GB, free: 5.988 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.155e-05/1.245, allocations: 15.94 kB / 0.975 GB, free: 5.973 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/1.246, allocations: 174.3 kB / 0.9752 GB, free: 5.801 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.887e-05/1.247, allocations: 53.39 kB / 0.9752 GB, free: 5.75 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001439/1.248, allocations: 0.7602 MB / 0.976 GB, free: 4.984 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009406/1.249, allocations: 0.7387 MB / 0.9767 GB, free: 4.082 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001337/1.25, allocations: 0.9446 MB / 0.9776 GB, free: 3.023 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.967e-06/1.25, allocations: 4 kB / 0.9776 GB, free: 3.02 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002339/1.253, allocations: 1.266 MB / 0.9788 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/1.253, allocations: 8 kB / 0.9789 GB, free: 1.734 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/1.253, allocations: 11.98 kB / 0.9789 GB, free: 1.723 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/1.253, allocations: 12 kB / 0.9789 GB, free: 1.711 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008893/1.254, allocations: 251.6 kB / 0.9791 GB, free: 1.465 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.309e-05/1.254, allocations: 19.94 kB / 0.9791 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/1.255, allocations: 123.2 kB / 0.9793 GB, free: 1.324 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.428e-05/1.255, allocations: 52.8 kB / 0.9793 GB, free: 1.273 MB / 0.7637 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.0003561/1.256, allocations: 251.8 kB / 0.9795 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003594/1.256, allocations: 229.1 kB / 0.9798 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/1.258, allocations: 0.8828 MB / 0.9806 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/1.258, allocations: 4 kB / 0.9806 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/1.258, allocations: 0 / 0.9806 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001031/1.259, allocations: 0.6892 MB / 0.9813 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004021/1.263, allocations: 2.568 MB / 0.9838 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/1.263, allocations: 0 / 0.9838 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005446/1.263, allocations: 135.7 kB / 0.9839 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/1.263, allocations: 0 / 0.9839 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/1.264, allocations: 16 kB / 0.984 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/1.264, allocations: 4 kB / 0.984 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.264, allocations: 8.031 kB / 0.984 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/1.266, allocations: 1.301 MB / 0.9852 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007672/1.266, allocations: 406.1 kB / 0.9856 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/1.267, allocations: 19.98 kB / 0.9856 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008841/1.268, allocations: 43.89 kB / 0.9857 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/1.268, allocations: 44.44 kB / 0.9857 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.382e-05/1.268, allocations: 35.97 kB / 0.9858 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.00264/1.27, allocations: 1.529 MB / 0.9873 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/1.27, allocations: 4 kB / 0.9873 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003367/1.274, allocations: 1.103 MB / 0.9883 GB, free: 7.859 MB / 0.7794 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.001887/1.276, allocations: 0.7617 MB / 0.9891 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002893/1.279, allocations: 1.355 MB / 0.9904 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.279, allocations: 0 / 0.9904 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006015/1.279, allocations: 331 kB / 0.9907 GB, free: 5.598 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005845/1.285, allocations: 1.397 MB / 0.9921 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006426/1.292, allocations: 3.637 MB / 0.9956 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/1.293, allocations: 1.574 MB / 0.9972 GB, free: 14.98 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.002206/1.295, allocations: 492 kB / 0.9976 GB, free: 14.51 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/1.296, allocations: 179.4 kB / 0.9978 GB, free: 14.34 MB / 0.795 GB Notification: Performance of SimCode: time 9.82e-07/1.296, allocations: 0 / 0.9978 GB, free: 14.34 MB / 0.795 GB Notification: Performance of Templates: time 0.08594/1.381, allocations: 47 MB / 1.044 GB, free: 28 kB / 0.8262 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)