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.324/1.324, allocations: 252 MB / 267.9 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.00101/0.001009, allocations: 184 kB / 327.6 MB, free: 2.168 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.454/1.454, allocations: 205.4 MB / 0.5785 GB, free: 20.17 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.0007287/0.0007287, allocations: 96.48 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003724, allocations: 12.03 kB / 0.7974 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1886, allocations: 106.3 MB / 0.9012 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7761/0.9648, allocations: 395.2 MB / 1.287 GB, free: 8.344 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/0.9652, allocations: 101.7 kB / 1.287 GB, free: 8.289 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 0.9584/1.924, allocations: 292.5 MB / 1.573 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.126e-06/1.924, allocations: 4 kB / 1.573 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001185/1.924, allocations: 27.98 kB / 1.573 GB, free: 155.4 MB / 0.8698 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.002871/1.927, allocations: 1.397 MB / 1.574 GB, free: 153.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/1.927, allocations: 8.031 kB / 1.574 GB, free: 153.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003602/1.927, allocations: 119.6 kB / 1.574 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/1.928, allocations: 0.7043 MB / 1.575 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/1.929, allocations: 53.62 kB / 1.575 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/1.929, allocations: 68.28 kB / 1.575 GB, free: 152.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/1.93, allocations: 0.6902 MB / 1.576 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/1.93, allocations: 7.938 kB / 1.576 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.618e-05/1.93, allocations: 28 kB / 1.576 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/1.93, allocations: 12 kB / 1.576 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007655/1.931, allocations: 468.9 kB / 1.576 GB, free: 151.7 MB / 0.8698 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.003074/1.934, allocations: 2.6 MB / 1.579 GB, free: 149 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006506/1.934, allocations: 407.9 kB / 1.579 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/1.935, allocations: 212.8 kB / 1.58 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/1.935, allocations: 352.4 kB / 1.58 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000458/1.935, allocations: 360.8 kB / 1.58 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=37): time 1.884e-06/1.935, allocations: 4 kB / 1.58 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37): time 0.001312/1.937, allocations: 0.7981 MB / 1.581 GB, free: 146.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/1.937, allocations: 239.5 kB / 1.581 GB, free: 146.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007257/1.938, allocations: 0.8243 MB / 1.582 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.944e-05/1.938, allocations: 41.69 kB / 1.582 GB, free: 145.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/1.938, allocations: 444.3 kB / 1.583 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.303e-05/1.938, allocations: 126.3 kB / 1.583 GB, free: 145 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/1.938, allocations: 12 kB / 1.583 GB, free: 145 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.22e-05/1.938, allocations: 329.9 kB / 1.583 GB, free: 144.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/1.938, allocations: 225.1 kB / 1.583 GB, free: 144.4 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/1.939, allocations: 436.8 kB / 1.584 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007032/1.94, allocations: 0.5745 MB / 1.584 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/1.94, allocations: 0 / 1.584 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001086/1.941, allocations: 0.7996 MB / 1.585 GB, free: 142.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.925e-05/1.941, allocations: 202.2 kB / 1.585 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/1.941, allocations: 0 / 1.585 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/1.941, allocations: 8 kB / 1.585 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009503/1.942, allocations: 187.7 kB / 1.585 GB, free: 142.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006163/1.942, allocations: 1.785 MB / 1.587 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006925/1.943, allocations: 131.8 kB / 1.587 GB, free: 140.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/1.943, allocations: 32 kB / 1.587 GB, free: 140 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.065e-06/1.943, allocations: 4 kB / 1.587 GB, free: 140 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001004/1.944, allocations: 0.713 MB / 1.588 GB, free: 139.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/1.944, allocations: 7.938 kB / 1.588 GB, free: 139.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.5e-06/1.944, allocations: 8 kB / 1.588 GB, free: 139.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/1.945, allocations: 131.8 kB / 1.588 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/1.945, allocations: 4 kB / 1.588 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/1.945, allocations: 127.4 kB / 1.588 GB, free: 139 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/1.945, allocations: 28 kB / 1.588 GB, free: 139 MB / 0.8698 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.0003693/1.946, allocations: 350.5 kB / 1.589 GB, free: 138.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.503e-05/1.946, allocations: 94.86 kB / 1.589 GB, free: 138.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/1.947, allocations: 0.7514 MB / 1.589 GB, free: 137.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/1.947, allocations: 8 kB / 1.589 GB, free: 137.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.947, allocations: 0 / 1.589 GB, free: 137.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/1.947, allocations: 3.984 kB / 1.589 GB, free: 137.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/1.949, allocations: 1.611 MB / 1.591 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/1.949, allocations: 4.125 kB / 1.591 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/1.949, allocations: 99.83 kB / 1.591 GB, free: 136 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/1.949, allocations: 0 / 1.591 GB, free: 136 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/1.949, allocations: 15.98 kB / 1.591 GB, free: 136 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004689/1.95, allocations: 1.774 MB / 1.593 GB, free: 134.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.95, allocations: 7.969 kB / 1.593 GB, free: 134.1 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/1.951, allocations: 1.224 MB / 1.594 GB, free: 132.9 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/1.951, allocations: 235.8 kB / 1.594 GB, free: 132.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.924e-05/1.951, allocations: 11.94 kB / 1.594 GB, free: 132.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005245/1.952, allocations: 75.98 kB / 1.594 GB, free: 132.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/1.952, allocations: 51.81 kB / 1.594 GB, free: 132.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.843e-05/1.952, allocations: 23.98 kB / 1.594 GB, free: 132.5 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0005246/1.953, allocations: 0.5588 MB / 1.595 GB, free: 131.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.953, allocations: 0 / 1.595 GB, free: 131.9 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001325/1.954, allocations: 0.4992 MB / 1.595 GB, free: 131.4 MB / 0.8698 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.0007683/1.955, allocations: 491.2 kB / 1.596 GB, free: 130.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001863/1.957, allocations: 1.055 MB / 1.597 GB, free: 129.8 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/1.957, allocations: 0 / 1.597 GB, free: 129.8 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005256/1.957, allocations: 372.1 kB / 1.597 GB, free: 129.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/1.959, allocations: 366.2 kB / 1.598 GB, free: 129.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/1.961, allocations: 1.724 MB / 1.599 GB, free: 127.3 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/1.962, allocations: 0.9977 MB / 1.6 GB, free: 126.3 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000521/1.962, allocations: 149.9 kB / 1.6 GB, free: 126.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/1.962, allocations: 67.41 kB / 1.601 GB, free: 126.1 MB / 0.8698 GB Notification: Performance of SimCode: time 2.31e-07/1.962, allocations: 4 kB / 1.601 GB, free: 126.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.02979/1.992, allocations: 17.38 MB / 1.618 GB, free: 108.9 MB / 0.8698 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)