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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.904/1.904, allocations: 289.9 MB / 297.4 MB, free: 6.352 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.001526/0.001526, allocations: 176.8 kB / 366.7 MB, free: 1.672 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.983/1.983, allocations: 205.2 MB / 0.626 GB, free: 7.156 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.0009678/0.0009678, allocations: 100.3 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.163e-05/2.169e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7206/0.7207, allocations: 116.3 MB / 0.9733 GB, free: 76.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.159/1.879, allocations: 432.6 MB / 1.396 GB, free: 124.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/1.88, allocations: 98.31 kB / 1.396 GB, free: 124.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.244/5.123, allocations: 0.9658 GB / 2.362 GB, free: 392 kB / 0.9636 GB Notification: Performance of FrontEnd: time 1.913e-06/5.123, allocations: 4 kB / 2.362 GB, free: 388 kB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0004941/5.124, allocations: 87.84 kB / 2.362 GB, free: 300 kB / 0.9636 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.8176/5.941, allocations: 2.524 MB / 2.364 GB, free: 124.8 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.308e-05/5.942, allocations: 13.3 kB / 2.364 GB, free: 124.8 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001993/5.944, allocations: 317.3 kB / 2.365 GB, free: 124.7 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007218/5.951, allocations: 2.415 MB / 2.367 GB, free: 124.3 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/5.951, allocations: 47.72 kB / 2.367 GB, free: 124.3 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004133/5.951, allocations: 106 kB / 2.367 GB, free: 124.3 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002683/5.954, allocations: 0.9819 MB / 2.368 GB, free: 124.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00302/5.957, allocations: 1.303 MB / 2.369 GB, free: 124.1 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/5.957, allocations: 2.938 kB / 2.369 GB, free: 124.1 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/5.957, allocations: 4.906 kB / 2.369 GB, free: 124.1 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-05/5.957, allocations: 40.47 kB / 2.369 GB, free: 124.1 MB / 0.9636 GB Warning: The model contains alias variables with conflicting start and/or 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.01492/5.972, allocations: 7.634 MB / 2.377 GB, free: 120.6 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007893/5.973, allocations: 427.9 kB / 2.377 GB, free: 120.6 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005067/5.974, allocations: 310.9 kB / 2.378 GB, free: 120.6 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006597/5.974, allocations: 0.7594 MB / 2.378 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/5.974, allocations: 41.72 kB / 2.378 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=60): time 3.336e-06/5.974, allocations: 0 / 2.378 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of matching and sorting (n=60): time 0.002455/5.977, allocations: 0.7178 MB / 2.379 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/5.977, allocations: 58 kB / 2.379 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003279/5.98, allocations: 1.672 MB / 2.381 GB, free: 119.3 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0002363/5.98, allocations: 29.58 kB / 2.381 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0011/5.982, allocations: 1.145 MB / 2.382 GB, free: 118.9 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/5.982, allocations: 206 kB / 2.382 GB, free: 118.8 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.626e-05/5.982, allocations: 0 / 2.382 GB, free: 118.8 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001123/5.982, allocations: 352.1 kB / 2.382 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/5.982, allocations: 305.5 kB / 2.383 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007657/5.983, allocations: 0.7629 MB / 2.383 GB, free: 118 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009503/5.984, allocations: 447.8 kB / 2.384 GB, free: 118 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/5.984, allocations: 7.062 kB / 2.384 GB, free: 118 MB / 0.9636 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002179/5.986, allocations: 1.117 MB / 2.385 GB, free: 117.8 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008579/5.987, allocations: 3.151 MB / 2.388 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/5.987, allocations: 7.812 kB / 2.388 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.503e-05/5.987, allocations: 16.97 kB / 2.388 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/5.988, allocations: 263.3 kB / 2.388 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/5.988, allocations: 16.25 kB / 2.388 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/5.991, allocations: 200 kB / 2.389 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/5.991, allocations: 54.95 kB / 2.389 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/5.991, allocations: 4.812 kB / 2.389 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00153/5.992, allocations: 0.8486 MB / 2.389 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/5.992, allocations: 7.812 kB / 2.389 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/5.992, allocations: 16.86 kB / 2.389 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000871/5.993, allocations: 263.3 kB / 2.39 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/5.993, allocations: 13.91 kB / 2.39 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/5.995, allocations: 168.3 kB / 2.39 GB, free: 114.4 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.26e-05/5.995, allocations: 48.11 kB / 2.39 GB, free: 114.4 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003058/5.995, allocations: 143.9 kB / 2.39 GB, free: 114.3 MB / 0.9636 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001275/5.997, allocations: 0.6873 MB / 2.391 GB, free: 114.1 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/5.997, allocations: 209.9 kB / 2.391 GB, free: 114 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/5.999, allocations: 0.824 MB / 2.392 GB, free: 113.9 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/5.999, allocations: 11.64 kB / 2.392 GB, free: 113.9 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/5.999, allocations: 0 / 2.392 GB, free: 113.9 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008742/6, allocations: 0.6453 MB / 2.392 GB, free: 113.8 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005044/6.005, allocations: 2.406 MB / 2.395 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/6.005, allocations: 6.516 kB / 2.395 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000582/6.005, allocations: 143.5 kB / 2.395 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/6.005, allocations: 3.594 kB / 2.395 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.326e-05/6.005, allocations: 15.77 kB / 2.395 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/6.005, allocations: 4.375 kB / 2.395 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/6.005, allocations: 3.344 kB / 2.395 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/6.007, allocations: 1.265 MB / 2.396 GB, free: 113 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/6.008, allocations: 429.4 kB / 2.397 GB, free: 112.8 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/6.008, allocations: 1.969 kB / 2.397 GB, free: 112.8 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/6.01, allocations: 157.5 kB / 2.397 GB, free: 112.8 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/6.01, allocations: 42.89 kB / 2.397 GB, free: 112.8 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.478e-05/6.01, allocations: 37.64 kB / 2.397 GB, free: 112.8 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001919/6.012, allocations: 1.225 MB / 2.398 GB, free: 112.7 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.81e-07/6.012, allocations: 2.438 kB / 2.398 GB, free: 112.7 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.00456/6.016, allocations: 1.212 MB / 2.399 GB, free: 112.6 MB / 0.9636 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004972/6.021, allocations: 3.12 MB / 2.402 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.002359/6.024, allocations: 1.297 MB / 2.403 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/6.024, allocations: 0 / 2.403 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0003878/6.024, allocations: 304.1 kB / 2.404 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0075/6.032, allocations: 1.285 MB / 2.405 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008409/6.04, allocations: 3.224 MB / 2.408 GB, free: 110.5 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001583/6.042, allocations: 1.632 MB / 2.41 GB, free: 109.8 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.003479/6.045, allocations: 0.6308 MB / 2.41 GB, free: 109.8 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/6.046, allocations: 0.8925 MB / 2.411 GB, free: 109.8 MB / 0.9636 GB Notification: Performance of SimCode: time 1.022e-06/6.047, allocations: 2.531 kB / 2.411 GB, free: 109.8 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1524/6.199, allocations: 63.92 MB / 2.474 GB, free: 107.3 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002558/6.199, allocations: 171.8 kB / 2.474 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.109/11.31, allocations: 2.625 kB / 2.474 GB, free: 107.1 MB / 0.9636 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)