Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.013/4.013, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.833e-05/3.827e-05, allocations: 8 kB / 0.4991 GB, free: 13.32 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6157/0.6157, allocations: 92.68 MB / 0.5897 GB, free: 14.37 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2464/0.8622, allocations: 121 MB / 0.7078 GB, free: 5.238 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.8625, allocations: 83.94 kB / 0.7079 GB, free: 5.156 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003655/0.8662, allocations: 0.9136 MB / 0.7088 GB, free: 4.242 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8662, allocations: 0 / 0.7088 GB, free: 4.242 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.111e-05/0.8663, allocations: 0 / 0.7088 GB, free: 4.242 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005641/0.8668, allocations: 356 kB / 0.7091 GB, free: 3.852 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.8669, allocations: 8.031 kB / 0.7091 GB, free: 3.844 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.64e-05/0.867, allocations: 38.56 kB / 0.7091 GB, free: 3.797 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.867, allocations: 11.86 kB / 0.7092 GB, free: 3.785 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.8672, allocations: 171 kB / 0.7093 GB, free: 3.578 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.8672, allocations: 3.938 kB / 0.7093 GB, free: 3.574 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.8672, allocations: 4 kB / 0.7093 GB, free: 3.57 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001509/0.8674, allocations: 49.69 kB / 0.7094 GB, free: 3.516 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.8674, allocations: 3.938 kB / 0.7094 GB, free: 3.512 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.8674, allocations: 3.938 kB / 0.7094 GB, free: 3.508 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.8674, allocations: 4 kB / 0.7094 GB, free: 3.504 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.923e-05/0.8675, allocations: 27.94 kB / 0.7094 GB, free: 3.477 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006162/0.8682, allocations: 292.8 kB / 0.7097 GB, free: 3.141 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.8683, allocations: 54.48 kB / 0.7097 GB, free: 3.078 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.47e-05/0.8684, allocations: 20.98 kB / 0.7098 GB, free: 3.055 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.8685, allocations: 4 kB / 0.7098 GB, free: 3.051 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.8686, allocations: 59.36 kB / 0.7098 GB, free: 2.98 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 2.194e-06/0.8686, allocations: 0 / 0.7098 GB, free: 2.98 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002541/0.8689, allocations: 81.73 kB / 0.7099 GB, free: 2.895 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.869, allocations: 51.41 kB / 0.71 GB, free: 2.832 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.114e-05/0.8691, allocations: 97 kB / 0.71 GB, free: 2.73 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.8691, allocations: 25.7 kB / 0.7101 GB, free: 2.699 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.8692, allocations: 95.98 kB / 0.7102 GB, free: 2.602 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.8692, allocations: 19.8 kB / 0.7102 GB, free: 2.582 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-06/0.8692, allocations: 0 / 0.7102 GB, free: 2.582 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.8694, allocations: 318.8 kB / 0.7105 GB, free: 2.262 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.048e-05/0.8694, allocations: 12 kB / 0.7105 GB, free: 2.25 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.226e-05/0.8695, allocations: 44.28 kB / 0.7105 GB, free: 2.191 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.936e-05/0.8696, allocations: 24 kB / 0.7106 GB, free: 2.168 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.8696, allocations: 0 / 0.7106 GB, free: 2.168 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002066/0.8698, allocations: 81.8 kB / 0.7106 GB, free: 2.082 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.8699, allocations: 8 kB / 0.7106 GB, free: 2.074 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.8699, allocations: 0 / 0.7106 GB, free: 2.074 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.8699, allocations: 7.953 kB / 0.7107 GB, free: 2.066 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.8701, allocations: 28.11 kB / 0.7107 GB, free: 2.039 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.8701, allocations: 4 kB / 0.7107 GB, free: 2.035 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.8703, allocations: 19.83 kB / 0.7107 GB, free: 2.016 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.8703, allocations: 80 / 0.7107 GB, free: 2.016 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.628e-05/0.8704, allocations: 112.9 kB / 0.7108 GB, free: 1.898 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.8704, allocations: 4 kB / 0.7108 GB, free: 1.895 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000229/0.8707, allocations: 82.28 kB / 0.7109 GB, free: 1.809 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.8707, allocations: 7.953 kB / 0.7109 GB, free: 1.801 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.8707, allocations: 0 / 0.7109 GB, free: 1.801 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.8707, allocations: 0 / 0.7109 GB, free: 1.801 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.8712, allocations: 342.4 kB / 0.7112 GB, free: 1.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.8712, allocations: 4.125 kB / 0.7112 GB, free: 1.406 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.8713, allocations: 11.98 kB / 0.7112 GB, free: 1.395 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.8713, allocations: 7.891 kB / 0.7113 GB, free: 1.387 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.8714, allocations: 4 kB / 0.7113 GB, free: 1.383 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.8714, allocations: 4 kB / 0.7113 GB, free: 1.379 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.8714, allocations: 0 / 0.7113 GB, free: 1.379 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.8716, allocations: 171.5 kB / 0.7114 GB, free: 1.195 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.8717, allocations: 81.02 kB / 0.7115 GB, free: 1.098 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.8717, allocations: 7.953 kB / 0.7115 GB, free: 1.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.8719, allocations: 11.98 kB / 0.7115 GB, free: 1.078 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.872, allocations: 11.94 kB / 0.7115 GB, free: 1.066 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.872, allocations: 7.984 kB / 0.7115 GB, free: 1.059 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.849e-05/0.8721, allocations: 83.28 kB / 0.7116 GB, free: 0.9766 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.31e-07/0.8721, allocations: 0 / 0.7116 GB, free: 0.9766 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003389/0.8724, allocations: 8 kB / 0.7116 GB, free: 0.9688 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0005689/0.873, allocations: 0.7122 MB / 0.7123 GB, free: 236 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001757/0.8732, allocations: 43.94 kB / 0.7124 GB, free: 192 kB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.8732, allocations: 4 kB / 0.7124 GB, free: 188 kB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.672e-05/0.8733, allocations: 16 kB / 0.7124 GB, free: 172 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.8735, allocations: 16.02 kB / 0.7124 GB, free: 156 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004841/0.874, allocations: 114.7 kB / 0.7125 GB, free: 0 / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.8744, allocations: 0.689 MB / 0.7132 GB, free: 15.29 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.437e-05/0.8745, allocations: 8.172 kB / 0.7132 GB, free: 15.28 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.839e-05/0.8745, allocations: 19.42 kB / 0.7132 GB, free: 15.26 MB / 0.6042 GB Notification: Performance of SimCode: time 8.01e-07/0.8745, allocations: 0 / 0.7132 GB, free: 15.26 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.8924, allocations: 1.375 MB / 0.7145 GB, free: 13.96 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/0.8927, allocations: 165.5 kB / 0.7147 GB, free: 13.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.249/3.142, allocations: 8.062 kB / 0.7147 GB, free: 13.72 MB / 0.6042 GB