Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.426/4.426, allocations: 404.1 MB / 411.3 MB, free: 368 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.575e-05/2.574e-05, allocations: 4 kB / 0.4945 GB, free: 1.289 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6861/0.6862, allocations: 92.69 MB / 0.5851 GB, free: 2.273 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2381/0.9244, allocations: 120.3 MB / 0.7025 GB, free: 9.832 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003719/0.9248, allocations: 83.94 kB / 0.7026 GB, free: 9.75 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.004107/0.9289, allocations: 0.8979 MB / 0.7035 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.743e-06/0.929, allocations: 0 / 0.7035 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.595e-06/0.929, allocations: 0 / 0.7035 GB, free: 8.852 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006374/0.9296, allocations: 354.5 kB / 0.7038 GB, free: 8.461 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.9297, allocations: 8.031 kB / 0.7038 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.9298, allocations: 11.86 kB / 0.7038 GB, free: 8.441 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.9299, allocations: 163.1 kB / 0.704 GB, free: 8.242 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.9299, allocations: 4 kB / 0.704 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.93, allocations: 3.984 kB / 0.704 GB, free: 8.234 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000118/0.9301, allocations: 19.94 kB / 0.704 GB, free: 8.215 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.9302, allocations: 45.69 kB / 0.7041 GB, free: 8.164 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.9303, allocations: 0 / 0.7041 GB, free: 8.164 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.9303, allocations: 4 kB / 0.7041 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.9303, allocations: 3.953 kB / 0.7041 GB, free: 8.156 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004826/0.9308, allocations: 253.4 kB / 0.7043 GB, free: 7.871 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.9309, allocations: 42.56 kB / 0.7044 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.35e-05/0.931, allocations: 12.98 kB / 0.7044 GB, free: 7.805 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.9311, allocations: 7.938 kB / 0.7044 GB, free: 7.797 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/0.9312, allocations: 63.31 kB / 0.7044 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 6.442e-06/0.9312, allocations: 4 kB / 0.7044 GB, free: 7.719 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002607/0.9315, allocations: 69.64 kB / 0.7045 GB, free: 7.645 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.9316, allocations: 51.41 kB / 0.7046 GB, free: 7.582 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.698e-05/0.9317, allocations: 96.98 kB / 0.7046 GB, free: 7.48 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.9317, allocations: 33.64 kB / 0.7047 GB, free: 7.441 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.547e-05/0.9318, allocations: 84.14 kB / 0.7048 GB, free: 7.355 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.9318, allocations: 11.81 kB / 0.7048 GB, free: 7.344 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.9318, allocations: 4 kB / 0.7048 GB, free: 7.34 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.932, allocations: 314.8 kB / 0.7051 GB, free: 7.023 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-05/0.932, allocations: 12 kB / 0.7051 GB, free: 7.012 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.541e-05/0.9321, allocations: 39.38 kB / 0.7051 GB, free: 6.961 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.54e-05/0.9322, allocations: 8 kB / 0.7051 GB, free: 6.953 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.9322, allocations: 4 kB / 0.7051 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001885/0.9324, allocations: 77.58 kB / 0.7052 GB, free: 6.867 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.9324, allocations: 4 kB / 0.7052 GB, free: 6.863 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.9325, allocations: 4 kB / 0.7052 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.9325, allocations: 3.938 kB / 0.7052 GB, free: 6.855 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.9327, allocations: 15.98 kB / 0.7052 GB, free: 6.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.9327, allocations: 3.953 kB / 0.7052 GB, free: 6.836 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.9328, allocations: 8 kB / 0.7052 GB, free: 6.828 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.9329, allocations: 11.98 kB / 0.7053 GB, free: 6.816 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: 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 8.997e-05/0.933, allocations: 109 kB / 0.7054 GB, free: 6.703 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001697/0.9332, allocations: 65.69 kB / 0.7054 GB, free: 6.633 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.771e-05/0.9332, allocations: 3.906 kB / 0.7054 GB, free: 6.629 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.9335, allocations: 86.23 kB / 0.7055 GB, free: 6.535 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.9335, allocations: 4 kB / 0.7055 GB, free: 6.531 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.9335, allocations: 3.984 kB / 0.7055 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.9335, allocations: 0 / 0.7055 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004078/0.9339, allocations: 299.2 kB / 0.7058 GB, free: 6.191 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.9339, allocations: 8.5 kB / 0.7058 GB, free: 6.184 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.9341, allocations: 11.98 kB / 0.7058 GB, free: 6.172 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.9341, allocations: 0 / 0.7058 GB, free: 6.172 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.9341, allocations: 7.953 kB / 0.7058 GB, free: 6.164 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.9341, allocations: 0 / 0.7058 GB, free: 6.164 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.9342, allocations: 0 / 0.7058 GB, free: 6.164 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002213/0.9344, allocations: 167.4 kB / 0.706 GB, free: 5.984 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.714e-05/0.9345, allocations: 85.09 kB / 0.7061 GB, free: 5.883 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.9345, allocations: 4 kB / 0.7061 GB, free: 5.879 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.9347, allocations: 15.94 kB / 0.7061 GB, free: 5.863 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.064e-05/0.9347, allocations: 0 / 0.7061 GB, free: 5.863 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.9348, allocations: 4 kB / 0.7061 GB, free: 5.859 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.26e-05/0.9348, allocations: 87.27 kB / 0.7062 GB, free: 5.773 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.91e-07/0.9348, allocations: 0 / 0.7062 GB, free: 5.773 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003724/0.9352, allocations: 8 kB / 0.7062 GB, free: 5.766 MB / 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: 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.0006182/0.9358, allocations: 0.7121 MB / 0.7069 GB, free: 5.027 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001636/0.936, allocations: 31.98 kB / 0.7069 GB, free: 4.996 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.936, allocations: 0 / 0.7069 GB, free: 4.996 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.77e-05/0.9361, allocations: 19.94 kB / 0.7069 GB, free: 4.977 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.9364, allocations: 16.14 kB / 0.7069 GB, free: 4.961 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005591/0.937, allocations: 107.1 kB / 0.7071 GB, free: 4.82 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.9374, allocations: 0.6846 MB / 0.7077 GB, free: 4.109 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.471e-05/0.9374, allocations: 4.172 kB / 0.7077 GB, free: 4.102 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.64e-05/0.9375, allocations: 15.44 kB / 0.7077 GB, free: 4.086 MB / 0.5886 GB Notification: Performance of SimCode: time 8.22e-07/0.9375, allocations: 0 / 0.7077 GB, free: 4.086 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04967/0.9872, allocations: 1.007 MB / 0.7087 GB, free: 3.094 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003728/0.9876, allocations: 152.5 kB / 0.7089 GB, free: 2.895 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.425/3.413, allocations: 3.938 kB / 0.7089 GB, free: 2.891 MB / 0.5886 GB