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={"static"}) Notification: Performance of loadModel(Buildings): time 3.827/3.827, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.524e-05/4.542e-05, allocations: 11.94 kB / 0.4991 GB, free: 13.33 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6107/0.6107, allocations: 92.68 MB / 0.5896 GB, free: 14.46 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2245/0.8353, allocations: 121.2 MB / 0.708 GB, free: 5.074 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/0.8356, allocations: 83.94 kB / 0.7081 GB, free: 4.992 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003936/0.8396, allocations: 0.9728 MB / 0.7091 GB, free: 4.02 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8396, allocations: 0 / 0.7091 GB, free: 4.02 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.8396, allocations: 4 kB / 0.7091 GB, free: 4.016 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.0006517/0.8403, allocations: 370.4 kB / 0.7094 GB, free: 3.609 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.8404, allocations: 12.03 kB / 0.7094 GB, free: 3.598 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.661e-05/0.8404, allocations: 30.56 kB / 0.7095 GB, free: 3.559 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.8405, allocations: 7.953 kB / 0.7095 GB, free: 3.551 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.8406, allocations: 175 kB / 0.7096 GB, free: 3.34 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.8407, allocations: 7.938 kB / 0.7096 GB, free: 3.332 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.8407, allocations: 7.938 kB / 0.7096 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.8409, allocations: 77.55 kB / 0.7097 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.8409, allocations: 0 / 0.7097 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.841, allocations: 0 / 0.7097 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.841, allocations: 0 / 0.7097 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.8411, allocations: 35.95 kB / 0.7097 GB, free: 3.207 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007622/0.8419, allocations: 328.7 kB / 0.7101 GB, free: 2.836 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.8421, allocations: 66.52 kB / 0.7101 GB, free: 2.762 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.919e-05/0.8422, allocations: 32.86 kB / 0.7102 GB, free: 2.727 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.8422, allocations: 7.984 kB / 0.7102 GB, free: 2.719 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.8424, allocations: 71.58 kB / 0.7102 GB, free: 2.637 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 5.38e-06/0.8425, allocations: 11.92 kB / 0.7102 GB, free: 2.625 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003445/0.8428, allocations: 105.5 kB / 0.7103 GB, free: 2.516 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.8429, allocations: 59.39 kB / 0.7104 GB, free: 2.445 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.843, allocations: 105 kB / 0.7105 GB, free: 2.336 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.8431, allocations: 29.7 kB / 0.7105 GB, free: 2.301 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.8431, allocations: 92.3 kB / 0.7106 GB, free: 2.203 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.8432, allocations: 23.7 kB / 0.7106 GB, free: 2.18 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.8432, allocations: 4 kB / 0.7106 GB, free: 2.176 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.8433, allocations: 322.8 kB / 0.711 GB, free: 1.852 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.771e-05/0.8434, allocations: 16 kB / 0.711 GB, free: 1.836 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.8436, allocations: 59.48 kB / 0.711 GB, free: 1.766 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.809e-05/0.8437, allocations: 31.92 kB / 0.7111 GB, free: 1.734 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.8437, allocations: 0 / 0.7111 GB, free: 1.734 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003011/0.844, allocations: 117.5 kB / 0.7112 GB, free: 1.613 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.844, allocations: 4 kB / 0.7112 GB, free: 1.609 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.844, allocations: 0 / 0.7112 GB, free: 1.609 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.8441, allocations: 11.98 kB / 0.7112 GB, free: 1.598 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.8443, allocations: 28.08 kB / 0.7112 GB, free: 1.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.8443, allocations: 4.188 kB / 0.7112 GB, free: 1.566 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.8445, allocations: 15.89 kB / 0.7112 GB, free: 1.551 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.8445, allocations: 12 kB / 0.7112 GB, free: 1.539 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.0001312/0.8447, allocations: 118.1 kB / 0.7114 GB, free: 1.418 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.8447, allocations: 0 / 0.7114 GB, free: 1.418 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003497/0.845, allocations: 130.2 kB / 0.7115 GB, free: 1.285 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.8451, allocations: 0 / 0.7115 GB, free: 1.285 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.8451, allocations: 3.953 kB / 0.7115 GB, free: 1.281 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.8451, allocations: 0 / 0.7115 GB, free: 1.281 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006021/0.8457, allocations: 382.4 kB / 0.7118 GB, free: 0.8516 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.8457, allocations: 0 / 0.7118 GB, free: 0.8516 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.8459, allocations: 11.98 kB / 0.7119 GB, free: 0.8398 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.8459, allocations: 4 kB / 0.7119 GB, free: 0.8359 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.8459, allocations: 7.953 kB / 0.7119 GB, free: 0.8281 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.8459, allocations: 0 / 0.7119 GB, free: 0.8281 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.8459, allocations: 0 / 0.7119 GB, free: 0.8281 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.8463, allocations: 211.5 kB / 0.7121 GB, free: 0.6055 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.042e-05/0.8464, allocations: 84.95 kB / 0.7122 GB, free: 0.5039 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.8464, allocations: 4 kB / 0.7122 GB, free: 0.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.8466, allocations: 19.94 kB / 0.7122 GB, free: 492 kB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.8467, allocations: 7.984 kB / 0.7122 GB, free: 484 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.8467, allocations: 4 kB / 0.7122 GB, free: 480 kB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.446e-05/0.8468, allocations: 79.56 kB / 0.7123 GB, free: 400 kB / 0.5886 GB Notification: Performance of sort global known variables: time 4.11e-07/0.8468, allocations: 0 / 0.7123 GB, free: 400 kB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003088/0.8471, allocations: 20 kB / 0.7123 GB, free: 380 kB / 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.0006974/0.8478, allocations: 0.7628 MB / 0.713 GB, free: 15.58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002543/0.8481, allocations: 67.94 kB / 0.7131 GB, free: 15.52 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.8481, allocations: 0 / 0.7131 GB, free: 15.52 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.8482, allocations: 35.94 kB / 0.7131 GB, free: 15.48 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000242/0.8485, allocations: 12.56 kB / 0.7131 GB, free: 15.47 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005722/0.8491, allocations: 139.3 kB / 0.7133 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.8494, allocations: 0.6926 MB / 0.7139 GB, free: 14.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.597e-05/0.8494, allocations: 8.422 kB / 0.714 GB, free: 14.57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/0.8495, allocations: 15.44 kB / 0.714 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of SimCode: time 9.62e-07/0.8495, allocations: 0 / 0.714 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/0.8693, allocations: 1.63 MB / 0.7156 GB, free: 13 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003186/0.8697, allocations: 167.9 kB / 0.7157 GB, free: 12.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.249/3.119, allocations: 4 kB / 0.7157 GB, free: 12.77 MB / 0.6042 GB