Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.472/2.472, allocations: 287.5 MB / 303.2 MB, free: 8.156 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.001341/0.001341, allocations: 181.5 kB / 371.8 MB, free: 10.77 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.088/2.088, allocations: 205.4 MB / 0.6305 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008751/0.0008749, allocations: 103 kB / 0.7438 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004845/0.0004845, allocations: 11.31 kB / 0.8667 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2167, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.259/1.476, allocations: 402.7 MB / 1.373 GB, free: 11.19 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/1.476, allocations: 101.5 kB / 1.373 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.62/3.096, allocations: 300.6 MB / 1.666 GB, free: 120.8 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.204e-06/3.096, allocations: 4 kB / 1.666 GB, free: 120.8 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001113/3.096, allocations: 35.92 kB / 1.666 GB, free: 120.7 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.004374/3.1, allocations: 1.389 MB / 1.668 GB, free: 119.3 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/3.1, allocations: 8.031 kB / 1.668 GB, free: 119.3 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004664/3.101, allocations: 123.5 kB / 1.668 GB, free: 119.1 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/3.103, allocations: 0.7114 MB / 1.668 GB, free: 118.4 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.689e-05/3.103, allocations: 49.69 kB / 1.668 GB, free: 118.3 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/3.104, allocations: 68.38 kB / 1.668 GB, free: 118.3 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/3.105, allocations: 0.6903 MB / 1.669 GB, free: 117.5 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/3.105, allocations: 3.938 kB / 1.669 GB, free: 117.5 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.481e-05/3.105, allocations: 24 kB / 1.669 GB, free: 117.5 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/3.105, allocations: 12 kB / 1.669 GB, free: 117.5 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/3.107, allocations: 476.9 kB / 1.67 GB, free: 117 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.006068/3.113, allocations: 2.604 MB / 1.672 GB, free: 114.3 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/3.114, allocations: 419 kB / 1.673 GB, free: 113.9 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006164/3.115, allocations: 220.6 kB / 1.673 GB, free: 113.7 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003454/3.115, allocations: 344.4 kB / 1.673 GB, free: 113.2 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008247/3.116, allocations: 353.2 kB / 1.673 GB, free: 112.9 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 4.108e-06/3.116, allocations: 112 / 1.673 GB, free: 112.9 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.002635/3.119, allocations: 0.8056 MB / 1.674 GB, free: 112.1 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.358e-05/3.119, allocations: 243.5 kB / 1.675 GB, free: 111.8 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/3.121, allocations: 0.8281 MB / 1.675 GB, free: 110.9 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001786/3.121, allocations: 49.95 kB / 1.675 GB, free: 110.9 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/3.121, allocations: 436.4 kB / 1.676 GB, free: 110.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/3.121, allocations: 122.3 kB / 1.676 GB, free: 110.3 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/3.121, allocations: 12 kB / 1.676 GB, free: 110.3 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.895e-05/3.121, allocations: 333.9 kB / 1.676 GB, free: 110 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007714/3.122, allocations: 221.1 kB / 1.676 GB, free: 109.7 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008675/3.123, allocations: 432.7 kB / 1.677 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/3.125, allocations: 0.5666 MB / 1.677 GB, free: 108.6 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/3.125, allocations: 0 / 1.677 GB, free: 108.6 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002309/3.127, allocations: 0.811 MB / 1.678 GB, free: 107.8 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/3.127, allocations: 202.3 kB / 1.678 GB, free: 107.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/3.127, allocations: 4 kB / 1.678 GB, free: 107.6 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/3.127, allocations: 4 kB / 1.678 GB, free: 107.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/3.129, allocations: 191.8 kB / 1.679 GB, free: 107.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009808/3.13, allocations: 1.781 MB / 1.68 GB, free: 105.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/3.132, allocations: 123.5 kB / 1.68 GB, free: 105.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/3.132, allocations: 35.98 kB / 1.68 GB, free: 105.4 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/3.132, allocations: 8 kB / 1.68 GB, free: 105.3 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001999/3.134, allocations: 0.7128 MB / 1.681 GB, free: 104.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/3.134, allocations: 4 kB / 1.681 GB, free: 104.6 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/3.134, allocations: 4 kB / 1.681 GB, free: 104.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/3.135, allocations: 135.8 kB / 1.681 GB, free: 104.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/3.135, allocations: 11.97 kB / 1.681 GB, free: 104.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/3.136, allocations: 119.7 kB / 1.681 GB, free: 104.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/3.137, allocations: 35.98 kB / 1.681 GB, free: 104.3 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.0006505/3.137, allocations: 350.5 kB / 1.682 GB, free: 104 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/3.137, allocations: 98.86 kB / 1.682 GB, free: 103.9 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002245/3.14, allocations: 0.7476 MB / 1.683 GB, free: 103.1 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/3.14, allocations: 4 kB / 1.683 GB, free: 103.1 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/3.14, allocations: 7.938 kB / 1.683 GB, free: 103.1 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/3.14, allocations: 3.984 kB / 1.683 GB, free: 103.1 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/3.143, allocations: 1.622 MB / 1.684 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/3.143, allocations: 0 / 1.684 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007638/3.144, allocations: 99.86 kB / 1.684 GB, free: 101.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.166e-06/3.144, allocations: 8 kB / 1.684 GB, free: 101.3 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.143e-05/3.144, allocations: 15.98 kB / 1.684 GB, free: 101.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006714/3.145, allocations: 1.766 MB / 1.686 GB, free: 99.44 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/3.145, allocations: 4.031 kB / 1.686 GB, free: 99.44 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/3.147, allocations: 1.239 MB / 1.687 GB, free: 98.17 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004979/3.148, allocations: 223.9 kB / 1.687 GB, free: 97.93 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/3.148, allocations: 23.92 kB / 1.688 GB, free: 97.91 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/3.149, allocations: 75.91 kB / 1.688 GB, free: 97.83 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/3.149, allocations: 47.92 kB / 1.688 GB, free: 97.79 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.534e-05/3.149, allocations: 23.98 kB / 1.688 GB, free: 97.76 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0009912/3.15, allocations: 0.5627 MB / 1.688 GB, free: 97.19 MB / 0.9323 GB Notification: Performance of sort global known variables: time 4.11e-07/3.15, allocations: 0 / 1.688 GB, free: 97.19 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002045/3.152, allocations: 0.4914 MB / 1.689 GB, free: 96.7 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.00121/3.154, allocations: 490.4 kB / 1.689 GB, free: 96.21 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003571/3.157, allocations: 1.059 MB / 1.69 GB, free: 95.14 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/3.157, allocations: 4.188 kB / 1.69 GB, free: 95.13 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001049/3.158, allocations: 363.1 kB / 1.691 GB, free: 94.77 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003909/3.162, allocations: 379.5 kB / 1.691 GB, free: 94.4 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003804/3.166, allocations: 1.717 MB / 1.693 GB, free: 92.64 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/3.167, allocations: 0.9973 MB / 1.694 GB, free: 91.61 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.001118/3.168, allocations: 146 kB / 1.694 GB, free: 91.46 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/3.168, allocations: 67.42 kB / 1.694 GB, free: 91.4 MB / 0.9323 GB Notification: Performance of SimCode: time 1.282e-06/3.168, allocations: 3.938 kB / 1.694 GB, free: 91.39 MB / 0.9323 GB Notification: Performance of Templates: time 0.04335/3.211, allocations: 17.23 MB / 1.711 GB, free: 74.34 MB / 0.9323 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)