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.001358/0.001358, allocations: 107.1 kB / 15.99 MB, free: 6.348 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.001197/0.001197, allocations: 193.4 kB / 16.91 MB, free: 6.191 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.27/1.27, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7025/0.7025, allocations: 115.3 MB / 406.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 63.91 kB / 493.2 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3782, allocations: 76.18 MB / 0.556 GB, free: 35.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1001/0.4783, allocations: 111.6 MB / 0.665 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02971/0.508, allocations: 20.09 MB / 0.6847 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004601/0.5127, allocations: 107.2 kB / 0.6848 GB, free: 496 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004378/0.5171, allocations: 1.096 MB / 0.6858 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01105/0.5282, allocations: 3.434 MB / 0.6892 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.007735/0.5359, allocations: 2.877 MB / 0.692 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009548/0.5455, allocations: 7.247 MB / 0.6991 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004481/0.55, allocations: 2.552 MB / 0.7016 GB, free: 15.22 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007103/0.5571, allocations: 2.815 MB / 0.7043 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004009/0.5612, allocations: 2.202 MB / 0.7065 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001054/0.5622, allocations: 252 kB / 0.7067 GB, free: 9.949 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004881/0.5671, allocations: 1.657 MB / 0.7083 GB, free: 8.289 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001572/0.5687, allocations: 0.6967 MB / 0.709 GB, free: 7.59 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00333/0.572, allocations: 1.512 MB / 0.7105 GB, free: 6.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007518/0.5796, allocations: 4.358 MB / 0.7147 GB, free: 1.699 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.5796, allocations: 4 kB / 0.7147 GB, free: 1.695 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5796, allocations: 0 / 0.7147 GB, free: 1.695 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001634/0.5798, allocations: 0 / 0.7147 GB, free: 1.695 MB / 0.545 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.006574/0.5864, allocations: 3.222 MB / 0.7179 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.5864, allocations: 8.031 kB / 0.7179 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004069/0.5868, allocations: 219.7 kB / 0.7181 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009681/0.5878, allocations: 328.4 kB / 0.7184 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003898/0.5917, allocations: 2.151 MB / 0.7205 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.5918, allocations: 127 kB / 0.7206 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.5921, allocations: 171.8 kB / 0.7208 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002796/0.5949, allocations: 1.612 MB / 0.7224 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.455e-05/0.595, allocations: 7.938 kB / 0.7224 GB, free: 9.648 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.5951, allocations: 60 kB / 0.7224 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.314e-05/0.5952, allocations: 43.94 kB / 0.7225 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.5972, allocations: 1.151 MB / 0.7236 GB, free: 8.391 MB / 0.5606 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.01066/0.6079, allocations: 7.877 MB / 0.7313 GB, free: 4 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.6087, allocations: 482.3 kB / 0.7318 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004729/0.6092, allocations: 322.9 kB / 0.7321 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005633/0.6098, allocations: 0.7601 MB / 0.7328 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.6099, allocations: 47.12 kB / 0.7328 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.715e-06/0.6099, allocations: 0 / 0.7328 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.002141/0.612, allocations: 0.9804 MB / 0.7338 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.6121, allocations: 55.97 kB / 0.7339 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00327/0.6153, allocations: 2.324 MB / 0.7361 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001569/0.6155, allocations: 49.7 kB / 0.7362 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009581/0.6165, allocations: 1.149 MB / 0.7373 GB, free: 9.625 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/0.6167, allocations: 216.9 kB / 0.7375 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003884/0.6171, allocations: 262.6 kB / 0.7378 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.6173, allocations: 349.9 kB / 0.7381 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/0.6179, allocations: 361.9 kB / 0.7384 GB, free: 8.441 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009189/0.6188, allocations: 0.7447 MB / 0.7392 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.6202, allocations: 0.9746 MB / 0.7401 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/0.6203, allocations: 15.94 kB / 0.7401 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002552/0.6228, allocations: 1.291 MB / 0.7414 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.6229, allocations: 8 kB / 0.7414 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.6229, allocations: 8.75 kB / 0.7414 GB, free: 5.121 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.6229, allocations: 15.94 kB / 0.7414 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.624, allocations: 251.6 kB / 0.7417 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.581e-05/0.624, allocations: 23.92 kB / 0.7417 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.6261, allocations: 242.1 kB / 0.7419 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.6262, allocations: 51.98 kB / 0.742 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001366/0.6276, allocations: 0.7641 MB / 0.7427 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009479/0.6285, allocations: 0.7349 MB / 0.7434 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001346/0.6299, allocations: 0.9484 MB / 0.7444 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.594e-06/0.6299, allocations: 4 kB / 0.7444 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002321/0.6322, allocations: 1.262 MB / 0.7456 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.6323, allocations: 8 kB / 0.7456 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.6323, allocations: 8 kB / 0.7456 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.6323, allocations: 16 kB / 0.7456 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000861/0.6332, allocations: 243.6 kB / 0.7459 GB, free: 276 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.549e-05/0.6332, allocations: 23.92 kB / 0.7459 GB, free: 252 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.635, allocations: 179.2 kB / 0.746 GB, free: 72 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.733e-05/0.6351, allocations: 47.98 kB / 0.7461 GB, free: 24 kB / 0.5762 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.2137/0.8489, allocations: 256.5 kB / 0.7463 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007507/0.8496, allocations: 240.4 kB / 0.7466 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.8516, allocations: 0.88 MB / 0.7474 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/0.8516, allocations: 9.109 kB / 0.7474 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.8517, allocations: 0 / 0.7474 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001065/0.8527, allocations: 0.6855 MB / 0.7481 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004216/0.857, allocations: 2.565 MB / 0.7506 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.857, allocations: 3 kB / 0.7506 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005492/0.8575, allocations: 132.5 kB / 0.7507 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.8575, allocations: 7.031 kB / 0.7507 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.289e-05/0.8576, allocations: 15.66 kB / 0.7508 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.695e-06/0.8576, allocations: 7.625 kB / 0.7508 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.8576, allocations: 5.375 kB / 0.7508 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.8596, allocations: 1.313 MB / 0.7521 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006629/0.8603, allocations: 417.6 kB / 0.7525 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/0.8606, allocations: 13.19 kB / 0.7525 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.8616, allocations: 121.4 kB / 0.7526 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.234e-05/0.8617, allocations: 41.2 kB / 0.7526 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-05/0.8618, allocations: 31.2 kB / 0.7526 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002117/0.8639, allocations: 1.553 MB / 0.7542 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.51e-07/0.864, allocations: 0 / 0.7542 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002494/0.8664, allocations: 1.098 MB / 0.7552 GB, free: 162.6 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.003425/0.8699, allocations: 2.486 MB / 0.7577 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002669/0.8726, allocations: 1.451 MB / 0.7591 GB, free: 161 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.8726, allocations: 1.25 kB / 0.7591 GB, free: 161 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004905/0.8731, allocations: 328.8 kB / 0.7594 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005444/0.8785, allocations: 1.389 MB / 0.7608 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0304/0.9089, allocations: 18.14 MB / 0.7785 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002076/0.9111, allocations: 1.597 MB / 0.78 GB, free: 148.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00289/0.914, allocations: 0.494 MB / 0.7805 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001968/0.916, allocations: 0.9556 MB / 0.7814 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.312e-06/0.916, allocations: 0 / 0.7814 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08188/0.9979, allocations: 65.19 MB / 0.8451 GB, free: 90.14 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/0.9981, allocations: 247.8 kB / 0.8453 GB, free: 89.89 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.348/4.346, allocations: 3.938 kB / 0.8453 GB, free: 89.88 MB / 0.5762 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)