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.001551/0.001551, allocations: 108 kB / 15.61 MB, free: 152 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.001735/0.001735, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.442/1.442, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.887/2.887, allocations: 472.6 MB / 0.7451 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 61.33 kB / 0.912 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3478, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1121/0.4599, allocations: 112.7 MB / 1.178 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03371/0.4936, allocations: 20.25 MB / 1.198 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004402/0.4981, allocations: 107.4 kB / 1.198 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004378/0.5025, allocations: 1.281 MB / 1.199 GB, free: 3.66 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.5135, allocations: 3.692 MB / 1.203 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.008517/0.5221, allocations: 3.075 MB / 1.206 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01141/0.5335, allocations: 7.185 MB / 1.213 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005373/0.5389, allocations: 2.576 MB / 1.215 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008628/0.5476, allocations: 2.805 MB / 1.218 GB, free: 272 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005645/0.5532, allocations: 2.124 MB / 1.22 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001196/0.5545, allocations: 256 kB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004947/0.5594, allocations: 1.646 MB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001284/0.5607, allocations: 0.685 MB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.003941/0.5647, allocations: 1.516 MB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.007506/0.5722, allocations: 4.335 MB / 1.229 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.5722, allocations: 0 / 1.229 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5723, allocations: 0 / 1.229 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001585/0.5724, allocations: 0 / 1.229 GB, free: 5.676 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.006839/0.5793, allocations: 3.226 MB / 1.232 GB, free: 2.383 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.5793, allocations: 12.03 kB / 1.232 GB, free: 2.371 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009332/0.5803, allocations: 328.5 kB / 1.232 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003864/0.5841, allocations: 2.104 MB / 1.234 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.252e-05/0.5842, allocations: 123 kB / 1.234 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003059/0.5846, allocations: 164 kB / 1.234 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003027/0.5876, allocations: 1.623 MB / 1.236 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.991e-05/0.5877, allocations: 4 kB / 1.236 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.5878, allocations: 60 kB / 1.236 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.845e-05/0.5879, allocations: 47.94 kB / 1.236 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002173/0.59, allocations: 1.143 MB / 1.237 GB, free: 12.65 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.01203/0.6021, allocations: 7.967 MB / 1.245 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008986/0.603, allocations: 494 kB / 1.245 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005296/0.6036, allocations: 330.8 kB / 1.246 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006781/0.6042, allocations: 0.7524 MB / 1.246 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.6043, allocations: 39.12 kB / 1.246 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.865e-06/0.6043, allocations: 0 / 1.246 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002266/0.6066, allocations: 0.9919 MB / 1.247 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.6066, allocations: 59.97 kB / 1.247 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5949/1.202, allocations: 2.337 MB / 1.25 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002587/1.202, allocations: 46.73 kB / 1.25 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009481/1.203, allocations: 1.144 MB / 1.251 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/1.203, allocations: 221.8 kB / 1.251 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003864/1.203, allocations: 256.1 kB / 1.251 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.615e-05/1.204, allocations: 350.8 kB / 1.252 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007064/1.204, allocations: 356 kB / 1.252 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008931/1.205, allocations: 0.748 MB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/1.206, allocations: 0.9833 MB / 1.254 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/1.206, allocations: 2.312 kB / 1.254 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002488/1.209, allocations: 1.294 MB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/1.209, allocations: 9.719 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/1.209, allocations: 8.688 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.89e-05/1.209, allocations: 15.08 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/1.21, allocations: 255.6 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.971e-05/1.21, allocations: 18.95 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/1.212, allocations: 167.7 kB / 1.255 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.304e-05/1.212, allocations: 54.62 kB / 1.256 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001264/1.213, allocations: 0.7583 MB / 1.256 GB, free: 175.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006903/1.214, allocations: 0.7376 MB / 1.257 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001056/1.215, allocations: 0.9577 MB / 1.258 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.638e-06/1.215, allocations: 0 / 1.258 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.001879/1.217, allocations: 1.252 MB / 1.259 GB, free: 174 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/1.217, allocations: 12.03 kB / 1.259 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/1.217, allocations: 8.5 kB / 1.259 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/1.217, allocations: 13 kB / 1.259 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008122/1.218, allocations: 252.1 kB / 1.259 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/1.218, allocations: 24.53 kB / 1.259 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/1.219, allocations: 124.1 kB / 1.26 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-05/1.219, allocations: 51.14 kB / 1.26 GB, free: 173.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.0002631/1.219, allocations: 248.5 kB / 1.26 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/1.22, allocations: 235.5 kB / 1.26 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001503/1.221, allocations: 0.8827 MB / 1.261 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/1.221, allocations: 12.58 kB / 1.261 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.221, allocations: 0 / 1.261 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008316/1.222, allocations: 0.6833 MB / 1.262 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/1.226, allocations: 2.583 MB / 1.264 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.289e-06/1.226, allocations: 2.781 kB / 1.264 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005108/1.226, allocations: 126.5 kB / 1.264 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/1.226, allocations: 4.625 kB / 1.264 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.817e-05/1.226, allocations: 17.06 kB / 1.264 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/1.226, allocations: 6.469 kB / 1.264 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.226, allocations: 0 / 1.264 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001794/1.228, allocations: 1.317 MB / 1.266 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006107/1.229, allocations: 419.6 kB / 1.266 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002385/1.229, allocations: 12.25 kB / 1.266 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009434/1.23, allocations: 53.55 kB / 1.266 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/1.23, allocations: 42.03 kB / 1.266 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.531e-05/1.23, allocations: 34.95 kB / 1.266 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002915/1.233, allocations: 1.569 MB / 1.268 GB, free: 170 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.233, allocations: 0 / 1.268 GB, free: 170 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003208/1.236, allocations: 1.108 MB / 1.269 GB, free: 169.8 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.002081/1.238, allocations: 0.749 MB / 1.269 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003961/1.242, allocations: 1.452 MB / 1.271 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/1.242, allocations: 1.25 kB / 1.271 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005847/1.243, allocations: 330 kB / 1.271 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006488/1.249, allocations: 1.395 MB / 1.273 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006336/1.256, allocations: 3.742 MB / 1.276 GB, free: 166.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/1.257, allocations: 1.587 MB / 1.278 GB, free: 166 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002845/1.26, allocations: 0.4926 MB / 1.278 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/1.261, allocations: 172.8 kB / 1.278 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of SimCode: time 9.12e-07/1.261, allocations: 0 / 1.278 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.07393/1.335, allocations: 46.86 MB / 1.324 GB, free: 134.4 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)