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 1.672/1.672, allocations: 287.5 MB / 302.6 MB, free: 8.234 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.0009931/0.0009933, allocations: 185.7 kB / 371.2 MB, free: 10.74 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.657/1.657, allocations: 205.4 MB / 0.6299 GB, free: 10.52 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.0007933/0.0007937, allocations: 92.67 kB / 0.7432 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005724/0.0005726, allocations: 10.81 kB / 0.8661 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2887, allocations: 115.3 MB / 0.9787 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01963/0.3084, allocations: 21.56 MB / 0.9997 GB, free: 6.562 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01279/0.3213, allocations: 9.113 MB / 1.009 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.3227, allocations: 27.75 kB / 1.009 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0009648/0.3237, allocations: 298.2 kB / 1.009 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.00278/0.3265, allocations: 0.8765 MB / 1.01 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.002693/0.3292, allocations: 0.8891 MB / 1.011 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0029/0.3321, allocations: 2.159 MB / 1.013 GB, free: 9.191 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00095/0.333, allocations: 0.6184 MB / 1.013 GB, free: 8.555 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.3343, allocations: 0.6885 MB / 1.014 GB, free: 7.863 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007961/0.3351, allocations: 0.6341 MB / 1.015 GB, free: 7.227 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 8.949e-05/0.3352, allocations: 32 kB / 1.015 GB, free: 7.195 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.337, allocations: 0.8695 MB / 1.016 GB, free: 6.324 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.3372, allocations: 167.2 kB / 1.016 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.3374, allocations: 197.1 kB / 1.016 GB, free: 5.961 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.3386, allocations: 1.017 MB / 1.017 GB, free: 4.941 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3386, allocations: 4 kB / 1.017 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3386, allocations: 0 / 1.017 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.3386, allocations: 0 / 1.017 GB, free: 4.938 MB / 0.6355 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.001954/0.3406, allocations: 1.226 MB / 1.018 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.3407, allocations: 12.03 kB / 1.018 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.3408, allocations: 111.6 kB / 1.018 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009972/0.3419, allocations: 0.6831 MB / 1.019 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-05/0.3419, allocations: 49.31 kB / 1.019 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-05/0.342, allocations: 60 kB / 1.019 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.3431, allocations: 0.6624 MB / 1.02 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.3431, allocations: 4 kB / 1.02 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.772e-05/0.3432, allocations: 20 kB / 1.02 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.3432, allocations: 20 kB / 1.02 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007952/0.344, allocations: 452.9 kB / 1.02 GB, free: 1.516 MB / 0.6355 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.003457/0.3474, allocations: 2.545 MB / 1.023 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007168/0.3482, allocations: 362.8 kB / 1.023 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003357/0.3485, allocations: 196.6 kB / 1.023 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003485/0.3489, allocations: 340.4 kB / 1.023 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005513/0.3494, allocations: 333.1 kB / 1.024 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.565e-06/0.3495, allocations: 0 / 1.024 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001289/0.3507, allocations: 0.703 MB / 1.024 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.3509, allocations: 251.2 kB / 1.025 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009475/0.3519, allocations: 0.8242 MB / 1.026 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.868e-05/0.3519, allocations: 41.94 kB / 1.026 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003487/0.3523, allocations: 440.4 kB / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.761e-05/0.3524, allocations: 122.3 kB / 1.026 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.619e-05/0.3524, allocations: 8 kB / 1.026 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3526, allocations: 330 kB / 1.026 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.353, allocations: 197.1 kB / 1.027 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004863/0.3535, allocations: 363.7 kB / 1.027 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007655/0.3542, allocations: 0.5261 MB / 1.027 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3542, allocations: 0 / 1.027 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001149/0.3554, allocations: 0.7331 MB / 1.028 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.3556, allocations: 198.8 kB / 1.028 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3556, allocations: 4 kB / 1.028 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3556, allocations: 4 kB / 1.028 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.3566, allocations: 179.7 kB / 1.029 GB, free: 8.355 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.3577, allocations: 1.785 MB / 1.03 GB, free: 6.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007076/0.3584, allocations: 115.3 kB / 1.03 GB, free: 6.387 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.31e-05/0.3585, allocations: 27.98 kB / 1.03 GB, free: 6.359 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/0.3585, allocations: 4 kB / 1.03 GB, free: 6.355 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001103/0.3596, allocations: 0.6348 MB / 1.031 GB, free: 5.715 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3596, allocations: 4 kB / 1.031 GB, free: 5.711 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.864e-06/0.3596, allocations: 7.938 kB / 1.031 GB, free: 5.703 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.3601, allocations: 136.1 kB / 1.031 GB, free: 5.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.3601, allocations: 4 kB / 1.031 GB, free: 5.566 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005577/0.3607, allocations: 99.38 kB / 1.031 GB, free: 5.469 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.894e-05/0.3608, allocations: 31.98 kB / 1.031 GB, free: 5.438 MB / 0.6511 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.0004338/0.3612, allocations: 342.6 kB / 1.032 GB, free: 5.086 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.3613, allocations: 94.81 kB / 1.032 GB, free: 4.992 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00122/0.3625, allocations: 0.6828 MB / 1.032 GB, free: 4.297 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.3626, allocations: 4.094 kB / 1.032 GB, free: 4.293 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3626, allocations: 3.984 kB / 1.032 GB, free: 4.289 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3626, allocations: 3.984 kB / 1.032 GB, free: 4.285 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.3646, allocations: 1.515 MB / 1.034 GB, free: 2.699 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.3646, allocations: 4 kB / 1.034 GB, free: 2.695 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/0.365, allocations: 95.89 kB / 1.034 GB, free: 2.602 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.365, allocations: 8.125 kB / 1.034 GB, free: 2.594 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.3651, allocations: 16 kB / 1.034 GB, free: 2.578 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008796/0.366, allocations: 1.766 MB / 1.036 GB, free: 0.7422 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.366, allocations: 4.031 kB / 1.036 GB, free: 0.7383 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.3674, allocations: 1.12 MB / 1.037 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002718/0.3677, allocations: 227.7 kB / 1.037 GB, free: 15.34 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.3678, allocations: 12 kB / 1.037 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004944/0.3683, allocations: 59.89 kB / 1.037 GB, free: 15.27 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.3685, allocations: 51.86 kB / 1.037 GB, free: 15.22 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.3685, allocations: 23.98 kB / 1.037 GB, free: 15.2 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0006841/0.3692, allocations: 0.5588 MB / 1.038 GB, free: 14.63 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3692, allocations: 0 / 1.038 GB, free: 14.63 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001215/0.3704, allocations: 447.2 kB / 1.038 GB, free: 14.19 MB / 0.6667 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.0007029/0.3711, allocations: 335.2 kB / 1.038 GB, free: 13.87 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002107/0.3733, allocations: 1.023 MB / 1.039 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3733, allocations: 0 / 1.039 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006195/0.3739, allocations: 368 kB / 1.04 GB, free: 12.45 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/0.376, allocations: 369.2 kB / 1.04 GB, free: 12.08 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.3786, allocations: 1.707 MB / 1.042 GB, free: 10.34 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005817/0.3792, allocations: 0.9986 MB / 1.043 GB, free: 9.309 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005977/0.3798, allocations: 158.2 kB / 1.043 GB, free: 9.152 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.38, allocations: 67.42 kB / 1.043 GB, free: 9.086 MB / 0.6667 GB Notification: Performance of SimCode: time 4.21e-07/0.38, allocations: 0 / 1.043 GB, free: 9.086 MB / 0.6667 GB Notification: Performance of Templates: time 0.02912/0.4091, allocations: 15.57 MB / 1.058 GB, free: 9.676 MB / 0.6823 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)