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.962/3.962, allocations: 403.3 MB / 415.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.767e-05/3.767e-05, allocations: 7.938 kB / 0.4992 GB, free: 13.32 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6322/0.6323, allocations: 92.68 MB / 0.5897 GB, free: 14.34 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2451/0.8774, allocations: 121 MB / 0.7078 GB, free: 5.234 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.8778, allocations: 83.94 kB / 0.7079 GB, free: 5.152 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003884/0.8817, allocations: 0.898 MB / 0.7087 GB, free: 4.254 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8818, allocations: 0 / 0.7087 GB, free: 4.254 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.8818, allocations: 4 kB / 0.7087 GB, free: 4.25 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.0006203/0.8824, allocations: 351.2 kB / 0.7091 GB, free: 3.863 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.8825, allocations: 12.03 kB / 0.7091 GB, free: 3.852 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.285e-05/0.8825, allocations: 34.56 kB / 0.7091 GB, free: 3.809 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.8826, allocations: 15.86 kB / 0.7091 GB, free: 3.793 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.8827, allocations: 159.1 kB / 0.7093 GB, free: 3.598 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.8828, allocations: 7.984 kB / 0.7093 GB, free: 3.59 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.8828, allocations: 0 / 0.7093 GB, free: 3.59 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.883, allocations: 57.61 kB / 0.7093 GB, free: 3.527 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.883, allocations: 3.938 kB / 0.7093 GB, free: 3.523 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.883, allocations: 0 / 0.7093 GB, free: 3.523 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.883, allocations: 7.938 kB / 0.7094 GB, free: 3.516 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.276e-05/0.8831, allocations: 19.95 kB / 0.7094 GB, free: 3.496 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005376/0.8837, allocations: 276.8 kB / 0.7096 GB, free: 3.176 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.8838, allocations: 38.58 kB / 0.7097 GB, free: 3.129 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.197e-05/0.8839, allocations: 20.98 kB / 0.7097 GB, free: 3.105 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.884, allocations: 4.062 kB / 0.7097 GB, free: 3.102 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/0.8841, allocations: 71.25 kB / 0.7098 GB, free: 3.02 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.535e-06/0.8842, allocations: 0 / 0.7098 GB, free: 3.02 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002593/0.8844, allocations: 73.62 kB / 0.7098 GB, free: 2.941 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.342e-05/0.8845, allocations: 51.41 kB / 0.7099 GB, free: 2.879 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.035e-05/0.8846, allocations: 97 kB / 0.71 GB, free: 2.777 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.8846, allocations: 29.7 kB / 0.71 GB, free: 2.742 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.231e-05/0.8847, allocations: 80.14 kB / 0.7101 GB, free: 2.66 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.8847, allocations: 19.8 kB / 0.7101 GB, free: 2.641 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/0.8848, allocations: 0 / 0.7101 GB, free: 2.641 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.8849, allocations: 322.8 kB / 0.7104 GB, free: 2.316 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.177e-05/0.885, allocations: 4 kB / 0.7104 GB, free: 2.312 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-05/0.885, allocations: 47.36 kB / 0.7105 GB, free: 2.254 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.806e-05/0.8851, allocations: 12 kB / 0.7105 GB, free: 2.242 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.8851, allocations: 0 / 0.7105 GB, free: 2.242 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001858/0.8853, allocations: 77.53 kB / 0.7105 GB, free: 2.16 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.8854, allocations: 8 kB / 0.7106 GB, free: 2.152 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.8854, allocations: 0 / 0.7106 GB, free: 2.152 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.8854, allocations: 7.938 kB / 0.7106 GB, free: 2.145 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.8856, allocations: 12.36 kB / 0.7106 GB, free: 2.133 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.8856, allocations: 4 kB / 0.7106 GB, free: 2.129 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.8858, allocations: 20.06 kB / 0.7106 GB, free: 2.109 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.8858, allocations: 8 kB / 0.7106 GB, free: 2.102 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.311e-05/0.8859, allocations: 112.4 kB / 0.7107 GB, free: 1.988 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.8859, allocations: 0 / 0.7107 GB, free: 1.988 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002414/0.8862, allocations: 86.2 kB / 0.7108 GB, free: 1.898 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.8862, allocations: 0 / 0.7108 GB, free: 1.898 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.8862, allocations: 3.953 kB / 0.7108 GB, free: 1.895 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.8862, allocations: 0 / 0.7108 GB, free: 1.895 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004422/0.8867, allocations: 338.5 kB / 0.7111 GB, free: 1.508 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.8867, allocations: 0 / 0.7111 GB, free: 1.508 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.8868, allocations: 15.92 kB / 0.7111 GB, free: 1.492 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.8868, allocations: 0 / 0.7111 GB, free: 1.492 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.8869, allocations: 3.953 kB / 0.7111 GB, free: 1.488 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.8869, allocations: 4 kB / 0.7111 GB, free: 1.484 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.8869, allocations: 3.938 kB / 0.7111 GB, free: 1.48 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.8871, allocations: 167.5 kB / 0.7113 GB, free: 1.301 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.8872, allocations: 84.95 kB / 0.7114 GB, free: 1.199 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.8872, allocations: 4 kB / 0.7114 GB, free: 1.195 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.8874, allocations: 19.94 kB / 0.7114 GB, free: 1.176 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.046e-05/0.8875, allocations: 0 / 0.7114 GB, free: 1.176 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.8875, allocations: 4 kB / 0.7114 GB, free: 1.172 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.878e-05/0.8876, allocations: 91.45 kB / 0.7115 GB, free: 1.082 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.51e-07/0.8876, allocations: 0 / 0.7115 GB, free: 1.082 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003288/0.8879, allocations: 8 kB / 0.7115 GB, free: 1.074 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.0005771/0.8885, allocations: 0.7006 MB / 0.7122 GB, free: 356 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001754/0.8887, allocations: 39.92 kB / 0.7122 GB, free: 316 kB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8887, allocations: 4 kB / 0.7122 GB, free: 312 kB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.967e-05/0.8888, allocations: 20.19 kB / 0.7123 GB, free: 292 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.8891, allocations: 14.19 kB / 0.7123 GB, free: 280 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005212/0.8897, allocations: 110.5 kB / 0.7124 GB, free: 132 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.89, allocations: 0.6887 MB / 0.713 GB, free: 15.41 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.666e-05/0.8901, allocations: 192 / 0.713 GB, free: 15.41 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.8902, allocations: 15.44 kB / 0.7131 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of SimCode: time 1.092e-06/0.8902, allocations: 0 / 0.7131 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.9097, allocations: 1.313 MB / 0.7143 GB, free: 14.15 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003646/0.9101, allocations: 155 kB / 0.7145 GB, free: 13.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.319/3.23, allocations: 11.88 kB / 0.7145 GB, free: 13.91 MB / 0.6042 GB