Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002035/0.002036, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.951/2.951, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.038/5.038, allocations: 409.2 MB / 0.6838 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0008526/0.0008529, allocations: 12 kB / 0.8375 GB, free: 6.559 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.584/1.585, allocations: 146.8 MB / 0.9809 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.03562/1.621, allocations: 19.58 MB / 1 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01558/1.637, allocations: 5.652 MB / 1.006 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002383/1.639, allocations: 23.81 kB / 1.006 GB, free: 12.95 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002121/1.641, allocations: 350.3 kB / 1.006 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.007187/1.649, allocations: 1.136 MB / 1.007 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006031/1.655, allocations: 1.08 MB / 1.008 GB, free: 10.4 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004572/1.659, allocations: 1.211 MB / 1.009 GB, free: 9.188 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002225/1.661, allocations: 0.5884 MB / 1.01 GB, free: 8.586 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002986/1.665, allocations: 0.6541 MB / 1.01 GB, free: 7.93 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001606/1.666, allocations: 0.5096 MB / 1.011 GB, free: 7.418 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001792/1.666, allocations: 36 kB / 1.011 GB, free: 7.383 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00342/1.67, allocations: 0.8971 MB / 1.012 GB, free: 6.484 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0004834/1.67, allocations: 167.2 kB / 1.012 GB, free: 6.32 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0005921/1.671, allocations: 201.1 kB / 1.012 GB, free: 6.117 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.003013/1.674, allocations: 1.025 MB / 1.013 GB, free: 5.09 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/1.674, allocations: 4 kB / 1.013 GB, free: 5.086 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.787e-06/1.674, allocations: 0 / 1.013 GB, free: 5.086 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.659e-05/1.674, allocations: 0 / 1.013 GB, free: 5.086 MB / 0.7637 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.003893/1.678, allocations: 1.247 MB / 1.014 GB, free: 3.777 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 9.168e-05/1.678, allocations: 8.031 kB / 1.014 GB, free: 3.77 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002361/1.678, allocations: 98.45 kB / 1.015 GB, free: 3.664 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/1.679, allocations: 110.7 kB / 1.015 GB, free: 3.555 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/1.681, allocations: 0.6485 MB / 1.015 GB, free: 2.867 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/1.681, allocations: 49.25 kB / 1.015 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/1.681, allocations: 71.84 kB / 1.015 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/1.683, allocations: 0.6663 MB / 1.016 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/1.683, allocations: 3.938 kB / 1.016 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.217e-05/1.683, allocations: 24 kB / 1.016 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/1.683, allocations: 12 kB / 1.016 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005312/1.688, allocations: 456.9 kB / 1.016 GB, free: 1.559 MB / 0.7637 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.006321/1.695, allocations: 2.53 MB / 1.019 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/1.696, allocations: 376.1 kB / 1.019 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005273/1.696, allocations: 340.4 kB / 1.02 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009281/1.697, allocations: 333.5 kB / 1.02 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=37): time 3.557e-06/1.697, allocations: 0 / 1.02 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=37): time 0.00225/1.7, allocations: 0.7755 MB / 1.021 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/1.7, allocations: 251.3 kB / 1.021 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/1.701, allocations: 0.8366 MB / 1.022 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.000188/1.702, allocations: 41.7 kB / 1.022 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005946/1.702, allocations: 432.4 kB / 1.022 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/1.702, allocations: 122.8 kB / 1.022 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/1.702, allocations: 12 kB / 1.022 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002045/1.703, allocations: 326 kB / 1.023 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005928/1.703, allocations: 209 kB / 1.023 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007932/1.704, allocations: 359.6 kB / 1.023 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00071/1.705, allocations: 255.6 kB / 1.023 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/1.705, allocations: 8 kB / 1.023 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002012/1.707, allocations: 0.7254 MB / 1.024 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007052/1.708, allocations: 1.083 MB / 1.025 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/1.708, allocations: 15.92 kB / 1.025 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/1.708, allocations: 4 kB / 1.025 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/1.709, allocations: 179.7 kB / 1.025 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/1.711, allocations: 1.774 MB / 1.027 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/1.712, allocations: 111.4 kB / 1.027 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/1.712, allocations: 27.94 kB / 1.027 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/1.712, allocations: 4.094 kB / 1.027 GB, free: 5.895 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005915/1.718, allocations: 0.6464 MB / 1.028 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.718, allocations: 0 / 1.028 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/1.718, allocations: 8 kB / 1.028 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007819/1.719, allocations: 128.1 kB / 1.028 GB, free: 5.109 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/1.719, allocations: 15.98 kB / 1.028 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/1.72, allocations: 107.3 kB / 1.028 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.6e-05/1.72, allocations: 20 kB / 1.028 GB, free: 4.969 MB / 0.7794 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.0008145/1.721, allocations: 351.5 kB / 1.029 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/1.721, allocations: 90.88 kB / 1.029 GB, free: 4.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/1.723, allocations: 0.679 MB / 1.029 GB, free: 3.824 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/1.723, allocations: 4 kB / 1.029 GB, free: 3.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/1.723, allocations: 7.938 kB / 1.029 GB, free: 3.812 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/1.723, allocations: 3.984 kB / 1.029 GB, free: 3.809 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003441/1.727, allocations: 1.52 MB / 1.031 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/1.727, allocations: 0 / 1.031 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006325/1.727, allocations: 91.88 kB / 1.031 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/1.727, allocations: 4 kB / 1.031 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.198e-05/1.728, allocations: 20.11 kB / 1.031 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/1.729, allocations: 1.766 MB / 1.033 GB, free: 276 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.729, allocations: 4.031 kB / 1.033 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/1.731, allocations: 1.166 MB / 1.034 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006073/1.732, allocations: 231.8 kB / 1.034 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/1.732, allocations: 12 kB / 1.034 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008567/1.733, allocations: 59.94 kB / 1.034 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/1.733, allocations: 43.92 kB / 1.034 GB, free: 14.69 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.511e-05/1.733, allocations: 20 kB / 1.034 GB, free: 14.67 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001172/1.735, allocations: 0.5709 MB / 1.035 GB, free: 14.09 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.3e-07/1.735, allocations: 3.938 kB / 1.035 GB, free: 14.08 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.006428/1.741, allocations: 459.1 kB / 1.035 GB, free: 13.63 MB / 0.795 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.004298/1.745, allocations: 2.218 MB / 1.037 GB, free: 11.37 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003435/1.749, allocations: 1.024 MB / 1.038 GB, free: 10.32 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/1.749, allocations: 4 kB / 1.038 GB, free: 10.32 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0009727/1.75, allocations: 352.1 kB / 1.039 GB, free: 9.961 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/1.753, allocations: 364.4 kB / 1.039 GB, free: 9.605 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/1.764, allocations: 3.928 MB / 1.043 GB, free: 5.562 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/1.766, allocations: 1.021 MB / 1.044 GB, free: 4.516 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001503/1.767, allocations: 154 kB / 1.044 GB, free: 4.363 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007443/1.768, allocations: 335.3 kB / 1.044 GB, free: 4.035 MB / 0.795 GB Notification: Performance of SimCode: time 1.663e-06/1.768, allocations: 0 / 1.044 GB, free: 4.035 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1885/1.956, allocations: 23.18 MB / 1.067 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004639/1.957, allocations: 268.5 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.238/7.195, allocations: 0 / 1.067 GB, free: 12.9 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: