Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",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.438/2.438, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.00181/0.00181, allocations: 175.9 kB / 0.4901 GB, free: 2.227 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.746/1.746, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.0009582/0.0009582, allocations: 98.55 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003895/0.0003895, allocations: 13.56 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3157, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.062/1.378, allocations: 400.2 MB / 1.62 GB, free: 14.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/1.378, allocations: 97.81 kB / 1.62 GB, free: 14.54 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.59/2.968, allocations: 438.9 MB / 2.049 GB, free: 282.4 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.432e-06/2.968, allocations: 0 / 2.049 GB, free: 282.4 MB / 1.167 GB Notification: Performance of Transformations before backend: time 8.833e-05/2.968, allocations: 31.98 kB / 2.049 GB, free: 282.3 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002823/2.971, allocations: 1.535 MB / 2.05 GB, free: 280.8 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/2.971, allocations: 8.031 kB / 2.05 GB, free: 280.7 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/2.971, allocations: 102.5 kB / 2.051 GB, free: 280.6 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003228/2.971, allocations: 154.4 kB / 2.051 GB, free: 280.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001722/2.973, allocations: 0.8369 MB / 2.051 GB, free: 279.6 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/2.973, allocations: 81.31 kB / 2.052 GB, free: 279.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/2.973, allocations: 120 kB / 2.052 GB, free: 279.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008862/2.974, allocations: 0.624 MB / 2.052 GB, free: 278.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/2.974, allocations: 7.938 kB / 2.052 GB, free: 278.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.05e-05/2.974, allocations: 27.95 kB / 2.052 GB, free: 278.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/2.974, allocations: 12 kB / 2.052 GB, free: 278.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000743/2.975, allocations: 468.9 kB / 2.053 GB, free: 278.2 MB / 1.167 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.004091/2.979, allocations: 3.095 MB / 2.056 GB, free: 275 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005182/2.98, allocations: 327.8 kB / 2.056 GB, free: 274.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002446/2.98, allocations: 340.7 kB / 2.056 GB, free: 274.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/2.98, allocations: 38.84 kB / 2.056 GB, free: 274.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/2.98, allocations: 4 kB / 2.056 GB, free: 274.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=33): time 0.001176/2.981, allocations: 0.5623 MB / 2.057 GB, free: 273.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/2.981, allocations: 55.41 kB / 2.057 GB, free: 273.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007576/2.982, allocations: 0.7849 MB / 2.058 GB, free: 272.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001431/2.982, allocations: 53.7 kB / 2.058 GB, free: 272.7 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/2.983, allocations: 0.5502 MB / 2.058 GB, free: 272.1 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 6.981e-05/2.983, allocations: 114.4 kB / 2.059 GB, free: 272 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/2.983, allocations: 16 kB / 2.059 GB, free: 272 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 5.595e-05/2.983, allocations: 330 kB / 2.059 GB, free: 271.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/2.983, allocations: 185.2 kB / 2.059 GB, free: 271.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/2.984, allocations: 1.424 MB / 2.06 GB, free: 269.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/2.985, allocations: 320.5 kB / 2.061 GB, free: 269.4 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/2.985, allocations: 0 / 2.061 GB, free: 269.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001074/2.986, allocations: 0.6578 MB / 2.061 GB, free: 268.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001666/2.986, allocations: 0.8098 MB / 2.062 GB, free: 267.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/2.986, allocations: 4 kB / 2.062 GB, free: 267.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/2.986, allocations: 7.984 kB / 2.062 GB, free: 267.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/2.987, allocations: 199.7 kB / 2.062 GB, free: 267.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/2.988, allocations: 2.961 MB / 2.065 GB, free: 264.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003141/2.992, allocations: 0.9095 MB / 2.066 GB, free: 263.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.186e-05/2.992, allocations: 27.98 kB / 2.066 GB, free: 263.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.738e-06/2.992, allocations: 4 kB / 2.066 GB, free: 263.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008892/2.993, allocations: 0.5089 MB / 2.067 GB, free: 263.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/2.993, allocations: 0 / 2.067 GB, free: 263.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/2.993, allocations: 8 kB / 2.067 GB, free: 263.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006465/2.993, allocations: 159.8 kB / 2.067 GB, free: 262.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/2.993, allocations: 11.89 kB / 2.067 GB, free: 262.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003101/2.996, allocations: 0.9093 MB / 2.068 GB, free: 262 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-05/2.996, allocations: 31.98 kB / 2.068 GB, free: 262 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005939/2.997, allocations: 326.6 kB / 2.068 GB, free: 261.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/2.997, allocations: 94.78 kB / 2.068 GB, free: 261.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/2.998, allocations: 0.5501 MB / 2.069 GB, free: 261 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/2.998, allocations: 4 kB / 2.069 GB, free: 261 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/2.998, allocations: 3.953 kB / 2.069 GB, free: 261 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/2.998, allocations: 3.984 kB / 2.069 GB, free: 261 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/3, allocations: 1.286 MB / 2.07 GB, free: 259.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/3, allocations: 4.125 kB / 2.07 GB, free: 259.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005132/3.001, allocations: 115.8 kB / 2.07 GB, free: 259.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/3.001, allocations: 4 kB / 2.07 GB, free: 259.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/3.001, allocations: 15.98 kB / 2.07 GB, free: 259.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007935/3.001, allocations: 2.942 MB / 2.073 GB, free: 256.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/3.001, allocations: 4.031 kB / 2.073 GB, free: 256.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007116/3.002, allocations: 0.6342 MB / 2.074 GB, free: 255.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003236/3.002, allocations: 231.6 kB / 2.074 GB, free: 255.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.485e-05/3.003, allocations: 11.98 kB / 2.074 GB, free: 255.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005587/3.003, allocations: 67.86 kB / 2.074 GB, free: 255.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.149e-05/3.003, allocations: 27.92 kB / 2.074 GB, free: 255.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/3.003, allocations: 16 kB / 2.074 GB, free: 255.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005926/3.004, allocations: 0.5928 MB / 2.075 GB, free: 254.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.51e-07/3.004, allocations: 4 kB / 2.075 GB, free: 254.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001838/3.006, allocations: 0.6166 MB / 2.075 GB, free: 254.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001741/3.007, allocations: 1.868 MB / 2.077 GB, free: 252.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002236/3.01, allocations: 0.8121 MB / 2.078 GB, free: 251.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/3.01, allocations: 384 / 2.078 GB, free: 251.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004892/3.01, allocations: 235.6 kB / 2.078 GB, free: 251.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/3.012, allocations: 469.2 kB / 2.078 GB, free: 250.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003582/3.016, allocations: 3.545 MB / 2.082 GB, free: 247.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/3.016, allocations: 1.042 MB / 2.083 GB, free: 246.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001197/3.018, allocations: 202.9 kB / 2.083 GB, free: 245.9 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/3.018, allocations: 371.3 kB / 2.083 GB, free: 245.5 MB / 1.167 GB Notification: Performance of SimCode: time 1.573e-06/3.018, allocations: 0 / 2.083 GB, free: 245.5 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05666/3.075, allocations: 36.38 MB / 2.119 GB, free: 209.8 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/3.075, allocations: 264 kB / 2.119 GB, free: 209.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.27/6.345, allocations: 4 kB / 2.119 GB, free: 209.4 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat does not exist to compare? outputFormat=mat