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.548/1.548, allocations: 252 MB / 268 MB, free: 10.84 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.0009429/0.0009429, allocations: 169.9 kB / 327.6 MB, free: 2.086 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.396/1.396, allocations: 205.4 MB / 0.5786 GB, free: 20.09 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.0007106/0.0007106, allocations: 86.34 kB / 0.6832 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002958, allocations: 12.41 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1672, allocations: 106.3 MB / 0.9015 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01571/0.183, allocations: 22.77 MB / 0.9237 GB, free: 40.62 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01073/0.1937, allocations: 9.916 MB / 0.9334 GB, free: 30.68 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.1948, allocations: 35.69 kB / 0.9334 GB, free: 30.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0007973/0.1956, allocations: 318.2 kB / 0.9337 GB, free: 30.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.002133/0.1978, allocations: 0.9798 MB / 0.9347 GB, free: 29.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002083/0.1999, allocations: 0.9649 MB / 0.9356 GB, free: 28.4 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001991/0.2019, allocations: 2.479 MB / 0.938 GB, free: 25.91 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006594/0.2026, allocations: 0.6222 MB / 0.9386 GB, free: 25.27 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008991/0.2035, allocations: 0.7196 MB / 0.9393 GB, free: 24.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006265/0.2041, allocations: 0.6767 MB / 0.94 GB, free: 23.86 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.124e-05/0.2042, allocations: 32 kB / 0.94 GB, free: 23.83 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001374/0.2056, allocations: 0.9397 MB / 0.941 GB, free: 22.89 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.2057, allocations: 167.2 kB / 0.9411 GB, free: 22.73 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0003264/0.2061, allocations: 478.9 kB / 0.9416 GB, free: 22.25 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0008974/0.207, allocations: 1.025 MB / 0.9426 GB, free: 21.22 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.207, allocations: 4 kB / 0.9426 GB, free: 21.22 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.723e-06/0.207, allocations: 0 / 0.9426 GB, free: 21.22 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.207, allocations: 0 / 0.9426 GB, free: 21.22 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.001576/0.2086, allocations: 1.228 MB / 0.9438 GB, free: 19.93 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2086, allocations: 8.031 kB / 0.9438 GB, free: 19.92 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.2088, allocations: 123.5 kB / 0.9439 GB, free: 19.8 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007856/0.2096, allocations: 0.6793 MB / 0.9446 GB, free: 19.08 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/0.2096, allocations: 49.31 kB / 0.9446 GB, free: 19.04 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.2097, allocations: 64 kB / 0.9447 GB, free: 18.97 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008123/0.2105, allocations: 0.6664 MB / 0.9453 GB, free: 18.27 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.2105, allocations: 0 / 0.9453 GB, free: 18.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.2106, allocations: 24 kB / 0.9453 GB, free: 18.24 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.2106, allocations: 12 kB / 0.9454 GB, free: 18.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006433/0.2113, allocations: 456.9 kB / 0.9458 GB, free: 17.79 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.00263/0.2139, allocations: 2.538 MB / 0.9483 GB, free: 15.11 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005902/0.2145, allocations: 366.7 kB / 0.9486 GB, free: 14.75 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.2148, allocations: 188.8 kB / 0.9488 GB, free: 14.56 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001917/0.215, allocations: 348.4 kB / 0.9491 GB, free: 14.14 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004504/0.2154, allocations: 329.1 kB / 0.9495 GB, free: 13.79 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 1.663e-06/0.2155, allocations: 0 / 0.9495 GB, free: 13.79 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001053/0.2165, allocations: 0.7031 MB / 0.9501 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.2166, allocations: 235.6 kB / 0.9504 GB, free: 12.79 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007335/0.2173, allocations: 0.8437 MB / 0.9512 GB, free: 11.92 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.986e-05/0.2174, allocations: 37.7 kB / 0.9512 GB, free: 11.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.2176, allocations: 440.3 kB / 0.9516 GB, free: 11.44 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.753e-05/0.2177, allocations: 118.3 kB / 0.9518 GB, free: 11.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.744e-05/0.2177, allocations: 8 kB / 0.9518 GB, free: 11.32 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.668e-05/0.2178, allocations: 330 kB / 0.9521 GB, free: 10.99 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.2181, allocations: 213.1 kB / 0.9523 GB, free: 10.78 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.2185, allocations: 369.9 kB / 0.9526 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006439/0.2192, allocations: 0.5417 MB / 0.9532 GB, free: 9.777 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2192, allocations: 0 / 0.9532 GB, free: 9.777 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.000985/0.2202, allocations: 0.7487 MB / 0.9539 GB, free: 9.012 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.586e-05/0.2202, allocations: 209 kB / 0.9541 GB, free: 8.766 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.2203, allocations: 4 kB / 0.9541 GB, free: 8.762 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.2203, allocations: 8 kB / 0.9541 GB, free: 8.754 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009421/0.2212, allocations: 175.7 kB / 0.9543 GB, free: 8.582 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005714/0.2218, allocations: 1.785 MB / 0.956 GB, free: 6.727 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006214/0.2225, allocations: 107.6 kB / 0.9561 GB, free: 6.621 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.427e-05/0.2225, allocations: 27.98 kB / 0.9561 GB, free: 6.594 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.372e-06/0.2225, allocations: 4 kB / 0.9561 GB, free: 6.59 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008997/0.2234, allocations: 0.6426 MB / 0.9568 GB, free: 5.941 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.2235, allocations: 0.8906 kB / 0.9568 GB, free: 5.941 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.422e-06/0.2235, allocations: 15.94 kB / 0.9568 GB, free: 5.926 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004684/0.2239, allocations: 127.8 kB / 0.9569 GB, free: 5.801 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.224, allocations: 8 kB / 0.9569 GB, free: 5.793 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005441/0.2245, allocations: 107.2 kB / 0.957 GB, free: 5.688 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.2246, allocations: 23.98 kB / 0.957 GB, free: 5.664 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 (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.0003263/0.2249, allocations: 348.5 kB / 0.9574 GB, free: 5.309 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/0.225, allocations: 98.81 kB / 0.9575 GB, free: 5.211 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.226, allocations: 0.6827 MB / 0.9581 GB, free: 4.516 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.226, allocations: 8 kB / 0.9581 GB, free: 4.508 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.226, allocations: 0 / 0.9581 GB, free: 4.508 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.226, allocations: 3.984 kB / 0.9582 GB, free: 4.504 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.2276, allocations: 1.519 MB / 0.9596 GB, free: 2.914 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.2276, allocations: 4 kB / 0.9596 GB, free: 2.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.228, allocations: 96.03 kB / 0.9597 GB, free: 2.816 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.228, allocations: 4 kB / 0.9597 GB, free: 2.812 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.2281, allocations: 19.98 kB / 0.9598 GB, free: 2.793 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004356/0.2285, allocations: 1.766 MB / 0.9615 GB, free: 0.957 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.2285, allocations: 4.031 kB / 0.9615 GB, free: 0.9531 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.2297, allocations: 1.105 MB / 0.9626 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002618/0.23, allocations: 231.8 kB / 0.9628 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.2301, allocations: 16 kB / 0.9628 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005224/0.2307, allocations: 55.94 kB / 0.9628 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.2308, allocations: 47.81 kB / 0.9629 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.2308, allocations: 19.98 kB / 0.9629 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006436/0.2315, allocations: 0.5667 MB / 0.9635 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2315, allocations: 0 / 0.9635 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001143/0.2326, allocations: 455.1 kB / 0.9639 GB, free: 14.41 MB / 0.6198 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.0007167/0.2333, allocations: 335.7 kB / 0.9642 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00207/0.2354, allocations: 1.035 MB / 0.9652 GB, free: 13.03 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.2355, allocations: 4.875 kB / 0.9652 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006046/0.2361, allocations: 371.7 kB / 0.9656 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/0.2383, allocations: 377.7 kB / 0.966 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.2408, allocations: 1.833 MB / 0.9677 GB, free: 10.4 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004888/0.2413, allocations: 0.9973 MB / 0.9687 GB, free: 9.375 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.2415, allocations: 71.41 kB / 0.9688 GB, free: 9.305 MB / 0.6198 GB Notification: Performance of SimCode: time 3.51e-07/0.2415, allocations: 0 / 0.9688 GB, free: 9.305 MB / 0.6198 GB Notification: Performance of Templates: time 0.02627/0.2678, allocations: 23.77 MB / 0.992 GB, free: 1.613 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)