Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.262/2.262, allocations: 251.1 MB / 266.7 MB, free: 11.66 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.001439/0.001439, allocations: 181.7 kB / 326.2 MB, free: 2.887 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.475/2.475, allocations: 205.4 MB / 0.5772 GB, free: 20.79 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.0009771/0.000977, allocations: 84.11 kB / 0.6817 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000626/0.0006263, allocations: 16.28 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2082, allocations: 106.3 MB / 0.8995 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.528, allocations: 394.9 MB / 1.285 GB, free: 7.43 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003923/1.528, allocations: 107.3 kB / 1.285 GB, free: 7.371 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.611/3.139, allocations: 292.5 MB / 1.571 GB, free: 185.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.294e-06/3.139, allocations: 3.938 kB / 1.571 GB, free: 185.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001101/3.139, allocations: 24 kB / 1.571 GB, free: 185.5 MB / 0.8855 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.004014/3.143, allocations: 1.403 MB / 1.572 GB, free: 184 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/3.143, allocations: 12.03 kB / 1.572 GB, free: 184 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004088/3.144, allocations: 119.6 kB / 1.572 GB, free: 183.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/3.146, allocations: 0.6693 MB / 1.573 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.735e-05/3.146, allocations: 53.62 kB / 1.573 GB, free: 183.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/3.146, allocations: 64.38 kB / 1.573 GB, free: 183 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/3.148, allocations: 0.6942 MB / 1.574 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/3.148, allocations: 3.938 kB / 1.574 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.629e-05/3.148, allocations: 24 kB / 1.574 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/3.148, allocations: 12 kB / 1.574 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/3.149, allocations: 476.9 kB / 1.574 GB, free: 181.8 MB / 0.8855 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.006833/3.156, allocations: 2.598 MB / 1.577 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/3.158, allocations: 425.9 kB / 1.577 GB, free: 178.6 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006406/3.158, allocations: 212.8 kB / 1.578 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003307/3.159, allocations: 352.4 kB / 1.578 GB, free: 178 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008077/3.16, allocations: 365.1 kB / 1.578 GB, free: 177.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 3.086e-06/3.16, allocations: 0 / 1.578 GB, free: 177.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.002573/3.162, allocations: 0.7863 MB / 1.579 GB, free: 176.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/3.162, allocations: 247.8 kB / 1.579 GB, free: 176.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/3.164, allocations: 0.832 MB / 1.58 GB, free: 175.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001544/3.164, allocations: 45.64 kB / 1.58 GB, free: 175.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003931/3.164, allocations: 432.4 kB / 1.58 GB, free: 175.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/3.164, allocations: 118.9 kB / 1.581 GB, free: 175.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/3.164, allocations: 8 kB / 1.581 GB, free: 175.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.071e-05/3.165, allocations: 337.9 kB / 1.581 GB, free: 174.7 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007241/3.165, allocations: 225.1 kB / 1.581 GB, free: 174.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008425/3.166, allocations: 432.6 kB / 1.582 GB, free: 174 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/3.167, allocations: 287.6 kB / 1.582 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/3.167, allocations: 4 kB / 1.582 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002222/3.169, allocations: 0.7953 MB / 1.583 GB, free: 172.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/3.169, allocations: 202.5 kB / 1.583 GB, free: 172.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/3.169, allocations: 4 kB / 1.583 GB, free: 172.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.944e-05/3.169, allocations: 4 kB / 1.583 GB, free: 172.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001948/3.171, allocations: 191.7 kB / 1.583 GB, free: 172.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009936/3.172, allocations: 1.789 MB / 1.585 GB, free: 170.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/3.174, allocations: 123.4 kB / 1.585 GB, free: 170.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001753/3.174, allocations: 31.98 kB / 1.585 GB, free: 170.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/3.174, allocations: 4 kB / 1.585 GB, free: 170.5 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00198/3.176, allocations: 0.7091 MB / 1.586 GB, free: 169.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.996e-06/3.176, allocations: 8.062 kB / 1.586 GB, free: 169.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/3.176, allocations: 4 kB / 1.586 GB, free: 169.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009893/3.177, allocations: 143.8 kB / 1.586 GB, free: 169.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/3.177, allocations: 4 kB / 1.586 GB, free: 169.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/3.179, allocations: 115.5 kB / 1.586 GB, free: 169.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.503e-05/3.179, allocations: 35.98 kB / 1.586 GB, free: 169.4 MB / 0.8855 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.0006347/3.179, allocations: 346.6 kB / 1.586 GB, free: 169.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/3.18, allocations: 98.86 kB / 1.586 GB, free: 169 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/3.182, allocations: 0.755 MB / 1.587 GB, free: 168.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/3.182, allocations: 11.92 kB / 1.587 GB, free: 168.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/3.182, allocations: 0 / 1.587 GB, free: 168.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/3.182, allocations: 4 kB / 1.587 GB, free: 168.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00335/3.185, allocations: 1.607 MB / 1.589 GB, free: 166.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.515e-06/3.185, allocations: 3.938 kB / 1.589 GB, free: 166.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000789/3.186, allocations: 103.9 kB / 1.589 GB, free: 166.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-06/3.186, allocations: 4 kB / 1.589 GB, free: 166.4 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/3.186, allocations: 15.98 kB / 1.589 GB, free: 166.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007045/3.187, allocations: 1.774 MB / 1.59 GB, free: 164.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/3.187, allocations: 0 / 1.59 GB, free: 164.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002707/3.19, allocations: 1.228 MB / 1.592 GB, free: 163.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00053/3.19, allocations: 235.7 kB / 1.592 GB, free: 163 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/3.19, allocations: 19.94 kB / 1.592 GB, free: 163 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/3.192, allocations: 71.98 kB / 1.592 GB, free: 163 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/3.192, allocations: 47.92 kB / 1.592 GB, free: 162.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.734e-05/3.192, allocations: 24 kB / 1.592 GB, free: 162.9 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0009709/3.193, allocations: 0.5627 MB / 1.593 GB, free: 162.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.11e-07/3.193, allocations: 0 / 1.593 GB, free: 162.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002051/3.195, allocations: 0.4953 MB / 1.593 GB, free: 161.8 MB / 0.8855 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.001296/3.196, allocations: 487 kB / 1.594 GB, free: 161.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003613/3.2, allocations: 1.043 MB / 1.595 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/3.2, allocations: 0 / 1.595 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001018/3.201, allocations: 375.8 kB / 1.595 GB, free: 159.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003766/3.205, allocations: 396.4 kB / 1.595 GB, free: 159.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003799/3.208, allocations: 1.709 MB / 1.597 GB, free: 157.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/3.209, allocations: 0.9973 MB / 1.598 GB, free: 156.7 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001086/3.21, allocations: 149.9 kB / 1.598 GB, free: 156.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/3.21, allocations: 71.42 kB / 1.598 GB, free: 156.5 MB / 0.8855 GB Notification: Performance of SimCode: time 1.011e-06/3.21, allocations: 0 / 1.598 GB, free: 156.5 MB / 0.8855 GB Notification: Performance of Templates: time 0.04315/3.254, allocations: 17.15 MB / 1.615 GB, free: 139.5 MB / 0.8855 GB make -j1 -f Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)