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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.406/2.406, allocations: 390.5 MB / 398 MB, free: 10.92 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.00114/0.00114, allocations: 184.8 kB / 491.2 MB, free: 1.566 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.599/1.599, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009919/0.0009919, allocations: 83.97 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.26e-05/2.268e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3053, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.266/1.571, allocations: 431.2 MB / 1.633 GB, free: 15.86 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/1.571, allocations: 103.7 kB / 1.634 GB, free: 15.8 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 3.593/5.164, allocations: 0.9888 GB / 2.622 GB, free: 5.344 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.603e-06/5.164, allocations: 0 / 2.622 GB, free: 5.344 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0005058/5.165, allocations: 87.91 kB / 2.622 GB, free: 5.258 MB / 1.151 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.007115/5.172, allocations: 2.568 MB / 2.625 GB, free: 2.633 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/5.172, allocations: 8.031 kB / 2.625 GB, free: 2.625 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00163/5.174, allocations: 320.2 kB / 2.625 GB, free: 2.309 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006514/5.18, allocations: 2.465 MB / 2.628 GB, free: 15.77 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.361e-05/5.18, allocations: 51.94 kB / 2.628 GB, free: 15.71 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006032/5.181, allocations: 104 kB / 2.628 GB, free: 15.61 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002914/5.184, allocations: 0.9783 MB / 2.629 GB, free: 14.63 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004095/5.188, allocations: 1.305 MB / 2.63 GB, free: 13.27 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.494e-05/5.188, allocations: 7.984 kB / 2.63 GB, free: 13.26 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/5.188, allocations: 4 kB / 2.63 GB, free: 13.25 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.584e-05/5.188, allocations: 47.94 kB / 2.63 GB, free: 13.21 MB / 1.167 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.01729/5.206, allocations: 7.648 MB / 2.638 GB, free: 5.074 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007847/5.207, allocations: 438 kB / 2.638 GB, free: 4.637 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005018/5.207, allocations: 310.9 kB / 2.638 GB, free: 4.324 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000805/5.208, allocations: 0.7563 MB / 2.639 GB, free: 3.402 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/5.208, allocations: 43.12 kB / 2.639 GB, free: 3.352 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 3.536e-06/5.208, allocations: 0 / 2.639 GB, free: 3.352 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.002275/5.21, allocations: 0.7268 MB / 2.64 GB, free: 2.617 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/5.21, allocations: 55.97 kB / 2.64 GB, free: 2.551 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004085/5.215, allocations: 1.707 MB / 2.642 GB, free: 0.8242 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002395/5.215, allocations: 29.7 kB / 2.642 GB, free: 0.7891 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.9046/6.119, allocations: 1.161 MB / 2.643 GB, free: 178.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005059/6.12, allocations: 214 kB / 2.643 GB, free: 178.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/6.12, allocations: 0 / 2.643 GB, free: 178.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001709/6.12, allocations: 348.5 kB / 2.643 GB, free: 178.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008028/6.121, allocations: 300.9 kB / 2.644 GB, free: 178.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/6.122, allocations: 0.7589 MB / 2.644 GB, free: 177.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/6.123, allocations: 446.7 kB / 2.645 GB, free: 177.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/6.123, allocations: 8.688 kB / 2.645 GB, free: 177.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002871/6.126, allocations: 1.115 MB / 2.646 GB, free: 177.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007848/6.127, allocations: 3.158 MB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/6.127, allocations: 7.875 kB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.472e-05/6.127, allocations: 16.41 kB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/6.128, allocations: 257.9 kB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.35e-05/6.128, allocations: 24.91 kB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002543/6.131, allocations: 192.2 kB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/6.131, allocations: 59.23 kB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/6.131, allocations: 6.547 kB / 2.649 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002048/6.133, allocations: 0.8475 MB / 2.65 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/6.133, allocations: 9.172 kB / 2.65 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/6.133, allocations: 18.28 kB / 2.65 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/6.134, allocations: 253.7 kB / 2.65 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.518e-05/6.134, allocations: 17.78 kB / 2.651 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/6.137, allocations: 170.5 kB / 2.651 GB, free: 174.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/6.137, allocations: 56.66 kB / 2.651 GB, free: 174.1 MB / 1.167 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.0003608/6.137, allocations: 138.1 kB / 2.651 GB, free: 174 MB / 1.167 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00186/6.139, allocations: 0.6984 MB / 2.652 GB, free: 173.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/6.139, allocations: 210.7 kB / 2.652 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002051/6.141, allocations: 0.8288 MB / 2.653 GB, free: 173.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/6.141, allocations: 7.906 kB / 2.653 GB, free: 173.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/6.141, allocations: 0 / 2.653 GB, free: 173.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00113/6.142, allocations: 0.6531 MB / 2.653 GB, free: 173.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00582/6.148, allocations: 2.413 MB / 2.656 GB, free: 173.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/6.148, allocations: 3.031 kB / 2.656 GB, free: 173.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/6.149, allocations: 149 kB / 2.656 GB, free: 173.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.389e-05/6.149, allocations: 5.5 kB / 2.656 GB, free: 173.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.532e-05/6.149, allocations: 9.953 kB / 2.656 GB, free: 173.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/6.149, allocations: 7.562 kB / 2.656 GB, free: 173.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/6.149, allocations: 1 kB / 2.656 GB, free: 173.2 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/6.151, allocations: 1.273 MB / 2.657 GB, free: 172.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/6.152, allocations: 445.1 kB / 2.657 GB, free: 172.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002355/6.153, allocations: 8.688 kB / 2.657 GB, free: 172.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/6.154, allocations: 151.1 kB / 2.658 GB, free: 172.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/6.154, allocations: 44.45 kB / 2.658 GB, free: 172.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.334e-05/6.154, allocations: 38.2 kB / 2.658 GB, free: 172.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002283/6.157, allocations: 1.257 MB / 2.659 GB, free: 172.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.4e-07/6.157, allocations: 1.281 kB / 2.659 GB, free: 172.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005372/6.162, allocations: 1.213 MB / 2.66 GB, free: 172.4 MB / 1.167 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.006226/6.168, allocations: 3.132 MB / 2.663 GB, free: 171.2 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003368/6.172, allocations: 1.293 MB / 2.664 GB, free: 171.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/6.172, allocations: 4.562 kB / 2.664 GB, free: 171.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005806/6.172, allocations: 303.1 kB / 2.665 GB, free: 171.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00794/6.18, allocations: 1.266 MB / 2.666 GB, free: 171.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008755/6.189, allocations: 3.263 MB / 2.669 GB, free: 170.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002169/6.191, allocations: 1.649 MB / 2.671 GB, free: 169.6 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00474/6.196, allocations: 0.6407 MB / 2.671 GB, free: 169.5 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/6.198, allocations: 0.9092 MB / 2.672 GB, free: 169.5 MB / 1.167 GB Notification: Performance of SimCode: time 1.463e-06/6.198, allocations: 1.281 kB / 2.672 GB, free: 169.5 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1296/6.327, allocations: 63.97 MB / 2.735 GB, free: 167.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/6.327, allocations: 180.3 kB / 2.735 GB, free: 167.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.975/11.3, allocations: 0 / 2.735 GB, free: 167.4 MB / 1.167 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat does not exist to compare? outputFormat=mat