Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.847/1.847, allocations: 292.6 MB / 307.5 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001275/0.001274, allocations: 189 kB / 377.1 MB, free: 1.535 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.4 MB / 0.6366 GB, free: 8.555 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 99.05 kB / 0.7509 GB, free: 63.35 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.00036, allocations: 11.98 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2967, allocations: 116.3 MB / 0.9884 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.542/1.839, allocations: 403.7 MB / 1.383 GB, free: 272.1 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/1.839, allocations: 99.31 kB / 1.383 GB, free: 272.1 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 0.6169/2.456, allocations: 302.2 MB / 1.678 GB, free: 54.45 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.964e-06/2.456, allocations: 4 kB / 1.678 GB, free: 54.44 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 7.146e-05/2.456, allocations: 27.94 kB / 1.678 GB, free: 54.41 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002705/2.459, allocations: 1.412 MB / 1.679 GB, free: 52.95 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/2.459, allocations: 12.03 kB / 1.679 GB, free: 52.93 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/2.459, allocations: 98.52 kB / 1.679 GB, free: 52.83 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/2.459, allocations: 118.6 kB / 1.679 GB, free: 52.71 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/2.461, allocations: 0.675 MB / 1.68 GB, free: 52 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/2.461, allocations: 49.31 kB / 1.68 GB, free: 51.95 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.006e-05/2.461, allocations: 68 kB / 1.68 GB, free: 51.88 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009733/2.462, allocations: 0.6897 MB / 1.681 GB, free: 51.15 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/2.462, allocations: 0 / 1.681 GB, free: 51.15 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.35e-05/2.462, allocations: 24 kB / 1.681 GB, free: 51.12 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/2.462, allocations: 15.98 kB / 1.681 GB, free: 51.11 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007232/2.462, allocations: 476.9 kB / 1.681 GB, free: 50.64 MB / 0.9323 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.00309/2.466, allocations: 2.6 MB / 1.684 GB, free: 47.92 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007581/2.466, allocations: 409.1 kB / 1.684 GB, free: 47.51 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003204/2.467, allocations: 344.4 kB / 1.685 GB, free: 47.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004977/2.467, allocations: 357.3 kB / 1.685 GB, free: 46.71 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 3.126e-06/2.467, allocations: 0 / 1.685 GB, free: 46.71 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.001477/2.469, allocations: 0.8812 MB / 1.686 GB, free: 45.8 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.146e-05/2.469, allocations: 239.6 kB / 1.686 GB, free: 45.52 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007643/2.47, allocations: 0.7217 MB / 1.687 GB, free: 44.77 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/2.47, allocations: 45.69 kB / 1.687 GB, free: 44.72 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002829/2.47, allocations: 440.3 kB / 1.687 GB, free: 44.29 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/2.47, allocations: 122.8 kB / 1.687 GB, free: 44.17 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.22e-05/2.47, allocations: 12 kB / 1.687 GB, free: 44.16 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.945e-05/2.47, allocations: 338 kB / 1.688 GB, free: 43.82 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/2.471, allocations: 229 kB / 1.688 GB, free: 43.6 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/2.471, allocations: 420.8 kB / 1.688 GB, free: 43.11 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/2.472, allocations: 283.6 kB / 1.689 GB, free: 42.82 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/2.472, allocations: 0 / 1.689 GB, free: 42.82 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001236/2.473, allocations: 0.8072 MB / 1.689 GB, free: 42 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002933/2.473, allocations: 1.078 MB / 1.69 GB, free: 40.84 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/2.473, allocations: 0 / 1.69 GB, free: 40.84 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/2.473, allocations: 8 kB / 1.69 GB, free: 40.83 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008848/2.474, allocations: 164.7 kB / 1.691 GB, free: 40.67 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007107/2.475, allocations: 1.782 MB / 1.692 GB, free: 38.82 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008174/2.476, allocations: 131.3 kB / 1.692 GB, free: 38.69 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/2.476, allocations: 39.94 kB / 1.693 GB, free: 38.65 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/2.476, allocations: 4 kB / 1.693 GB, free: 38.64 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001115/2.477, allocations: 0.7053 MB / 1.693 GB, free: 37.93 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/2.477, allocations: 4 kB / 1.693 GB, free: 37.93 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/2.477, allocations: 4 kB / 1.693 GB, free: 37.93 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/2.477, allocations: 135.8 kB / 1.693 GB, free: 37.79 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/2.477, allocations: 4 kB / 1.693 GB, free: 37.79 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/2.478, allocations: 119.4 kB / 1.693 GB, free: 37.67 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/2.478, allocations: 36 kB / 1.694 GB, free: 37.64 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003918/2.478, allocations: 338.7 kB / 1.694 GB, free: 37.29 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/2.479, allocations: 102.8 kB / 1.694 GB, free: 37.19 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/2.48, allocations: 0.767 MB / 1.695 GB, free: 36.4 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/2.48, allocations: 4 kB / 1.695 GB, free: 36.4 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/2.48, allocations: 0 / 1.695 GB, free: 36.4 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/2.48, allocations: 3.984 kB / 1.695 GB, free: 36.39 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/2.482, allocations: 1.614 MB / 1.696 GB, free: 34.71 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/2.482, allocations: 0 / 1.696 GB, free: 34.71 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003986/2.482, allocations: 107.9 kB / 1.696 GB, free: 34.6 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/2.482, allocations: 4 kB / 1.696 GB, free: 34.6 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.626e-05/2.482, allocations: 15.98 kB / 1.696 GB, free: 34.58 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005159/2.483, allocations: 1.762 MB / 1.698 GB, free: 32.75 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/2.483, allocations: 4.031 kB / 1.698 GB, free: 32.75 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/2.484, allocations: 1.278 MB / 1.699 GB, free: 31.41 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/2.485, allocations: 235.7 kB / 1.7 GB, free: 31.16 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/2.485, allocations: 12 kB / 1.7 GB, free: 31.15 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/2.485, allocations: 79.98 kB / 1.7 GB, free: 31.07 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/2.486, allocations: 51.89 kB / 1.7 GB, free: 31.02 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.68e-05/2.486, allocations: 27.98 kB / 1.7 GB, free: 31 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0006222/2.486, allocations: 0.5588 MB / 1.7 GB, free: 30.43 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.1e-07/2.486, allocations: 0 / 1.7 GB, free: 30.43 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.001604/2.488, allocations: 0.4915 MB / 1.701 GB, free: 29.93 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002429/2.49, allocations: 2.391 MB / 1.703 GB, free: 27.5 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001877/2.492, allocations: 1.024 MB / 1.704 GB, free: 26.45 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/2.492, allocations: 4.188 kB / 1.704 GB, free: 26.45 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.000542/2.493, allocations: 355.1 kB / 1.704 GB, free: 26.09 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00181/2.495, allocations: 380 kB / 1.705 GB, free: 25.71 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/2.498, allocations: 3.88 MB / 1.709 GB, free: 21.72 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/2.498, allocations: 1.021 MB / 1.71 GB, free: 20.67 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.000631/2.499, allocations: 153.9 kB / 1.71 GB, free: 20.52 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003863/2.499, allocations: 339.3 kB / 1.71 GB, free: 20.19 MB / 0.9323 GB Notification: Performance of SimCode: time 1.723e-06/2.499, allocations: 0 / 1.71 GB, free: 20.19 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5218/3.021, allocations: 25.38 MB / 1.735 GB, free: 191.4 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/3.021, allocations: 259.9 kB / 1.735 GB, free: 191.1 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.85/5.871, allocations: 0 / 1.735 GB, free: 191.1 MB / 0.9323 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)