Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.754/1.754, allocations: 288.3 MB / 303.2 MB, free: 8.156 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.001167/0.001167, allocations: 187.7 kB / 371.9 MB, free: 10.29 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.756/1.756, allocations: 205.4 MB / 0.6306 GB, free: 10.03 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.0009112/0.0009109, allocations: 97.33 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004455, allocations: 15.66 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2194, allocations: 115.3 MB / 0.9794 GB, free: 27.71 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01528/0.2347, allocations: 19.83 MB / 0.9988 GB, free: 7.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01164/0.2464, allocations: 8.612 MB / 1.007 GB, free: 15.2 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.2475, allocations: 35.69 kB / 1.007 GB, free: 15.16 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.249, allocations: 0.5134 MB / 1.008 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.003225/0.2523, allocations: 1.092 MB / 1.009 GB, free: 13.55 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.006917/0.2592, allocations: 2.485 MB / 1.011 GB, free: 11.1 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.002343/0.2616, allocations: 1.203 MB / 1.012 GB, free: 9.898 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008871/0.2624, allocations: 0.5767 MB / 1.013 GB, free: 9.305 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.2636, allocations: 0.6501 MB / 1.014 GB, free: 8.652 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006624/0.2642, allocations: 0.5018 MB / 1.014 GB, free: 8.148 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 7.615e-05/0.2643, allocations: 32 kB / 1.014 GB, free: 8.117 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00167/0.266, allocations: 0.901 MB / 1.015 GB, free: 7.215 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.2662, allocations: 163.3 kB / 1.015 GB, free: 7.055 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.2664, allocations: 201.1 kB / 1.015 GB, free: 6.852 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.2675, allocations: 1.021 MB / 1.016 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.2675, allocations: 0 / 1.016 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2675, allocations: 0 / 1.016 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.2675, allocations: 0 / 1.016 GB, free: 5.828 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.002148/0.2697, allocations: 1.239 MB / 1.018 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2697, allocations: 12.02 kB / 1.018 GB, free: 4.52 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.2699, allocations: 114.7 kB / 1.018 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.271, allocations: 0.6445 MB / 1.018 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.2711, allocations: 49.31 kB / 1.018 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.501e-05/0.2712, allocations: 68 kB / 1.018 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.2723, allocations: 0.6585 MB / 1.019 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2723, allocations: 0 / 1.019 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.2723, allocations: 20 kB / 1.019 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.2724, allocations: 16 kB / 1.019 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008002/0.2732, allocations: 456.9 kB / 1.02 GB, free: 2.426 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.003496/0.2767, allocations: 2.542 MB / 1.022 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006726/0.2774, allocations: 372.9 kB / 1.022 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003045/0.2777, allocations: 344.3 kB / 1.023 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005318/0.2782, allocations: 321.4 kB / 1.023 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.114e-06/0.2782, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001396/0.2797, allocations: 0.7841 MB / 1.024 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.2798, allocations: 247.3 kB / 1.024 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009772/0.2808, allocations: 0.8245 MB / 1.025 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.144e-05/0.2808, allocations: 41.7 kB / 1.025 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003408/0.2812, allocations: 432.3 kB / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.2813, allocations: 122.3 kB / 1.025 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.2813, allocations: 12 kB / 1.025 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2815, allocations: 326 kB / 1.026 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.2819, allocations: 205.1 kB / 1.026 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004842/0.2824, allocations: 359.7 kB / 1.026 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004248/0.2828, allocations: 263.6 kB / 1.026 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2828, allocations: 0 / 1.026 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001166/0.284, allocations: 0.729 MB / 1.027 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004749/0.2845, allocations: 1.086 MB / 1.028 GB, free: 8.934 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2845, allocations: 4.484 kB / 1.028 GB, free: 8.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.2845, allocations: 8 kB / 1.028 GB, free: 8.922 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009817/0.2855, allocations: 175.8 kB / 1.028 GB, free: 8.75 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009867/0.2865, allocations: 1.781 MB / 1.03 GB, free: 6.898 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006439/0.2871, allocations: 115.4 kB / 1.03 GB, free: 6.785 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.189e-05/0.2872, allocations: 31.97 kB / 1.03 GB, free: 6.754 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.2872, allocations: 8 kB / 1.03 GB, free: 6.746 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001072/0.2883, allocations: 0.635 MB / 1.031 GB, free: 6.105 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.2883, allocations: 7.953 kB / 1.031 GB, free: 6.098 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.574e-06/0.2883, allocations: 8 kB / 1.031 GB, free: 6.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.2888, allocations: 127.8 kB / 1.031 GB, free: 5.965 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.2889, allocations: 11.94 kB / 1.031 GB, free: 5.953 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005414/0.2894, allocations: 95.5 kB / 1.031 GB, free: 5.859 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.2895, allocations: 31.98 kB / 1.031 GB, free: 5.828 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.0003999/0.2899, allocations: 342.7 kB / 1.032 GB, free: 5.477 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.29, allocations: 90.88 kB / 1.032 GB, free: 5.387 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.2912, allocations: 0.6865 MB / 1.032 GB, free: 4.688 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.2912, allocations: 4 kB / 1.032 GB, free: 4.684 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2912, allocations: 0 / 1.032 GB, free: 4.684 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.2912, allocations: 7.984 kB / 1.032 GB, free: 4.676 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/0.2932, allocations: 1.527 MB / 1.034 GB, free: 3.078 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.2932, allocations: 0 / 1.034 GB, free: 3.078 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004022/0.2937, allocations: 95.84 kB / 1.034 GB, free: 2.984 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.2937, allocations: 4 kB / 1.034 GB, free: 2.98 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.532e-05/0.2937, allocations: 16 kB / 1.034 GB, free: 2.965 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008719/0.2946, allocations: 1.774 MB / 1.036 GB, free: 1.121 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2946, allocations: 0 / 1.036 GB, free: 1.121 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.296, allocations: 1.159 MB / 1.037 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003221/0.2964, allocations: 227.7 kB / 1.037 GB, free: 15.66 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.2965, allocations: 15.95 kB / 1.037 GB, free: 15.65 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.297, allocations: 52.02 kB / 1.037 GB, free: 15.6 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.206e-05/0.2971, allocations: 43.92 kB / 1.037 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.749e-05/0.2972, allocations: 23.98 kB / 1.037 GB, free: 15.53 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0006504/0.2978, allocations: 0.5588 MB / 1.038 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2978, allocations: 0 / 1.038 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001203/0.299, allocations: 459.1 kB / 1.038 GB, free: 14.51 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.0006789/0.2997, allocations: 323.7 kB / 1.038 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002046/0.3018, allocations: 1.032 MB / 1.039 GB, free: 13.14 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3018, allocations: 0 / 1.039 GB, free: 13.14 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006059/0.3024, allocations: 355.1 kB / 1.04 GB, free: 12.78 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.3043, allocations: 364.5 kB / 1.04 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.3068, allocations: 1.717 MB / 1.042 GB, free: 10.67 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000571/0.3074, allocations: 1.017 MB / 1.043 GB, free: 9.625 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005716/0.308, allocations: 158.2 kB / 1.043 GB, free: 9.469 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.3081, allocations: 67.42 kB / 1.043 GB, free: 9.402 MB / 0.6667 GB Notification: Performance of SimCode: time 9.42e-07/0.3082, allocations: 0 / 1.043 GB, free: 9.402 MB / 0.6667 GB Notification: Performance of Templates: time 0.02619/0.3344, allocations: 15.53 MB / 1.058 GB, free: 10.02 MB / 0.6823 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)