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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.483/4.483, allocations: 404.1 MB / 411.3 MB, free: 356 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.049e-05/3.076e-05, allocations: 4 kB / 0.4945 GB, free: 1.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7496/0.7497, allocations: 92.68 MB / 0.5851 GB, free: 2.305 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3157/1.065, allocations: 120.3 MB / 0.7025 GB, free: 9.844 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003835/1.066, allocations: 91.92 kB / 0.7026 GB, free: 9.754 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.004129/1.07, allocations: 0.9019 MB / 0.7035 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.613e-06/1.07, allocations: 7.938 kB / 0.7035 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.904e-06/1.07, allocations: 0 / 0.7035 GB, free: 8.844 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.0006351/1.071, allocations: 354.5 kB / 0.7039 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/1.071, allocations: 12.03 kB / 0.7039 GB, free: 8.441 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.735e-05/1.071, allocations: 7.859 kB / 0.7039 GB, free: 8.434 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/1.071, allocations: 175 kB / 0.704 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/1.071, allocations: 0 / 0.704 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/1.071, allocations: 4 kB / 0.704 GB, free: 8.219 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001248/1.071, allocations: 23.92 kB / 0.7041 GB, free: 8.195 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/1.071, allocations: 45.69 kB / 0.7041 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/1.071, allocations: 0 / 0.7041 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/1.071, allocations: 0 / 0.7041 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/1.071, allocations: 7.953 kB / 0.7041 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006501/1.072, allocations: 273.3 kB / 0.7044 GB, free: 7.832 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/1.072, allocations: 38.58 kB / 0.7044 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.77e-05/1.072, allocations: 16.98 kB / 0.7044 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/1.072, allocations: 0 / 0.7044 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/1.073, allocations: 67.34 kB / 0.7045 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 2.214e-06/1.073, allocations: 0 / 0.7045 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002717/1.073, allocations: 77.69 kB / 0.7046 GB, free: 7.605 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/1.073, allocations: 55.41 kB / 0.7046 GB, free: 7.539 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.469e-05/1.073, allocations: 101 kB / 0.7047 GB, free: 7.434 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/1.073, allocations: 25.7 kB / 0.7047 GB, free: 7.402 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/1.073, allocations: 84.05 kB / 0.7048 GB, free: 7.316 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/1.073, allocations: 19.8 kB / 0.7048 GB, free: 7.297 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-06/1.073, allocations: 0 / 0.7048 GB, free: 7.297 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001397/1.073, allocations: 314.8 kB / 0.7051 GB, free: 6.98 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.237e-05/1.073, allocations: 16 kB / 0.7052 GB, free: 6.965 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.525e-05/1.074, allocations: 52.16 kB / 0.7052 GB, free: 6.898 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.227e-05/1.074, allocations: 12 kB / 0.7052 GB, free: 6.887 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/1.074, allocations: 4 kB / 0.7052 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002565/1.074, allocations: 85.52 kB / 0.7053 GB, free: 6.793 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/1.074, allocations: 4 kB / 0.7053 GB, free: 6.789 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.118e-06/1.074, allocations: 4 kB / 0.7053 GB, free: 6.785 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/1.074, allocations: 0 / 0.7053 GB, free: 6.785 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/1.074, allocations: 23.92 kB / 0.7053 GB, free: 6.762 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/1.074, allocations: 7.891 kB / 0.7053 GB, free: 6.754 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/1.074, allocations: 20.05 kB / 0.7054 GB, free: 6.734 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/1.074, allocations: 4 kB / 0.7054 GB, free: 6.73 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.942e-05/1.074, allocations: 105 kB / 0.7055 GB, free: 6.621 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001896/1.075, allocations: 73.62 kB / 0.7055 GB, free: 6.543 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.824e-05/1.075, allocations: 3.906 kB / 0.7055 GB, free: 6.539 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002459/1.075, allocations: 86.39 kB / 0.7056 GB, free: 6.445 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/1.075, allocations: 0 / 0.7056 GB, free: 6.445 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.075, allocations: 0 / 0.7056 GB, free: 6.445 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/1.075, allocations: 4.047 kB / 0.7056 GB, free: 6.441 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004671/1.076, allocations: 311.1 kB / 0.7059 GB, free: 6.094 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/1.076, allocations: 0 / 0.7059 GB, free: 6.094 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/1.076, allocations: 15.98 kB / 0.7059 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/1.076, allocations: 3.953 kB / 0.7059 GB, free: 6.074 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/1.076, allocations: 0 / 0.7059 GB, free: 6.074 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/1.076, allocations: 0 / 0.7059 GB, free: 6.074 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.076, allocations: 4 kB / 0.7059 GB, free: 6.07 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/1.076, allocations: 171.4 kB / 0.7061 GB, free: 5.887 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.494e-05/1.076, allocations: 77.11 kB / 0.7062 GB, free: 5.793 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/1.076, allocations: 11.88 kB / 0.7062 GB, free: 5.781 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/1.076, allocations: 8 kB / 0.7062 GB, free: 5.773 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/1.076, allocations: 7.984 kB / 0.7062 GB, free: 5.766 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/1.076, allocations: 4 kB / 0.7062 GB, free: 5.762 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.033e-05/1.076, allocations: 91.53 kB / 0.7063 GB, free: 5.672 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.61e-07/1.077, allocations: 0 / 0.7063 GB, free: 5.672 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004169/1.077, allocations: 8 kB / 0.7063 GB, free: 5.664 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.0006005/1.078, allocations: 0.701 MB / 0.707 GB, free: 4.938 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001922/1.078, allocations: 55.91 kB / 0.707 GB, free: 4.883 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.078, allocations: 0 / 0.707 GB, free: 4.883 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.876e-05/1.078, allocations: 19.94 kB / 0.7071 GB, free: 4.863 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/1.078, allocations: 7.953 kB / 0.7071 GB, free: 4.855 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005898/1.079, allocations: 114.3 kB / 0.7072 GB, free: 4.703 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/1.079, allocations: 0.6885 MB / 0.7079 GB, free: 3.988 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 6.152e-05/1.079, allocations: 12.38 kB / 0.7079 GB, free: 3.977 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.366e-05/1.079, allocations: 15.44 kB / 0.7079 GB, free: 3.961 MB / 0.5886 GB Notification: Performance of SimCode: time 9.62e-07/1.079, allocations: 0 / 0.7079 GB, free: 3.961 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03801/1.117, allocations: 1.067 MB / 0.7089 GB, free: 2.91 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003686/1.118, allocations: 153.8 kB / 0.7091 GB, free: 2.715 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.523/3.641, allocations: 4 kB / 0.7091 GB, free: 2.711 MB / 0.5886 GB