Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.488/4.488, allocations: 404.2 MB / 411.3 MB, free: 360 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.063e-05/3.067e-05, allocations: 4 kB / 0.4945 GB, free: 1.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6816/0.6817, allocations: 92.7 MB / 0.5851 GB, free: 2.27 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2488/0.9305, allocations: 120.8 MB / 0.7031 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003807/0.931, allocations: 91.94 kB / 0.7032 GB, free: 9.195 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.007527/0.9385, allocations: 1.449 MB / 0.7046 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9386, allocations: 0 / 0.7046 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.9386, allocations: 4 kB / 0.7046 GB, free: 7.738 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006377/0.9392, allocations: 370.3 kB / 0.7049 GB, free: 7.332 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/0.9393, allocations: 12.02 kB / 0.7049 GB, free: 7.32 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.9394, allocations: 15.86 kB / 0.7049 GB, free: 7.305 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001858/0.9396, allocations: 184.6 kB / 0.7051 GB, free: 7.086 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.9396, allocations: 0 / 0.7051 GB, free: 7.086 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.9397, allocations: 4 kB / 0.7051 GB, free: 7.082 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001617/0.9398, allocations: 27.94 kB / 0.7052 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.94, allocations: 71.39 kB / 0.7052 GB, free: 6.973 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.9401, allocations: 0 / 0.7052 GB, free: 6.973 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.9401, allocations: 3.953 kB / 0.7052 GB, free: 6.969 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.9401, allocations: 4 kB / 0.7052 GB, free: 6.965 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.9408, allocations: 305.3 kB / 0.7055 GB, free: 6.629 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.941, allocations: 38.52 kB / 0.7056 GB, free: 6.582 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.186e-05/0.9411, allocations: 24.86 kB / 0.7056 GB, free: 6.555 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.9411, allocations: 3.953 kB / 0.7056 GB, free: 6.551 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.9411, allocations: 30.56 kB / 0.7056 GB, free: 6.512 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=4): time 2.305e-06/0.9412, allocations: 0 / 0.7056 GB, free: 6.512 MB / 0.5886 GB Notification: Performance of matching and sorting (n=4): time 0.0002676/0.9414, allocations: 65.72 kB / 0.7057 GB, free: 6.441 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.9415, allocations: 77.11 kB / 0.7058 GB, free: 6.348 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.9417, allocations: 114.5 kB / 0.7059 GB, free: 6.227 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.9417, allocations: 25.7 kB / 0.7059 GB, free: 6.195 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 8.488e-05/0.9418, allocations: 108 kB / 0.706 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/0.9418, allocations: 11.91 kB / 0.706 GB, free: 6.074 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-06/0.9419, allocations: 0 / 0.706 GB, free: 6.074 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.942, allocations: 318.8 kB / 0.7063 GB, free: 5.754 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.38e-05/0.9421, allocations: 12 kB / 0.7063 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.828e-05/0.9422, allocations: 25.72 kB / 0.7063 GB, free: 5.711 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.613e-05/0.9423, allocations: 15.98 kB / 0.7064 GB, free: 5.695 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.9423, allocations: 0 / 0.7064 GB, free: 5.695 MB / 0.5886 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002089/0.9425, allocations: 73.56 kB / 0.7064 GB, free: 5.617 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.9426, allocations: 11.95 kB / 0.7064 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.9426, allocations: 0 / 0.7064 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.9426, allocations: 0 / 0.7064 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.9428, allocations: 15.92 kB / 0.7065 GB, free: 5.59 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.9428, allocations: 0 / 0.7065 GB, free: 5.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.943, allocations: 12 kB / 0.7065 GB, free: 5.578 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.9431, allocations: 7.984 kB / 0.7065 GB, free: 5.57 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.751e-05/0.9432, allocations: 105 kB / 0.7066 GB, free: 5.461 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001976/0.9434, allocations: 61.59 kB / 0.7066 GB, free: 5.395 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.701e-05/0.9434, allocations: 11.86 kB / 0.7066 GB, free: 5.383 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.318e-05/0.9435, allocations: 12.34 kB / 0.7067 GB, free: 5.367 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.9435, allocations: 3.938 kB / 0.7067 GB, free: 5.363 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.9435, allocations: 0 / 0.7067 GB, free: 5.363 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.9436, allocations: 192 / 0.7067 GB, free: 5.363 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.9439, allocations: 166.2 kB / 0.7068 GB, free: 5.164 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.9439, allocations: 0 / 0.7068 GB, free: 5.164 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.944, allocations: 19.98 kB / 0.7068 GB, free: 5.145 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.9441, allocations: 0 / 0.7068 GB, free: 5.145 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.9441, allocations: 3.953 kB / 0.7068 GB, free: 5.141 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.9441, allocations: 0 / 0.7068 GB, free: 5.141 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.9441, allocations: 96 / 0.7068 GB, free: 5.141 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.9444, allocations: 159.4 kB / 0.707 GB, free: 4.969 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.9444, allocations: 85.02 kB / 0.7071 GB, free: 4.867 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.117e-05/0.9445, allocations: 8 kB / 0.7071 GB, free: 4.859 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.9448, allocations: 23.88 kB / 0.7071 GB, free: 4.836 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.9448, allocations: 7.984 kB / 0.7071 GB, free: 4.828 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.9449, allocations: 0 / 0.7071 GB, free: 4.828 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 9.595e-05/0.945, allocations: 101.1 kB / 0.7072 GB, free: 4.73 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.695e-06/0.945, allocations: 0 / 0.7072 GB, free: 4.73 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004188/0.9454, allocations: 15.88 kB / 0.7072 GB, free: 4.715 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0005688/0.946, allocations: 0.7005 MB / 0.7079 GB, free: 3.988 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001838/0.9462, allocations: 32 kB / 0.7079 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.9462, allocations: 0 / 0.7079 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.571e-05/0.9463, allocations: 15.94 kB / 0.708 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.9466, allocations: 11.94 kB / 0.708 GB, free: 3.93 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006562/0.9473, allocations: 133.4 kB / 0.7081 GB, free: 3.762 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.9476, allocations: 0.6963 MB / 0.7088 GB, free: 3.039 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 8.268e-05/0.9477, allocations: 0 / 0.7088 GB, free: 3.039 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.814e-05/0.9478, allocations: 23.42 kB / 0.7088 GB, free: 3.016 MB / 0.5886 GB Notification: Performance of SimCode: time 8.92e-07/0.9478, allocations: 0 / 0.7088 GB, free: 3.016 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04932/0.9972, allocations: 1.355 MB / 0.7101 GB, free: 1.676 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003856/0.9976, allocations: 175 kB / 0.7103 GB, free: 1.48 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.557/3.555, allocations: 0 / 0.7103 GB, free: 1.48 MB / 0.5886 GB