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.575/1.575, allocations: 249.3 MB / 261.8 MB, free: 5.805 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 182.1 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.723/1.723, allocations: 205.2 MB / 0.572 GB, free: 10.64 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.0009766/0.0009766, allocations: 94.52 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.986e-05/3.997e-05, allocations: 4 kB / 0.788 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2354, allocations: 106.3 MB / 0.8919 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.663/1.898, allocations: 395 MB / 1.278 GB, free: 317.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003718/1.899, allocations: 96.41 kB / 1.278 GB, free: 317.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5869/2.486, allocations: 293.3 MB / 1.564 GB, free: 47.22 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.543e-06/2.486, allocations: 0 / 1.564 GB, free: 47.22 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.059e-05/2.486, allocations: 32.14 kB / 1.564 GB, free: 47.19 MB / 0.8698 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.002304/2.488, allocations: 1.232 MB / 1.565 GB, free: 45.91 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/2.488, allocations: 8.031 kB / 1.565 GB, free: 45.9 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/2.488, allocations: 106.5 kB / 1.566 GB, free: 45.79 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002101/2.489, allocations: 114.7 kB / 1.566 GB, free: 45.67 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/2.49, allocations: 0.6717 MB / 1.566 GB, free: 44.95 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.182e-05/2.49, allocations: 53.31 kB / 1.566 GB, free: 44.9 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/2.49, allocations: 64 kB / 1.566 GB, free: 44.84 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/2.491, allocations: 0.6508 MB / 1.567 GB, free: 44.15 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/2.491, allocations: 0 / 1.567 GB, free: 44.15 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.48e-05/2.491, allocations: 27.95 kB / 1.567 GB, free: 44.12 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/2.491, allocations: 12 kB / 1.567 GB, free: 44.11 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006539/2.492, allocations: 429 kB / 1.567 GB, free: 43.69 MB / 0.8698 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.003375/2.495, allocations: 2.588 MB / 1.57 GB, free: 40.96 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004761/2.496, allocations: 342.1 kB / 1.57 GB, free: 40.62 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002378/2.496, allocations: 188.7 kB / 1.571 GB, free: 40.43 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002746/2.496, allocations: 348.4 kB / 1.571 GB, free: 40.02 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004479/2.497, allocations: 333.2 kB / 1.571 GB, free: 39.66 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=37): time 2.084e-06/2.497, allocations: 0 / 1.571 GB, free: 39.66 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37): time 0.001011/2.498, allocations: 0.5611 MB / 1.572 GB, free: 39.09 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.423e-05/2.498, allocations: 239.6 kB / 1.572 GB, free: 38.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007579/2.499, allocations: 0.7142 MB / 1.573 GB, free: 38.06 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.76e-05/2.499, allocations: 49.75 kB / 1.573 GB, free: 38 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/2.499, allocations: 436.4 kB / 1.573 GB, free: 37.57 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.642e-05/2.499, allocations: 126.3 kB / 1.573 GB, free: 37.45 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/2.499, allocations: 15.94 kB / 1.573 GB, free: 37.43 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.094e-05/2.499, allocations: 329.9 kB / 1.574 GB, free: 37.11 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/2.5, allocations: 197.3 kB / 1.574 GB, free: 36.91 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003967/2.5, allocations: 385.6 kB / 1.574 GB, free: 36.46 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/2.5, allocations: 269.7 kB / 1.574 GB, free: 36.19 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/2.5, allocations: 4 kB / 1.574 GB, free: 36.19 MB / 0.8698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001042/2.501, allocations: 0.7449 MB / 1.575 GB, free: 35.43 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003019/2.502, allocations: 1.076 MB / 1.576 GB, free: 34.27 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/2.502, allocations: 4 kB / 1.576 GB, free: 34.26 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/2.502, allocations: 11.94 kB / 1.576 GB, free: 34.25 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009175/2.503, allocations: 155.8 kB / 1.576 GB, free: 34.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000688/2.503, allocations: 1.782 MB / 1.578 GB, free: 32.25 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000864/2.504, allocations: 127.4 kB / 1.578 GB, free: 32.12 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.78e-05/2.504, allocations: 35.97 kB / 1.578 GB, free: 32.09 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.759e-06/2.504, allocations: 4 kB / 1.578 GB, free: 32.08 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009436/2.505, allocations: 0.6543 MB / 1.579 GB, free: 31.42 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/2.505, allocations: 4 kB / 1.579 GB, free: 31.42 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/2.505, allocations: 8 kB / 1.579 GB, free: 31.41 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/2.506, allocations: 131.8 kB / 1.579 GB, free: 31.28 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/2.506, allocations: 4 kB / 1.579 GB, free: 31.28 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007374/2.507, allocations: 119.6 kB / 1.579 GB, free: 31.16 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/2.507, allocations: 35.98 kB / 1.579 GB, free: 31.12 MB / 0.8698 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.0001839/2.507, allocations: 174.5 kB / 1.579 GB, free: 30.94 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/2.507, allocations: 94.83 kB / 1.579 GB, free: 30.85 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/2.508, allocations: 0.7083 MB / 1.58 GB, free: 30.12 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/2.508, allocations: 4 kB / 1.58 GB, free: 30.12 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/2.508, allocations: 0 / 1.58 GB, free: 30.12 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/2.508, allocations: 7.938 kB / 1.58 GB, free: 30.11 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/2.51, allocations: 1.559 MB / 1.582 GB, free: 28.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/2.51, allocations: 4 kB / 1.582 GB, free: 28.48 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/2.51, allocations: 95.86 kB / 1.582 GB, free: 28.38 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/2.51, allocations: 0 / 1.582 GB, free: 28.38 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.699e-05/2.511, allocations: 24.11 kB / 1.582 GB, free: 28.36 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005117/2.511, allocations: 1.766 MB / 1.583 GB, free: 26.52 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/2.511, allocations: 4.031 kB / 1.583 GB, free: 26.52 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/2.512, allocations: 1.196 MB / 1.585 GB, free: 25.27 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003904/2.513, allocations: 231.8 kB / 1.585 GB, free: 25.02 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/2.513, allocations: 12 kB / 1.585 GB, free: 25.01 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005958/2.513, allocations: 75.92 kB / 1.585 GB, free: 24.93 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/2.514, allocations: 43.94 kB / 1.585 GB, free: 24.89 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.644e-05/2.514, allocations: 27.98 kB / 1.585 GB, free: 24.86 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0006811/2.514, allocations: 0.5514 MB / 1.586 GB, free: 24.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.91e-07/2.514, allocations: 0 / 1.586 GB, free: 24.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001545/2.516, allocations: 0.4914 MB / 1.586 GB, free: 23.8 MB / 0.8698 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.002212/2.518, allocations: 2.314 MB / 1.588 GB, free: 21.43 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001746/2.52, allocations: 0.9619 MB / 1.589 GB, free: 20.45 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/2.52, allocations: 0 / 1.589 GB, free: 20.45 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004847/2.52, allocations: 335.1 kB / 1.59 GB, free: 20.11 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/2.522, allocations: 368 kB / 1.59 GB, free: 19.75 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/2.525, allocations: 1.295 MB / 1.591 GB, free: 18.4 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/2.526, allocations: 1.022 MB / 1.592 GB, free: 17.35 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0008815/2.527, allocations: 224.9 kB / 1.592 GB, free: 17.13 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003647/2.527, allocations: 327.3 kB / 1.593 GB, free: 16.81 MB / 0.8698 GB Notification: Performance of SimCode: time 1.182e-06/2.527, allocations: 0 / 1.593 GB, free: 16.81 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6258/3.153, allocations: 27.4 MB / 1.619 GB, free: 214.4 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/3.153, allocations: 241.8 kB / 1.62 GB, free: 214.1 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.233/6.386, allocations: 4 kB / 1.62 GB, free: 214.1 MB / 0.8698 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)