Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.716/1.716, allocations: 288.4 MB / 304.3 MB, free: 8.07 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.001022/0.001022, allocations: 177.4 kB / 373 MB, free: 10.14 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.777/1.777, allocations: 205.4 MB / 0.6317 GB, free: 9.891 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.0008348/0.0008349, allocations: 94.3 kB / 0.745 GB, free: 5.801 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004193/0.0004196, allocations: 17.59 kB / 0.8681 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2352, allocations: 115.3 MB / 0.9807 GB, free: 27.39 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8907/1.126, allocations: 402.9 MB / 1.374 GB, free: 9.59 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/1.126, allocations: 104.7 kB / 1.374 GB, free: 9.531 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.018/2.144, allocations: 300.6 MB / 1.668 GB, free: 118.5 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.044e-06/2.144, allocations: 0 / 1.668 GB, free: 118.5 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 6.79e-05/2.144, allocations: 27.98 kB / 1.668 GB, free: 118.4 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.003056/2.147, allocations: 1.392 MB / 1.669 GB, free: 117 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/2.147, allocations: 12.02 kB / 1.669 GB, free: 117 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002381/2.147, allocations: 119.5 kB / 1.669 GB, free: 116.8 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/2.149, allocations: 0.7076 MB / 1.67 GB, free: 116.1 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/2.149, allocations: 49.69 kB / 1.67 GB, free: 116 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.473e-05/2.149, allocations: 68.38 kB / 1.67 GB, free: 116 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009634/2.15, allocations: 0.6864 MB / 1.671 GB, free: 115.3 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/2.15, allocations: 3.938 kB / 1.671 GB, free: 115.2 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.27e-05/2.15, allocations: 28 kB / 1.671 GB, free: 115.2 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/2.15, allocations: 12 kB / 1.671 GB, free: 115.2 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007183/2.151, allocations: 476.9 kB / 1.671 GB, free: 114.7 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.0029/2.154, allocations: 2.616 MB / 1.674 GB, free: 112 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006997/2.154, allocations: 402.7 kB / 1.674 GB, free: 111.6 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/2.155, allocations: 220.8 kB / 1.674 GB, free: 111.4 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002258/2.155, allocations: 340.4 kB / 1.675 GB, free: 111 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004657/2.156, allocations: 364.9 kB / 1.675 GB, free: 110.6 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 2.655e-06/2.156, allocations: 0 / 1.675 GB, free: 110.6 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.001335/2.157, allocations: 0.7998 MB / 1.676 GB, free: 109.8 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/2.157, allocations: 243.5 kB / 1.676 GB, free: 109.5 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007468/2.158, allocations: 0.8361 MB / 1.677 GB, free: 108.6 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/2.158, allocations: 37.7 kB / 1.677 GB, free: 108.6 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/2.158, allocations: 440.4 kB / 1.677 GB, free: 108.1 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 7.465e-05/2.158, allocations: 126.3 kB / 1.677 GB, free: 108 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-05/2.158, allocations: 12 kB / 1.678 GB, free: 108 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 5.028e-05/2.158, allocations: 325.9 kB / 1.678 GB, free: 107.7 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003811/2.159, allocations: 229.1 kB / 1.678 GB, free: 107.5 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004586/2.159, allocations: 428.7 kB / 1.678 GB, free: 107 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007269/2.16, allocations: 0.5744 MB / 1.679 GB, free: 106.3 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/2.16, allocations: 0 / 1.679 GB, free: 106.3 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001123/2.161, allocations: 0.8032 MB / 1.68 GB, free: 105.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 7.609e-05/2.161, allocations: 207.5 kB / 1.68 GB, free: 105.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/2.161, allocations: 4 kB / 1.68 GB, free: 105.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/2.161, allocations: 8 kB / 1.68 GB, free: 105.3 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/2.162, allocations: 183.8 kB / 1.68 GB, free: 105.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006404/2.163, allocations: 1.778 MB / 1.682 GB, free: 103.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007267/2.164, allocations: 131.6 kB / 1.682 GB, free: 103.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.54e-05/2.164, allocations: 35.98 kB / 1.682 GB, free: 103.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/2.164, allocations: 4 kB / 1.682 GB, free: 103.1 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001048/2.165, allocations: 0.7166 MB / 1.683 GB, free: 102.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/2.165, allocations: 0 / 1.683 GB, free: 102.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.641e-06/2.165, allocations: 8 kB / 1.683 GB, free: 102.3 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/2.165, allocations: 136 kB / 1.683 GB, free: 102.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/2.165, allocations: 11.94 kB / 1.683 GB, free: 102.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005897/2.166, allocations: 119.5 kB / 1.683 GB, free: 102.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/2.166, allocations: 31.98 kB / 1.683 GB, free: 102 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.0003527/2.166, allocations: 354.5 kB / 1.683 GB, free: 101.7 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.647e-05/2.166, allocations: 94.88 kB / 1.683 GB, free: 101.6 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/2.168, allocations: 0.7592 MB / 1.684 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/2.168, allocations: 4 kB / 1.684 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/2.168, allocations: 0 / 1.684 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/2.168, allocations: 7.984 kB / 1.684 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/2.169, allocations: 1.618 MB / 1.686 GB, free: 99.11 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/2.169, allocations: 0 / 1.686 GB, free: 99.11 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/2.17, allocations: 95.86 kB / 1.686 GB, free: 99.01 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/2.17, allocations: 7.938 kB / 1.686 GB, free: 99 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.517e-05/2.17, allocations: 16 kB / 1.686 GB, free: 98.99 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004757/2.17, allocations: 1.774 MB / 1.688 GB, free: 97.14 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/2.17, allocations: 288 / 1.688 GB, free: 97.14 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/2.172, allocations: 1.239 MB / 1.689 GB, free: 95.88 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/2.172, allocations: 227.8 kB / 1.689 GB, free: 95.63 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/2.172, allocations: 11.94 kB / 1.689 GB, free: 95.62 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005704/2.173, allocations: 87.83 kB / 1.689 GB, free: 95.54 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/2.173, allocations: 47.91 kB / 1.689 GB, free: 95.49 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.67e-05/2.173, allocations: 20 kB / 1.689 GB, free: 95.47 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0005634/2.174, allocations: 0.5588 MB / 1.69 GB, free: 94.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.3e-07/2.174, allocations: 0 / 1.69 GB, free: 94.9 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.001356/2.175, allocations: 0.4953 MB / 1.69 GB, free: 94.4 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.0007561/2.176, allocations: 496 kB / 1.691 GB, free: 93.92 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001978/2.178, allocations: 1.051 MB / 1.692 GB, free: 92.85 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/2.178, allocations: 0 / 1.692 GB, free: 92.85 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005775/2.178, allocations: 370.9 kB / 1.692 GB, free: 92.47 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/2.18, allocations: 371.9 kB / 1.692 GB, free: 92.11 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/2.183, allocations: 1.722 MB / 1.694 GB, free: 90.35 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/2.183, allocations: 0.9934 MB / 1.695 GB, free: 89.33 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0005956/2.184, allocations: 149.9 kB / 1.695 GB, free: 89.18 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/2.184, allocations: 67.41 kB / 1.695 GB, free: 89.11 MB / 0.9323 GB Notification: Performance of SimCode: time 5.61e-07/2.184, allocations: 4 kB / 1.695 GB, free: 89.11 MB / 0.9323 GB Notification: Performance of Templates: time 0.02316/2.207, allocations: 17.45 MB / 1.712 GB, free: 71.84 MB / 0.9323 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)