Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.271/4.271, allocations: 464.6 MB / 476.8 MB, free: 2.215 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.388e-05, allocations: 4 kB / 0.5732 GB, free: 5.617 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2426, allocations: 107.1 MB / 0.6778 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8269/1.07, allocations: 131.8 MB / 0.8065 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/1.07, allocations: 68.47 kB / 0.8066 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003208/1.073, allocations: 0.8988 MB / 0.8075 GB, free: 11.84 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.763e-06/1.073, allocations: 0 / 0.8075 GB, free: 11.84 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.053e-06/1.073, allocations: 0 / 0.8075 GB, free: 11.84 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000477/1.074, allocations: 358.4 kB / 0.8078 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/1.074, allocations: 11.56 kB / 0.8078 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.652e-05/1.074, allocations: 30.56 kB / 0.8078 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.169e-05/1.074, allocations: 14.91 kB / 0.8078 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.163e-05/1.074, allocations: 169.9 kB / 0.808 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/1.074, allocations: 3.969 kB / 0.808 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.913e-05/1.074, allocations: 7.844 kB / 0.808 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/1.074, allocations: 50.14 kB / 0.8081 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/1.074, allocations: 0 / 0.8081 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/1.074, allocations: 3.188 kB / 0.8081 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/1.074, allocations: 0 / 0.8081 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.914e-05/1.074, allocations: 18.06 kB / 0.8081 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005078/1.075, allocations: 295.2 kB / 0.8084 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/1.075, allocations: 50.39 kB / 0.8084 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.181e-05/1.075, allocations: 19.39 kB / 0.8084 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/1.075, allocations: 3.844 kB / 0.8084 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001244/1.075, allocations: 66.22 kB / 0.8085 GB, free: 10.85 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.953e-06/1.075, allocations: 0 / 0.8085 GB, free: 10.85 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002164/1.075, allocations: 72.72 kB / 0.8086 GB, free: 10.82 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.82e-05/1.075, allocations: 55.22 kB / 0.8086 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.42e-05/1.075, allocations: 102.6 kB / 0.8087 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/1.075, allocations: 33.14 kB / 0.8088 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3e-05/1.076, allocations: 82.67 kB / 0.8088 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.605e-05/1.076, allocations: 23.03 kB / 0.8089 GB, free: 10.53 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/1.076, allocations: 3.938 kB / 0.8089 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.786e-05/1.076, allocations: 324.9 kB / 0.8092 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.335e-05/1.076, allocations: 11.59 kB / 0.8092 GB, free: 10.21 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.159e-05/1.076, allocations: 45.67 kB / 0.8092 GB, free: 10.17 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.729e-05/1.076, allocations: 21.95 kB / 0.8092 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.076, allocations: 0 / 0.8092 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000171/1.076, allocations: 91.2 kB / 0.8093 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.076, allocations: 3.875 kB / 0.8093 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.076, allocations: 3.875 kB / 0.8093 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/1.076, allocations: 0.6562 kB / 0.8093 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/1.076, allocations: 22.58 kB / 0.8094 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/1.076, allocations: 0 / 0.8094 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/1.076, allocations: 22.44 kB / 0.8094 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/1.076, allocations: 4.391 kB / 0.8094 GB, free: 10.11 MB / 0.6355 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 6.284e-05/1.076, allocations: 116.1 kB / 0.8095 GB, free: 9.996 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/1.077, allocations: 7.719 kB / 0.8095 GB, free: 9.992 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/1.077, allocations: 80.23 kB / 0.8096 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/1.077, allocations: 4 kB / 0.8096 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/1.077, allocations: 0 / 0.8096 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/1.077, allocations: 3.906 kB / 0.8096 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003265/1.077, allocations: 343.1 kB / 0.8099 GB, free: 9.645 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/1.077, allocations: 0 / 0.8099 GB, free: 9.645 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/1.077, allocations: 14.61 kB / 0.8099 GB, free: 9.645 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/1.077, allocations: 0 / 0.8099 GB, free: 9.645 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/1.077, allocations: 0 / 0.8099 GB, free: 9.645 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/1.077, allocations: 0 / 0.8099 GB, free: 9.645 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.077, allocations: 4 kB / 0.8099 GB, free: 9.641 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001751/1.077, allocations: 175.5 kB / 0.8101 GB, free: 9.504 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.713e-05/1.078, allocations: 87.02 kB / 0.8102 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/1.078, allocations: 0 / 0.8102 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/1.078, allocations: 14.53 kB / 0.8102 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/1.078, allocations: 3.234 kB / 0.8102 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/1.078, allocations: 7.875 kB / 0.8102 GB, free: 9.402 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.187e-05/1.078, allocations: 86.66 kB / 0.8103 GB, free: 9.324 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.11e-07/1.078, allocations: 192 / 0.8103 GB, free: 9.324 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003099/1.078, allocations: 18.8 kB / 0.8103 GB, free: 9.32 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 (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.0007459/1.079, allocations: 0.7059 MB / 0.811 GB, free: 24.66 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001567/1.079, allocations: 48.75 kB / 0.811 GB, free: 24.66 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/1.079, allocations: 0 / 0.811 GB, free: 24.66 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.884e-05/1.079, allocations: 21.77 kB / 0.8111 GB, free: 24.66 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/1.079, allocations: 6.5 kB / 0.8111 GB, free: 24.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004687/1.08, allocations: 130.7 kB / 0.8112 GB, free: 24.53 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/1.08, allocations: 0.6826 MB / 0.8119 GB, free: 23.84 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.363e-05/1.08, allocations: 7.938 kB / 0.8119 GB, free: 23.83 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.021e-05/1.08, allocations: 25.25 kB / 0.8119 GB, free: 23.82 MB / 0.6511 GB Notification: Performance of SimCode: time 1.002e-06/1.08, allocations: 0 / 0.8119 GB, free: 23.82 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/1.102, allocations: 1.379 MB / 0.8132 GB, free: 23.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/1.102, allocations: 168.3 kB / 0.8134 GB, free: 23.37 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.25/3.352, allocations: 0 / 0.8134 GB, free: 23.37 MB / 0.6511 GB