Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001175/0.001174, allocations: 177.2 kB / 498.1 MB, free: 5.754 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.777/1.777, allocations: 223.2 MB / 0.7948 GB, free: 18.03 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.001119/0.001119, allocations: 86.39 kB / 0.9346 GB, free: 6.328 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003911/0.0003912, allocations: 10.97 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3698, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.131/1.501, allocations: 399.5 MB / 1.613 GB, free: 12.41 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/1.501, allocations: 99.22 kB / 1.613 GB, free: 12.36 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.515/3.016, allocations: 438.9 MB / 2.042 GB, free: 296.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.883e-06/3.016, allocations: 0 / 2.042 GB, free: 296.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001649/3.016, allocations: 38.23 kB / 2.042 GB, free: 296.1 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.004342/3.021, allocations: 1.527 MB / 2.043 GB, free: 294.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/3.021, allocations: 8.031 kB / 2.043 GB, free: 294.6 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003336/3.021, allocations: 102.5 kB / 2.043 GB, free: 294.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000861/3.022, allocations: 158.2 kB / 2.044 GB, free: 294.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002599/3.024, allocations: 0.8401 MB / 2.044 GB, free: 293.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/3.025, allocations: 81.31 kB / 2.044 GB, free: 293.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004644/3.025, allocations: 124 kB / 2.045 GB, free: 293.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/3.026, allocations: 0.6278 MB / 2.045 GB, free: 292.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/3.026, allocations: 0 / 2.045 GB, free: 292.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.322e-05/3.026, allocations: 31.95 kB / 2.045 GB, free: 292.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/3.026, allocations: 12 kB / 2.045 GB, free: 292.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008416/3.027, allocations: 472.9 kB / 2.046 GB, free: 292.1 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.005609/3.033, allocations: 3.079 MB / 2.049 GB, free: 288.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005934/3.033, allocations: 335.9 kB / 2.049 GB, free: 288.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002827/3.034, allocations: 347.7 kB / 2.049 GB, free: 288.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/3.034, allocations: 38.78 kB / 2.049 GB, free: 288.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=33): time 3.256e-06/3.034, allocations: 0 / 2.049 GB, free: 288.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=33): time 0.001399/3.035, allocations: 0.5623 MB / 2.05 GB, free: 287.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/3.035, allocations: 55.41 kB / 2.05 GB, free: 287.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/3.036, allocations: 0.7849 MB / 2.051 GB, free: 286.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003164/3.037, allocations: 57.7 kB / 2.051 GB, free: 286.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/3.037, allocations: 0.5511 MB / 2.051 GB, free: 286 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 8.078e-05/3.037, allocations: 114.1 kB / 2.051 GB, free: 285.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/3.037, allocations: 12 kB / 2.051 GB, free: 285.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.549e-05/3.037, allocations: 330 kB / 2.052 GB, free: 285.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/3.038, allocations: 189.1 kB / 2.052 GB, free: 285.4 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/3.039, allocations: 1.428 MB / 2.053 GB, free: 283.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/3.039, allocations: 316.5 kB / 2.054 GB, free: 283.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/3.039, allocations: 0 / 2.054 GB, free: 283.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001276/3.041, allocations: 0.6578 MB / 2.054 GB, free: 282.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001676/3.041, allocations: 0.81 MB / 2.055 GB, free: 281.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/3.041, allocations: 4 kB / 2.055 GB, free: 281.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/3.041, allocations: 4 kB / 2.055 GB, free: 281.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/3.042, allocations: 203.5 kB / 2.055 GB, free: 281.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/3.043, allocations: 2.961 MB / 2.058 GB, free: 278.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003462/3.047, allocations: 0.9134 MB / 2.059 GB, free: 277.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.141e-05/3.047, allocations: 31.98 kB / 2.059 GB, free: 277.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/3.047, allocations: 4 kB / 2.059 GB, free: 277.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009071/3.048, allocations: 0.5088 MB / 2.06 GB, free: 277 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/3.048, allocations: 0 / 2.06 GB, free: 277 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.699e-06/3.048, allocations: 8 kB / 2.06 GB, free: 277 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006589/3.049, allocations: 159.8 kB / 2.06 GB, free: 276.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/3.049, allocations: 7.953 kB / 2.06 GB, free: 276.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003355/3.052, allocations: 0.898 MB / 2.061 GB, free: 275.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-05/3.052, allocations: 31.98 kB / 2.061 GB, free: 275.9 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.0008457/3.053, allocations: 325.9 kB / 2.061 GB, free: 275.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/3.053, allocations: 94.78 kB / 2.061 GB, free: 275.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/3.054, allocations: 0.5417 MB / 2.062 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/3.054, allocations: 11.94 kB / 2.062 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/3.054, allocations: 3.953 kB / 2.062 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/3.054, allocations: 7.297 kB / 2.062 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/3.057, allocations: 1.283 MB / 2.063 GB, free: 273.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/3.057, allocations: 4.125 kB / 2.063 GB, free: 273.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005597/3.058, allocations: 115.8 kB / 2.063 GB, free: 273.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/3.058, allocations: 4 kB / 2.063 GB, free: 273.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/3.058, allocations: 15.98 kB / 2.063 GB, free: 273.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008636/3.059, allocations: 2.946 MB / 2.066 GB, free: 270.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/3.059, allocations: 4.031 kB / 2.066 GB, free: 270.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000923/3.06, allocations: 0.6304 MB / 2.066 GB, free: 269.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000655/3.06, allocations: 231.6 kB / 2.067 GB, free: 269.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002464/3.06, allocations: 11.98 kB / 2.067 GB, free: 269.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007335/3.061, allocations: 63.86 kB / 2.067 GB, free: 269.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.454e-05/3.061, allocations: 31.92 kB / 2.067 GB, free: 269.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/3.061, allocations: 12 kB / 2.067 GB, free: 269.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0007954/3.062, allocations: 0.5967 MB / 2.067 GB, free: 268.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/3.062, allocations: 0 / 2.067 GB, free: 268.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002207/3.064, allocations: 0.6266 MB / 2.068 GB, free: 268.1 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.001965/3.066, allocations: 1.868 MB / 2.07 GB, free: 266.2 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002438/3.069, allocations: 0.8193 MB / 2.071 GB, free: 265.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/3.069, allocations: 384 / 2.071 GB, free: 265.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.000479/3.069, allocations: 235.7 kB / 2.071 GB, free: 265.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/3.072, allocations: 468.4 kB / 2.071 GB, free: 264.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/3.076, allocations: 3.535 MB / 2.075 GB, free: 261.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/3.076, allocations: 1.038 MB / 2.076 GB, free: 260 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001301/3.077, allocations: 206.2 kB / 2.076 GB, free: 259.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004065/3.078, allocations: 371.3 kB / 2.076 GB, free: 259.4 MB / 1.167 GB Notification: Performance of SimCode: time 9.22e-07/3.078, allocations: 0 / 2.076 GB, free: 259.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05005/3.128, allocations: 36.37 MB / 2.112 GB, free: 223.7 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/3.128, allocations: 251.8 kB / 2.112 GB, free: 223.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/6.185, allocations: 4 kB / 2.112 GB, free: 223.4 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat does not exist to compare? outputFormat=mat