Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.386/4.386, allocations: 464.6 MB / 476.8 MB, free: 2.211 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.693e-05/3.703e-05, allocations: 8 kB / 0.5732 GB, free: 5.629 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2292, allocations: 107.1 MB / 0.6778 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8537/1.083, allocations: 131.7 MB / 0.8065 GB, free: 12.15 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/1.083, allocations: 66.2 kB / 0.8066 GB, free: 12.15 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003269/1.086, allocations: 0.8824 MB / 0.8074 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.023e-06/1.087, allocations: 0 / 0.8074 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.035e-06/1.087, allocations: 3.906 kB / 0.8074 GB, free: 11.81 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004822/1.087, allocations: 352.2 kB / 0.8078 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/1.087, allocations: 7.906 kB / 0.8078 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.821e-05/1.087, allocations: 30.56 kB / 0.8078 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/1.087, allocations: 12.69 kB / 0.8078 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.958e-05/1.087, allocations: 168.9 kB / 0.808 GB, free: 11.22 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/1.087, allocations: 3.781 kB / 0.808 GB, free: 11.22 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/1.087, allocations: 3.906 kB / 0.808 GB, free: 11.22 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/1.087, allocations: 50.06 kB / 0.808 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/1.088, allocations: 3.812 kB / 0.808 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/1.088, allocations: 3.984 kB / 0.808 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/1.088, allocations: 4 kB / 0.808 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.726e-05/1.088, allocations: 18.31 kB / 0.8081 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003898/1.088, allocations: 282.8 kB / 0.8083 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/1.088, allocations: 48.89 kB / 0.8084 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.865e-05/1.088, allocations: 16.11 kB / 0.8084 GB, free: 10.87 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/1.088, allocations: 0 / 0.8084 GB, free: 10.87 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001123/1.088, allocations: 64.41 kB / 0.8085 GB, free: 10.82 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.824e-06/1.088, allocations: 0 / 0.8085 GB, free: 10.82 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002094/1.089, allocations: 72.53 kB / 0.8085 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/1.089, allocations: 54.78 kB / 0.8086 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.364e-05/1.089, allocations: 96.12 kB / 0.8087 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/1.089, allocations: 25.7 kB / 0.8087 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.369e-05/1.089, allocations: 89.03 kB / 0.8088 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/1.089, allocations: 14.25 kB / 0.8088 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/1.089, allocations: 0 / 0.8088 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 6.044e-05/1.089, allocations: 328.6 kB / 0.8091 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.876e-05/1.089, allocations: 10.75 kB / 0.8091 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-05/1.089, allocations: 31.94 kB / 0.8091 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.895e-05/1.089, allocations: 17.14 kB / 0.8092 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/1.089, allocations: 0 / 0.8092 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001506/1.089, allocations: 79.7 kB / 0.8092 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/1.089, allocations: 7.688 kB / 0.8092 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/1.089, allocations: 0 / 0.8092 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/1.089, allocations: 0.6562 kB / 0.8092 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/1.09, allocations: 24.53 kB / 0.8093 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/1.09, allocations: 7.812 kB / 0.8093 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/1.09, allocations: 10.19 kB / 0.8093 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/1.09, allocations: 4 kB / 0.8093 GB, free: 10.1 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: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 6.255e-05/1.09, allocations: 116.8 kB / 0.8094 GB, free: 9.984 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/1.09, allocations: 7.812 kB / 0.8094 GB, free: 9.98 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001908/1.09, allocations: 78.23 kB / 0.8095 GB, free: 9.941 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/1.09, allocations: 0 / 0.8095 GB, free: 9.941 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/1.09, allocations: 0 / 0.8095 GB, free: 9.941 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/1.09, allocations: 0 / 0.8095 GB, free: 9.941 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/1.09, allocations: 348.9 kB / 0.8098 GB, free: 9.629 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.09, allocations: 0 / 0.8098 GB, free: 9.629 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/1.09, allocations: 14.52 kB / 0.8098 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/1.091, allocations: 0 / 0.8098 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/1.091, allocations: 0 / 0.8098 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.091, allocations: 3.812 kB / 0.8098 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.091, allocations: 0 / 0.8098 GB, free: 9.625 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/1.091, allocations: 168.2 kB / 0.81 GB, free: 9.488 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-05/1.091, allocations: 91.47 kB / 0.8101 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/1.091, allocations: 3.438 kB / 0.8101 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/1.091, allocations: 10.31 kB / 0.8101 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.428e-05/1.091, allocations: 6.812 kB / 0.8101 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/1.091, allocations: 3.984 kB / 0.8101 GB, free: 9.383 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.322e-05/1.091, allocations: 86.31 kB / 0.8102 GB, free: 9.309 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.81e-07/1.091, allocations: 0 / 0.8102 GB, free: 9.309 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002926/1.091, allocations: 7.812 kB / 0.8102 GB, free: 9.309 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007707/1.092, allocations: 0.7089 MB / 0.8109 GB, free: 24.65 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001474/1.092, allocations: 36.59 kB / 0.8109 GB, free: 24.64 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/1.092, allocations: 0 / 0.8109 GB, free: 24.64 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.599e-05/1.092, allocations: 21.97 kB / 0.8109 GB, free: 24.64 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/1.093, allocations: 11.77 kB / 0.811 GB, free: 24.64 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004453/1.093, allocations: 121.4 kB / 0.8111 GB, free: 24.52 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/1.093, allocations: 0.6843 MB / 0.8117 GB, free: 23.82 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.124e-05/1.094, allocations: 7.969 kB / 0.8117 GB, free: 23.82 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.599e-05/1.094, allocations: 16.91 kB / 0.8118 GB, free: 23.81 MB / 0.6511 GB Notification: Performance of SimCode: time 7.32e-07/1.094, allocations: 0 / 0.8118 GB, free: 23.81 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/1.116, allocations: 1.316 MB / 0.813 GB, free: 23.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/1.116, allocations: 160.2 kB / 0.8132 GB, free: 23.36 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.193/3.309, allocations: 4 kB / 0.8132 GB, free: 23.36 MB / 0.6511 GB