Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.974/3.974, allocations: 432.7 MB / 444.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.075e-05/4.083e-05, allocations: 9 kB / 0.5338 GB, free: 12.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2066, allocations: 98.72 MB / 0.6302 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2238/0.4304, allocations: 124.5 MB / 0.7518 GB, free: 9.504 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/0.4308, allocations: 71.95 kB / 0.7518 GB, free: 9.434 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003481/0.4343, allocations: 0.876 MB / 0.7527 GB, free: 8.555 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4343, allocations: 0 / 0.7527 GB, free: 8.555 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.163e-06/0.4344, allocations: 0 / 0.7527 GB, free: 8.555 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006104/0.435, allocations: 358.5 kB / 0.753 GB, free: 8.16 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.435, allocations: 8.031 kB / 0.753 GB, free: 8.152 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.188e-05/0.4351, allocations: 42.5 kB / 0.7531 GB, free: 8.102 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.035e-05/0.4351, allocations: 3.906 kB / 0.7531 GB, free: 8.098 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.4353, allocations: 167 kB / 0.7532 GB, free: 7.895 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.4353, allocations: 0 / 0.7532 GB, free: 7.895 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.4353, allocations: 7.984 kB / 0.7532 GB, free: 7.887 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.4355, allocations: 49.69 kB / 0.7533 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.4355, allocations: 0 / 0.7533 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.4355, allocations: 0 / 0.7533 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.4356, allocations: 4 kB / 0.7533 GB, free: 7.828 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.721e-05/0.4357, allocations: 24 kB / 0.7533 GB, free: 7.805 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.4361, allocations: 268.8 kB / 0.7536 GB, free: 7.492 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.4363, allocations: 46.56 kB / 0.7536 GB, free: 7.438 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.777e-05/0.4363, allocations: 20.98 kB / 0.7536 GB, free: 7.414 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.4364, allocations: 4 kB / 0.7536 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.4365, allocations: 55.41 kB / 0.7537 GB, free: 7.344 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.154e-06/0.4365, allocations: 0 / 0.7537 GB, free: 7.344 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002397/0.4368, allocations: 77.48 kB / 0.7538 GB, free: 7.262 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.4368, allocations: 59.39 kB / 0.7538 GB, free: 7.191 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.382e-05/0.4369, allocations: 97 kB / 0.7539 GB, free: 7.09 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.437, allocations: 29.7 kB / 0.7539 GB, free: 7.055 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.86e-05/0.437, allocations: 84.22 kB / 0.754 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.4371, allocations: 27.72 kB / 0.7541 GB, free: 6.941 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.003e-05/0.4371, allocations: 0 / 0.7541 GB, free: 6.941 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.4372, allocations: 318.8 kB / 0.7544 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.227e-05/0.4373, allocations: 8 kB / 0.7544 GB, free: 6.613 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.381e-05/0.4373, allocations: 35.44 kB / 0.7544 GB, free: 6.566 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.032e-05/0.4374, allocations: 27.97 kB / 0.7544 GB, free: 6.539 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4374, allocations: 0 / 0.7544 GB, free: 6.539 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001732/0.4376, allocations: 73.53 kB / 0.7545 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.4376, allocations: 7.938 kB / 0.7545 GB, free: 6.453 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.4377, allocations: 3.938 kB / 0.7545 GB, free: 6.449 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4377, allocations: 4 kB / 0.7545 GB, free: 6.445 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.4378, allocations: 15.98 kB / 0.7545 GB, free: 6.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.4379, allocations: 8.047 kB / 0.7545 GB, free: 6.422 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.438, allocations: 15.98 kB / 0.7546 GB, free: 6.406 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.438, allocations: 4 kB / 0.7546 GB, free: 6.402 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.659e-05/0.4381, allocations: 101 kB / 0.7547 GB, free: 6.297 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.4381, allocations: 4 kB / 0.7547 GB, free: 6.293 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/0.4384, allocations: 86.23 kB / 0.7547 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.4384, allocations: 0 / 0.7547 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4384, allocations: 0 / 0.7547 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.4384, allocations: 7.953 kB / 0.7547 GB, free: 6.191 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004164/0.4388, allocations: 326.9 kB / 0.7551 GB, free: 5.816 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4388, allocations: 0 / 0.7551 GB, free: 5.816 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.439, allocations: 23.98 kB / 0.7551 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.439, allocations: 0 / 0.7551 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.439, allocations: 0 / 0.7551 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/0.439, allocations: 3.953 kB / 0.7551 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.439, allocations: 0 / 0.7551 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/0.4393, allocations: 167.5 kB / 0.7552 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.586e-05/0.4393, allocations: 85 kB / 0.7553 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.4393, allocations: 0 / 0.7553 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.4395, allocations: 15.98 kB / 0.7553 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.4396, allocations: 7.953 kB / 0.7553 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.4396, allocations: 0 / 0.7553 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.489e-05/0.4397, allocations: 91.28 kB / 0.7554 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.11e-07/0.4397, allocations: 0 / 0.7554 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00032/0.44, allocations: 11.98 kB / 0.7554 GB, free: 5.383 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000514/0.4405, allocations: 0.6968 MB / 0.7561 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001591/0.4407, allocations: 47.86 kB / 0.7562 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4407, allocations: 0 / 0.7562 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.059e-05/0.4408, allocations: 20 kB / 0.7562 GB, free: 4.594 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.4411, allocations: 11.89 kB / 0.7562 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004808/0.4416, allocations: 114.5 kB / 0.7563 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.4418, allocations: 0.6809 MB / 0.757 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.742e-05/0.4419, allocations: 8.359 kB / 0.757 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.183e-05/0.442, allocations: 19.44 kB / 0.757 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of SimCode: time 7.41e-07/0.442, allocations: 0 / 0.757 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01975/0.4617, allocations: 1.322 MB / 0.7583 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002993/0.4621, allocations: 154.1 kB / 0.7584 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/2.63, allocations: 3.938 kB / 0.7584 GB, free: 2.223 MB / 0.6355 GB