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/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.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.185/4.185, allocations: 433.2 MB / 440.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.96e-05/3.959e-05, allocations: 5.438 kB / 0.5325 GB, free: 12.69 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2187, allocations: 98.74 MB / 0.6289 GB, free: 9.137 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2244/0.4432, allocations: 124 MB / 0.7499 GB, free: 13.02 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.4435, allocations: 75.95 kB / 0.75 GB, free: 12.94 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004755/0.4483, allocations: 1.098 MB / 0.7511 GB, free: 11.84 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.395e-06/0.4484, allocations: 0 / 0.7511 GB, free: 11.84 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.4484, allocations: 0 / 0.7511 GB, free: 11.84 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.0006123/0.449, allocations: 374.4 kB / 0.7514 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.4491, allocations: 8.031 kB / 0.7515 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.4491, allocations: 11.86 kB / 0.7515 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.4494, allocations: 194.8 kB / 0.7517 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.4494, allocations: 0 / 0.7517 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.4494, allocations: 4 kB / 0.7517 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001363/0.4496, allocations: 24 kB / 0.7517 GB, free: 11.15 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.4497, allocations: 57.67 kB / 0.7517 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.4498, allocations: 4 kB / 0.7517 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.4498, allocations: 0 / 0.7517 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.4498, allocations: 4 kB / 0.7517 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007348/0.4505, allocations: 317.2 kB / 0.752 GB, free: 10.73 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.4507, allocations: 34.58 kB / 0.7521 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.62e-05/0.4507, allocations: 20.94 kB / 0.7521 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/0.4508, allocations: 0 / 0.7521 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.4508, allocations: 34.59 kB / 0.7521 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.4508, allocations: 0 / 0.7521 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.000271/0.4511, allocations: 65.64 kB / 0.7522 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.4512, allocations: 51.41 kB / 0.7522 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.5e-05/0.4513, allocations: 101 kB / 0.7523 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.4513, allocations: 33.64 kB / 0.7524 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.062e-05/0.4514, allocations: 92.05 kB / 0.7525 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.886e-05/0.4514, allocations: 19.77 kB / 0.7525 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.4514, allocations: 0 / 0.7525 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4515, allocations: 310.8 kB / 0.7528 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.459e-05/0.4516, allocations: 16 kB / 0.7528 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.81e-05/0.4517, allocations: 8 kB / 0.7528 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.113e-05/0.4517, allocations: 15.98 kB / 0.7528 GB, free: 9.879 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4518, allocations: 0 / 0.7528 GB, free: 9.879 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001733/0.4519, allocations: 61.53 kB / 0.7529 GB, free: 9.812 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.452, allocations: 8 kB / 0.7529 GB, free: 9.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.452, allocations: 3.984 kB / 0.7529 GB, free: 9.801 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.452, allocations: 0 / 0.7529 GB, free: 9.801 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.4523, allocations: 23.98 kB / 0.7529 GB, free: 9.777 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.4523, allocations: 3.953 kB / 0.7529 GB, free: 9.773 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.4525, allocations: 15.98 kB / 0.7529 GB, free: 9.758 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.4525, allocations: 0 / 0.7529 GB, free: 9.758 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 7.756e-05/0.4526, allocations: 105 kB / 0.753 GB, free: 9.648 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001836/0.4528, allocations: 57.67 kB / 0.7531 GB, free: 9.586 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.554e-05/0.4528, allocations: 7.906 kB / 0.7531 GB, free: 9.578 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.4531, allocations: 77.91 kB / 0.7532 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4531, allocations: 288 / 0.7532 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.4531, allocations: 4 kB / 0.7532 GB, free: 9.488 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.4531, allocations: 4 kB / 0.7532 GB, free: 9.484 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.4533, allocations: 150.2 kB / 0.7533 GB, free: 9.301 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4533, allocations: 3.984 kB / 0.7533 GB, free: 9.297 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.4535, allocations: 19.98 kB / 0.7533 GB, free: 9.277 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.4536, allocations: 0 / 0.7533 GB, free: 9.277 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.4536, allocations: 4 kB / 0.7533 GB, free: 9.273 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4536, allocations: 4 kB / 0.7533 GB, free: 9.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.4536, allocations: 3.953 kB / 0.7533 GB, free: 9.266 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.4538, allocations: 155.4 kB / 0.7535 GB, free: 9.098 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.766e-05/0.4539, allocations: 81.11 kB / 0.7536 GB, free: 9 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.4539, allocations: 0 / 0.7536 GB, free: 9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.4541, allocations: 19.98 kB / 0.7536 GB, free: 8.98 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.4542, allocations: 11.92 kB / 0.7536 GB, free: 8.969 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.4542, allocations: 7.953 kB / 0.7536 GB, free: 8.961 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.762e-05/0.4543, allocations: 87.28 kB / 0.7537 GB, free: 8.875 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.31e-07/0.4543, allocations: 0 / 0.7537 GB, free: 8.875 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003114/0.4546, allocations: 11.91 kB / 0.7537 GB, free: 8.863 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.0005556/0.4552, allocations: 0.6891 MB / 0.7544 GB, free: 8.148 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001484/0.4554, allocations: 35.92 kB / 0.7544 GB, free: 8.113 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4554, allocations: 0 / 0.7544 GB, free: 8.113 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.726e-05/0.4555, allocations: 12 kB / 0.7544 GB, free: 8.102 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.4557, allocations: 13.03 kB / 0.7544 GB, free: 8.09 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005288/0.4562, allocations: 125.6 kB / 0.7546 GB, free: 7.926 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.4566, allocations: 0.7002 MB / 0.7552 GB, free: 7.199 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 7.477e-05/0.4567, allocations: 7.984 kB / 0.7552 GB, free: 7.191 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.4567, allocations: 11.44 kB / 0.7553 GB, free: 7.18 MB / 0.6355 GB Notification: Performance of SimCode: time 7.82e-07/0.4567, allocations: 0 / 0.7553 GB, free: 7.18 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03911/0.4958, allocations: 1.135 MB / 0.7564 GB, free: 6.055 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003046/0.4962, allocations: 128 kB / 0.7565 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.418/2.914, allocations: 4 kB / 0.7565 GB, free: 5.859 MB / 0.6355 GB