Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.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_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008263/0.0008262, allocations: 91.53 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006772/0.006772, allocations: 174.4 kB / 16.27 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.923/2.923, allocations: 473.4 MB / 0.7469 GB, free: 6.062 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003684, allocations: 8.469 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3308, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02304/0.3539, allocations: 22.52 MB / 1.096 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01062/0.3645, allocations: 6.506 MB / 1.102 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.3656, allocations: 19.88 kB / 1.102 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009774/0.3666, allocations: 330.2 kB / 1.103 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002786/0.3694, allocations: 0.9832 MB / 1.104 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.372, allocations: 0.9595 MB / 1.105 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002981/0.375, allocations: 2.495 MB / 1.107 GB, free: 5.613 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009049/0.3759, allocations: 0.6262 MB / 1.108 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.3773, allocations: 0.7272 MB / 1.108 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009618/0.3783, allocations: 0.6846 MB / 1.109 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.177e-05/0.3784, allocations: 28 kB / 1.109 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001704/0.3801, allocations: 0.9397 MB / 1.11 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.3803, allocations: 179.1 kB / 1.11 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004532/0.3807, allocations: 470.9 kB / 1.111 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001874/0.3826, allocations: 1.421 MB / 1.112 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3826, allocations: 0 / 1.112 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3827, allocations: 4 kB / 1.112 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.46e-05/0.3827, allocations: 0 / 1.112 GB, free: 0.5117 MB / 0.8575 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.002138/0.3848, allocations: 1.243 MB / 1.113 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.3849, allocations: 8.031 kB / 1.113 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.3851, allocations: 119.5 kB / 1.113 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.3862, allocations: 0.6796 MB / 1.114 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.803e-05/0.3862, allocations: 49.31 kB / 1.114 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.3864, allocations: 71.91 kB / 1.114 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.3875, allocations: 0.6663 MB / 1.115 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.3875, allocations: 0 / 1.115 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.704e-05/0.3876, allocations: 24 kB / 1.115 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.3876, allocations: 12 kB / 1.115 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008434/0.3885, allocations: 460.9 kB / 1.115 GB, free: 13.05 MB / 0.8731 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.003739/0.3922, allocations: 2.542 MB / 1.118 GB, free: 10.37 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/0.393, allocations: 371.5 kB / 1.118 GB, free: 10 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003967/0.3935, allocations: 204.6 kB / 1.118 GB, free: 9.797 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003836/0.3939, allocations: 340.4 kB / 1.119 GB, free: 9.391 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006475/0.3945, allocations: 336.1 kB / 1.119 GB, free: 9.031 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=37): time 1.963e-06/0.3945, allocations: 4 kB / 1.119 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of matching and sorting (n=37): time 0.001453/0.396, allocations: 0.7049 MB / 1.12 GB, free: 8.312 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.3961, allocations: 247.3 kB / 1.12 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.3973, allocations: 0.8483 MB / 1.121 GB, free: 7.145 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.527e-05/0.3974, allocations: 37.7 kB / 1.121 GB, free: 7.102 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003712/0.3977, allocations: 440.3 kB / 1.121 GB, free: 6.664 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.3979, allocations: 114.3 kB / 1.121 GB, free: 6.551 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.296e-05/0.398, allocations: 65.67 kB / 1.121 GB, free: 6.48 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3981, allocations: 326 kB / 1.122 GB, free: 6.156 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004236/0.3985, allocations: 213.1 kB / 1.122 GB, free: 5.949 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006195/0.3991, allocations: 371.7 kB / 1.122 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000908/0.4001, allocations: 0.5456 MB / 1.123 GB, free: 4.934 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.4001, allocations: 0 / 1.123 GB, free: 4.934 MB / 0.8731 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001351/0.4014, allocations: 0.7447 MB / 1.124 GB, free: 4.176 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001599/0.4016, allocations: 206.4 kB / 1.124 GB, free: 3.926 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.4016, allocations: 7.984 kB / 1.124 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.4016, allocations: 4 kB / 1.124 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.4027, allocations: 175.7 kB / 1.124 GB, free: 3.742 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.4039, allocations: 1.777 MB / 1.126 GB, free: 1.895 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008309/0.4047, allocations: 115.5 kB / 1.126 GB, free: 1.781 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.906e-05/0.4048, allocations: 24 kB / 1.126 GB, free: 1.758 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/0.4048, allocations: 8 kB / 1.126 GB, free: 1.75 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001374/0.4062, allocations: 0.6467 MB / 1.126 GB, free: 1.102 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.4062, allocations: 4 kB / 1.126 GB, free: 1.098 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.752e-06/0.4062, allocations: 4 kB / 1.126 GB, free: 1.094 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005093/0.4067, allocations: 135.7 kB / 1.127 GB, free: 0.9609 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.4067, allocations: 4 kB / 1.127 GB, free: 0.957 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006652/0.4074, allocations: 99.56 kB / 1.127 GB, free: 0.8594 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.723e-05/0.4075, allocations: 27.94 kB / 1.127 GB, free: 0.832 MB / 0.8731 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 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005261/0.408, allocations: 358.6 kB / 1.127 GB, free: 476 kB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.4081, allocations: 90.88 kB / 1.127 GB, free: 384 kB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.4095, allocations: 0.6829 MB / 1.128 GB, free: 15.68 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.4095, allocations: 11.94 kB / 1.128 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4095, allocations: 0 / 1.128 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4096, allocations: 3.984 kB / 1.128 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002435/0.412, allocations: 1.531 MB / 1.129 GB, free: 14.06 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.412, allocations: 4 kB / 1.129 GB, free: 14.05 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004846/0.4125, allocations: 91.86 kB / 1.129 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.4125, allocations: 4 kB / 1.129 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.4126, allocations: 15.98 kB / 1.129 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.4139, allocations: 1.766 MB / 1.131 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4139, allocations: 0 / 1.131 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.4157, allocations: 1.124 MB / 1.132 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003656/0.4161, allocations: 223.7 kB / 1.132 GB, free: 10.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.4162, allocations: 16 kB / 1.132 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005431/0.4167, allocations: 55.94 kB / 1.132 GB, free: 10.65 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.4169, allocations: 43.88 kB / 1.133 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.216e-05/0.4169, allocations: 23.92 kB / 1.133 GB, free: 10.58 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008195/0.4177, allocations: 0.5709 MB / 1.133 GB, free: 10 MB / 0.8887 GB Notification: Performance of sort global known variables: time 4.3e-07/0.4177, allocations: 0 / 1.133 GB, free: 10 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001565/0.4193, allocations: 459.2 kB / 1.134 GB, free: 9.551 MB / 0.8887 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009169/0.4203, allocations: 350.2 kB / 1.134 GB, free: 9.207 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002469/0.4227, allocations: 1.036 MB / 1.135 GB, free: 8.141 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.4228, allocations: 4.188 kB / 1.135 GB, free: 8.137 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0006853/0.4234, allocations: 355.1 kB / 1.135 GB, free: 7.777 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.4259, allocations: 379.2 kB / 1.136 GB, free: 7.414 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.4288, allocations: 1.809 MB / 1.137 GB, free: 5.559 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006722/0.4295, allocations: 0.9979 MB / 1.138 GB, free: 4.535 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0006253/0.4301, allocations: 154 kB / 1.138 GB, free: 4.383 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.4303, allocations: 75.34 kB / 1.139 GB, free: 4.309 MB / 0.8887 GB Notification: Performance of SimCode: time 7.11e-07/0.4303, allocations: 0 / 1.139 GB, free: 4.309 MB / 0.8887 GB Notification: Performance of Templates: time 0.02901/0.4593, allocations: 15.89 MB / 1.154 GB, free: 4.602 MB / 0.9044 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)