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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.792/1.792, allocations: 288.2 MB / 303.2 MB, free: 8.172 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.00129/0.001291, allocations: 182.5 kB / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.083/2.083, allocations: 205.4 MB / 0.6305 GB, free: 9.988 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.0009859/0.0009856, allocations: 101.7 kB / 0.7439 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004153/0.0004156, allocations: 11.69 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2611, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.081/1.342, allocations: 402.7 MB / 1.373 GB, free: 9.938 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/1.343, allocations: 103.3 kB / 1.373 GB, free: 9.879 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.091/2.433, allocations: 302.2 MB / 1.668 GB, free: 117.3 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.304e-06/2.433, allocations: 4 kB / 1.668 GB, free: 117.3 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 6.801e-05/2.434, allocations: 20.22 kB / 1.668 GB, free: 117.3 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.002483/2.436, allocations: 1.415 MB / 1.669 GB, free: 115.8 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/2.436, allocations: 8.031 kB / 1.669 GB, free: 115.8 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/2.436, allocations: 98.52 kB / 1.669 GB, free: 115.7 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/2.436, allocations: 122.5 kB / 1.67 GB, free: 115.6 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/2.438, allocations: 0.6795 MB / 1.67 GB, free: 114.9 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/2.438, allocations: 45.31 kB / 1.67 GB, free: 114.9 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.052e-05/2.438, allocations: 71.94 kB / 1.67 GB, free: 114.8 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009707/2.439, allocations: 0.6819 MB / 1.671 GB, free: 114.1 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/2.439, allocations: 7.938 kB / 1.671 GB, free: 114.1 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.338e-05/2.439, allocations: 20 kB / 1.671 GB, free: 114 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/2.439, allocations: 23.95 kB / 1.671 GB, free: 114 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000741/2.44, allocations: 468.9 kB / 1.672 GB, free: 113.6 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.003427/2.443, allocations: 2.608 MB / 1.674 GB, free: 110.8 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007401/2.444, allocations: 413.2 kB / 1.674 GB, free: 110.4 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003148/2.444, allocations: 340.4 kB / 1.675 GB, free: 110 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005086/2.445, allocations: 361.2 kB / 1.675 GB, free: 109.6 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 3.006e-06/2.445, allocations: 3.938 kB / 1.675 GB, free: 109.6 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.001563/2.446, allocations: 0.8732 MB / 1.676 GB, free: 108.7 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/2.446, allocations: 243.5 kB / 1.676 GB, free: 108.4 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008159/2.447, allocations: 0.722 MB / 1.677 GB, free: 107.7 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 5.909e-05/2.447, allocations: 45.7 kB / 1.677 GB, free: 107.6 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/2.447, allocations: 448.8 kB / 1.677 GB, free: 107.2 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 8.778e-05/2.447, allocations: 118.3 kB / 1.678 GB, free: 107 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/2.448, allocations: 15.94 kB / 1.678 GB, free: 107 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.687e-05/2.448, allocations: 325.9 kB / 1.678 GB, free: 106.7 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/2.448, allocations: 229.1 kB / 1.678 GB, free: 106.5 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005234/2.449, allocations: 424.7 kB / 1.678 GB, free: 106 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/2.449, allocations: 285.8 kB / 1.679 GB, free: 105.7 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/2.449, allocations: 0 / 1.679 GB, free: 105.7 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001237/2.45, allocations: 0.8032 MB / 1.68 GB, free: 104.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003379/2.451, allocations: 1.086 MB / 1.681 GB, free: 103.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/2.451, allocations: 4 kB / 1.681 GB, free: 103.7 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/2.451, allocations: 4 kB / 1.681 GB, free: 103.7 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009384/2.452, allocations: 163.7 kB / 1.681 GB, free: 103.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007704/2.452, allocations: 1.777 MB / 1.682 GB, free: 101.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008983/2.453, allocations: 135.5 kB / 1.683 GB, free: 101.6 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.579e-05/2.453, allocations: 35.94 kB / 1.683 GB, free: 101.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/2.453, allocations: 5.25 kB / 1.683 GB, free: 101.5 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001077/2.454, allocations: 0.7089 MB / 1.683 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/2.454, allocations: 4 kB / 1.683 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.354e-06/2.454, allocations: 8 kB / 1.683 GB, free: 100.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005238/2.455, allocations: 128.1 kB / 1.683 GB, free: 100.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/2.455, allocations: 11.94 kB / 1.683 GB, free: 100.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007573/2.456, allocations: 119.4 kB / 1.684 GB, free: 100.6 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-05/2.456, allocations: 35.98 kB / 1.684 GB, free: 100.5 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.0004725/2.456, allocations: 350.6 kB / 1.684 GB, free: 100.2 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/2.456, allocations: 98.83 kB / 1.684 GB, free: 100.1 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/2.458, allocations: 0.7514 MB / 1.685 GB, free: 99.29 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/2.458, allocations: 4 kB / 1.685 GB, free: 99.29 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/2.458, allocations: 0 / 1.685 GB, free: 99.29 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/2.458, allocations: 11.98 kB / 1.685 GB, free: 99.28 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/2.46, allocations: 1.618 MB / 1.686 GB, free: 97.59 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/2.46, allocations: 0 / 1.686 GB, free: 97.59 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000424/2.46, allocations: 99.81 kB / 1.686 GB, free: 97.49 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/2.46, allocations: 4 kB / 1.686 GB, free: 97.48 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/2.46, allocations: 12 kB / 1.686 GB, free: 97.47 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006125/2.461, allocations: 1.77 MB / 1.688 GB, free: 95.63 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/2.461, allocations: 288 / 1.688 GB, free: 95.63 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/2.463, allocations: 1.286 MB / 1.689 GB, free: 94.29 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000448/2.463, allocations: 231.8 kB / 1.69 GB, free: 94.05 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/2.463, allocations: 16 kB / 1.69 GB, free: 94.03 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005924/2.464, allocations: 75.89 kB / 1.69 GB, free: 93.96 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/2.464, allocations: 43.92 kB / 1.69 GB, free: 93.91 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/2.464, allocations: 20 kB / 1.69 GB, free: 93.89 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0006234/2.465, allocations: 0.5627 MB / 1.69 GB, free: 93.32 MB / 0.9323 GB Notification: Performance of sort global known variables: time 3.2e-07/2.465, allocations: 0 / 1.69 GB, free: 93.32 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.001754/2.466, allocations: 0.4953 MB / 1.691 GB, free: 92.82 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.00283/2.469, allocations: 2.388 MB / 1.693 GB, free: 90.39 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.002326/2.472, allocations: 1.028 MB / 1.694 GB, free: 89.34 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/2.472, allocations: 0 / 1.694 GB, free: 89.34 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0006219/2.472, allocations: 375.3 kB / 1.695 GB, free: 88.96 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/2.474, allocations: 374.8 kB / 1.695 GB, free: 88.6 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00464/2.479, allocations: 3.874 MB / 1.699 GB, free: 84.6 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005194/2.48, allocations: 1.013 MB / 1.7 GB, free: 83.56 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0007875/2.48, allocations: 153.9 kB / 1.7 GB, free: 83.41 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004337/2.481, allocations: 339.3 kB / 1.7 GB, free: 83.07 MB / 0.9323 GB Notification: Performance of SimCode: time 1.724e-06/2.481, allocations: 0 / 1.7 GB, free: 83.07 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04264/2.524, allocations: 25.4 MB / 1.725 GB, free: 58 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001616/2.524, allocations: 274 kB / 1.725 GB, free: 57.64 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.911/5.435, allocations: 0 / 1.725 GB, free: 57.64 MB / 0.9323 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)