Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.451/1.451, allocations: 249.5 MB / 257 MB, free: 6.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001209/0.001209, allocations: 183.4 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.3 MB / 0.5671 GB, free: 15.81 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009637/0.0009636, allocations: 98.45 kB / 0.6714 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.867e-05/2.903e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2272, allocations: 106.3 MB / 0.8853 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.634/1.861, allocations: 395.3 MB / 1.271 GB, free: 256.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004378/1.862, allocations: 93.75 kB / 1.271 GB, free: 256.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5781/2.44, allocations: 291 MB / 1.556 GB, free: 37.37 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.312e-06/2.44, allocations: 0 / 1.556 GB, free: 37.37 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001329/2.44, allocations: 23.98 kB / 1.556 GB, free: 37.35 MB / 0.8698 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.002982/2.443, allocations: 1.244 MB / 1.557 GB, free: 36.05 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/2.443, allocations: 8.031 kB / 1.557 GB, free: 36.04 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000456/2.444, allocations: 118.6 kB / 1.557 GB, free: 35.93 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/2.445, allocations: 0.6718 MB / 1.558 GB, free: 35.21 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.73e-05/2.445, allocations: 27.88 kB / 1.558 GB, free: 35.19 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/2.445, allocations: 36 kB / 1.558 GB, free: 35.15 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007411/2.446, allocations: 398.5 kB / 1.558 GB, free: 34.76 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008905/2.447, allocations: 0.5701 MB / 1.559 GB, free: 34.15 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/2.447, allocations: 0 / 1.559 GB, free: 34.15 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.492e-05/2.447, allocations: 3.953 kB / 1.559 GB, free: 34.15 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/2.447, allocations: 16 kB / 1.559 GB, free: 34.13 MB / 0.8698 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.003685/2.451, allocations: 2.463 MB / 1.561 GB, free: 31.55 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000473/2.451, allocations: 339.2 kB / 1.561 GB, free: 31.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/2.452, allocations: 188.8 kB / 1.562 GB, free: 31.02 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002767/2.452, allocations: 340.4 kB / 1.562 GB, free: 30.61 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003819/2.452, allocations: 325.2 kB / 1.562 GB, free: 30.26 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/2.452, allocations: 4 kB / 1.562 GB, free: 30.25 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37): time 0.001551/2.454, allocations: 0.6097 MB / 1.563 GB, free: 29.64 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/2.454, allocations: 239.6 kB / 1.563 GB, free: 29.35 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007615/2.455, allocations: 0.5867 MB / 1.564 GB, free: 28.75 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.081e-05/2.455, allocations: 30.25 kB / 1.564 GB, free: 28.72 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/2.455, allocations: 443.9 kB / 1.564 GB, free: 28.28 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 9.04e-05/2.455, allocations: 118.2 kB / 1.564 GB, free: 28.16 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/2.455, allocations: 64 / 1.564 GB, free: 28.16 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.577e-05/2.455, allocations: 337.9 kB / 1.564 GB, free: 27.83 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/2.456, allocations: 189.1 kB / 1.565 GB, free: 27.64 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/2.456, allocations: 379.8 kB / 1.565 GB, free: 27.19 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008571/2.457, allocations: 309.7 kB / 1.565 GB, free: 26.89 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/2.457, allocations: 4 kB / 1.565 GB, free: 26.89 MB / 0.8698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001558/2.458, allocations: 0.7509 MB / 1.566 GB, free: 26.13 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002508/2.459, allocations: 1.082 MB / 1.567 GB, free: 24.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/2.459, allocations: 11.98 kB / 1.567 GB, free: 24.95 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/2.459, allocations: 4 kB / 1.567 GB, free: 24.94 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009472/2.46, allocations: 159.8 kB / 1.567 GB, free: 24.79 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007321/2.46, allocations: 1.794 MB / 1.569 GB, free: 22.92 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008927/2.461, allocations: 107.6 kB / 1.569 GB, free: 22.82 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.965e-05/2.461, allocations: 31.98 kB / 1.569 GB, free: 22.79 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/2.461, allocations: 11.95 kB / 1.569 GB, free: 22.77 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001356/2.463, allocations: 0.633 MB / 1.57 GB, free: 22.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/2.463, allocations: 4 kB / 1.57 GB, free: 22.14 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/2.463, allocations: 4 kB / 1.57 GB, free: 22.14 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004939/2.463, allocations: 136.1 kB / 1.57 GB, free: 22 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/2.463, allocations: 11.88 kB / 1.57 GB, free: 21.99 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008469/2.464, allocations: 95.52 kB / 1.57 GB, free: 21.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.997e-05/2.464, allocations: 31.98 kB / 1.57 GB, free: 21.87 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * 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.0002323/2.464, allocations: 159.8 kB / 1.57 GB, free: 21.7 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00137/2.466, allocations: 0.6052 MB / 1.571 GB, free: 21.09 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/2.466, allocations: 86.91 kB / 1.571 GB, free: 21 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/2.468, allocations: 0.71 MB / 1.572 GB, free: 20.28 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/2.468, allocations: 4 kB / 1.572 GB, free: 20.28 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/2.468, allocations: 0 / 1.572 GB, free: 20.28 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/2.468, allocations: 7.922 kB / 1.572 GB, free: 20.27 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/2.47, allocations: 1.511 MB / 1.573 GB, free: 18.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/2.47, allocations: 3.984 kB / 1.573 GB, free: 18.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004211/2.471, allocations: 95.83 kB / 1.573 GB, free: 18.61 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.999e-06/2.471, allocations: 4 kB / 1.573 GB, free: 18.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.055e-05/2.471, allocations: 15.98 kB / 1.573 GB, free: 18.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005456/2.471, allocations: 1.766 MB / 1.575 GB, free: 16.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/2.471, allocations: 3.984 kB / 1.575 GB, free: 16.75 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/2.473, allocations: 1.216 MB / 1.576 GB, free: 15.48 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003658/2.473, allocations: 227.8 kB / 1.576 GB, free: 15.24 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/2.473, allocations: 8 kB / 1.576 GB, free: 15.23 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006792/2.474, allocations: 64 kB / 1.576 GB, free: 15.17 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/2.474, allocations: 43.92 kB / 1.576 GB, free: 15.12 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/2.474, allocations: 23.98 kB / 1.576 GB, free: 15.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0005415/2.475, allocations: 451.1 kB / 1.577 GB, free: 14.67 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.7e-07/2.475, allocations: 8 kB / 1.577 GB, free: 14.66 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001757/2.477, allocations: 490.8 kB / 1.577 GB, free: 14.18 MB / 0.8698 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) * 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.00305/2.48, allocations: 2.312 MB / 1.58 GB, free: 11.82 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001915/2.482, allocations: 0.9248 MB / 1.58 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/2.482, allocations: 8.438 kB / 1.58 GB, free: 10.87 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000496/2.482, allocations: 323.2 kB / 1.581 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/2.484, allocations: 309.4 kB / 1.581 GB, free: 10.24 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/2.488, allocations: 1.244 MB / 1.582 GB, free: 8.938 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/2.488, allocations: 1.022 MB / 1.583 GB, free: 7.883 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0008852/2.489, allocations: 184 kB / 1.583 GB, free: 7.699 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003396/2.489, allocations: 319.3 kB / 1.584 GB, free: 7.387 MB / 0.8698 GB Notification: Performance of SimCode: time 8.42e-07/2.489, allocations: 3.938 kB / 1.584 GB, free: 7.383 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5415/3.031, allocations: 22.77 MB / 1.606 GB, free: 219.7 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/3.031, allocations: 188.2 kB / 1.606 GB, free: 219.5 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.747/5.778, allocations: 5.844 kB / 1.606 GB, free: 219.5 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)