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 4.046/4.046, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.976e-05/3.987e-05, allocations: 7.984 kB / 0.4991 GB, free: 13.33 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6248/0.6248, allocations: 92.68 MB / 0.5897 GB, free: 14.38 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.229/0.8539, allocations: 121.2 MB / 0.7081 GB, free: 4.977 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003619/0.8543, allocations: 83.94 kB / 0.7081 GB, free: 4.895 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.00408/0.8584, allocations: 0.9806 MB / 0.7091 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.843e-06/0.8584, allocations: 0 / 0.7091 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.645e-06/0.8585, allocations: 0 / 0.7091 GB, free: 3.914 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.0006656/0.8591, allocations: 370.4 kB / 0.7095 GB, free: 3.508 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.8592, allocations: 12.03 kB / 0.7095 GB, free: 3.496 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.871e-05/0.8593, allocations: 34.56 kB / 0.7095 GB, free: 3.453 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.8593, allocations: 7.953 kB / 0.7095 GB, free: 3.445 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.8595, allocations: 167 kB / 0.7097 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.8595, allocations: 3.984 kB / 0.7097 GB, free: 3.238 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.8595, allocations: 12 kB / 0.7097 GB, free: 3.227 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.8598, allocations: 65.61 kB / 0.7097 GB, free: 3.156 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.8598, allocations: 0 / 0.7097 GB, free: 3.156 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.8598, allocations: 4 kB / 0.7097 GB, free: 3.152 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.8598, allocations: 4 kB / 0.7097 GB, free: 3.148 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.8599, allocations: 27.95 kB / 0.7098 GB, free: 3.121 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007787/0.8607, allocations: 332.6 kB / 0.7101 GB, free: 2.746 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.8609, allocations: 70.56 kB / 0.7102 GB, free: 2.668 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.8611, allocations: 32.86 kB / 0.7102 GB, free: 2.633 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.8611, allocations: 0 / 0.7102 GB, free: 2.633 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.8613, allocations: 75.58 kB / 0.7103 GB, free: 2.547 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 2.034e-06/0.8613, allocations: 3.938 kB / 0.7103 GB, free: 2.543 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003431/0.8617, allocations: 117.5 kB / 0.7104 GB, free: 2.422 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.8617, allocations: 51.41 kB / 0.7104 GB, free: 2.359 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.8619, allocations: 109 kB / 0.7105 GB, free: 2.246 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.8619, allocations: 29.7 kB / 0.7106 GB, free: 2.211 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.862, allocations: 84.38 kB / 0.7106 GB, free: 2.121 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.862, allocations: 23.7 kB / 0.7107 GB, free: 2.098 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.333e-05/0.8621, allocations: 4 kB / 0.7107 GB, free: 2.094 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.8622, allocations: 322.8 kB / 0.711 GB, free: 1.77 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.11e-05/0.8623, allocations: 24 kB / 0.711 GB, free: 1.746 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.8624, allocations: 55.38 kB / 0.7111 GB, free: 1.68 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.763e-05/0.8625, allocations: 32.03 kB / 0.7111 GB, free: 1.648 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.8626, allocations: 0 / 0.7111 GB, free: 1.648 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002835/0.8629, allocations: 113.5 kB / 0.7112 GB, free: 1.531 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.8629, allocations: 8 kB / 0.7112 GB, free: 1.523 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.8629, allocations: 0 / 0.7112 GB, free: 1.523 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.8629, allocations: 12.05 kB / 0.7112 GB, free: 1.512 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.8632, allocations: 28.17 kB / 0.7112 GB, free: 1.484 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.8632, allocations: 0 / 0.7112 GB, free: 1.484 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.8633, allocations: 19.89 kB / 0.7113 GB, free: 1.465 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.8634, allocations: 4 kB / 0.7113 GB, free: 1.461 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.0001079/0.8635, allocations: 115 kB / 0.7114 GB, free: 1.344 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.8635, allocations: 8 kB / 0.7114 GB, free: 1.336 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003196/0.8638, allocations: 122.2 kB / 0.7115 GB, free: 1.211 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.8639, allocations: 0 / 0.7115 GB, free: 1.211 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.8639, allocations: 3.953 kB / 0.7115 GB, free: 1.207 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.8639, allocations: 0 / 0.7115 GB, free: 1.207 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005759/0.8645, allocations: 394.5 kB / 0.7119 GB, free: 0.7656 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.8645, allocations: 0 / 0.7119 GB, free: 0.7656 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.8646, allocations: 15.92 kB / 0.7119 GB, free: 0.75 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.8647, allocations: 4 kB / 0.7119 GB, free: 0.7461 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.8647, allocations: 11.95 kB / 0.7119 GB, free: 0.7344 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.8647, allocations: 0 / 0.7119 GB, free: 0.7344 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8647, allocations: 0 / 0.7119 GB, free: 0.7344 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.865, allocations: 199.5 kB / 0.7121 GB, free: 0.5234 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.774e-05/0.8651, allocations: 88.95 kB / 0.7122 GB, free: 428 kB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.8652, allocations: 7.984 kB / 0.7122 GB, free: 420 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.8654, allocations: 19.94 kB / 0.7122 GB, free: 400 kB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.8654, allocations: 4 kB / 0.7122 GB, free: 396 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.8654, allocations: 7.984 kB / 0.7122 GB, free: 388 kB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.847e-05/0.8655, allocations: 83.28 kB / 0.7123 GB, free: 304 kB / 0.5886 GB Notification: Performance of sort global known variables: time 4.6e-07/0.8655, allocations: 0 / 0.7123 GB, free: 304 kB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000337/0.8659, allocations: 20 kB / 0.7123 GB, free: 284 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.0007029/0.8666, allocations: 0.7533 MB / 0.7131 GB, free: 15.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002342/0.8668, allocations: 68.05 kB / 0.7131 GB, free: 15.43 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8668, allocations: 0 / 0.7131 GB, free: 15.43 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.867, allocations: 35.94 kB / 0.7131 GB, free: 15.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.8672, allocations: 16.62 kB / 0.7132 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005478/0.8678, allocations: 139.3 kB / 0.7133 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.8681, allocations: 0.6887 MB / 0.714 GB, free: 14.5 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.467e-05/0.8682, allocations: 8.422 kB / 0.714 GB, free: 14.49 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.508e-05/0.8683, allocations: 23.31 kB / 0.714 GB, free: 14.46 MB / 0.6042 GB Notification: Performance of SimCode: time 7.51e-07/0.8683, allocations: 0 / 0.714 GB, free: 14.46 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.8915, allocations: 1.608 MB / 0.7156 GB, free: 12.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002923/0.8918, allocations: 166.5 kB / 0.7157 GB, free: 12.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/3.236, allocations: 3.938 kB / 0.7157 GB, free: 12.7 MB / 0.6042 GB