Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_5_0_1_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.954/4.954, allocations: 404.2 MB / 411.3 MB, free: 416 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.912e-05, allocations: 4 kB / 0.4945 GB, free: 1.312 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6883/0.6884, allocations: 92.69 MB / 0.585 GB, free: 2.312 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2575/0.946, allocations: 119.6 MB / 0.7019 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003856/0.9464, allocations: 71.95 kB / 0.7019 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.007113/0.9536, allocations: 1.104 MB / 0.703 GB, free: 9.363 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.763e-06/0.9536, allocations: 3.938 kB / 0.703 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.704e-05/0.9537, allocations: 4 kB / 0.703 GB, free: 9.355 MB / 0.5886 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.0008725/0.9545, allocations: 374.4 kB / 0.7034 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.599e-05/0.9546, allocations: 12.03 kB / 0.7034 GB, free: 8.934 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.46e-05/0.9547, allocations: 3.953 kB / 0.7034 GB, free: 8.93 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.955, allocations: 194.8 kB / 0.7036 GB, free: 8.699 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.9551, allocations: 0 / 0.7036 GB, free: 8.699 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.9551, allocations: 4 kB / 0.7036 GB, free: 8.695 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002196/0.9554, allocations: 27.98 kB / 0.7036 GB, free: 8.668 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.9556, allocations: 57.67 kB / 0.7037 GB, free: 8.605 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.9556, allocations: 3.984 kB / 0.7037 GB, free: 8.602 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.9557, allocations: 7.938 kB / 0.7037 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.9557, allocations: 3.953 kB / 0.7037 GB, free: 8.59 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.9568, allocations: 309.3 kB / 0.704 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.957, allocations: 30.58 kB / 0.704 GB, free: 8.211 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.9571, allocations: 16.95 kB / 0.704 GB, free: 8.191 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 5.734e-05/0.9572, allocations: 7.938 kB / 0.704 GB, free: 8.184 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.9572, allocations: 38.59 kB / 0.7041 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 2.595e-06/0.9573, allocations: 0 / 0.7041 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.000406/0.9577, allocations: 57.69 kB / 0.7041 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.9577, allocations: 51.41 kB / 0.7042 GB, free: 8.012 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.9579, allocations: 101 kB / 0.7043 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.958, allocations: 25.7 kB / 0.7043 GB, free: 7.875 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 9.267e-05/0.9581, allocations: 100 kB / 0.7044 GB, free: 7.773 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.245e-05/0.9581, allocations: 7.844 kB / 0.7044 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.033e-05/0.9581, allocations: 0 / 0.7044 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001829/0.9583, allocations: 322.8 kB / 0.7047 GB, free: 7.441 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.916e-05/0.9584, allocations: 8 kB / 0.7047 GB, free: 7.434 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.442e-05/0.9585, allocations: 12 kB / 0.7047 GB, free: 7.422 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.9586, allocations: 11.98 kB / 0.7047 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.9587, allocations: 0 / 0.7047 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003047/0.959, allocations: 65.53 kB / 0.7048 GB, free: 7.34 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.959, allocations: 7.938 kB / 0.7048 GB, free: 7.332 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.9591, allocations: 0 / 0.7048 GB, free: 7.332 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.9591, allocations: 7.953 kB / 0.7048 GB, free: 7.324 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.9594, allocations: 19.98 kB / 0.7048 GB, free: 7.305 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.9595, allocations: 11.97 kB / 0.7048 GB, free: 7.293 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.9597, allocations: 11.98 kB / 0.7048 GB, free: 7.281 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.9598, allocations: 7.938 kB / 0.7049 GB, free: 7.273 MB / 0.5886 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 0.0001096/0.9599, allocations: 101 kB / 0.7049 GB, free: 7.168 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003186/0.9603, allocations: 65.53 kB / 0.705 GB, free: 7.098 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.498e-05/0.9603, allocations: 3.953 kB / 0.705 GB, free: 7.094 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003501/0.9607, allocations: 78.02 kB / 0.7051 GB, free: 7.008 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.9607, allocations: 3.984 kB / 0.7051 GB, free: 7.004 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.9608, allocations: 0 / 0.7051 GB, free: 7.004 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.9608, allocations: 0 / 0.7051 GB, free: 7.004 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/0.9612, allocations: 150.2 kB / 0.7052 GB, free: 6.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.9612, allocations: 0 / 0.7052 GB, free: 6.82 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.9615, allocations: 23.97 kB / 0.7053 GB, free: 6.797 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.9615, allocations: 0 / 0.7053 GB, free: 6.797 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.9616, allocations: 4 kB / 0.7053 GB, free: 6.793 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.9616, allocations: 3.953 kB / 0.7053 GB, free: 6.789 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.9616, allocations: 288 / 0.7053 GB, free: 6.789 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003583/0.962, allocations: 159.4 kB / 0.7054 GB, free: 6.617 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-05/0.9621, allocations: 81.09 kB / 0.7055 GB, free: 6.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.9621, allocations: 4 kB / 0.7055 GB, free: 6.516 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.9625, allocations: 19.98 kB / 0.7055 GB, free: 6.496 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.893e-05/0.9626, allocations: 7.953 kB / 0.7055 GB, free: 6.488 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.9626, allocations: 3.984 kB / 0.7055 GB, free: 6.484 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 9.299e-05/0.9627, allocations: 87.72 kB / 0.7056 GB, free: 6.398 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.61e-07/0.9627, allocations: 0 / 0.7056 GB, free: 6.398 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0006712/0.9634, allocations: 15.91 kB / 0.7056 GB, free: 6.383 MB / 0.5886 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.0008466/0.9643, allocations: 0.6889 MB / 0.7063 GB, free: 5.668 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002193/0.9645, allocations: 39.86 kB / 0.7063 GB, free: 5.629 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.9645, allocations: 0 / 0.7063 GB, free: 5.629 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.795e-05/0.9647, allocations: 12 kB / 0.7063 GB, free: 5.617 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.9651, allocations: 17.58 kB / 0.7064 GB, free: 5.602 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000861/0.966, allocations: 123.9 kB / 0.7065 GB, free: 5.441 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.9664, allocations: 0.7005 MB / 0.7072 GB, free: 4.715 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001135/0.9666, allocations: 4 kB / 0.7072 GB, free: 4.711 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.488e-05/0.9667, allocations: 15.42 kB / 0.7072 GB, free: 4.695 MB / 0.5886 GB Notification: Performance of SimCode: time 1.102e-06/0.9667, allocations: 0 / 0.7072 GB, free: 4.695 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08065/1.047, allocations: 1.133 MB / 0.7083 GB, free: 3.574 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003303/1.048, allocations: 134.5 kB / 0.7084 GB, free: 3.379 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.681/3.728, allocations: 0 / 0.7084 GB, free: 3.379 MB / 0.5886 GB