Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_7_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.3/package.mo): time 0.01075/0.01075, allocations: 88.5 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001202/0.001202, allocations: 174.9 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.133/2.133, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.377/2.377, allocations: 252.9 MB / 0.511 GB, free: 8.332 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004747/0.0004747, allocations: 15.56 kB / 0.6243 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2501, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.03411/0.2843, allocations: 19.84 MB / 0.7474 GB, free: 6.262 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.01992/0.3043, allocations: 8.612 MB / 0.7559 GB, free: 13.63 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.3057, allocations: 31.69 kB / 0.7559 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.3081, allocations: 0.5134 MB / 0.7564 GB, free: 13.09 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.004793/0.3129, allocations: 1.091 MB / 0.7574 GB, free: 11.99 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.3234, allocations: 2.453 MB / 0.7598 GB, free: 9.543 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.003213/0.3267, allocations: 1.207 MB / 0.761 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.3281, allocations: 0.5767 MB / 0.7616 GB, free: 7.738 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001911/0.3301, allocations: 0.6384 MB / 0.7622 GB, free: 7.098 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.3314, allocations: 0.5135 MB / 0.7627 GB, free: 6.582 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 0.0002406/0.3317, allocations: 28 kB / 0.7627 GB, free: 6.555 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.3345, allocations: 0.901 MB / 0.7636 GB, free: 5.652 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0004003/0.335, allocations: 159.3 kB / 0.7638 GB, free: 5.496 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0004249/0.3354, allocations: 197.2 kB / 0.764 GB, free: 5.297 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.002479/0.3379, allocations: 1.029 MB / 0.765 GB, free: 4.266 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.338, allocations: 0 / 0.765 GB, free: 4.266 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.725e-06/0.338, allocations: 0 / 0.765 GB, free: 4.266 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 2.289e-05/0.338, allocations: 0 / 0.765 GB, free: 4.266 MB / 0.5886 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.003253/0.3413, allocations: 1.243 MB / 0.7662 GB, free: 2.965 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.3413, allocations: 8.031 kB / 0.7662 GB, free: 2.957 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002057/0.3416, allocations: 102.5 kB / 0.7663 GB, free: 2.848 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000265/0.3418, allocations: 122.5 kB / 0.7664 GB, free: 2.727 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.3436, allocations: 0.6367 MB / 0.767 GB, free: 2.051 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.15e-05/0.3437, allocations: 53.31 kB / 0.7671 GB, free: 1.996 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/0.3439, allocations: 64 kB / 0.7671 GB, free: 1.934 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.3456, allocations: 0.6507 MB / 0.7678 GB, free: 1.242 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.3457, allocations: 4 kB / 0.7678 GB, free: 1.238 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/0.3458, allocations: 20 kB / 0.7678 GB, free: 1.219 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.3458, allocations: 19.98 kB / 0.7678 GB, free: 1.199 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.3472, allocations: 456.8 kB / 0.7682 GB, free: 0.7539 MB / 0.5886 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.005986/0.3532, allocations: 2.526 MB / 0.7707 GB, free: 14.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.3545, allocations: 366.9 kB / 0.7711 GB, free: 13.73 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004017/0.355, allocations: 336.4 kB / 0.7714 GB, free: 13.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000905/0.3559, allocations: 329.6 kB / 0.7717 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 3.126e-06/0.3559, allocations: 0 / 0.7717 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.002274/0.3582, allocations: 0.7751 MB / 0.7725 GB, free: 12.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.3584, allocations: 243.3 kB / 0.7727 GB, free: 11.88 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.36, allocations: 0.8322 MB / 0.7735 GB, free: 11.02 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.3602, allocations: 41.69 kB / 0.7735 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005089/0.3608, allocations: 432.5 kB / 0.774 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.361, allocations: 122.3 kB / 0.7741 GB, free: 10.43 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.361, allocations: 8 kB / 0.7741 GB, free: 10.42 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.3612, allocations: 333.9 kB / 0.7744 GB, free: 10.09 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007/0.3619, allocations: 201.1 kB / 0.7746 GB, free: 9.887 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008456/0.3627, allocations: 359.7 kB / 0.7749 GB, free: 9.477 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007653/0.3635, allocations: 255.6 kB / 0.7752 GB, free: 9.227 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.3636, allocations: 4 kB / 0.7752 GB, free: 9.223 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002127/0.3657, allocations: 0.7213 MB / 0.7759 GB, free: 8.488 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004529/0.3662, allocations: 1.082 MB / 0.7769 GB, free: 7.316 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.3662, allocations: 7.938 kB / 0.7769 GB, free: 7.309 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.3663, allocations: 8 kB / 0.777 GB, free: 7.301 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001941/0.3682, allocations: 179.8 kB / 0.7771 GB, free: 7.125 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.3695, allocations: 1.781 MB / 0.7789 GB, free: 5.273 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.3709, allocations: 115.4 kB / 0.779 GB, free: 5.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.3711, allocations: 32 kB / 0.779 GB, free: 5.129 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.3711, allocations: 4 kB / 0.779 GB, free: 5.125 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001928/0.3731, allocations: 0.6388 MB / 0.7796 GB, free: 4.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.3731, allocations: 4 kB / 0.7796 GB, free: 4.477 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.3731, allocations: 4 kB / 0.7796 GB, free: 4.473 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.3742, allocations: 131.8 kB / 0.7798 GB, free: 4.344 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.3742, allocations: 7.938 kB / 0.7798 GB, free: 4.336 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.3754, allocations: 99.59 kB / 0.7799 GB, free: 4.238 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.3756, allocations: 27.98 kB / 0.7799 GB, free: 4.211 MB / 0.6042 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.0006544/0.3762, allocations: 348.7 kB / 0.7802 GB, free: 3.855 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/0.3765, allocations: 94.83 kB / 0.7803 GB, free: 3.762 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002068/0.3786, allocations: 0.6786 MB / 0.781 GB, free: 3.07 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.3786, allocations: 4.094 kB / 0.781 GB, free: 3.066 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.3786, allocations: 4 kB / 0.781 GB, free: 3.062 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.3787, allocations: 11.97 kB / 0.781 GB, free: 3.051 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003408/0.3821, allocations: 1.519 MB / 0.7825 GB, free: 1.461 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.3821, allocations: 0 / 0.7825 GB, free: 1.461 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008131/0.383, allocations: 91.86 kB / 0.7826 GB, free: 1.371 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/0.383, allocations: 4 kB / 0.7826 GB, free: 1.367 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.79e-05/0.3831, allocations: 15.98 kB / 0.7826 GB, free: 1.352 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.3841, allocations: 1.766 MB / 0.7843 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3842, allocations: 4.031 kB / 0.7843 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.3868, allocations: 1.167 MB / 0.7855 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005336/0.3873, allocations: 223.8 kB / 0.7857 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.3876, allocations: 12 kB / 0.7857 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009857/0.3886, allocations: 59.91 kB / 0.7857 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.3888, allocations: 39.94 kB / 0.7858 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-05/0.3888, allocations: 23.98 kB / 0.7858 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001112/0.39, allocations: 0.5588 MB / 0.7863 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.31e-07/0.39, allocations: 3.938 kB / 0.7864 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001977/0.392, allocations: 455.1 kB / 0.7868 GB, free: 12.9 MB / 0.6198 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.003932/0.3959, allocations: 2.209 MB / 0.7889 GB, free: 10.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.003767/0.3997, allocations: 1.024 MB / 0.7899 GB, free: 9.598 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.3998, allocations: 0 / 0.7899 GB, free: 9.598 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.4009, allocations: 355.6 kB / 0.7903 GB, free: 9.238 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004457/0.4054, allocations: 382.8 kB / 0.7906 GB, free: 8.863 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009313/0.4148, allocations: 3.893 MB / 0.7944 GB, free: 4.852 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.416, allocations: 1.025 MB / 0.7954 GB, free: 3.801 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001593/0.4177, allocations: 158 kB / 0.7956 GB, free: 3.645 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009716/0.4186, allocations: 335.3 kB / 0.7959 GB, free: 3.316 MB / 0.6198 GB Notification: Performance of SimCode: time 1.342e-06/0.4187, allocations: 0 / 0.7959 GB, free: 3.316 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/0.5203, allocations: 23.25 MB / 0.8186 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003779/0.5207, allocations: 261.4 kB / 0.8189 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.109/4.63, allocations: 0 / 0.8189 GB, free: 12.02 MB / 0.6511 GB