Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.274/4.274, allocations: 460.5 MB / 472.6 MB, free: 5.371 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.104e-05/4.115e-05, allocations: 4 kB / 0.5682 GB, free: 10.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2343, allocations: 106.2 MB / 0.6719 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8619/1.096, allocations: 131.5 MB / 0.8004 GB, free: 12.73 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/1.096, allocations: 75.14 kB / 0.8004 GB, free: 12.73 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003415/1.1, allocations: 0.9524 MB / 0.8014 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.623e-06/1.1, allocations: 0 / 0.8014 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.855e-06/1.1, allocations: 3.844 kB / 0.8014 GB, free: 12.38 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.00053/1.1, allocations: 373.8 kB / 0.8017 GB, free: 12.02 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/1.101, allocations: 11.66 kB / 0.8017 GB, free: 12.02 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.432e-05/1.101, allocations: 33.12 kB / 0.8018 GB, free: 11.98 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/1.101, allocations: 13 kB / 0.8018 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.115e-05/1.101, allocations: 166.4 kB / 0.802 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/1.101, allocations: 1.5 kB / 0.802 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/1.101, allocations: 11.06 kB / 0.802 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/1.101, allocations: 73.88 kB / 0.802 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/1.101, allocations: 0.8125 kB / 0.802 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/1.101, allocations: 1.266 kB / 0.802 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/1.101, allocations: 0 / 0.802 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/1.101, allocations: 34.42 kB / 0.8021 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006375/1.102, allocations: 336.5 kB / 0.8024 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/1.102, allocations: 64.91 kB / 0.8025 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.637e-05/1.102, allocations: 37.03 kB / 0.8025 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/1.102, allocations: 0 / 0.8025 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001606/1.102, allocations: 77.94 kB / 0.8026 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.984e-06/1.102, allocations: 4 kB / 0.8026 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002993/1.103, allocations: 117.6 kB / 0.8027 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/1.103, allocations: 55.78 kB / 0.8027 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.787e-05/1.103, allocations: 101.4 kB / 0.8028 GB, free: 11.16 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/1.103, allocations: 34.75 kB / 0.8029 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.739e-05/1.103, allocations: 85.41 kB / 0.8029 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.204e-05/1.103, allocations: 21.45 kB / 0.803 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/1.103, allocations: 3.797 kB / 0.803 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.975e-05/1.103, allocations: 325.4 kB / 0.8033 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.819e-05/1.103, allocations: 22.47 kB / 0.8033 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.521e-05/1.103, allocations: 55.33 kB / 0.8033 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.538e-05/1.103, allocations: 31.88 kB / 0.8034 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/1.103, allocations: 0 / 0.8034 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002593/1.103, allocations: 117.5 kB / 0.8035 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/1.104, allocations: 3.781 kB / 0.8035 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/1.104, allocations: 0 / 0.8035 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/1.104, allocations: 5.375 kB / 0.8035 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/1.104, allocations: 23.14 kB / 0.8035 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/1.104, allocations: 7.828 kB / 0.8035 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/1.104, allocations: 10.67 kB / 0.8035 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/1.104, allocations: 11.22 kB / 0.8036 GB, free: 10.62 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.232e-05/1.104, allocations: 115.5 kB / 0.8037 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/1.104, allocations: 9.328 kB / 0.8037 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002733/1.104, allocations: 116.6 kB / 0.8038 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/1.104, allocations: 0 / 0.8038 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/1.104, allocations: 3.875 kB / 0.8038 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/1.104, allocations: 3.953 kB / 0.8038 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004413/1.105, allocations: 386.1 kB / 0.8042 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/1.105, allocations: 288 / 0.8042 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/1.105, allocations: 14.25 kB / 0.8042 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/1.105, allocations: 0 / 0.8042 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/1.105, allocations: 5.484 kB / 0.8042 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.105, allocations: 3.953 kB / 0.8042 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.105, allocations: 0 / 0.8042 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/1.105, allocations: 214.6 kB / 0.8044 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.529e-05/1.105, allocations: 88.83 kB / 0.8045 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/1.105, allocations: 1.828 kB / 0.8045 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/1.106, allocations: 10.53 kB / 0.8045 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/1.106, allocations: 14 kB / 0.8045 GB, free: 9.906 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/1.106, allocations: 5.125 kB / 0.8045 GB, free: 9.906 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.431e-05/1.106, allocations: 88.3 kB / 0.8046 GB, free: 9.828 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.21e-07/1.106, allocations: 0 / 0.8046 GB, free: 9.828 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003157/1.106, allocations: 19.34 kB / 0.8046 GB, free: 9.824 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.0008767/1.107, allocations: 0.7458 MB / 0.8053 GB, free: 25.16 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002104/1.107, allocations: 72.3 kB / 0.8054 GB, free: 25.16 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.107, allocations: 0 / 0.8054 GB, free: 25.16 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/1.107, allocations: 28.38 kB / 0.8054 GB, free: 25.16 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/1.108, allocations: 16.48 kB / 0.8054 GB, free: 25.15 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005098/1.108, allocations: 137.5 kB / 0.8056 GB, free: 25.04 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/1.108, allocations: 0.6966 MB / 0.8063 GB, free: 24.34 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.992e-05/1.108, allocations: 13.75 kB / 0.8063 GB, free: 24.33 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.885e-05/1.109, allocations: 19.59 kB / 0.8063 GB, free: 24.32 MB / 0.6511 GB Notification: Performance of SimCode: time 8.02e-07/1.109, allocations: 3.844 kB / 0.8063 GB, free: 24.32 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/1.128, allocations: 1.607 MB / 0.8079 GB, free: 24.08 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/1.128, allocations: 166.5 kB / 0.808 GB, free: 23.85 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/3.5, allocations: 0 / 0.808 GB, free: 23.85 MB / 0.6511 GB