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.762/1.762, allocations: 288.3 MB / 303.2 MB, free: 8.141 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.001914/0.001914, allocations: 185 kB / 371.8 MB, free: 10.3 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.769/1.769, allocations: 205.4 MB / 0.6306 GB, free: 10.04 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.001183/0.001183, allocations: 101.3 kB / 0.7439 GB, free: 5.961 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004146/0.0004146, allocations: 12 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2186, allocations: 115.3 MB / 0.9794 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8625/1.081, allocations: 402.7 MB / 1.373 GB, free: 10.12 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/1.081, allocations: 93.83 kB / 1.373 GB, free: 10.07 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.134/2.215, allocations: 302.2 MB / 1.668 GB, free: 117.5 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.013e-06/2.215, allocations: 0 / 1.668 GB, free: 117.5 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 7.687e-05/2.215, allocations: 28 kB / 1.668 GB, free: 117.5 MB / 0.9323 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.002488/2.218, allocations: 1.411 MB / 1.669 GB, free: 116 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/2.218, allocations: 8.031 kB / 1.669 GB, free: 116 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/2.218, allocations: 122.5 kB / 1.669 GB, free: 115.9 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/2.219, allocations: 0.6756 MB / 1.67 GB, free: 115.1 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/2.219, allocations: 53.31 kB / 1.67 GB, free: 115.1 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.479e-05/2.219, allocations: 64 kB / 1.67 GB, free: 115 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/2.221, allocations: 0.6819 MB / 1.671 GB, free: 114.3 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/2.221, allocations: 0 / 1.671 GB, free: 114.3 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.558e-05/2.221, allocations: 24 kB / 1.671 GB, free: 114.3 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/2.221, allocations: 15.94 kB / 1.671 GB, free: 114.3 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007424/2.221, allocations: 484.8 kB / 1.671 GB, free: 113.8 MB / 0.9323 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.003154/2.225, allocations: 2.6 MB / 1.674 GB, free: 111.1 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007037/2.225, allocations: 411.4 kB / 1.674 GB, free: 110.6 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002341/2.225, allocations: 344.4 kB / 1.675 GB, free: 110.2 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004875/2.226, allocations: 365.1 kB / 1.675 GB, free: 109.8 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 2.334e-06/2.226, allocations: 0 / 1.675 GB, free: 109.8 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.001528/2.228, allocations: 0.8712 MB / 1.676 GB, free: 108.9 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/2.228, allocations: 247.5 kB / 1.676 GB, free: 108.6 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008526/2.229, allocations: 0.7218 MB / 1.677 GB, free: 107.9 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 6.973e-05/2.229, allocations: 41.69 kB / 1.677 GB, free: 107.9 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/2.229, allocations: 436.6 kB / 1.677 GB, free: 107.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/2.229, allocations: 126.3 kB / 1.677 GB, free: 107.3 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/2.229, allocations: 12 kB / 1.677 GB, free: 107.3 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.000104/2.229, allocations: 333.9 kB / 1.678 GB, free: 107 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003884/2.23, allocations: 225.1 kB / 1.678 GB, free: 106.7 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004631/2.23, allocations: 429.3 kB / 1.678 GB, free: 106.2 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/2.231, allocations: 289.8 kB / 1.679 GB, free: 105.9 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/2.231, allocations: 0 / 1.679 GB, free: 105.9 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001235/2.232, allocations: 0.7955 MB / 1.679 GB, free: 105.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002304/2.232, allocations: 1.074 MB / 1.68 GB, free: 104 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/2.232, allocations: 11.94 kB / 1.68 GB, free: 104 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/2.232, allocations: 8 kB / 1.68 GB, free: 104 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008855/2.233, allocations: 163.7 kB / 1.681 GB, free: 103.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006741/2.234, allocations: 1.781 MB / 1.682 GB, free: 101.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007804/2.234, allocations: 131.4 kB / 1.682 GB, free: 101.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.97e-05/2.234, allocations: 31.98 kB / 1.682 GB, free: 101.8 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 8.105e-06/2.235, allocations: 11.95 kB / 1.682 GB, free: 101.8 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001073/2.236, allocations: 0.7051 MB / 1.683 GB, free: 101.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/2.236, allocations: 4 kB / 1.683 GB, free: 101.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.65e-06/2.236, allocations: 4 kB / 1.683 GB, free: 101.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/2.236, allocations: 135.8 kB / 1.683 GB, free: 100.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/2.236, allocations: 8 kB / 1.683 GB, free: 100.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006454/2.237, allocations: 123.6 kB / 1.683 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.911e-05/2.237, allocations: 28 kB / 1.683 GB, free: 100.8 MB / 0.9323 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.0003924/2.237, allocations: 346.6 kB / 1.684 GB, free: 100.4 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.923e-05/2.237, allocations: 98.81 kB / 1.684 GB, free: 100.3 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/2.239, allocations: 0.7592 MB / 1.685 GB, free: 99.54 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/2.239, allocations: 8 kB / 1.685 GB, free: 99.54 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/2.239, allocations: 0 / 1.685 GB, free: 99.54 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/2.239, allocations: 3.984 kB / 1.685 GB, free: 99.53 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/2.241, allocations: 1.623 MB / 1.686 GB, free: 97.84 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/2.241, allocations: 4 kB / 1.686 GB, free: 97.83 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003923/2.241, allocations: 91.88 kB / 1.686 GB, free: 97.74 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/2.241, allocations: 0 / 1.686 GB, free: 97.74 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/2.241, allocations: 16 kB / 1.686 GB, free: 97.73 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004884/2.242, allocations: 1.77 MB / 1.688 GB, free: 95.89 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/2.242, allocations: 7.969 kB / 1.688 GB, free: 95.88 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/2.243, allocations: 1.27 MB / 1.689 GB, free: 94.55 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/2.243, allocations: 235.9 kB / 1.69 GB, free: 94.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/2.243, allocations: 15.95 kB / 1.69 GB, free: 94.29 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005625/2.244, allocations: 75.83 kB / 1.69 GB, free: 94.21 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/2.244, allocations: 51.86 kB / 1.69 GB, free: 94.16 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.851e-05/2.244, allocations: 23.98 kB / 1.69 GB, free: 94.14 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0005351/2.245, allocations: 0.5588 MB / 1.69 GB, free: 93.57 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.81e-07/2.245, allocations: 0 / 1.69 GB, free: 93.57 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.001411/2.246, allocations: 0.4992 MB / 1.691 GB, free: 93.07 MB / 0.9323 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.0007912/2.247, allocations: 494.1 kB / 1.691 GB, free: 92.59 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001714/2.249, allocations: 1.02 MB / 1.692 GB, free: 91.55 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/2.249, allocations: 4.188 kB / 1.692 GB, free: 91.55 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005187/2.249, allocations: 370.8 kB / 1.693 GB, free: 91.17 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/2.251, allocations: 359.2 kB / 1.693 GB, free: 90.82 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/2.253, allocations: 1.71 MB / 1.695 GB, free: 89.07 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/2.254, allocations: 1.025 MB / 1.696 GB, free: 88.02 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0005965/2.254, allocations: 153.9 kB / 1.696 GB, free: 87.86 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/2.254, allocations: 67.42 kB / 1.696 GB, free: 87.8 MB / 0.9323 GB Notification: Performance of SimCode: time 5.11e-07/2.254, allocations: 4 kB / 1.696 GB, free: 87.79 MB / 0.9323 GB Notification: Performance of Templates: time 0.02551/2.28, allocations: 17.05 MB / 1.712 GB, free: 70.92 MB / 0.9323 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)