Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.0109/0.0109, allocations: 107.9 kB / 15.06 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00123/0.00123, allocations: 179.4 kB / 15.95 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.181/2.181, allocations: 194.5 MB / 211.2 MB, free: 11.07 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.506/2.506, allocations: 236.1 MB / 492.6 MB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 16 kB / 0.587 GB, free: 2.07 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8766/0.8781, allocations: 98.71 MB / 0.6834 GB, free: 16.87 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.0336/0.9117, allocations: 19.54 MB / 0.7025 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.02013/0.9319, allocations: 8.555 MB / 0.7109 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.9337, allocations: 32 kB / 0.7109 GB, free: 12.85 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.9364, allocations: 0.5129 MB / 0.7114 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.005552/0.942, allocations: 1.084 MB / 0.7125 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.01217/0.9542, allocations: 2.423 MB / 0.7148 GB, free: 9.93 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003991/0.9582, allocations: 1.216 MB / 0.716 GB, free: 9.145 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001635/0.9599, allocations: 0.5738 MB / 0.7166 GB, free: 8.781 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002383/0.9623, allocations: 0.6435 MB / 0.7172 GB, free: 8.395 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001626/0.9639, allocations: 0.5011 MB / 0.7177 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002561/0.9642, allocations: 30.34 kB / 0.7177 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003172/0.9674, allocations: 0.8914 MB / 0.7186 GB, free: 7.645 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0004507/0.9679, allocations: 165 kB / 0.7187 GB, free: 7.523 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0005433/0.9684, allocations: 187.9 kB / 0.7189 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.002824/0.9713, allocations: 1.002 MB / 0.7199 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.9713, allocations: 0 / 0.7199 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.184e-06/0.9713, allocations: 0 / 0.7199 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.587e-05/0.9714, allocations: 0.875 kB / 0.7199 GB, free: 6.77 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003472/0.9749, allocations: 1.221 MB / 0.7211 GB, free: 5.789 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.9749, allocations: 13.75 kB / 0.7211 GB, free: 5.785 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002064/0.9751, allocations: 97.25 kB / 0.7212 GB, free: 5.699 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002834/0.9754, allocations: 112 kB / 0.7213 GB, free: 5.645 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.9772, allocations: 0.6238 MB / 0.7219 GB, free: 5.145 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.204e-05/0.9773, allocations: 50.41 kB / 0.722 GB, free: 5.121 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001827/0.9775, allocations: 56.56 kB / 0.722 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.9792, allocations: 0.6335 MB / 0.7226 GB, free: 4.695 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.9793, allocations: 1.094 kB / 0.7226 GB, free: 4.695 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.029e-05/0.9794, allocations: 22.66 kB / 0.7227 GB, free: 4.68 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.9794, allocations: 13.47 kB / 0.7227 GB, free: 4.68 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.9809, allocations: 430.1 kB / 0.7231 GB, free: 4.484 MB / 0.5417 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.006469/0.9874, allocations: 2.332 MB / 0.7254 GB, free: 2.527 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.9887, allocations: 344 kB / 0.7257 GB, free: 2.367 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004213/0.9891, allocations: 342.3 kB / 0.726 GB, free: 1.977 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009467/0.9901, allocations: 322.1 kB / 0.7263 GB, free: 1.738 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=35): time 3.096e-06/0.9901, allocations: 5.031 kB / 0.7263 GB, free: 1.734 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35): time 0.002176/0.9923, allocations: 0.6824 MB / 0.727 GB, free: 1.305 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.9925, allocations: 247.3 kB / 0.7272 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.9942, allocations: 0.8188 MB / 0.728 GB, free: 168 kB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001707/0.9944, allocations: 41.64 kB / 0.7281 GB, free: 120 kB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005413/0.995, allocations: 424.5 kB / 0.7285 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.9952, allocations: 114.4 kB / 0.7286 GB, free: 15.58 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.9952, allocations: 12 kB / 0.7286 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.9954, allocations: 330 kB / 0.7289 GB, free: 15.24 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006778/0.9961, allocations: 189 kB / 0.7291 GB, free: 15.05 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008273/0.997, allocations: 333.4 kB / 0.7294 GB, free: 14.68 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007727/0.9977, allocations: 243.7 kB / 0.7296 GB, free: 14.43 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.9978, allocations: 0 / 0.7296 GB, free: 14.43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002115/0.9999, allocations: 0.6549 MB / 0.7303 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004876/1, allocations: 0.9141 MB / 0.7312 GB, free: 12.78 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/1, allocations: 4 kB / 0.7312 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/1, allocations: 8 kB / 0.7312 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/1.002, allocations: 179.8 kB / 0.7314 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/1.004, allocations: 1.774 MB / 0.7331 GB, free: 10.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/1.005, allocations: 115.4 kB / 0.7332 GB, free: 10.63 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/1.006, allocations: 23.98 kB / 0.7332 GB, free: 10.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/1.006, allocations: 4 kB / 0.7332 GB, free: 10.61 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001758/1.007, allocations: 0.5605 MB / 0.7338 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/1.007, allocations: 4 kB / 0.7338 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/1.007, allocations: 4.281 kB / 0.7338 GB, free: 10.03 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009602/1.008, allocations: 131.8 kB / 0.7339 GB, free: 9.902 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/1.008, allocations: 4 kB / 0.7339 GB, free: 9.898 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/1.01, allocations: 99.47 kB / 0.734 GB, free: 9.801 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.519e-05/1.01, allocations: 20 kB / 0.734 GB, free: 9.781 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 11 ($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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * 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.0006689/1.01, allocations: 338.6 kB / 0.7343 GB, free: 9.434 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/1.011, allocations: 102.8 kB / 0.7344 GB, free: 9.332 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/1.013, allocations: 0.5742 MB / 0.735 GB, free: 8.746 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/1.013, allocations: 8.062 kB / 0.735 GB, free: 8.738 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.013, allocations: 0 / 0.735 GB, free: 8.738 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/1.013, allocations: 7.984 kB / 0.735 GB, free: 8.73 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/1.016, allocations: 1.183 MB / 0.7362 GB, free: 7.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/1.016, allocations: 4 kB / 0.7362 GB, free: 7.477 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007294/1.016, allocations: 83.88 kB / 0.7363 GB, free: 7.395 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/1.016, allocations: 4 kB / 0.7363 GB, free: 7.391 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.291e-05/1.017, allocations: 11.98 kB / 0.7363 GB, free: 7.379 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/1.018, allocations: 1.766 MB / 0.738 GB, free: 5.543 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.018, allocations: 0 / 0.738 GB, free: 5.543 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/1.02, allocations: 0.9076 MB / 0.7389 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005686/1.021, allocations: 207.9 kB / 0.7391 GB, free: 4.371 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/1.021, allocations: 16 kB / 0.7391 GB, free: 4.355 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009619/1.022, allocations: 59.95 kB / 0.7392 GB, free: 4.297 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/1.022, allocations: 39.92 kB / 0.7392 GB, free: 4.258 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.496e-05/1.022, allocations: 16 kB / 0.7392 GB, free: 4.242 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001217/1.023, allocations: 0.5503 MB / 0.7397 GB, free: 3.68 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.21e-07/1.024, allocations: 3.938 kB / 0.7398 GB, free: 3.676 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002294/1.026, allocations: 451.1 kB / 0.7402 GB, free: 3.234 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 28 * 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.003833/1.03, allocations: 1.793 MB / 0.7419 GB, free: 1.402 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003723/1.033, allocations: 0.9888 MB / 0.7429 GB, free: 400 kB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/1.034, allocations: 0 / 0.7429 GB, free: 400 kB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001087/1.035, allocations: 332.4 kB / 0.7432 GB, free: 56 kB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003668/1.038, allocations: 367.2 kB / 0.7436 GB, free: 15.69 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006621/1.045, allocations: 3.513 MB / 0.747 GB, free: 12.07 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008288/1.046, allocations: 0.9972 MB / 0.748 GB, free: 11.05 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00115/1.047, allocations: 149.9 kB / 0.7481 GB, free: 10.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007233/1.048, allocations: 331.3 kB / 0.7484 GB, free: 10.58 MB / 0.573 GB Notification: Performance of SimCode: time 1.142e-06/1.048, allocations: 0 / 0.7484 GB, free: 10.58 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1021/1.15, allocations: 22.97 MB / 0.7709 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004404/1.15, allocations: 257.9 kB / 0.7711 GB, free: 3.59 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.732/4.882, allocations: 4 kB / 0.7711 GB, free: 3.586 MB / 0.5886 GB