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.704/2.704, allocations: 387.1 MB / 399.7 MB, free: 9.434 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.001661/0.001661, allocations: 172.9 kB / 492.3 MB, free: 0.625 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.828/1.828, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.001169/0.001169, allocations: 94.52 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.035e-05/4.074e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3162, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.636, allocations: 399.4 MB / 1.603 GB, free: 14.5 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/1.637, allocations: 95.62 kB / 1.603 GB, free: 14.45 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.741/3.377, allocations: 437.8 MB / 2.03 GB, free: 172.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.513e-06/3.377, allocations: 0 / 2.03 GB, free: 172.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001105/3.377, allocations: 31.94 kB / 2.03 GB, free: 172.3 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002942/3.38, allocations: 1.337 MB / 2.031 GB, free: 170.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/3.38, allocations: 8.031 kB / 2.031 GB, free: 170.9 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/3.381, allocations: 98.52 kB / 2.032 GB, free: 170.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005238/3.381, allocations: 154.5 kB / 2.032 GB, free: 170.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/3.383, allocations: 0.8214 MB / 2.033 GB, free: 169.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.548e-05/3.383, allocations: 81.31 kB / 2.033 GB, free: 169.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/3.383, allocations: 120 kB / 2.033 GB, free: 169.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000889/3.384, allocations: 0.5967 MB / 2.033 GB, free: 169 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/3.384, allocations: 4 kB / 2.033 GB, free: 169 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.786e-05/3.384, allocations: 24 kB / 2.033 GB, free: 168.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/3.384, allocations: 19.94 kB / 2.033 GB, free: 168.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005912/3.385, allocations: 413.1 kB / 2.034 GB, free: 168.5 MB / 1.151 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.004816/3.39, allocations: 3.086 MB / 2.037 GB, free: 165.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000471/3.39, allocations: 297.2 kB / 2.037 GB, free: 165 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/3.39, allocations: 137.4 kB / 2.037 GB, free: 164.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002646/3.391, allocations: 344.7 kB / 2.037 GB, free: 164.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.827e-05/3.391, allocations: 42.77 kB / 2.038 GB, free: 164.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 3.466e-06/3.391, allocations: 4 kB / 2.038 GB, free: 164.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001065/3.392, allocations: 402.4 kB / 2.038 GB, free: 164 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/3.392, allocations: 55.41 kB / 2.038 GB, free: 163.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008758/3.393, allocations: 0.7779 MB / 2.039 GB, free: 163.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002291/3.393, allocations: 61.7 kB / 2.039 GB, free: 163 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004063/3.393, allocations: 0.5327 MB / 2.039 GB, free: 162.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.35e-05/3.393, allocations: 122.3 kB / 2.039 GB, free: 162.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/3.393, allocations: 8 kB / 2.039 GB, free: 162.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.136e-05/3.393, allocations: 330 kB / 2.04 GB, free: 162 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/3.394, allocations: 161.5 kB / 2.04 GB, free: 161.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/3.395, allocations: 1.402 MB / 2.041 GB, free: 160.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/3.395, allocations: 297.5 kB / 2.042 GB, free: 159.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/3.395, allocations: 0 / 2.042 GB, free: 159.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00106/3.396, allocations: 0.6032 MB / 2.042 GB, free: 159.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002335/3.397, allocations: 0.8039 MB / 2.043 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/3.397, allocations: 4 kB / 2.043 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/3.397, allocations: 4 kB / 2.043 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/3.398, allocations: 203.6 kB / 2.043 GB, free: 158.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/3.399, allocations: 2.957 MB / 2.046 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003945/3.403, allocations: 0.9135 MB / 2.047 GB, free: 154.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/3.404, allocations: 32.08 kB / 2.047 GB, free: 154.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/3.404, allocations: 7.938 kB / 2.047 GB, free: 154.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007889/3.404, allocations: 465.3 kB / 2.047 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/3.404, allocations: 8.031 kB / 2.047 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/3.404, allocations: 4 kB / 2.047 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006403/3.405, allocations: 163.8 kB / 2.048 GB, free: 153.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/3.405, allocations: 11.89 kB / 2.048 GB, free: 153.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003729/3.409, allocations: 0.9055 MB / 2.048 GB, free: 152.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/3.409, allocations: 27.98 kB / 2.048 GB, free: 152.5 MB / 1.151 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 () * 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.000424/3.409, allocations: 161.9 kB / 2.049 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/3.41, allocations: 94.78 kB / 2.049 GB, free: 152.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/3.411, allocations: 0.495 MB / 2.049 GB, free: 151.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/3.411, allocations: 7.938 kB / 2.049 GB, free: 151.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/3.411, allocations: 0 / 2.049 GB, free: 151.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/3.411, allocations: 11.94 kB / 2.049 GB, free: 151.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/3.413, allocations: 1.233 MB / 2.05 GB, free: 150.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/3.413, allocations: 0 / 2.05 GB, free: 150.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005447/3.413, allocations: 127.9 kB / 2.051 GB, free: 150.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/3.413, allocations: 8 kB / 2.051 GB, free: 150.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/3.413, allocations: 15.98 kB / 2.051 GB, free: 150.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008468/3.414, allocations: 2.934 MB / 2.053 GB, free: 147.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/3.414, allocations: 8.016 kB / 2.053 GB, free: 147.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006878/3.415, allocations: 0.5911 MB / 2.054 GB, free: 146.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/3.415, allocations: 231.7 kB / 2.054 GB, free: 146.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.727e-05/3.416, allocations: 15.98 kB / 2.054 GB, free: 146.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005809/3.416, allocations: 67.83 kB / 2.054 GB, free: 146.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.569e-05/3.416, allocations: 23.97 kB / 2.054 GB, free: 146.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.291e-05/3.416, allocations: 12 kB / 2.054 GB, free: 146.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0007511/3.417, allocations: 0.5936 MB / 2.055 GB, free: 145.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.91e-07/3.417, allocations: 4 kB / 2.055 GB, free: 145.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002316/3.419, allocations: 0.6088 MB / 2.056 GB, free: 145 MB / 1.151 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 () * 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.00208/3.421, allocations: 1.807 MB / 2.057 GB, free: 143.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002399/3.424, allocations: 0.7856 MB / 2.058 GB, free: 142.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/3.424, allocations: 0 / 2.058 GB, free: 142.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004495/3.424, allocations: 204.8 kB / 2.058 GB, free: 142.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/3.427, allocations: 479.6 kB / 2.059 GB, free: 141.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/3.43, allocations: 1.333 MB / 2.06 GB, free: 140.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/3.431, allocations: 1.044 MB / 2.061 GB, free: 139.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001648/3.432, allocations: 274.7 kB / 2.061 GB, free: 139 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/3.433, allocations: 347.3 kB / 2.062 GB, free: 138.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.953e-06/3.433, allocations: 0 / 2.062 GB, free: 138.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06441/3.497, allocations: 38.54 MB / 2.099 GB, free: 100.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001637/3.497, allocations: 219.1 kB / 2.099 GB, free: 100.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.434/6.931, allocations: 4.062 kB / 2.099 GB, free: 100.4 MB / 1.151 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