Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.6/1.6, allocations: 289.7 MB / 302.2 MB, free: 2.203 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.0009601/0.0009601, allocations: 181.9 kB / 371.6 MB, free: 3.383 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.362/1.362, allocations: 205.1 MB / 0.6309 GB, free: 11.79 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008842/0.0008842, allocations: 92.91 kB / 0.745 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.472e-05/3.475e-05, allocations: 4 kB / 0.8662 GB, free: 15.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2411, allocations: 116.3 MB / 0.9798 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9387/1.18, allocations: 403.6 MB / 1.374 GB, free: 9.27 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/1.18, allocations: 93.62 kB / 1.374 GB, free: 9.223 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.1/2.28, allocations: 301.3 MB / 1.668 GB, free: 96.62 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.623e-06/2.28, allocations: 0 / 1.668 GB, free: 96.62 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.308e-05/2.281, allocations: 27.94 kB / 1.668 GB, free: 96.6 MB / 0.948 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.002055/2.283, allocations: 1.241 MB / 1.67 GB, free: 95.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/2.283, allocations: 8.031 kB / 1.67 GB, free: 95.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/2.283, allocations: 114.7 kB / 1.67 GB, free: 95.18 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/2.284, allocations: 0.6671 MB / 1.67 GB, free: 94.48 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/2.284, allocations: 49.31 kB / 1.67 GB, free: 94.43 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-05/2.284, allocations: 64 kB / 1.67 GB, free: 94.37 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008532/2.285, allocations: 0.6508 MB / 1.671 GB, free: 93.68 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/2.285, allocations: 11.86 kB / 1.671 GB, free: 93.66 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.329e-05/2.285, allocations: 24 kB / 1.671 GB, free: 93.64 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/2.285, allocations: 16 kB / 1.671 GB, free: 93.62 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005954/2.286, allocations: 433 kB / 1.672 GB, free: 93.2 MB / 0.948 GB Warning: The model contains alias variables with conflicting start and/or 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.00296/2.289, allocations: 2.6 MB / 1.674 GB, free: 90.46 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004527/2.289, allocations: 343.1 kB / 1.674 GB, free: 90.12 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/2.289, allocations: 184.8 kB / 1.675 GB, free: 89.94 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002496/2.29, allocations: 352.4 kB / 1.675 GB, free: 89.52 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003696/2.29, allocations: 329.7 kB / 1.675 GB, free: 89.16 MB / 0.948 GB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/2.29, allocations: 0 / 1.675 GB, free: 89.16 MB / 0.948 GB Notification: Performance of matching and sorting (n=37): time 0.0008641/2.291, allocations: 0.5667 MB / 1.676 GB, free: 88.58 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/2.291, allocations: 243.6 kB / 1.676 GB, free: 88.29 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006872/2.292, allocations: 0.7143 MB / 1.677 GB, free: 87.55 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 4.834e-05/2.292, allocations: 37.7 kB / 1.677 GB, free: 87.51 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/2.292, allocations: 448.3 kB / 1.677 GB, free: 87.07 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 7.301e-05/2.292, allocations: 110.5 kB / 1.677 GB, free: 86.96 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.963e-05/2.292, allocations: 12.55 kB / 1.677 GB, free: 86.95 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.467e-05/2.292, allocations: 329.9 kB / 1.678 GB, free: 86.62 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002914/2.292, allocations: 197.3 kB / 1.678 GB, free: 86.43 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/2.293, allocations: 401.6 kB / 1.678 GB, free: 85.96 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/2.293, allocations: 262.1 kB / 1.678 GB, free: 85.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/2.293, allocations: 3.938 kB / 1.678 GB, free: 85.69 MB / 0.948 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.000934/2.294, allocations: 0.7447 MB / 1.679 GB, free: 84.93 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001967/2.294, allocations: 1.078 MB / 1.68 GB, free: 83.77 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/2.294, allocations: 4 kB / 1.68 GB, free: 83.76 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/2.294, allocations: 11.94 kB / 1.68 GB, free: 83.75 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008847/2.295, allocations: 159.8 kB / 1.68 GB, free: 83.59 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006388/2.296, allocations: 1.782 MB / 1.682 GB, free: 81.74 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007447/2.297, allocations: 131.3 kB / 1.682 GB, free: 81.61 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.069e-05/2.297, allocations: 35.94 kB / 1.682 GB, free: 81.58 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/2.297, allocations: 5.562 kB / 1.682 GB, free: 81.57 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008727/2.298, allocations: 0.6465 MB / 1.683 GB, free: 80.92 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/2.298, allocations: 0 / 1.683 GB, free: 80.92 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.193e-06/2.298, allocations: 8 kB / 1.683 GB, free: 80.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/2.298, allocations: 131.8 kB / 1.683 GB, free: 80.79 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/2.298, allocations: 15.92 kB / 1.683 GB, free: 80.77 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006218/2.299, allocations: 127.7 kB / 1.683 GB, free: 80.64 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.167e-05/2.299, allocations: 31.98 kB / 1.683 GB, free: 80.61 MB / 0.948 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 () * 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.0001595/2.299, allocations: 167.6 kB / 1.683 GB, free: 80.44 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/2.299, allocations: 102.7 kB / 1.683 GB, free: 80.34 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/2.3, allocations: 0.6964 MB / 1.684 GB, free: 79.62 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/2.3, allocations: 8 kB / 1.684 GB, free: 79.61 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/2.3, allocations: 7.938 kB / 1.684 GB, free: 79.61 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/2.3, allocations: 3.984 kB / 1.684 GB, free: 79.6 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/2.302, allocations: 1.559 MB / 1.686 GB, free: 77.97 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/2.302, allocations: 0 / 1.686 GB, free: 77.97 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/2.302, allocations: 99.98 kB / 1.686 GB, free: 77.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/2.302, allocations: 7.938 kB / 1.686 GB, free: 77.87 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.723e-05/2.302, allocations: 19.98 kB / 1.686 GB, free: 77.85 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004976/2.303, allocations: 1.766 MB / 1.688 GB, free: 76.01 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/2.303, allocations: 32 / 1.688 GB, free: 76.01 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/2.304, allocations: 1.203 MB / 1.689 GB, free: 74.75 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002836/2.304, allocations: 235.8 kB / 1.689 GB, free: 74.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/2.305, allocations: 15.95 kB / 1.689 GB, free: 74.48 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005701/2.305, allocations: 71.91 kB / 1.689 GB, free: 74.41 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/2.305, allocations: 51.92 kB / 1.689 GB, free: 74.36 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/2.305, allocations: 23.98 kB / 1.689 GB, free: 74.34 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0005926/2.306, allocations: 0.5513 MB / 1.69 GB, free: 73.77 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.41e-07/2.306, allocations: 0 / 1.69 GB, free: 73.77 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001466/2.307, allocations: 0.4915 MB / 1.69 GB, free: 73.28 MB / 0.948 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) * 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.0009054/2.308, allocations: 482.4 kB / 1.691 GB, free: 72.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001566/2.31, allocations: 0.9777 MB / 1.692 GB, free: 71.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/2.31, allocations: 3.938 kB / 1.692 GB, free: 71.79 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004442/2.31, allocations: 336.7 kB / 1.692 GB, free: 71.45 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/2.312, allocations: 361.3 kB / 1.692 GB, free: 71.1 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/2.314, allocations: 1.064 MB / 1.693 GB, free: 70 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/2.314, allocations: 1.024 MB / 1.694 GB, free: 68.95 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0007574/2.315, allocations: 221 kB / 1.694 GB, free: 68.73 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/2.315, allocations: 55.42 kB / 1.695 GB, free: 68.67 MB / 0.948 GB Notification: Performance of SimCode: time 5.01e-07/2.315, allocations: 0 / 1.695 GB, free: 68.67 MB / 0.948 GB Notification: Performance of Templates: time 0.02568/2.341, allocations: 19.08 MB / 1.713 GB, free: 49.72 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)