Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.218/2.218, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001273/0.001273, allocations: 184.6 kB / 487.4 MB, free: 5.062 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.457/1.457, allocations: 221.5 MB / 0.7824 GB, free: 0.9414 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009506/0.0009507, allocations: 95.75 kB / 0.9219 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.799e-05/1.801e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.232, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.184/1.416, allocations: 430.5 MB / 1.626 GB, free: 7.922 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/1.416, allocations: 101.4 kB / 1.627 GB, free: 7.871 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 3.385/4.801, allocations: 0.9889 GB / 2.615 GB, free: 19.64 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.464e-06/4.801, allocations: 0 / 2.615 GB, free: 19.64 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002631/4.801, allocations: 83.91 kB / 2.616 GB, free: 19.56 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.004691/4.806, allocations: 2.568 MB / 2.618 GB, free: 16.93 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/4.806, allocations: 8.031 kB / 2.618 GB, free: 16.93 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000752/4.807, allocations: 328.2 kB / 2.618 GB, free: 16.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003961/4.811, allocations: 2.461 MB / 2.621 GB, free: 14.07 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.14e-05/4.811, allocations: 48 kB / 2.621 GB, free: 14.02 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/4.811, allocations: 104 kB / 2.621 GB, free: 13.92 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001605/4.813, allocations: 0.9822 MB / 2.622 GB, free: 12.93 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/4.815, allocations: 1.305 MB / 2.623 GB, free: 11.57 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/4.815, allocations: 7.938 kB / 2.623 GB, free: 11.56 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/4.815, allocations: 3.938 kB / 2.623 GB, free: 11.55 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.247e-05/4.815, allocations: 44 kB / 2.623 GB, free: 11.51 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.008244/4.823, allocations: 7.658 MB / 2.631 GB, free: 3.367 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005262/4.824, allocations: 424.9 kB / 2.631 GB, free: 2.945 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000341/4.824, allocations: 307 kB / 2.631 GB, free: 2.641 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004888/4.825, allocations: 0.7602 MB / 2.632 GB, free: 1.715 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/4.825, allocations: 47.06 kB / 2.632 GB, free: 1.66 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 2.345e-06/4.825, allocations: 0 / 2.632 GB, free: 1.66 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.001322/4.826, allocations: 0.7306 MB / 2.633 GB, free: 0.918 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/4.826, allocations: 63.97 kB / 2.633 GB, free: 0.8438 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.8236/5.65, allocations: 1.7 MB / 2.635 GB, free: 168 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003832/5.65, allocations: 28.58 kB / 2.635 GB, free: 168 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001097/5.651, allocations: 1.163 MB / 2.636 GB, free: 167.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/5.651, allocations: 206.6 kB / 2.636 GB, free: 167.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-05/5.651, allocations: 3.031 kB / 2.636 GB, free: 167.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001174/5.652, allocations: 347.6 kB / 2.636 GB, free: 167.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006057/5.652, allocations: 303.2 kB / 2.637 GB, free: 167.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009099/5.653, allocations: 0.7572 MB / 2.637 GB, free: 166.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/5.654, allocations: 456.4 kB / 2.638 GB, free: 166.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/5.654, allocations: 4.188 kB / 2.638 GB, free: 166.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00273/5.657, allocations: 1.115 MB / 2.639 GB, free: 166.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007483/5.658, allocations: 3.164 MB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/5.658, allocations: 8.781 kB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.516e-05/5.658, allocations: 14.19 kB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/5.659, allocations: 260.7 kB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/5.659, allocations: 17.06 kB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/5.661, allocations: 199.1 kB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/5.661, allocations: 55.36 kB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/5.661, allocations: 4.406 kB / 2.642 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001735/5.663, allocations: 0.8499 MB / 2.643 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/5.663, allocations: 7.875 kB / 2.643 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/5.663, allocations: 14.16 kB / 2.643 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000993/5.664, allocations: 260.8 kB / 2.644 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/5.664, allocations: 14.31 kB / 2.644 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002273/5.666, allocations: 174.5 kB / 2.644 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/5.667, allocations: 52.56 kB / 2.644 GB, free: 163.3 MB / 1.151 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.0003559/5.667, allocations: 138 kB / 2.644 GB, free: 163.2 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00188/5.669, allocations: 0.6918 MB / 2.645 GB, free: 163.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/5.669, allocations: 212.6 kB / 2.645 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00201/5.671, allocations: 0.83 MB / 2.646 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/5.671, allocations: 7.25 kB / 2.646 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/5.671, allocations: 2.375 kB / 2.646 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001017/5.672, allocations: 0.6537 MB / 2.646 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005464/5.678, allocations: 2.425 MB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/5.678, allocations: 1.156 kB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000727/5.679, allocations: 146.9 kB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/5.679, allocations: 3.938 kB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.18e-05/5.679, allocations: 10.47 kB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/5.679, allocations: 4.844 kB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/5.679, allocations: 0.9688 kB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/5.681, allocations: 1.277 MB / 2.65 GB, free: 162 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009663/5.682, allocations: 445.4 kB / 2.65 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/5.682, allocations: 5.469 kB / 2.65 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/5.683, allocations: 154.8 kB / 2.651 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/5.683, allocations: 43.41 kB / 2.651 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.377e-05/5.684, allocations: 34.62 kB / 2.651 GB, free: 161.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002626/5.686, allocations: 1.263 MB / 2.652 GB, free: 161.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.8e-07/5.686, allocations: 0 / 2.652 GB, free: 161.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005119/5.691, allocations: 1.22 MB / 2.653 GB, free: 161.5 MB / 1.151 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.005304/5.697, allocations: 3.133 MB / 2.656 GB, free: 160.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002433/5.699, allocations: 1.298 MB / 2.657 GB, free: 160.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/5.699, allocations: 0 / 2.657 GB, free: 160.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004133/5.7, allocations: 301.4 kB / 2.658 GB, free: 160.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0069/5.706, allocations: 1.26 MB / 2.659 GB, free: 160.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008166/5.715, allocations: 3.262 MB / 2.662 GB, free: 159.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001649/5.716, allocations: 1.649 MB / 2.664 GB, free: 158.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003336/5.72, allocations: 0.6451 MB / 2.664 GB, free: 158.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/5.721, allocations: 0.9097 MB / 2.665 GB, free: 158.7 MB / 1.151 GB Notification: Performance of SimCode: time 8.52e-07/5.721, allocations: 0 / 2.665 GB, free: 158.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1278/5.849, allocations: 63.98 MB / 2.728 GB, free: 156.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/5.849, allocations: 178.2 kB / 2.728 GB, free: 156.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.319/10.17, allocations: 0 / 2.728 GB, free: 156.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat does not exist to compare? outputFormat=mat