Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.409/4.409, allocations: 404.1 MB / 411.3 MB, free: 392 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.816e-05/2.814e-05, allocations: 4 kB / 0.4946 GB, free: 1.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6938/0.6939, allocations: 92.68 MB / 0.5851 GB, free: 2.387 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2338/0.9277, allocations: 120.6 MB / 0.7028 GB, free: 9.656 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003487/0.9281, allocations: 83.94 kB / 0.7029 GB, free: 9.574 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.004314/0.9325, allocations: 0.9767 MB / 0.7038 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.482e-06/0.9325, allocations: 0 / 0.7038 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.537e-06/0.9325, allocations: 4 kB / 0.7038 GB, free: 8.59 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006846/0.9332, allocations: 370.4 kB / 0.7042 GB, free: 8.184 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.9333, allocations: 8.031 kB / 0.7042 GB, free: 8.176 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.825e-05/0.9333, allocations: 7.953 kB / 0.7042 GB, free: 8.168 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.9335, allocations: 167 kB / 0.7044 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.9335, allocations: 0 / 0.7044 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.9336, allocations: 8 kB / 0.7044 GB, free: 7.957 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001495/0.9337, allocations: 27.98 kB / 0.7044 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001664/0.9339, allocations: 61.69 kB / 0.7045 GB, free: 7.863 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.9339, allocations: 4 kB / 0.7045 GB, free: 7.859 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.9339, allocations: 3.984 kB / 0.7045 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.934, allocations: 3.953 kB / 0.7045 GB, free: 7.852 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007758/0.9348, allocations: 309.2 kB / 0.7048 GB, free: 7.512 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/0.9349, allocations: 58.58 kB / 0.7048 GB, free: 7.445 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.835e-05/0.935, allocations: 32.8 kB / 0.7049 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.9351, allocations: 0 / 0.7049 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002053/0.9353, allocations: 75.52 kB / 0.7049 GB, free: 7.324 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 2.324e-06/0.9353, allocations: 0 / 0.7049 GB, free: 7.324 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.000353/0.9357, allocations: 109.5 kB / 0.705 GB, free: 7.211 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.9358, allocations: 59.41 kB / 0.7051 GB, free: 7.141 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.877e-05/0.9359, allocations: 105.1 kB / 0.7052 GB, free: 7.031 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.9359, allocations: 29.64 kB / 0.7052 GB, free: 6.996 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.936, allocations: 84.38 kB / 0.7053 GB, free: 6.906 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.446e-05/0.936, allocations: 27.7 kB / 0.7053 GB, free: 6.879 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.238e-05/0.9361, allocations: 0 / 0.7053 GB, free: 6.879 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.9362, allocations: 318.8 kB / 0.7056 GB, free: 6.559 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.409e-05/0.9363, allocations: 20 kB / 0.7056 GB, free: 6.539 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.9364, allocations: 55.38 kB / 0.7057 GB, free: 6.473 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.9365, allocations: 31.92 kB / 0.7057 GB, free: 6.441 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.9365, allocations: 0 / 0.7057 GB, free: 6.441 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002832/0.9368, allocations: 101.5 kB / 0.7058 GB, free: 6.336 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.9369, allocations: 4 kB / 0.7058 GB, free: 6.332 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.9369, allocations: 8.328 kB / 0.7058 GB, free: 6.324 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.9369, allocations: 7.938 kB / 0.7058 GB, free: 6.316 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.9372, allocations: 27.92 kB / 0.7059 GB, free: 6.289 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.9372, allocations: 3.953 kB / 0.7059 GB, free: 6.285 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.9373, allocations: 15.91 kB / 0.7059 GB, free: 6.27 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.9374, allocations: 4 kB / 0.7059 GB, free: 6.266 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: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001103/0.9375, allocations: 120.9 kB / 0.706 GB, free: 6.141 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002738/0.9378, allocations: 101.6 kB / 0.7061 GB, free: 6.035 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.9378, allocations: 12.08 kB / 0.7061 GB, free: 6.023 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000316/0.9381, allocations: 114.2 kB / 0.7062 GB, free: 5.906 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.9382, allocations: 3.953 kB / 0.7062 GB, free: 5.902 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.9382, allocations: 0 / 0.7062 GB, free: 5.902 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.9382, allocations: 0 / 0.7062 GB, free: 5.902 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005581/0.9387, allocations: 355 kB / 0.7066 GB, free: 5.512 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.9388, allocations: 0 / 0.7066 GB, free: 5.512 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.9389, allocations: 19.98 kB / 0.7066 GB, free: 5.492 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.9389, allocations: 0 / 0.7066 GB, free: 5.492 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.939, allocations: 3.953 kB / 0.7066 GB, free: 5.488 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.939, allocations: 4 kB / 0.7066 GB, free: 5.484 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.939, allocations: 0 / 0.7066 GB, free: 5.484 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.9393, allocations: 199.4 kB / 0.7068 GB, free: 5.273 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.347e-05/0.9394, allocations: 88.95 kB / 0.7069 GB, free: 5.168 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.9395, allocations: 7.984 kB / 0.7069 GB, free: 5.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.9397, allocations: 15.95 kB / 0.7069 GB, free: 5.145 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.9397, allocations: 7.984 kB / 0.7069 GB, free: 5.137 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.9398, allocations: 4 kB / 0.7069 GB, free: 5.133 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.799e-05/0.9398, allocations: 91.2 kB / 0.707 GB, free: 5.043 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.81e-07/0.9399, allocations: 0 / 0.707 GB, free: 5.043 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003889/0.9402, allocations: 12 kB / 0.707 GB, free: 5.031 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000661/0.9409, allocations: 0.7437 MB / 0.7077 GB, free: 4.262 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002432/0.9412, allocations: 63.92 kB / 0.7078 GB, free: 4.199 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.9412, allocations: 4 kB / 0.7078 GB, free: 4.195 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.9413, allocations: 32 kB / 0.7078 GB, free: 4.164 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.9416, allocations: 12.14 kB / 0.7078 GB, free: 4.152 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006046/0.9422, allocations: 134 kB / 0.708 GB, free: 3.988 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.9426, allocations: 0.6846 MB / 0.7086 GB, free: 3.277 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 6.243e-05/0.9426, allocations: 8.422 kB / 0.7086 GB, free: 3.27 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.054e-05/0.9427, allocations: 15.44 kB / 0.7087 GB, free: 3.254 MB / 0.5886 GB Notification: Performance of SimCode: time 7.91e-07/0.9427, allocations: 0 / 0.7087 GB, free: 3.254 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04166/0.9844, allocations: 1.3 MB / 0.7099 GB, free: 1.969 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003239/0.9848, allocations: 151.4 kB / 0.7101 GB, free: 1.777 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.47/3.455, allocations: 0 / 0.7101 GB, free: 1.777 MB / 0.5886 GB