Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.878/3.878, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.796e-05/3.808e-05, allocations: 4 kB / 0.4991 GB, free: 13.35 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6209/0.6209, allocations: 92.67 MB / 0.5896 GB, free: 14.48 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2343/0.8553, allocations: 120.9 MB / 0.7077 GB, free: 5.375 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003604/0.8557, allocations: 83.95 kB / 0.7078 GB, free: 5.293 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003857/0.8595, allocations: 0.8941 MB / 0.7087 GB, free: 4.398 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.502e-06/0.8596, allocations: 4 kB / 0.7087 GB, free: 4.395 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.8596, allocations: 0 / 0.7087 GB, free: 4.395 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000579/0.8602, allocations: 354.5 kB / 0.709 GB, free: 4.004 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.8603, allocations: 8.031 kB / 0.709 GB, free: 3.996 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.595e-05/0.8603, allocations: 30.56 kB / 0.7091 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.916e-05/0.8604, allocations: 15.86 kB / 0.7091 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.8605, allocations: 167.1 kB / 0.7092 GB, free: 3.738 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.8606, allocations: 8 kB / 0.7093 GB, free: 3.73 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.8606, allocations: 0 / 0.7093 GB, free: 3.73 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.8608, allocations: 49.69 kB / 0.7093 GB, free: 3.676 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.8608, allocations: 7.875 kB / 0.7093 GB, free: 3.668 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.8608, allocations: 7.984 kB / 0.7093 GB, free: 3.66 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.8608, allocations: 0 / 0.7093 GB, free: 3.66 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.108e-05/0.8609, allocations: 23.94 kB / 0.7093 GB, free: 3.637 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005048/0.8615, allocations: 276.8 kB / 0.7096 GB, free: 3.316 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.8616, allocations: 38.58 kB / 0.7096 GB, free: 3.27 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.276e-05/0.8617, allocations: 20.92 kB / 0.7097 GB, free: 3.246 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.8617, allocations: 4 kB / 0.7097 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.8619, allocations: 63.3 kB / 0.7097 GB, free: 3.168 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 3.376e-06/0.8619, allocations: 8 kB / 0.7097 GB, free: 3.16 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002891/0.8622, allocations: 69.64 kB / 0.7098 GB, free: 3.086 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.8623, allocations: 55.41 kB / 0.7099 GB, free: 3.02 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.903e-05/0.8624, allocations: 93 kB / 0.7099 GB, free: 2.922 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.8624, allocations: 33.64 kB / 0.71 GB, free: 2.883 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.805e-05/0.8625, allocations: 88.12 kB / 0.7101 GB, free: 2.793 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.054e-05/0.8625, allocations: 11.81 kB / 0.7101 GB, free: 2.781 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.057e-05/0.8626, allocations: 4 kB / 0.7101 GB, free: 2.777 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.8627, allocations: 318.8 kB / 0.7104 GB, free: 2.457 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.59e-05/0.8628, allocations: 12 kB / 0.7104 GB, free: 2.445 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.022e-05/0.8628, allocations: 39.5 kB / 0.7104 GB, free: 2.395 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.767e-05/0.8629, allocations: 12 kB / 0.7104 GB, free: 2.383 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.8629, allocations: 0 / 0.7104 GB, free: 2.383 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000216/0.8631, allocations: 81.53 kB / 0.7105 GB, free: 2.297 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.8632, allocations: 10.33 kB / 0.7105 GB, free: 2.289 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.8632, allocations: 4 kB / 0.7105 GB, free: 2.285 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.8632, allocations: 3.953 kB / 0.7105 GB, free: 2.281 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.8634, allocations: 19.92 kB / 0.7106 GB, free: 2.262 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.8635, allocations: 0 / 0.7106 GB, free: 2.262 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.8636, allocations: 8 kB / 0.7106 GB, free: 2.254 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.8636, allocations: 12.09 kB / 0.7106 GB, free: 2.242 MB / 0.5886 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 9.306e-05/0.8637, allocations: 101 kB / 0.7107 GB, free: 2.137 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.8638, allocations: 7.984 kB / 0.7107 GB, free: 2.129 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002582/0.864, allocations: 90.45 kB / 0.7108 GB, free: 2.035 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.864, allocations: 0 / 0.7108 GB, free: 2.035 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.8641, allocations: 8.016 kB / 0.7108 GB, free: 2.027 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.8641, allocations: 3.984 kB / 0.7108 GB, free: 2.023 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004779/0.8646, allocations: 330.5 kB / 0.7111 GB, free: 1.645 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.8646, allocations: 4 kB / 0.7111 GB, free: 1.641 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.8647, allocations: 15.92 kB / 0.7111 GB, free: 1.625 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.8647, allocations: 0 / 0.7111 GB, free: 1.625 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.8648, allocations: 3.953 kB / 0.7111 GB, free: 1.621 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.8648, allocations: 0 / 0.7111 GB, free: 1.621 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.8648, allocations: 0 / 0.7111 GB, free: 1.621 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.865, allocations: 167.5 kB / 0.7113 GB, free: 1.441 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.8651, allocations: 85.02 kB / 0.7113 GB, free: 1.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.8651, allocations: 4 kB / 0.7114 GB, free: 1.336 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.8653, allocations: 15.94 kB / 0.7114 GB, free: 1.32 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.8654, allocations: 4 kB / 0.7114 GB, free: 1.316 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.8654, allocations: 4 kB / 0.7114 GB, free: 1.312 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.177e-05/0.8655, allocations: 87.27 kB / 0.7115 GB, free: 1.227 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.51e-07/0.8655, allocations: 0 / 0.7115 GB, free: 1.227 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002948/0.8658, allocations: 8 kB / 0.7115 GB, free: 1.219 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: 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.0006025/0.8664, allocations: 0.7164 MB / 0.7122 GB, free: 488 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001844/0.8666, allocations: 36 kB / 0.7122 GB, free: 452 kB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.8666, allocations: 4 kB / 0.7122 GB, free: 448 kB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.728e-05/0.8667, allocations: 24 kB / 0.7122 GB, free: 424 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.867, allocations: 12.83 kB / 0.7122 GB, free: 412 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005036/0.8675, allocations: 110.6 kB / 0.7123 GB, free: 264 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.8678, allocations: 0.6926 MB / 0.713 GB, free: 15.54 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.908e-05/0.8679, allocations: 192 / 0.713 GB, free: 15.54 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.621e-05/0.868, allocations: 11.44 kB / 0.713 GB, free: 15.52 MB / 0.6042 GB Notification: Performance of SimCode: time 2.946e-06/0.868, allocations: 0 / 0.713 GB, free: 15.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.8913, allocations: 1.336 MB / 0.7143 GB, free: 14.26 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002837/0.8916, allocations: 160.3 kB / 0.7145 GB, free: 14.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.244/3.135, allocations: 4 kB / 0.7145 GB, free: 14.03 MB / 0.6042 GB