Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.Math.Examples.Average.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.286/4.286, allocations: 432.6 MB / 445.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.674e-05/4.695e-05, allocations: 5.375 kB / 0.5383 GB, free: 10.31 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2931, allocations: 98.73 MB / 0.6347 GB, free: 1.922 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2536/0.5468, allocations: 124.6 MB / 0.7564 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004113/0.5473, allocations: 71.95 kB / 0.7565 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.007025/0.5544, allocations: 1.102 MB / 0.7576 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.776e-06/0.5544, allocations: 0 / 0.7576 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.403e-05/0.5545, allocations: 0 / 0.7576 GB, free: 3.957 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0008318/0.5553, allocations: 374.4 kB / 0.7579 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/0.5554, allocations: 8.031 kB / 0.7579 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.465e-05/0.5555, allocations: 34.56 kB / 0.7579 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.592e-05/0.5556, allocations: 7.906 kB / 0.758 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.5559, allocations: 190.8 kB / 0.7581 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.556, allocations: 7.938 kB / 0.7581 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.5561, allocations: 8 kB / 0.7582 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.5566, allocations: 61.67 kB / 0.7582 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.5567, allocations: 0 / 0.7582 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.5567, allocations: 4 kB / 0.7582 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.5568, allocations: 0 / 0.7582 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004223/0.5572, allocations: 28 kB / 0.7582 GB, free: 3.148 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.5588, allocations: 344.6 kB / 0.7586 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001514/0.559, allocations: 42.55 kB / 0.7586 GB, free: 2.711 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.96e-05/0.5591, allocations: 12.95 kB / 0.7586 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 5.25e-05/0.5592, allocations: 11.94 kB / 0.7586 GB, free: 2.684 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.5592, allocations: 34.56 kB / 0.7587 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.796e-06/0.5592, allocations: 0 / 0.7587 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002499/0.5595, allocations: 57.73 kB / 0.7587 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.5595, allocations: 55.41 kB / 0.7588 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.5597, allocations: 108.9 kB / 0.7589 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.5597, allocations: 25.7 kB / 0.7589 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.5598, allocations: 104 kB / 0.759 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.374e-05/0.5598, allocations: 11.84 kB / 0.759 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-06/0.5598, allocations: 0 / 0.759 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.56, allocations: 314.8 kB / 0.7593 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.961e-05/0.56, allocations: 12 kB / 0.7593 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.945e-05/0.5601, allocations: 15.98 kB / 0.7593 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.967e-05/0.5601, allocations: 11.94 kB / 0.7594 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5602, allocations: 0 / 0.7594 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001561/0.5603, allocations: 61.59 kB / 0.7594 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.5604, allocations: 9.5 kB / 0.7594 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.5604, allocations: 0 / 0.7594 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.5604, allocations: 4 kB / 0.7594 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.5606, allocations: 27.92 kB / 0.7595 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.5607, allocations: 0 / 0.7595 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.5608, allocations: 15.98 kB / 0.7595 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.891e-05/0.5609, allocations: 4 kB / 0.7595 GB, free: 1.77 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.162e-05/0.561, allocations: 107.6 kB / 0.7596 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.561, allocations: 0 / 0.7596 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002229/0.5612, allocations: 77.55 kB / 0.7596 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.5613, allocations: 0 / 0.7596 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.5613, allocations: 3.953 kB / 0.7597 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.5613, allocations: 3.984 kB / 0.7597 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002797/0.5616, allocations: 173.7 kB / 0.7598 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.5616, allocations: 7.984 kB / 0.7598 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.5618, allocations: 19.98 kB / 0.7598 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.5618, allocations: 4 kB / 0.7599 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.5619, allocations: 0 / 0.7599 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.5619, allocations: 0 / 0.7599 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.5619, allocations: 3.984 kB / 0.7599 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002158/0.5621, allocations: 155.4 kB / 0.76 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.06e-05/0.5622, allocations: 85.28 kB / 0.7601 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.5622, allocations: 4 kB / 0.7601 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.5624, allocations: 19.98 kB / 0.7601 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/0.5625, allocations: 7.984 kB / 0.7601 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.5625, allocations: 3.984 kB / 0.7601 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.035e-05/0.5626, allocations: 93.09 kB / 0.7602 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.11e-07/0.5626, allocations: 0 / 0.7602 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002943/0.5629, allocations: 19.89 kB / 0.7602 GB, free: 0.8984 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005438/0.5635, allocations: 0.6929 MB / 0.7609 GB, free: 184 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001534/0.5636, allocations: 31.94 kB / 0.7609 GB, free: 152 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5636, allocations: 0 / 0.7609 GB, free: 152 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.95e-05/0.5637, allocations: 19.98 kB / 0.761 GB, free: 132 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.564, allocations: 12 kB / 0.761 GB, free: 120 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005571/0.5645, allocations: 126.7 kB / 0.7611 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.5649, allocations: 0.6926 MB / 0.7618 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.79e-05/0.565, allocations: 11.98 kB / 0.7618 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.448e-05/0.565, allocations: 15.38 kB / 0.7618 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of SimCode: time 1.503e-06/0.565, allocations: 0 / 0.7618 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.592, allocations: 1.465 MB / 0.7632 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002987/0.5923, allocations: 147.8 kB / 0.7634 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.671/3.264, allocations: 3.938 kB / 0.7634 GB, free: 13.59 MB / 0.6511 GB