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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.511/1.511, allocations: 251.9 MB / 266.9 MB, free: 11 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.001193/0.001193, allocations: 181.7 kB / 326.5 MB, free: 2.223 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.203/2.203, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.001041/0.001041, allocations: 94.34 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003531, allocations: 10.53 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2481, allocations: 106.3 MB / 0.9002 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.013/1.261, allocations: 395.1 MB / 1.286 GB, free: 4.23 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004357/1.261, allocations: 97.48 kB / 1.286 GB, free: 4.18 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.062/2.324, allocations: 294.1 MB / 1.573 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.134e-06/2.324, allocations: 0 / 1.573 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000106/2.324, allocations: 31.98 kB / 1.573 GB, free: 180.6 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.002902/2.327, allocations: 1.403 MB / 1.575 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/2.327, allocations: 12.03 kB / 1.575 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002094/2.327, allocations: 102.5 kB / 1.575 GB, free: 179 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00029/2.327, allocations: 126.7 kB / 1.575 GB, free: 178.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/2.329, allocations: 0.6727 MB / 1.576 GB, free: 178.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/2.329, allocations: 53.31 kB / 1.576 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/2.329, allocations: 68 kB / 1.576 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009684/2.33, allocations: 0.678 MB / 1.576 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/2.33, allocations: 4 kB / 1.576 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/2.33, allocations: 35.83 kB / 1.576 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/2.33, allocations: 12 kB / 1.576 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007732/2.331, allocations: 468.9 kB / 1.577 GB, free: 176.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.003106/2.334, allocations: 2.596 MB / 1.579 GB, free: 174.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006758/2.334, allocations: 418.8 kB / 1.58 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002035/2.335, allocations: 340.4 kB / 1.58 GB, free: 173.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004405/2.335, allocations: 353.2 kB / 1.58 GB, free: 172.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 1.964e-06/2.335, allocations: 0 / 1.58 GB, free: 172.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.001329/2.336, allocations: 0.8772 MB / 1.581 GB, free: 172 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/2.336, allocations: 239.8 kB / 1.582 GB, free: 171.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006474/2.337, allocations: 0.7295 MB / 1.582 GB, free: 171 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/2.337, allocations: 37.7 kB / 1.582 GB, free: 170.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/2.337, allocations: 448.3 kB / 1.583 GB, free: 170.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.903e-05/2.337, allocations: 114.4 kB / 1.583 GB, free: 170.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/2.338, allocations: 15.94 kB / 1.583 GB, free: 170.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 5.783e-05/2.338, allocations: 329.9 kB / 1.583 GB, free: 170 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/2.338, allocations: 229.6 kB / 1.583 GB, free: 169.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/2.338, allocations: 424.7 kB / 1.584 GB, free: 169.3 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/2.339, allocations: 293.7 kB / 1.584 GB, free: 169 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/2.339, allocations: 0 / 1.584 GB, free: 169 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001081/2.34, allocations: 0.7993 MB / 1.585 GB, free: 168.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001733/2.34, allocations: 1.09 MB / 1.586 GB, free: 167 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/2.34, allocations: 0 / 1.586 GB, free: 167 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/2.34, allocations: 8 kB / 1.586 GB, free: 167 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008167/2.341, allocations: 151.8 kB / 1.586 GB, free: 166.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006121/2.342, allocations: 1.777 MB / 1.588 GB, free: 165 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007333/2.342, allocations: 139.4 kB / 1.588 GB, free: 164.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/2.342, allocations: 31.98 kB / 1.588 GB, free: 164.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.113e-06/2.342, allocations: 4 kB / 1.588 GB, free: 164.8 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001007/2.343, allocations: 0.7049 MB / 1.589 GB, free: 164.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/2.343, allocations: 4 kB / 1.589 GB, free: 164.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.4e-06/2.343, allocations: 4 kB / 1.589 GB, free: 164.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/2.344, allocations: 140.1 kB / 1.589 GB, free: 164 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/2.344, allocations: 15.92 kB / 1.589 GB, free: 164 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005819/2.345, allocations: 111.5 kB / 1.589 GB, free: 163.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.537e-05/2.345, allocations: 35.98 kB / 1.589 GB, free: 163.8 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.0002943/2.345, allocations: 342.7 kB / 1.589 GB, free: 163.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-05/2.345, allocations: 102.7 kB / 1.589 GB, free: 163.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/2.346, allocations: 0.7434 MB / 1.59 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/2.346, allocations: 7.984 kB / 1.59 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/2.346, allocations: 4 kB / 1.59 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/2.346, allocations: 0 / 1.59 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/2.348, allocations: 1.615 MB / 1.592 GB, free: 160.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/2.348, allocations: 0 / 1.592 GB, free: 160.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/2.348, allocations: 107.8 kB / 1.592 GB, free: 160.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/2.348, allocations: 8.125 kB / 1.592 GB, free: 160.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/2.348, allocations: 15.98 kB / 1.592 GB, free: 160.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004349/2.349, allocations: 1.77 MB / 1.594 GB, free: 158.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/2.349, allocations: 4.031 kB / 1.594 GB, free: 158.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/2.35, allocations: 1.27 MB / 1.595 GB, free: 157.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/2.351, allocations: 235.7 kB / 1.595 GB, free: 157.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/2.351, allocations: 16 kB / 1.595 GB, free: 157.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005438/2.351, allocations: 75.89 kB / 1.595 GB, free: 157.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/2.351, allocations: 51.92 kB / 1.595 GB, free: 157.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/2.351, allocations: 23.98 kB / 1.595 GB, free: 157.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0005003/2.352, allocations: 0.5588 MB / 1.596 GB, free: 156.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/2.352, allocations: 0 / 1.596 GB, free: 156.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001265/2.353, allocations: 499.2 kB / 1.596 GB, free: 156.1 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.002099/2.355, allocations: 2.379 MB / 1.599 GB, free: 153.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00163/2.357, allocations: 1.016 MB / 1.6 GB, free: 152.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/2.357, allocations: 0 / 1.6 GB, free: 152.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005011/2.357, allocations: 368.1 kB / 1.6 GB, free: 152.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/2.359, allocations: 366.6 kB / 1.6 GB, free: 151.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/2.363, allocations: 3.896 MB / 1.604 GB, free: 147.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/2.363, allocations: 1.013 MB / 1.605 GB, free: 146.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006638/2.364, allocations: 146 kB / 1.605 GB, free: 146.7 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003978/2.364, allocations: 351 kB / 1.606 GB, free: 146.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.703e-06/2.364, allocations: 0 / 1.606 GB, free: 146.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04225/2.407, allocations: 25.34 MB / 1.63 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/2.407, allocations: 278.6 kB / 1.631 GB, free: 121 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.042/5.449, allocations: 0 / 1.631 GB, free: 121 MB / 0.8855 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)