Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001175/0.001175, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009682/0.009682, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.547/1.547, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.957/2.957, allocations: 473.4 MB / 0.7469 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000359/0.000359, allocations: 12.19 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3586, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1073/0.4659, allocations: 110.1 MB / 1.182 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03399/0.5, allocations: 20.13 MB / 1.201 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004892/0.5049, allocations: 95.31 kB / 1.201 GB, free: 4.758 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004184/0.5091, allocations: 1.033 MB / 1.202 GB, free: 3.719 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01172/0.5209, allocations: 3.383 MB / 1.206 GB, free: 332 kB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00815/0.529, allocations: 2.859 MB / 1.209 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01349/0.5425, allocations: 9.53 MB / 1.218 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005148/0.5477, allocations: 2.074 MB / 1.22 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007076/0.5548, allocations: 2.329 MB / 1.222 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00509/0.5599, allocations: 2.037 MB / 1.224 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0009213/0.5609, allocations: 88 kB / 1.224 GB, free: 13.33 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004639/0.5655, allocations: 1.446 MB / 1.226 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.00119/0.5668, allocations: 0.5132 MB / 1.226 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.003579/0.5704, allocations: 1.338 MB / 1.227 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.007017/0.5774, allocations: 4.146 MB / 1.231 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.5774, allocations: 0 / 1.231 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.106e-06/0.5774, allocations: 0 / 1.231 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.075e-05/0.5775, allocations: 0 / 1.231 GB, free: 5.859 MB / 0.9825 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.005195/0.5827, allocations: 2.697 MB / 1.234 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.5828, allocations: 12.03 kB / 1.234 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007629/0.5836, allocations: 324.6 kB / 1.234 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003853/0.5874, allocations: 2.147 MB / 1.237 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.231e-05/0.5875, allocations: 134.8 kB / 1.237 GB, free: 424 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002336/0.5878, allocations: 171.9 kB / 1.237 GB, free: 252 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002936/0.5907, allocations: 1.62 MB / 1.238 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.188e-05/0.5908, allocations: 0 / 1.238 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/0.5909, allocations: 64 kB / 1.238 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-05/0.591, allocations: 43.94 kB / 1.239 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002267/0.5932, allocations: 1.159 MB / 1.24 GB, free: 13.29 MB / 0.9981 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.01155/0.6048, allocations: 7.904 MB / 1.247 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008226/0.6057, allocations: 485.7 kB / 1.248 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005176/0.6062, allocations: 326.9 kB / 1.248 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006439/0.6068, allocations: 0.7524 MB / 1.249 GB, free: 3.152 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.6069, allocations: 51.06 kB / 1.249 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.394e-06/0.6069, allocations: 0 / 1.249 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002133/0.609, allocations: 0.9999 MB / 1.25 GB, free: 2.086 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.6091, allocations: 59.97 kB / 1.25 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6711/1.28, allocations: 2.313 MB / 1.252 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003307/1.281, allocations: 46.3 kB / 1.252 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001454/1.282, allocations: 1.147 MB / 1.253 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003281/1.282, allocations: 221.1 kB / 1.254 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/1.283, allocations: 104.6 kB / 1.254 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001065/1.283, allocations: 347.2 kB / 1.254 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008037/1.284, allocations: 356.5 kB / 1.254 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/1.285, allocations: 0.7562 MB / 1.255 GB, free: 174 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/1.286, allocations: 0.9906 MB / 1.256 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/1.286, allocations: 2.594 kB / 1.256 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003066/1.289, allocations: 1.305 MB / 1.257 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002366/1.289, allocations: 345 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/1.289, allocations: 9.141 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.494e-05/1.289, allocations: 13.88 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/1.291, allocations: 253.2 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-05/1.291, allocations: 19.92 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/1.293, allocations: 252.1 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/1.293, allocations: 52.58 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/1.293, allocations: 5.344 kB / 1.258 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001964/1.295, allocations: 1.035 MB / 1.259 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/1.295, allocations: 8.75 kB / 1.259 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/1.295, allocations: 18.16 kB / 1.259 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009174/1.296, allocations: 252.1 kB / 1.26 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/1.296, allocations: 19.22 kB / 1.26 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/1.298, allocations: 229.1 kB / 1.26 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.808e-05/1.298, allocations: 50.61 kB / 1.26 GB, free: 172.9 MB / 0.9981 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.0009882/1.299, allocations: 0.576 MB / 1.26 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003372/1.299, allocations: 233.8 kB / 1.261 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/1.301, allocations: 0.8952 MB / 1.261 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/1.301, allocations: 12.25 kB / 1.261 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.301, allocations: 3.938 kB / 1.261 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00102/1.302, allocations: 0.6957 MB / 1.262 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004605/1.306, allocations: 2.573 MB / 1.265 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/1.306, allocations: 3.938 kB / 1.265 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005428/1.307, allocations: 125.9 kB / 1.265 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.578e-06/1.307, allocations: 4.438 kB / 1.265 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/1.307, allocations: 23.69 kB / 1.265 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.859e-06/1.307, allocations: 7.109 kB / 1.265 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.307, allocations: 6.469 kB / 1.265 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/1.309, allocations: 1.329 MB / 1.266 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008996/1.31, allocations: 461.9 kB / 1.267 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002184/1.31, allocations: 12.48 kB / 1.267 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/1.312, allocations: 113.6 kB / 1.267 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/1.312, allocations: 47.66 kB / 1.267 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.98e-05/1.312, allocations: 36.55 kB / 1.267 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002403/1.314, allocations: 1.552 MB / 1.268 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.1e-07/1.314, allocations: 0 / 1.268 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003649/1.318, allocations: 1.096 MB / 1.269 GB, free: 168.7 MB / 0.9981 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.001899/1.32, allocations: 0.7328 MB / 1.27 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00296/1.323, allocations: 1.374 MB / 1.271 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/1.323, allocations: 4.812 kB / 1.271 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006359/1.323, allocations: 332.5 kB / 1.272 GB, free: 168 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007951/1.331, allocations: 1.402 MB / 1.273 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007115/1.338, allocations: 4.593 MB / 1.278 GB, free: 165 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/1.34, allocations: 1.595 MB / 1.279 GB, free: 164.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003114/1.343, allocations: 0.4938 MB / 1.28 GB, free: 164 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000524/1.344, allocations: 171.2 kB / 1.28 GB, free: 164 MB / 0.9981 GB Notification: Performance of SimCode: time 1.733e-06/1.344, allocations: 3.938 kB / 1.28 GB, free: 164 MB / 0.9981 GB Notification: Performance of Templates: time 0.07999/1.424, allocations: 45.04 MB / 1.324 GB, free: 135.6 MB / 0.9981 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)