Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006626/0.0006626, allocations: 93.73 kB / 16.02 MB, free: 84 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.0007775/0.0007776, allocations: 172.8 kB / 16.91 MB, free: 6.68 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.259/1.259, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6553/0.6553, allocations: 115.5 MB / 407.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.0003232, allocations: 8 kB / 496 MB, free: 6.219 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1407, allocations: 77.54 MB / 0.56 GB, free: 8.891 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3445/0.4852, allocations: 110.1 MB / 0.6676 GB, free: 9.23 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02821/0.5135, allocations: 20.1 MB / 0.6872 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004931/0.5184, allocations: 95.31 kB / 0.6873 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004013/0.5225, allocations: 1.041 MB / 0.6883 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0114/0.5339, allocations: 3.401 MB / 0.6916 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.008823/0.5427, allocations: 2.858 MB / 0.6944 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01164/0.5544, allocations: 9.526 MB / 0.7037 GB, free: 4.168 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00379/0.5582, allocations: 2.069 MB / 0.7057 GB, free: 2.043 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005113/0.5633, allocations: 2.325 MB / 0.708 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00357/0.5669, allocations: 2.041 MB / 0.71 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0006419/0.5676, allocations: 88 kB / 0.7101 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00379/0.5714, allocations: 1.442 MB / 0.7115 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0009271/0.5723, allocations: 0.5132 MB / 0.712 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002504/0.5748, allocations: 1.342 MB / 0.7133 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.006262/0.5811, allocations: 4.15 MB / 0.7174 GB, free: 6.09 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.5811, allocations: 7.984 kB / 0.7174 GB, free: 6.082 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.945e-06/0.5811, allocations: 0 / 0.7174 GB, free: 6.082 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.000106/0.5813, allocations: 3.938 kB / 0.7174 GB, free: 6.078 MB / 0.5294 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.005125/0.5864, allocations: 2.681 MB / 0.72 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.5864, allocations: 12.03 kB / 0.72 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004409/0.5869, allocations: 219.7 kB / 0.7202 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009516/0.5879, allocations: 328.5 kB / 0.7205 GB, free: 2.77 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003378/0.5913, allocations: 2.151 MB / 0.7226 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.511e-05/0.5914, allocations: 127 kB / 0.7228 GB, free: 428 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002262/0.5916, allocations: 167.9 kB / 0.7229 GB, free: 260 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002706/0.5943, allocations: 1.619 MB / 0.7245 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.5944, allocations: 0 / 0.7245 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.5945, allocations: 64 kB / 0.7246 GB, free: 14.51 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.546e-05/0.5945, allocations: 47.88 kB / 0.7246 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002035/0.5966, allocations: 1.155 MB / 0.7257 GB, free: 13.3 MB / 0.545 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.01048/0.6071, allocations: 7.908 MB / 0.7335 GB, free: 4.883 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000764/0.6079, allocations: 490.4 kB / 0.7339 GB, free: 4.398 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.6084, allocations: 323 kB / 0.7342 GB, free: 4.082 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006233/0.609, allocations: 0.7602 MB / 0.735 GB, free: 3.156 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.609, allocations: 39.12 kB / 0.735 GB, free: 3.105 MB / 0.545 GB Notification: Performance of pre-optimization done (n=60): time 2.465e-06/0.609, allocations: 0 / 0.735 GB, free: 3.105 MB / 0.545 GB Notification: Performance of matching and sorting (n=60): time 0.001919/0.611, allocations: 0.9999 MB / 0.736 GB, free: 2.102 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.611, allocations: 63.97 kB / 0.736 GB, free: 2.027 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/0.6139, allocations: 2.308 MB / 0.7383 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.614, allocations: 49.7 kB / 0.7383 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009293/0.6149, allocations: 1.161 MB / 0.7395 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.6152, allocations: 216.9 kB / 0.7397 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.6153, allocations: 105.6 kB / 0.7398 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.6154, allocations: 349.9 kB / 0.7401 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006314/0.6161, allocations: 358.5 kB / 0.7405 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000895/0.617, allocations: 0.7463 MB / 0.7412 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.6183, allocations: 0.9941 MB / 0.7422 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.6184, allocations: 4 kB / 0.7422 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00206/0.6204, allocations: 1.303 MB / 0.7434 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000189/0.6206, allocations: 342.8 kB / 0.7438 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.6206, allocations: 8 kB / 0.7438 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.6207, allocations: 16 kB / 0.7438 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009411/0.6216, allocations: 259.5 kB / 0.744 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.6217, allocations: 20 kB / 0.7441 GB, free: 9.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/0.6233, allocations: 246.2 kB / 0.7443 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.633e-05/0.6234, allocations: 55.98 kB / 0.7443 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.233e-06/0.6234, allocations: 11.88 kB / 0.7444 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001622/0.625, allocations: 1.031 MB / 0.7454 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.625, allocations: 8 kB / 0.7454 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.6251, allocations: 12 kB / 0.7454 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008554/0.6259, allocations: 247.6 kB / 0.7456 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.626, allocations: 24.39 kB / 0.7456 GB, free: 7.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.6273, allocations: 230.5 kB / 0.7459 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.172e-05/0.6274, allocations: 44 kB / 0.7459 GB, free: 7.492 MB / 0.5606 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.0009922/0.6284, allocations: 0.5788 MB / 0.7465 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003052/0.6287, allocations: 237 kB / 0.7467 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.6303, allocations: 0.8969 MB / 0.7476 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.6304, allocations: 8.281 kB / 0.7476 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.6304, allocations: 0 / 0.7476 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001024/0.6314, allocations: 0.697 MB / 0.7483 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003492/0.6349, allocations: 2.582 MB / 0.7508 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.6349, allocations: 7.984 kB / 0.7508 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.6354, allocations: 131.8 kB / 0.7509 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.6354, allocations: 0 / 0.7509 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.6355, allocations: 16 kB / 0.7509 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.6355, allocations: 4 kB / 0.7509 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6355, allocations: 96 / 0.7509 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.6373, allocations: 1.329 MB / 0.7522 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005951/0.6379, allocations: 461.7 kB / 0.7527 GB, free: 400 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002103/0.6381, allocations: 12 kB / 0.7527 GB, free: 388 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.6392, allocations: 126.5 kB / 0.7528 GB, free: 264 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.124e-05/0.6393, allocations: 40.5 kB / 0.7528 GB, free: 220 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-05/0.6394, allocations: 39.92 kB / 0.7529 GB, free: 180 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002007/0.6414, allocations: 1.554 MB / 0.7544 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6414, allocations: 0 / 0.7544 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002499/0.6439, allocations: 1.099 MB / 0.7555 GB, free: 13.52 MB / 0.5762 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.003532/0.6474, allocations: 2.512 MB / 0.7579 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002311/0.6498, allocations: 1.377 MB / 0.7593 GB, free: 9.738 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6498, allocations: 0 / 0.7593 GB, free: 9.738 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005069/0.6503, allocations: 336.2 kB / 0.7596 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006628/0.6569, allocations: 1.385 MB / 0.7609 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02949/0.6864, allocations: 18.24 MB / 0.7788 GB, free: 4.273 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.6875, allocations: 1.594 MB / 0.7803 GB, free: 2.645 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002008/0.6896, allocations: 0.4948 MB / 0.7808 GB, free: 2.145 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.6907, allocations: 0.9601 MB / 0.7817 GB, free: 1.184 MB / 0.5919 GB Notification: Performance of SimCode: time 1.082e-06/0.6907, allocations: 0 / 0.7817 GB, free: 1.184 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3271/1.018, allocations: 63.69 MB / 0.8439 GB, free: 219.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/1.018, allocations: 242.5 kB / 0.8442 GB, free: 219.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.338/4.356, allocations: 7.828 kB / 0.8442 GB, free: 219.1 MB / 0.6387 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)