Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Average.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.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_Average",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.01426/0.01426, allocations: 89.92 kB / 15.04 MB, free: 6.055 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.00197/0.00197, allocations: 168.7 kB / 15.92 MB, free: 5.992 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.145/2.145, 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.421/2.421, allocations: 252.8 MB / 0.511 GB, free: 8.352 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004871/0.0004873, allocations: 11 kB / 0.6243 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2387, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003222/0.242, allocations: 1.245 MB / 0.7293 GB, free: 8.895 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0005054/0.2426, allocations: 112.5 kB / 0.7294 GB, free: 8.781 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.541e-05/0.2427, allocations: 4 kB / 0.7294 GB, free: 8.777 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.2429, allocations: 7.922 kB / 0.7294 GB, free: 8.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 5.167e-05/0.2429, allocations: 7.984 kB / 0.7294 GB, free: 8.762 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.2432, allocations: 19.97 kB / 0.7294 GB, free: 8.742 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001316/0.2433, allocations: 39.89 kB / 0.7295 GB, free: 8.703 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.2435, allocations: 27.91 kB / 0.7295 GB, free: 8.676 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 7.463e-05/0.2436, allocations: 19.92 kB / 0.7295 GB, free: 8.656 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 9.61e-05/0.2437, allocations: 23.91 kB / 0.7295 GB, free: 8.633 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.2438, allocations: 0 / 0.7295 GB, free: 8.633 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 7.284e-05/0.2438, allocations: 8 kB / 0.7295 GB, free: 8.625 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 4.737e-05/0.2439, allocations: 11.92 kB / 0.7295 GB, free: 8.613 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.654e-05/0.244, allocations: 37.7 kB / 0.7296 GB, free: 8.57 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.2441, allocations: 39.92 kB / 0.7296 GB, free: 8.531 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2442, allocations: 0 / 0.7296 GB, free: 8.531 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.903e-06/0.2442, allocations: 0 / 0.7296 GB, free: 8.531 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.2442, allocations: 0 / 0.7296 GB, free: 8.531 MB / 0.5573 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.0008958/0.2451, allocations: 379.5 kB / 0.73 GB, free: 8.113 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.2452, allocations: 8.031 kB / 0.73 GB, free: 8.105 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.491e-05/0.2453, allocations: 42.5 kB / 0.73 GB, free: 8.055 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.2453, allocations: 7.859 kB / 0.73 GB, free: 8.047 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.2456, allocations: 182.9 kB / 0.7302 GB, free: 7.828 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.2457, allocations: 11.94 kB / 0.7302 GB, free: 7.816 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/0.2457, allocations: 0 / 0.7302 GB, free: 7.816 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006292/0.2464, allocations: 97.64 kB / 0.7303 GB, free: 7.715 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2464, allocations: 0 / 0.7303 GB, free: 7.715 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.2464, allocations: 0 / 0.7303 GB, free: 7.715 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.2465, allocations: 7.938 kB / 0.7303 GB, free: 7.707 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008081/0.2473, allocations: 107.9 kB / 0.7304 GB, free: 7.602 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.2484, allocations: 328.8 kB / 0.7307 GB, free: 7.23 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003559/0.2488, allocations: 78.47 kB / 0.7308 GB, free: 7.145 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.2489, allocations: 3.984 kB / 0.7308 GB, free: 7.141 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.2489, allocations: 38.52 kB / 0.7309 GB, free: 7.094 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 2.074e-06/0.2489, allocations: 0 / 0.7309 GB, free: 7.094 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0009597/0.2499, allocations: 177.6 kB / 0.731 GB, free: 6.914 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.25, allocations: 55.34 kB / 0.7311 GB, free: 6.848 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.2501, allocations: 117.8 kB / 0.7312 GB, free: 6.723 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.2501, allocations: 25.7 kB / 0.7312 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 6.806e-05/0.2502, allocations: 104 kB / 0.7313 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.2502, allocations: 3.906 kB / 0.7313 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.2502, allocations: 4 kB / 0.7313 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.2504, allocations: 318.8 kB / 0.7316 GB, free: 6.258 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002928/0.2507, allocations: 43.97 kB / 0.7317 GB, free: 6.215 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003256/0.251, allocations: 47.95 kB / 0.7317 GB, free: 6.168 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003723/0.2514, allocations: 43.95 kB / 0.7318 GB, free: 6.125 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2514, allocations: 0 / 0.7318 GB, free: 6.125 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007839/0.2522, allocations: 121.6 kB / 0.7319 GB, free: 6 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.2523, allocations: 7.953 kB / 0.7319 GB, free: 5.992 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.2523, allocations: 4 kB / 0.7319 GB, free: 5.988 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.2523, allocations: 0 / 0.7319 GB, free: 5.988 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.2526, allocations: 35.84 kB / 0.7319 GB, free: 5.953 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2526, allocations: 0 / 0.7319 GB, free: 5.953 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.2528, allocations: 19.89 kB / 0.7319 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.98e-05/0.2529, allocations: 4 kB / 0.7319 GB, free: 5.93 MB / 0.5573 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 () * Number of clocked 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 0.0001252/0.253, allocations: 117.8 kB / 0.7321 GB, free: 5.805 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.2531, allocations: 0 / 0.7321 GB, free: 5.805 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008568/0.2539, allocations: 141.5 kB / 0.7322 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.254, allocations: 0 / 0.7322 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.254, allocations: 3.938 kB / 0.7322 GB, free: 5.652 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.254, allocations: 0 / 0.7322 GB, free: 5.652 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003293/0.2543, allocations: 173.6 kB / 0.7324 GB, free: 5.434 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2544, allocations: 0 / 0.7324 GB, free: 5.434 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.2546, allocations: 31.91 kB / 0.7324 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2546, allocations: 0 / 0.7324 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.2546, allocations: 0 / 0.7324 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.2546, allocations: 7.953 kB / 0.7324 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2546, allocations: 0 / 0.7324 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008435/0.2555, allocations: 223.4 kB / 0.7326 GB, free: 5.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.2556, allocations: 77.11 kB / 0.7327 GB, free: 5.066 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.2556, allocations: 0 / 0.7327 GB, free: 5.066 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.2559, allocations: 23.98 kB / 0.7327 GB, free: 5.043 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.256, allocations: 11.94 kB / 0.7327 GB, free: 5.031 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.256, allocations: 0 / 0.7327 GB, free: 5.031 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 8.94e-05/0.2561, allocations: 87.28 kB / 0.7328 GB, free: 4.945 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.81e-07/0.2561, allocations: 0 / 0.7328 GB, free: 4.945 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.000522/0.2566, allocations: 19.83 kB / 0.7328 GB, free: 4.926 MB / 0.5573 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 () * Number of clocked 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.001336/0.258, allocations: 0.7597 MB / 0.7336 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0007865/0.2588, allocations: 104 kB / 0.7337 GB, free: 4.039 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2588, allocations: 0 / 0.7337 GB, free: 4.039 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.2592, allocations: 55.89 kB / 0.7337 GB, free: 3.984 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.2596, allocations: 11.95 kB / 0.7337 GB, free: 3.973 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.2618, allocations: 0.5614 MB / 0.7343 GB, free: 3.363 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.2623, allocations: 0.6887 MB / 0.7349 GB, free: 2.648 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 9.76e-05/0.2624, allocations: 12.23 kB / 0.735 GB, free: 2.637 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.644e-05/0.2625, allocations: 23.44 kB / 0.735 GB, free: 2.613 MB / 0.5573 GB Notification: Performance of SimCode: time 1.122e-06/0.2625, allocations: 0 / 0.735 GB, free: 2.613 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02272/0.2852, allocations: 1.465 MB / 0.7364 GB, free: 1.258 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003382/0.2856, allocations: 175.7 kB / 0.7366 GB, free: 1.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.574/2.859, allocations: 3.938 kB / 0.7366 GB, free: 1.016 MB / 0.5573 GB