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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.024/4.024, allocations: 433 MB / 440.3 MB, free: 4.824 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5149/4.539, allocations: 104.3 MB / 0.5319 GB, free: 13.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/4.823, allocations: 98.74 MB / 0.6283 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2756/5.099, allocations: 123.9 MB / 0.7493 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/5.099, allocations: 79.59 kB / 0.7494 GB, free: 13.66 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.005807/5.105, allocations: 1.174 MB / 0.7505 GB, free: 12.43 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/5.105, allocations: 12 kB / 0.7505 GB, free: 12.42 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/5.105, allocations: 7.844 kB / 0.7505 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/5.106, allocations: 202.8 kB / 0.7507 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/5.106, allocations: 0 / 0.7507 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/5.106, allocations: 8 kB / 0.7507 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000148/5.106, allocations: 24 kB / 0.7507 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/5.106, allocations: 61.58 kB / 0.7508 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/5.106, allocations: 0 / 0.7508 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/5.106, allocations: 0 / 0.7508 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/5.106, allocations: 4 kB / 0.7508 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008286/5.107, allocations: 317.2 kB / 0.7511 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/5.107, allocations: 34.56 kB / 0.7511 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.652e-05/5.107, allocations: 12.86 kB / 0.7512 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/5.107, allocations: 8 kB / 0.7512 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/5.107, allocations: 34.59 kB / 0.7512 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.304e-06/5.107, allocations: 0 / 0.7512 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0003063/5.108, allocations: 65.67 kB / 0.7513 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/5.108, allocations: 55.41 kB / 0.7513 GB, free: 11.48 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/5.108, allocations: 101 kB / 0.7514 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/5.108, allocations: 29.7 kB / 0.7514 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.149e-05/5.108, allocations: 92.03 kB / 0.7515 GB, free: 11.25 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/5.108, allocations: 11.84 kB / 0.7515 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-06/5.108, allocations: 0 / 0.7515 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001788/5.108, allocations: 314.8 kB / 0.7518 GB, free: 10.92 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.74e-05/5.108, allocations: 8 kB / 0.7518 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.351e-05/5.108, allocations: 23.92 kB / 0.7519 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.519e-05/5.108, allocations: 12 kB / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/5.108, allocations: 0 / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001914/5.108, allocations: 65.61 kB / 0.7519 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/5.109, allocations: 4 kB / 0.7519 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/5.109, allocations: 0 / 0.7519 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/5.109, allocations: 3.906 kB / 0.7519 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/5.109, allocations: 23.98 kB / 0.752 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/5.109, allocations: 0 / 0.752 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/5.109, allocations: 19.98 kB / 0.752 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/5.109, allocations: 7.984 kB / 0.752 GB, free: 10.75 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.938e-05/5.109, allocations: 101 kB / 0.7521 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.202e-05/5.109, allocations: 7.906 kB / 0.7521 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/5.109, allocations: 69.67 kB / 0.7522 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/5.109, allocations: 11.88 kB / 0.7522 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/5.109, allocations: 0 / 0.7522 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/5.11, allocations: 0 / 0.7522 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/5.11, allocations: 158.1 kB / 0.7523 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/5.11, allocations: 0 / 0.7523 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/5.11, allocations: 23.98 kB / 0.7523 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/5.11, allocations: 0 / 0.7523 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/5.11, allocations: 0 / 0.7523 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/5.11, allocations: 4 kB / 0.7524 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/5.11, allocations: 0 / 0.7524 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002239/5.11, allocations: 159.4 kB / 0.7525 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003745/5.111, allocations: 0.5271 MB / 0.753 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/5.111, allocations: 81.02 kB / 0.7531 GB, free: 9.508 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/5.111, allocations: 4 kB / 0.7531 GB, free: 9.504 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/5.111, allocations: 19.98 kB / 0.7531 GB, free: 9.484 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/5.111, allocations: 3.984 kB / 0.7531 GB, free: 9.48 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/5.111, allocations: 4 kB / 0.7531 GB, free: 9.477 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.001e-05/5.111, allocations: 83.28 kB / 0.7532 GB, free: 9.395 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00201/5.113, allocations: 19.84 kB / 0.7532 GB, free: 9.375 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.000283/5.113, allocations: 107.2 kB / 0.7533 GB, free: 9.262 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002589/5.114, allocations: 28 kB / 0.7534 GB, free: 9.234 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/5.114, allocations: 0 / 0.7534 GB, free: 9.234 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/5.114, allocations: 24.36 kB / 0.7534 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/5.114, allocations: 3.984 kB / 0.7534 GB, free: 9.207 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006179/5.115, allocations: 91.81 kB / 0.7535 GB, free: 9.09 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006611/5.116, allocations: 0.7071 MB / 0.7542 GB, free: 8.359 MB / 0.6355 GB Notification: Performance of SimCode: time 2.314e-06/5.116, allocations: 0 / 0.7542 GB, free: 8.359 MB / 0.6355 GB