Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.986/3.986, allocations: 433.2 MB / 440.7 MB, free: 4.574 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.367e-05/2.383e-05, allocations: 3.25 kB / 0.5325 GB, free: 12.72 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2206, allocations: 98.74 MB / 0.6289 GB, free: 9.082 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2286/0.4492, allocations: 125.2 MB / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/0.4496, allocations: 95.92 kB / 0.7512 GB, free: 11.65 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006091/0.4558, allocations: 1.438 MB / 0.7526 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4558, allocations: 0 / 0.7526 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.054e-06/0.4558, allocations: 4 kB / 0.7526 GB, free: 10.2 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005544/0.4564, allocations: 374.3 kB / 0.753 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.4565, allocations: 12.03 kB / 0.753 GB, free: 9.781 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.121e-05/0.4565, allocations: 11.86 kB / 0.753 GB, free: 9.77 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.4567, allocations: 171 kB / 0.7532 GB, free: 9.562 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.4567, allocations: 0 / 0.7532 GB, free: 9.562 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.4568, allocations: 4 kB / 0.7532 GB, free: 9.559 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001327/0.4569, allocations: 35.94 kB / 0.7532 GB, free: 9.523 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.4571, allocations: 75.39 kB / 0.7533 GB, free: 9.438 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.4571, allocations: 3.938 kB / 0.7533 GB, free: 9.434 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.4571, allocations: 0 / 0.7533 GB, free: 9.434 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.4572, allocations: 3.953 kB / 0.7533 GB, free: 9.43 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.4578, allocations: 309.2 kB / 0.7536 GB, free: 9.09 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001107/0.4579, allocations: 34.58 kB / 0.7536 GB, free: 9.047 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.015e-05/0.458, allocations: 20.86 kB / 0.7537 GB, free: 9.023 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.458, allocations: 0 / 0.7537 GB, free: 9.023 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.458, allocations: 42.52 kB / 0.7537 GB, free: 8.973 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.633e-06/0.4581, allocations: 0 / 0.7537 GB, free: 8.973 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.000223/0.4583, allocations: 61.72 kB / 0.7538 GB, free: 8.906 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.4583, allocations: 81.09 kB / 0.7538 GB, free: 8.809 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.4585, allocations: 109.3 kB / 0.7539 GB, free: 8.691 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.4585, allocations: 25.7 kB / 0.754 GB, free: 8.66 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.429e-05/0.4586, allocations: 104 kB / 0.7541 GB, free: 8.555 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/0.4586, allocations: 11.91 kB / 0.7541 GB, free: 8.543 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.4586, allocations: 0 / 0.7541 GB, free: 8.543 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4588, allocations: 322.8 kB / 0.7544 GB, free: 8.219 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.23e-05/0.4588, allocations: 12 kB / 0.7544 GB, free: 8.207 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.43e-05/0.4589, allocations: 29.66 kB / 0.7544 GB, free: 8.172 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.026e-05/0.459, allocations: 15.98 kB / 0.7544 GB, free: 8.156 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.459, allocations: 0 / 0.7544 GB, free: 8.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001714/0.4592, allocations: 73.53 kB / 0.7545 GB, free: 8.078 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.4593, allocations: 4 kB / 0.7545 GB, free: 8.074 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.4593, allocations: 48 / 0.7545 GB, free: 8.074 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.4593, allocations: 7.938 kB / 0.7545 GB, free: 8.066 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.4595, allocations: 16.02 kB / 0.7545 GB, free: 8.051 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.4595, allocations: 0 / 0.7545 GB, free: 8.051 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.4596, allocations: 15.98 kB / 0.7545 GB, free: 8.035 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.4597, allocations: 0 / 0.7545 GB, free: 8.035 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.643e-05/0.4598, allocations: 105 kB / 0.7546 GB, free: 7.926 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001586/0.4599, allocations: 65.59 kB / 0.7547 GB, free: 7.855 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.95e-05/0.46, allocations: 15.86 kB / 0.7547 GB, free: 7.84 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.782e-05/0.46, allocations: 8.344 kB / 0.7547 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.4601, allocations: 0 / 0.7547 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4601, allocations: 192 / 0.7547 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.4601, allocations: 7.984 kB / 0.7547 GB, free: 7.824 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.4603, allocations: 162.1 kB / 0.7549 GB, free: 7.629 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4603, allocations: 4 kB / 0.7549 GB, free: 7.625 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.4605, allocations: 11.98 kB / 0.7549 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.4605, allocations: 0 / 0.7549 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.4605, allocations: 4 kB / 0.7549 GB, free: 7.609 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.4605, allocations: 3.953 kB / 0.7549 GB, free: 7.605 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4605, allocations: 3.938 kB / 0.7549 GB, free: 7.602 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.4607, allocations: 155.4 kB / 0.7551 GB, free: 7.434 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.209e-05/0.4608, allocations: 85.02 kB / 0.7552 GB, free: 7.332 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.053e-05/0.4608, allocations: 4 kB / 0.7552 GB, free: 7.328 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.461, allocations: 19.98 kB / 0.7552 GB, free: 7.309 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.163e-05/0.4611, allocations: 11.94 kB / 0.7552 GB, free: 7.297 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.687e-06/0.4611, allocations: 0 / 0.7552 GB, free: 7.297 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.84e-05/0.4612, allocations: 99.27 kB / 0.7553 GB, free: 7.199 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.71e-07/0.4612, allocations: 0 / 0.7553 GB, free: 7.199 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000316/0.4615, allocations: 12 kB / 0.7553 GB, free: 7.188 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005275/0.4621, allocations: 0.7006 MB / 0.756 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.00016/0.4622, allocations: 32 kB / 0.756 GB, free: 6.426 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4623, allocations: 3.938 kB / 0.756 GB, free: 6.422 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.382e-05/0.4623, allocations: 19.92 kB / 0.756 GB, free: 6.402 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.4626, allocations: 8.641 kB / 0.756 GB, free: 6.395 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005447/0.4631, allocations: 125.5 kB / 0.7562 GB, free: 6.234 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.4634, allocations: 0.6963 MB / 0.7568 GB, free: 5.512 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 7.029e-05/0.4635, allocations: 8.219 kB / 0.7568 GB, free: 5.504 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.678e-05/0.4636, allocations: 23.42 kB / 0.7569 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of SimCode: time 7.11e-07/0.4636, allocations: 0 / 0.7569 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03711/0.5007, allocations: 1.366 MB / 0.7582 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/0.501, allocations: 174.1 kB / 0.7584 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.281/2.782, allocations: 0 / 0.7584 GB, free: 3.938 MB / 0.6355 GB