Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.281/4.281, allocations: 464.6 MB / 476.8 MB, free: 2.141 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.902e-05/3.906e-05, allocations: 4 kB / 0.5732 GB, free: 5.633 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2329, allocations: 107.2 MB / 0.6778 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8214/1.054, allocations: 131.9 MB / 0.8067 GB, free: 12.7 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/1.055, allocations: 68.27 kB / 0.8067 GB, free: 12.7 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003491/1.058, allocations: 0.9556 MB / 0.8077 GB, free: 12.35 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.763e-06/1.058, allocations: 0 / 0.8077 GB, free: 12.35 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.337e-06/1.058, allocations: 7.312 kB / 0.8077 GB, free: 12.35 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005658/1.059, allocations: 372.8 kB / 0.808 GB, free: 11.99 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/1.059, allocations: 11.53 kB / 0.808 GB, free: 11.99 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.192e-05/1.059, allocations: 37 kB / 0.8081 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/1.059, allocations: 7.875 kB / 0.8081 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.78e-05/1.059, allocations: 170.8 kB / 0.8082 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/1.059, allocations: 10.75 kB / 0.8083 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/1.059, allocations: 9.234 kB / 0.8083 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001715/1.059, allocations: 62.86 kB / 0.8083 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/1.059, allocations: 2.578 kB / 0.8083 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/1.059, allocations: 0 / 0.8083 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/1.059, allocations: 0 / 0.8083 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/1.059, allocations: 28.84 kB / 0.8084 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006511/1.06, allocations: 339 kB / 0.8087 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001589/1.06, allocations: 64.58 kB / 0.8087 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.57e-05/1.06, allocations: 31.52 kB / 0.8088 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/1.06, allocations: 2.859 kB / 0.8088 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001601/1.061, allocations: 80.31 kB / 0.8088 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.335e-06/1.061, allocations: 3.938 kB / 0.8089 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003025/1.061, allocations: 113 kB / 0.809 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/1.061, allocations: 55.27 kB / 0.809 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.916e-05/1.061, allocations: 103 kB / 0.8091 GB, free: 11.15 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/1.061, allocations: 33.23 kB / 0.8091 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.741e-05/1.061, allocations: 89.94 kB / 0.8092 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/1.061, allocations: 22.27 kB / 0.8092 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-06/1.061, allocations: 11.78 kB / 0.8093 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 6.188e-05/1.061, allocations: 321.2 kB / 0.8096 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.123e-05/1.061, allocations: 21.75 kB / 0.8096 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.27e-05/1.061, allocations: 53.98 kB / 0.8096 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.157e-05/1.062, allocations: 35.48 kB / 0.8097 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.062, allocations: 0 / 0.8097 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002388/1.062, allocations: 114.5 kB / 0.8098 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/1.062, allocations: 3.906 kB / 0.8098 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/1.062, allocations: 4.188 kB / 0.8098 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/1.062, allocations: 7.859 kB / 0.8098 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/1.062, allocations: 31.66 kB / 0.8098 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/1.062, allocations: 3.875 kB / 0.8098 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/1.062, allocations: 14.66 kB / 0.8098 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/1.062, allocations: 7 kB / 0.8099 GB, free: 10.59 MB / 0.6355 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 7.605e-05/1.062, allocations: 115.8 kB / 0.81 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/1.062, allocations: 7.719 kB / 0.81 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002844/1.063, allocations: 118.7 kB / 0.8101 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/1.063, allocations: 0 / 0.8101 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/1.063, allocations: 0 / 0.8101 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/1.063, allocations: 2.812 kB / 0.8101 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004547/1.063, allocations: 394.8 kB / 0.8105 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/1.063, allocations: 0 / 0.8105 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/1.063, allocations: 20.75 kB / 0.8105 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/1.063, allocations: 0 / 0.8105 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/1.063, allocations: 3.844 kB / 0.8105 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/1.063, allocations: 0 / 0.8105 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.063, allocations: 0 / 0.8105 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/1.064, allocations: 213.4 kB / 0.8107 GB, free: 9.973 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.69e-05/1.064, allocations: 88.64 kB / 0.8108 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/1.064, allocations: 3 kB / 0.8108 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/1.064, allocations: 13.81 kB / 0.8108 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/1.064, allocations: 6.875 kB / 0.8108 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/1.064, allocations: 3.656 kB / 0.8108 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.691e-05/1.064, allocations: 86.25 kB / 0.8109 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.21e-07/1.064, allocations: 0 / 0.8109 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003159/1.064, allocations: 20.62 kB / 0.8109 GB, free: 9.793 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: 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.000452/1.065, allocations: 0.7504 MB / 0.8116 GB, free: 9.129 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002148/1.065, allocations: 71.22 kB / 0.8117 GB, free: 9.125 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.065, allocations: 4.188 kB / 0.8117 GB, free: 9.121 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.676e-05/1.065, allocations: 32.83 kB / 0.8117 GB, free: 9.117 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/1.065, allocations: 8.125 kB / 0.8117 GB, free: 9.117 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009093/1.066, allocations: 144.1 kB / 0.8119 GB, free: 25 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/1.067, allocations: 0.6869 MB / 0.8126 GB, free: 24.3 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.638e-05/1.067, allocations: 10.83 kB / 0.8126 GB, free: 24.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.992e-05/1.067, allocations: 24.06 kB / 0.8126 GB, free: 24.29 MB / 0.6511 GB Notification: Performance of SimCode: time 1.332e-06/1.067, allocations: 0 / 0.8126 GB, free: 24.29 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/1.087, allocations: 1.602 MB / 0.8142 GB, free: 24.05 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/1.087, allocations: 159.8 kB / 0.8143 GB, free: 23.83 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.272/3.36, allocations: 0 / 0.8143 GB, free: 23.83 MB / 0.6511 GB