Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.198/2.198, allocations: 391.2 MB / 407 MB, free: 10.8 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 195.4 kB / 499.1 MB, free: 4.621 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 222.9 MB / 0.7948 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009773/0.0009774, allocations: 103.5 kB / 0.9329 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001048, allocations: 53.33 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3209, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.07983/0.4008, allocations: 111.9 MB / 1.327 GB, free: 4.898 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0296/0.4305, allocations: 20.33 MB / 1.347 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005758/0.4363, allocations: 99.31 kB / 1.347 GB, free: 436 kB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.004652/0.441, allocations: 1.041 MB / 1.348 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.01252/0.4536, allocations: 3.378 MB / 1.352 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.008932/0.4625, allocations: 2.843 MB / 1.354 GB, free: 9.184 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.01381/0.4764, allocations: 9.574 MB / 1.364 GB, free: 15.59 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004716/0.4811, allocations: 2.132 MB / 1.366 GB, free: 13.39 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007127/0.4883, allocations: 2.431 MB / 1.368 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005087/0.4934, allocations: 2.119 MB / 1.37 GB, free: 8.82 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.4947, allocations: 120 kB / 1.37 GB, free: 8.703 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004944/0.4996, allocations: 1.474 MB / 1.372 GB, free: 7.227 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 0.0009157/0.5006, allocations: 0.5678 MB / 1.372 GB, free: 6.656 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 0.002803/0.5034, allocations: 1.368 MB / 1.374 GB, free: 5.281 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.00679/0.5102, allocations: 4.249 MB / 1.378 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.5103, allocations: 0 / 1.378 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5103, allocations: 0 / 1.378 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001101/0.5104, allocations: 0 / 1.378 GB, free: 1.02 MB / 0.8698 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.006921/0.5173, allocations: 3.218 MB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.5174, allocations: 11.98 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009221/0.5183, allocations: 336.4 kB / 1.381 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003925/0.5223, allocations: 2.155 MB / 1.383 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-05/0.5224, allocations: 123 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002105/0.5226, allocations: 171.9 kB / 1.384 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002716/0.5253, allocations: 1.608 MB / 1.385 GB, free: 9.203 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/0.5254, allocations: 11.91 kB / 1.385 GB, free: 9.191 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.5255, allocations: 68 kB / 1.385 GB, free: 9.125 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-05/0.5256, allocations: 47.94 kB / 1.385 GB, free: 9.078 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/0.5276, allocations: 1.143 MB / 1.387 GB, free: 7.93 MB / 0.8855 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/0.5389, allocations: 7.881 MB / 1.394 GB, free: 15.54 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007747/0.5397, allocations: 477.7 kB / 1.395 GB, free: 15.07 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004753/0.5402, allocations: 322.9 kB / 1.395 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006314/0.5408, allocations: 0.7602 MB / 1.396 GB, free: 13.82 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.294e-05/0.5409, allocations: 43.12 kB / 1.396 GB, free: 13.77 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=60): time 3.436e-06/0.5409, allocations: 3.938 kB / 1.396 GB, free: 13.77 MB / 0.9011 GB Notification: Performance of matching and sorting (n=60): time 0.002131/0.543, allocations: 0.9881 MB / 1.397 GB, free: 12.77 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.5431, allocations: 59.91 kB / 1.397 GB, free: 12.7 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002866/0.546, allocations: 2.308 MB / 1.399 GB, free: 10.38 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001413/0.5461, allocations: 49.7 kB / 1.399 GB, free: 10.32 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009282/0.547, allocations: 1.149 MB / 1.4 GB, free: 9.164 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/0.5473, allocations: 212.9 kB / 1.4 GB, free: 8.953 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003393/0.5476, allocations: 258.6 kB / 1.401 GB, free: 8.695 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.5478, allocations: 345.9 kB / 1.401 GB, free: 8.352 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006067/0.5484, allocations: 365.9 kB / 1.401 GB, free: 7.992 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009166/0.5493, allocations: 0.7385 MB / 1.402 GB, free: 7.086 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.5507, allocations: 0.9863 MB / 1.403 GB, free: 5.988 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.5507, allocations: 4 kB / 1.403 GB, free: 5.984 MB / 0.9011 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002271/0.553, allocations: 1.295 MB / 1.404 GB, free: 4.68 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.553, allocations: 13.34 kB / 1.404 GB, free: 4.668 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.553, allocations: 12.12 kB / 1.404 GB, free: 4.656 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.672e-05/0.553, allocations: 12 kB / 1.404 GB, free: 4.645 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009231/0.554, allocations: 251.6 kB / 1.405 GB, free: 4.398 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.247e-05/0.554, allocations: 19.92 kB / 1.405 GB, free: 4.379 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/0.5559, allocations: 250.2 kB / 1.405 GB, free: 4.133 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.714e-05/0.556, allocations: 51.98 kB / 1.405 GB, free: 4.082 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001352/0.5573, allocations: 0.7563 MB / 1.406 GB, free: 3.324 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008604/0.5582, allocations: 0.7388 MB / 1.406 GB, free: 2.426 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001259/0.5595, allocations: 0.9492 MB / 1.407 GB, free: 1.355 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.15e-06/0.5595, allocations: 4 kB / 1.407 GB, free: 1.352 MB / 0.9011 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00215/0.5616, allocations: 1.262 MB / 1.409 GB, free: 80 kB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.5616, allocations: 8 kB / 1.409 GB, free: 72 kB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.5617, allocations: 11.94 kB / 1.409 GB, free: 60 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.5617, allocations: 15.98 kB / 1.409 GB, free: 44 kB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008583/0.5626, allocations: 247.6 kB / 1.409 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.998e-05/0.5626, allocations: 23.94 kB / 1.409 GB, free: 15.78 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.5644, allocations: 187.6 kB / 1.409 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.547e-05/0.5645, allocations: 47.98 kB / 1.409 GB, free: 15.55 MB / 0.9167 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.0003505/0.5648, allocations: 256.5 kB / 1.409 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003418/0.5652, allocations: 240.9 kB / 1.41 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.5669, allocations: 0.8818 MB / 1.41 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.567, allocations: 8 kB / 1.41 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.567, allocations: 4 kB / 1.41 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009584/0.5679, allocations: 0.6891 MB / 1.411 GB, free: 13.43 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004143/0.5721, allocations: 2.566 MB / 1.414 GB, free: 10.79 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.5721, allocations: 0 / 1.414 GB, free: 10.79 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.5726, allocations: 131.9 kB / 1.414 GB, free: 10.66 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.5726, allocations: 4 kB / 1.414 GB, free: 10.66 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/0.5727, allocations: 16 kB / 1.414 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-05/0.5727, allocations: 7.984 kB / 1.414 GB, free: 10.63 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5727, allocations: 0 / 1.414 GB, free: 10.63 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0186/0.5913, allocations: 9.463 MB / 1.423 GB, free: 0.8555 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00069/0.592, allocations: 410.1 kB / 1.423 GB, free: 444 kB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001946/0.5923, allocations: 19.92 kB / 1.423 GB, free: 424 kB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.5933, allocations: 119.6 kB / 1.424 GB, free: 304 kB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.5934, allocations: 44.5 kB / 1.424 GB, free: 260 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.752e-05/0.5935, allocations: 39.97 kB / 1.424 GB, free: 220 kB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.6188/1.212, allocations: 1.543 MB / 1.425 GB, free: 196.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.435e-06/1.212, allocations: 0 / 1.425 GB, free: 196.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.006767/1.219, allocations: 1.722 MB / 1.427 GB, free: 196.6 MB / 0.9167 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.00185/1.221, allocations: 0.7469 MB / 1.428 GB, free: 196.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.002828/1.224, allocations: 1.354 MB / 1.429 GB, free: 196.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.224, allocations: 4.344 kB / 1.429 GB, free: 196.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000587/1.225, allocations: 326.6 kB / 1.429 GB, free: 196.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007314/1.232, allocations: 1.386 MB / 1.43 GB, free: 196.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008486/1.24, allocations: 4.962 MB / 1.435 GB, free: 193.2 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001894/1.242, allocations: 1.609 MB / 1.437 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.003524/1.246, allocations: 0.5073 MB / 1.437 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005876/1.246, allocations: 182.8 kB / 1.438 GB, free: 192.3 MB / 0.9167 GB Notification: Performance of SimCode: time 9.91e-07/1.246, allocations: 4.844 kB / 1.438 GB, free: 192.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.08161/1.328, allocations: 48.02 MB / 1.484 GB, free: 158.3 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)