Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.803/1.803, allocations: 252 MB / 267.6 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001193/0.001193, allocations: 184.4 kB / 327.3 MB, free: 2.203 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.4 MB / 0.5783 GB, free: 20.56 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007371/0.0007369, allocations: 95.97 kB / 0.6829 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.000322, allocations: 12.09 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1982, allocations: 106.3 MB / 0.9008 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01603/0.2142, allocations: 21.58 MB / 0.9219 GB, free: 42.65 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01112/0.2254, allocations: 9.09 MB / 0.9308 GB, free: 33.54 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.2266, allocations: 39.69 kB / 0.9308 GB, free: 33.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000913/0.2275, allocations: 290.2 kB / 0.9311 GB, free: 33.22 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.002269/0.2298, allocations: 0.8774 MB / 0.9319 GB, free: 32.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.2321, allocations: 0.8764 MB / 0.9328 GB, free: 31.47 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001857/0.234, allocations: 2.136 MB / 0.9349 GB, free: 29.33 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006482/0.2347, allocations: 0.565 MB / 0.9354 GB, free: 28.74 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008946/0.2356, allocations: 0.6885 MB / 0.9361 GB, free: 28.05 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006144/0.2362, allocations: 0.6262 MB / 0.9367 GB, free: 27.42 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.376e-05/0.2363, allocations: 39.94 kB / 0.9368 GB, free: 27.38 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001297/0.2376, allocations: 0.8695 MB / 0.9376 GB, free: 26.51 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.2377, allocations: 159.3 kB / 0.9378 GB, free: 26.36 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.2379, allocations: 201.1 kB / 0.938 GB, free: 26.15 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0008462/0.2387, allocations: 1.017 MB / 0.939 GB, free: 25.13 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.2388, allocations: 0 / 0.939 GB, free: 25.13 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2388, allocations: 3.938 kB / 0.939 GB, free: 25.13 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.2388, allocations: 0 / 0.939 GB, free: 25.13 MB / 0.6042 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.001714/0.2405, allocations: 1.232 MB / 0.9402 GB, free: 23.84 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2406, allocations: 8.031 kB / 0.9402 GB, free: 23.83 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.2407, allocations: 122.5 kB / 0.9403 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008161/0.2415, allocations: 0.6407 MB / 0.9409 GB, free: 23.03 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.2416, allocations: 53.31 kB / 0.941 GB, free: 22.98 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-05/0.2417, allocations: 64 kB / 0.941 GB, free: 22.91 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008529/0.2425, allocations: 0.6662 MB / 0.9417 GB, free: 22.21 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.2426, allocations: 0 / 0.9417 GB, free: 22.21 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.635e-05/0.2426, allocations: 20 kB / 0.9417 GB, free: 22.19 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.2426, allocations: 16 kB / 0.9417 GB, free: 22.17 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000661/0.2433, allocations: 456.9 kB / 0.9421 GB, free: 21.73 MB / 0.6042 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.002662/0.246, allocations: 2.538 MB / 0.9446 GB, free: 19.06 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005985/0.2466, allocations: 365 kB / 0.945 GB, free: 18.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002746/0.2469, allocations: 192.8 kB / 0.9452 GB, free: 18.5 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002307/0.2471, allocations: 340.4 kB / 0.9455 GB, free: 18.1 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/0.2476, allocations: 321.5 kB / 0.9458 GB, free: 17.75 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 3.327e-06/0.2476, allocations: 112 / 0.9458 GB, free: 17.75 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001095/0.2487, allocations: 0.6992 MB / 0.9465 GB, free: 17.04 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.2488, allocations: 243.3 kB / 0.9467 GB, free: 16.75 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006998/0.2495, allocations: 0.8281 MB / 0.9475 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.2495, allocations: 41.7 kB / 0.9475 GB, free: 15.85 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.2498, allocations: 432.6 kB / 0.948 GB, free: 15.42 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.573e-05/0.2499, allocations: 126.3 kB / 0.9481 GB, free: 15.29 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.2499, allocations: 16 kB / 0.9481 GB, free: 15.28 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.835e-05/0.25, allocations: 322 kB / 0.9484 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003311/0.2503, allocations: 201.1 kB / 0.9486 GB, free: 14.76 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003922/0.2507, allocations: 371.6 kB / 0.9489 GB, free: 14.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003863/0.2511, allocations: 255.7 kB / 0.9492 GB, free: 14.09 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.2511, allocations: 0 / 0.9492 GB, free: 14.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009588/0.2521, allocations: 0.7291 MB / 0.9499 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.219e-05/0.2522, allocations: 197.1 kB / 0.9501 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2522, allocations: 7.938 kB / 0.9501 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2522, allocations: 12 kB / 0.9501 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009372/0.2531, allocations: 171.7 kB / 0.9503 GB, free: 12.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006028/0.2538, allocations: 1.785 MB / 0.952 GB, free: 11.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006364/0.2544, allocations: 111.4 kB / 0.9521 GB, free: 10.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.281e-05/0.2545, allocations: 27.98 kB / 0.9521 GB, free: 10.93 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.062e-06/0.2545, allocations: 4 kB / 0.9522 GB, free: 10.92 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009004/0.2554, allocations: 0.6348 MB / 0.9528 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2554, allocations: 4 kB / 0.9528 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.751e-06/0.2554, allocations: 8.344 kB / 0.9528 GB, free: 10.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004626/0.2559, allocations: 131.8 kB / 0.9529 GB, free: 10.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.2559, allocations: 4 kB / 0.9529 GB, free: 10.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005434/0.2564, allocations: 103.3 kB / 0.953 GB, free: 10.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.2565, allocations: 27.98 kB / 0.953 GB, free: 10.01 MB / 0.6042 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.0003534/0.2569, allocations: 345.2 kB / 0.9534 GB, free: 9.656 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.673e-05/0.257, allocations: 94.83 kB / 0.9535 GB, free: 9.562 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.258, allocations: 0.6863 MB / 0.9541 GB, free: 8.863 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.258, allocations: 4 kB / 0.9541 GB, free: 8.859 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.258, allocations: 7.984 kB / 0.9541 GB, free: 8.852 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.258, allocations: 0 / 0.9541 GB, free: 8.852 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.2596, allocations: 1.519 MB / 0.9556 GB, free: 7.262 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2597, allocations: 0 / 0.9556 GB, free: 7.262 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003758/0.26, allocations: 95.98 kB / 0.9557 GB, free: 7.168 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.2601, allocations: 4 kB / 0.9557 GB, free: 7.164 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.2601, allocations: 16 kB / 0.9557 GB, free: 7.148 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004816/0.2606, allocations: 1.766 MB / 0.9575 GB, free: 5.312 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2606, allocations: 11.91 kB / 0.9575 GB, free: 5.301 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.2617, allocations: 1.105 MB / 0.9586 GB, free: 4.168 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.262, allocations: 223.9 kB / 0.9588 GB, free: 3.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.756e-05/0.2621, allocations: 20.05 kB / 0.9588 GB, free: 3.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005002/0.2626, allocations: 55.84 kB / 0.9588 GB, free: 3.855 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-05/0.2627, allocations: 51.86 kB / 0.9589 GB, free: 3.805 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.2627, allocations: 16 kB / 0.9589 GB, free: 3.789 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0005528/0.2633, allocations: 0.5666 MB / 0.9595 GB, free: 3.211 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2e-07/0.2633, allocations: 0 / 0.9595 GB, free: 3.211 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001146/0.2644, allocations: 451.2 kB / 0.9599 GB, free: 2.77 MB / 0.6042 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.0005925/0.265, allocations: 338.1 kB / 0.9602 GB, free: 2.438 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001843/0.2669, allocations: 1.024 MB / 0.9612 GB, free: 1.395 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2669, allocations: 0 / 0.9612 GB, free: 1.395 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0005292/0.2675, allocations: 356.1 kB / 0.9615 GB, free: 1.035 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.2694, allocations: 376.2 kB / 0.9619 GB, free: 0.668 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.2724, allocations: 1.761 MB / 0.9636 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006802/0.2731, allocations: 0.9973 MB / 0.9646 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.2734, allocations: 71.42 kB / 0.9647 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of SimCode: time 1.242e-06/0.2734, allocations: 0 / 0.9647 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of Templates: time 0.03107/0.3045, allocations: 23.79 MB / 0.9879 GB, free: 6.047 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)