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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.945/1.945, allocations: 292.6 MB / 307.6 MB, free: 5.191 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.001847/0.001847, allocations: 188.9 kB / 377.1 MB, free: 1.527 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.216/2.216, allocations: 205.4 MB / 0.6367 GB, free: 8.52 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.001279/0.001279, allocations: 92.73 kB / 0.751 GB, free: 63.14 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004215/0.0004217, allocations: 12 kB / 0.8748 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.341, allocations: 116.3 MB / 0.9884 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.615/1.957, allocations: 403.7 MB / 1.383 GB, free: 272.2 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/1.957, allocations: 97.36 kB / 1.383 GB, free: 272.2 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 0.5901/2.547, allocations: 302.2 MB / 1.678 GB, free: 54.41 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.265e-06/2.547, allocations: 8 kB / 1.678 GB, free: 54.41 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 7.283e-05/2.547, allocations: 23.98 kB / 1.678 GB, free: 54.38 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.002745/2.55, allocations: 1.4 MB / 1.679 GB, free: 52.93 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/2.55, allocations: 8.031 kB / 1.679 GB, free: 52.92 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002051/2.55, allocations: 122.6 kB / 1.679 GB, free: 52.8 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001298/2.551, allocations: 0.6712 MB / 1.68 GB, free: 52.09 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.849e-05/2.552, allocations: 49.31 kB / 1.68 GB, free: 52.04 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.41e-05/2.552, allocations: 68 kB / 1.68 GB, free: 51.97 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009771/2.553, allocations: 0.6897 MB / 1.681 GB, free: 51.24 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/2.553, allocations: 0 / 1.681 GB, free: 51.24 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.978e-05/2.553, allocations: 24 kB / 1.681 GB, free: 51.21 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/2.553, allocations: 16 kB / 1.681 GB, free: 51.2 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007087/2.553, allocations: 476.9 kB / 1.681 GB, free: 50.73 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.003215/2.557, allocations: 2.6 MB / 1.684 GB, free: 48.01 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000697/2.557, allocations: 413.1 kB / 1.684 GB, free: 47.59 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002648/2.558, allocations: 344.4 kB / 1.685 GB, free: 47.18 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004904/2.558, allocations: 365 kB / 1.685 GB, free: 46.79 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 1.643e-06/2.558, allocations: 0 / 1.685 GB, free: 46.79 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.00158/2.56, allocations: 0.8812 MB / 1.686 GB, free: 45.88 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/2.56, allocations: 243.6 kB / 1.686 GB, free: 45.59 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007383/2.561, allocations: 0.7217 MB / 1.687 GB, free: 44.85 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 5.489e-05/2.561, allocations: 45.7 kB / 1.687 GB, free: 44.8 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/2.561, allocations: 440.3 kB / 1.687 GB, free: 44.36 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 8.117e-05/2.561, allocations: 122.3 kB / 1.687 GB, free: 44.24 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.934e-05/2.561, allocations: 8.547 kB / 1.687 GB, free: 44.23 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.212e-05/2.561, allocations: 342 kB / 1.688 GB, free: 43.89 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003726/2.561, allocations: 225.1 kB / 1.688 GB, free: 43.68 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004745/2.562, allocations: 420.8 kB / 1.688 GB, free: 43.18 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000421/2.562, allocations: 287.6 kB / 1.688 GB, free: 42.9 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/2.562, allocations: 3.938 kB / 1.688 GB, free: 42.89 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001204/2.564, allocations: 0.7995 MB / 1.689 GB, free: 42.08 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.000232/2.564, allocations: 1.074 MB / 1.69 GB, free: 40.92 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/2.564, allocations: 4 kB / 1.69 GB, free: 40.91 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/2.564, allocations: 7.984 kB / 1.69 GB, free: 40.91 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008476/2.565, allocations: 160.7 kB / 1.69 GB, free: 40.75 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006924/2.565, allocations: 1.782 MB / 1.692 GB, free: 38.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007875/2.566, allocations: 131.3 kB / 1.692 GB, free: 38.77 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.019e-05/2.566, allocations: 31.98 kB / 1.692 GB, free: 38.74 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/2.566, allocations: 7.953 kB / 1.692 GB, free: 38.73 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001076/2.567, allocations: 0.7014 MB / 1.693 GB, free: 38.02 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/2.567, allocations: 8.031 kB / 1.693 GB, free: 38.02 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.22e-06/2.567, allocations: 4 kB / 1.693 GB, free: 38.01 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/2.568, allocations: 135.8 kB / 1.693 GB, free: 37.88 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/2.568, allocations: 4 kB / 1.693 GB, free: 37.88 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000645/2.569, allocations: 127.3 kB / 1.693 GB, free: 37.75 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/2.569, allocations: 28 kB / 1.693 GB, free: 37.72 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.0004264/2.569, allocations: 350.6 kB / 1.694 GB, free: 37.36 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/2.569, allocations: 94.83 kB / 1.694 GB, free: 37.27 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/2.57, allocations: 0.7594 MB / 1.695 GB, free: 36.49 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/2.571, allocations: 4 kB / 1.695 GB, free: 36.49 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/2.571, allocations: 0 / 1.695 GB, free: 36.49 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/2.571, allocations: 3.984 kB / 1.695 GB, free: 36.48 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/2.573, allocations: 1.619 MB / 1.696 GB, free: 34.79 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/2.573, allocations: 0 / 1.696 GB, free: 34.79 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/2.573, allocations: 103.9 kB / 1.696 GB, free: 34.69 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/2.573, allocations: 7.938 kB / 1.696 GB, free: 34.68 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.575e-05/2.573, allocations: 15.98 kB / 1.696 GB, free: 34.67 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004723/2.573, allocations: 1.766 MB / 1.698 GB, free: 32.83 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/2.573, allocations: 4 kB / 1.698 GB, free: 32.83 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/2.575, allocations: 1.278 MB / 1.699 GB, free: 31.5 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/2.575, allocations: 231.8 kB / 1.699 GB, free: 31.25 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/2.575, allocations: 19.95 kB / 1.699 GB, free: 31.23 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005875/2.576, allocations: 79.89 kB / 1.7 GB, free: 31.15 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/2.576, allocations: 51.91 kB / 1.7 GB, free: 31.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/2.576, allocations: 23.98 kB / 1.7 GB, free: 31.08 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0005446/2.577, allocations: 0.5588 MB / 1.7 GB, free: 30.51 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.4e-07/2.577, allocations: 0 / 1.7 GB, free: 30.51 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.001476/2.578, allocations: 0.4915 MB / 1.701 GB, free: 30.02 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.0008664/2.579, allocations: 495.8 kB / 1.701 GB, free: 29.54 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001827/2.581, allocations: 1.015 MB / 1.702 GB, free: 28.5 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/2.581, allocations: 0.875 kB / 1.702 GB, free: 28.5 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005233/2.581, allocations: 363.2 kB / 1.702 GB, free: 28.13 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/2.583, allocations: 374.2 kB / 1.703 GB, free: 27.76 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/2.585, allocations: 1.71 MB / 1.704 GB, free: 26.02 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/2.586, allocations: 1.021 MB / 1.705 GB, free: 24.97 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.00057/2.586, allocations: 153.9 kB / 1.706 GB, free: 24.82 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/2.586, allocations: 63.42 kB / 1.706 GB, free: 24.75 MB / 0.9323 GB Notification: Performance of SimCode: time 6.71e-07/2.586, allocations: 0 / 1.706 GB, free: 24.75 MB / 0.9323 GB Notification: Performance of Templates: time 0.02645/2.613, allocations: 17.04 MB / 1.722 GB, free: 7.852 MB / 0.9323 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (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 & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)