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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.715/1.715, allocations: 292.3 MB / 308.1 MB, free: 4.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 184.5 kB / 376.9 MB, free: 1.824 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.787/1.787, allocations: 205.1 MB / 0.6354 GB, free: 9.777 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009627/0.0009626, allocations: 93.45 kB / 0.7479 GB, free: 61.33 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 55.91 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2685, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.5839/0.8524, allocations: 112.5 MB / 1.092 GB, free: 41.47 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0331/0.8856, allocations: 24.51 MB / 1.116 GB, free: 24.55 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006951/0.8926, allocations: 110.1 kB / 1.116 GB, free: 24.49 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.006038/0.8987, allocations: 1.051 MB / 1.117 GB, free: 23.88 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.01364/0.9124, allocations: 3.347 MB / 1.12 GB, free: 21.91 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.007796/0.9202, allocations: 2.805 MB / 1.123 GB, free: 20.32 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.009915/0.9302, allocations: 9.483 MB / 1.132 GB, free: 16.8 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.9342, allocations: 2.119 MB / 1.134 GB, free: 15.9 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005525/0.9398, allocations: 2.39 MB / 1.137 GB, free: 14.86 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003949/0.9438, allocations: 2.119 MB / 1.139 GB, free: 13.96 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.001048/0.9449, allocations: 118.2 kB / 1.139 GB, free: 13.96 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004802/0.9497, allocations: 1.459 MB / 1.14 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.9512, allocations: 0.5544 MB / 1.141 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.003556/0.9547, allocations: 1.367 MB / 1.142 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.007557/0.9623, allocations: 4.196 MB / 1.146 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.9624, allocations: 0 / 1.146 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9624, allocations: 0 / 1.146 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0001806/0.9626, allocations: 0 / 1.146 GB, free: 10.81 MB / 0.7448 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.007447/0.97, allocations: 3.174 MB / 1.149 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.9701, allocations: 9.812 kB / 1.149 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/0.9714, allocations: 321.2 kB / 1.15 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005016/0.9765, allocations: 2.125 MB / 1.152 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.9767, allocations: 123.6 kB / 1.152 GB, free: 7.387 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005981/0.9773, allocations: 171.5 kB / 1.152 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003612/0.9809, allocations: 1.603 MB / 1.154 GB, free: 6.598 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.317e-05/0.981, allocations: 3.188 kB / 1.154 GB, free: 6.598 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001925/0.9812, allocations: 64.92 kB / 1.154 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-05/0.9812, allocations: 46.75 kB / 1.154 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002277/0.9835, allocations: 1.145 MB / 1.155 GB, free: 6.113 MB / 0.7448 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.01118/0.9947, allocations: 7.864 MB / 1.163 GB, free: 0.6289 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007708/0.9955, allocations: 474.5 kB / 1.163 GB, free: 452 kB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004455/0.996, allocations: 329.8 kB / 1.163 GB, free: 324 kB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005983/0.9966, allocations: 0.7531 MB / 1.164 GB, free: 15.46 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.9966, allocations: 46.22 kB / 1.164 GB, free: 15.41 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=60): time 2.665e-06/0.9967, allocations: 0 / 1.164 GB, free: 15.41 MB / 0.7605 GB Notification: Performance of matching and sorting (n=60): time 0.002183/0.9988, allocations: 0.9832 MB / 1.165 GB, free: 14.99 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.9989, allocations: 58.25 kB / 1.165 GB, free: 14.93 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003842/1.003, allocations: 2.254 MB / 1.167 GB, free: 14.08 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001954/1.003, allocations: 54.58 kB / 1.167 GB, free: 14.04 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001131/1.004, allocations: 1.145 MB / 1.169 GB, free: 13.13 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002902/1.004, allocations: 217.5 kB / 1.169 GB, free: 12.96 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005875/1.005, allocations: 247.5 kB / 1.169 GB, free: 12.84 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001661/1.005, allocations: 350.3 kB / 1.169 GB, free: 12.52 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008236/1.006, allocations: 368.4 kB / 1.17 GB, free: 12.37 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/1.007, allocations: 0.7481 MB / 1.17 GB, free: 11.77 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/1.009, allocations: 0.9846 MB / 1.171 GB, free: 11.1 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.711e-05/1.009, allocations: 10.22 kB / 1.171 GB, free: 11.09 MB / 0.7605 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003255/1.012, allocations: 1.283 MB / 1.173 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/1.012, allocations: 7.375 kB / 1.173 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-05/1.012, allocations: 16.83 kB / 1.173 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.293e-05/1.012, allocations: 14.5 kB / 1.173 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/1.013, allocations: 256.7 kB / 1.173 GB, free: 10.51 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.062e-05/1.014, allocations: 12.78 kB / 1.173 GB, free: 10.51 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002772/1.016, allocations: 254 kB / 1.173 GB, free: 10.39 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001595/1.016, allocations: 54.23 kB / 1.173 GB, free: 10.38 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001915/1.018, allocations: 0.7579 MB / 1.174 GB, free: 9.996 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001378/1.02, allocations: 0.7351 MB / 1.175 GB, free: 9.398 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001666/1.021, allocations: 0.9505 MB / 1.176 GB, free: 8.754 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.46e-05/1.021, allocations: 2.469 kB / 1.176 GB, free: 8.754 MB / 0.7605 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003472/1.025, allocations: 1.268 MB / 1.177 GB, free: 8.203 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/1.025, allocations: 8.75 kB / 1.177 GB, free: 8.203 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/1.025, allocations: 8.406 kB / 1.177 GB, free: 8.203 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.057e-05/1.025, allocations: 13.75 kB / 1.177 GB, free: 8.203 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/1.026, allocations: 248.4 kB / 1.177 GB, free: 8.18 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.243e-05/1.026, allocations: 22.39 kB / 1.177 GB, free: 8.176 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002524/1.029, allocations: 188.1 kB / 1.177 GB, free: 8.105 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/1.029, allocations: 57.92 kB / 1.177 GB, free: 8.09 MB / 0.7605 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.0004409/1.029, allocations: 249.4 kB / 1.178 GB, free: 7.859 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008806/1.03, allocations: 230.3 kB / 1.178 GB, free: 7.738 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/1.033, allocations: 0.8828 MB / 1.179 GB, free: 7.367 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/1.033, allocations: 5.875 kB / 1.179 GB, free: 7.367 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/1.033, allocations: 1.156 kB / 1.179 GB, free: 7.367 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001171/1.034, allocations: 0.6881 MB / 1.179 GB, free: 7 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006068/1.04, allocations: 2.546 MB / 1.182 GB, free: 5.797 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/1.04, allocations: 4.562 kB / 1.182 GB, free: 5.797 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005883/1.041, allocations: 125.5 kB / 1.182 GB, free: 5.785 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.638e-05/1.041, allocations: 3.562 kB / 1.182 GB, free: 5.785 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.285e-05/1.041, allocations: 22.03 kB / 1.182 GB, free: 5.773 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.294e-05/1.041, allocations: 6.656 kB / 1.182 GB, free: 5.773 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.041, allocations: 1.375 kB / 1.182 GB, free: 5.773 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02622/1.067, allocations: 9.4 MB / 1.191 GB, free: 0.5 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/1.068, allocations: 405 kB / 1.192 GB, free: 216 kB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007016/1.069, allocations: 16.98 kB / 1.192 GB, free: 204 kB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/1.071, allocations: 114.2 kB / 1.192 GB, free: 176 kB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/1.071, allocations: 41.12 kB / 1.192 GB, free: 172 kB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/1.071, allocations: 30.34 kB / 1.192 GB, free: 168 kB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.004799/1.076, allocations: 1.518 MB / 1.193 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.11e-07/1.076, allocations: 1.469 kB / 1.193 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.008699/1.085, allocations: 1.715 MB / 1.195 GB, free: 15.32 MB / 0.7761 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.002271/1.087, allocations: 0.751 MB / 1.196 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.003292/1.09, allocations: 1.357 MB / 1.197 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.09, allocations: 1.188 kB / 1.197 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0007296/1.091, allocations: 328 kB / 1.197 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009691/1.101, allocations: 1.397 MB / 1.199 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009591/1.11, allocations: 4.912 MB / 1.203 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/1.113, allocations: 1.592 MB / 1.205 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.003676/1.116, allocations: 0.5079 MB / 1.206 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008213/1.117, allocations: 177 kB / 1.206 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of SimCode: time 1.513e-06/1.117, allocations: 0 / 1.206 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of Templates: time 0.09005/1.207, allocations: 48.24 MB / 1.253 GB, free: 0.7969 MB / 0.8073 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)