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 2.717/2.717, allocations: 287.3 MB / 302.3 MB, free: 8.27 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.001576/0.001576, allocations: 170.8 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.335/2.335, allocations: 205.4 MB / 0.6295 GB, free: 10.6 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.001065/0.001065, allocations: 103.2 kB / 0.7428 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.0004771, allocations: 12.67 kB / 0.8656 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2168, allocations: 115.3 MB / 0.9782 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02624/0.2431, allocations: 19.83 MB / 0.9976 GB, free: 8.477 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01849/0.2617, allocations: 8.617 MB / 1.006 GB, free: 15.85 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.2632, allocations: 31.69 kB / 1.006 GB, free: 15.82 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.002431/0.2656, allocations: 0.5173 MB / 1.007 GB, free: 15.3 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.005085/0.2708, allocations: 1.097 MB / 1.008 GB, free: 14.2 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0107/0.2815, allocations: 2.477 MB / 1.01 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.003239/0.2848, allocations: 1.207 MB / 1.011 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.2862, allocations: 0.5845 MB / 1.012 GB, free: 9.941 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.2883, allocations: 0.6501 MB / 1.012 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001375/0.2898, allocations: 0.4979 MB / 1.013 GB, free: 8.789 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0002208/0.29, allocations: 32 kB / 1.013 GB, free: 8.758 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002895/0.2929, allocations: 0.901 MB / 1.014 GB, free: 7.855 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0004084/0.2934, allocations: 167.3 kB / 1.014 GB, free: 7.691 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0004362/0.2938, allocations: 197.1 kB / 1.014 GB, free: 7.492 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002501/0.2964, allocations: 1.021 MB / 1.015 GB, free: 6.469 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2964, allocations: 0 / 1.015 GB, free: 6.469 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.605e-06/0.2964, allocations: 0 / 1.015 GB, free: 6.469 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.004e-05/0.2965, allocations: 0 / 1.015 GB, free: 6.469 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.003365/0.2998, allocations: 1.243 MB / 1.016 GB, free: 5.168 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.2999, allocations: 12.02 kB / 1.016 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.3002, allocations: 110.7 kB / 1.016 GB, free: 5.047 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.302, allocations: 0.6406 MB / 1.017 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.15e-05/0.3022, allocations: 57.25 kB / 1.017 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.3023, allocations: 60 kB / 1.017 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.3041, allocations: 0.6585 MB / 1.018 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.3042, allocations: 0 / 1.018 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.627e-05/0.3043, allocations: 24 kB / 1.018 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.3043, allocations: 12 kB / 1.018 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.3058, allocations: 460.9 kB / 1.018 GB, free: 3.066 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.005961/0.3118, allocations: 2.546 MB / 1.021 GB, free: 392 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.3131, allocations: 367.3 kB / 1.021 GB, free: 16 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004332/0.3136, allocations: 348.4 kB / 1.021 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008753/0.3145, allocations: 321.1 kB / 1.022 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.986e-06/0.3145, allocations: 0 / 1.022 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.002373/0.3169, allocations: 0.7745 MB / 1.023 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.3171, allocations: 247.6 kB / 1.023 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.3187, allocations: 0.8282 MB / 1.024 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.3189, allocations: 37.7 kB / 1.024 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.00055/0.3195, allocations: 444.2 kB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.3197, allocations: 118.3 kB / 1.024 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.84e-05/0.3197, allocations: 8 kB / 1.024 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3199, allocations: 330 kB / 1.024 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007239/0.3206, allocations: 201.1 kB / 1.025 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009039/0.3215, allocations: 363.6 kB / 1.025 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00084/0.3224, allocations: 259.6 kB / 1.025 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3224, allocations: 0 / 1.025 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002272/0.3247, allocations: 0.7252 MB / 1.026 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005268/0.3253, allocations: 1.094 MB / 1.027 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.3253, allocations: 4 kB / 1.027 GB, free: 9.566 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.3254, allocations: 4 kB / 1.027 GB, free: 9.562 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00189/0.3273, allocations: 176.3 kB / 1.027 GB, free: 9.391 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.3287, allocations: 1.778 MB / 1.029 GB, free: 7.543 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001363/0.3301, allocations: 115.2 kB / 1.029 GB, free: 7.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.3302, allocations: 27.98 kB / 1.029 GB, free: 7.402 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.3303, allocations: 13.55 kB / 1.029 GB, free: 7.391 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002578/0.3329, allocations: 0.6387 MB / 1.03 GB, free: 6.746 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.3329, allocations: 4 kB / 1.03 GB, free: 6.742 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/0.333, allocations: 4 kB / 1.03 GB, free: 6.738 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.3342, allocations: 131.8 kB / 1.03 GB, free: 6.609 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.3343, allocations: 7.938 kB / 1.03 GB, free: 6.602 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.3357, allocations: 103.6 kB / 1.03 GB, free: 6.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/0.3359, allocations: 27.98 kB / 1.03 GB, free: 6.473 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.0006766/0.3365, allocations: 347.5 kB / 1.03 GB, free: 6.117 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.3368, allocations: 94.83 kB / 1.03 GB, free: 6.023 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/0.3389, allocations: 0.675 MB / 1.031 GB, free: 5.336 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/0.339, allocations: 4 kB / 1.031 GB, free: 5.332 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.339, allocations: 4 kB / 1.031 GB, free: 5.328 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.339, allocations: 3.984 kB / 1.031 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003505/0.3425, allocations: 1.519 MB / 1.033 GB, free: 3.734 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.3426, allocations: 7.938 kB / 1.033 GB, free: 3.727 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008261/0.3434, allocations: 103.8 kB / 1.033 GB, free: 3.625 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-05/0.3435, allocations: 4 kB / 1.033 GB, free: 3.621 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-05/0.3435, allocations: 12 kB / 1.033 GB, free: 3.609 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.3447, allocations: 1.766 MB / 1.034 GB, free: 1.773 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.3447, allocations: 4.031 kB / 1.034 GB, free: 1.77 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.3473, allocations: 1.163 MB / 1.036 GB, free: 0.5547 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005359/0.3479, allocations: 223.8 kB / 1.036 GB, free: 324 kB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/0.3481, allocations: 23.89 kB / 1.036 GB, free: 300 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000958/0.3491, allocations: 48.02 kB / 1.036 GB, free: 252 kB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.3493, allocations: 43.92 kB / 1.036 GB, free: 208 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/0.3494, allocations: 23.98 kB / 1.036 GB, free: 184 kB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001163/0.3505, allocations: 0.5588 MB / 1.036 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.41e-07/0.3506, allocations: 0 / 1.036 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0021/0.3527, allocations: 463.1 kB / 1.037 GB, free: 15.16 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.001154/0.3539, allocations: 312.8 kB / 1.037 GB, free: 14.85 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003878/0.3578, allocations: 1.024 MB / 1.038 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.3578, allocations: 0 / 1.038 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.359, allocations: 355.9 kB / 1.039 GB, free: 13.44 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/0.3626, allocations: 378.6 kB / 1.039 GB, free: 13.08 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/0.367, allocations: 1.713 MB / 1.041 GB, free: 11.32 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007883/0.3679, allocations: 1.024 MB / 1.042 GB, free: 10.27 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001128/0.369, allocations: 158.2 kB / 1.042 GB, free: 10.11 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.3693, allocations: 63.42 kB / 1.042 GB, free: 10.05 MB / 0.6667 GB Notification: Performance of SimCode: time 1.162e-06/0.3693, allocations: 0 / 1.042 GB, free: 10.05 MB / 0.6667 GB Notification: Performance of Templates: time 0.04515/0.4145, allocations: 15.52 MB / 1.057 GB, free: 10.68 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)