Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.474/4.474, allocations: 404.1 MB / 411.3 MB, free: 380 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.355e-05/2.371e-05, allocations: 0 / 0.4945 GB, free: 1.305 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6753/0.6753, allocations: 92.7 MB / 0.5851 GB, free: 2.312 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2407/0.9161, allocations: 121 MB / 0.7032 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003932/0.9166, allocations: 87.94 kB / 0.7033 GB, free: 9.102 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.007571/0.9242, allocations: 1.499 MB / 0.7047 GB, free: 7.602 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.813e-06/0.9242, allocations: 0 / 0.7047 GB, free: 7.602 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.9242, allocations: 4 kB / 0.7048 GB, free: 7.598 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007085/0.9249, allocations: 358.5 kB / 0.7051 GB, free: 7.203 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.925, allocations: 12.03 kB / 0.7051 GB, free: 7.191 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.868e-05/0.9251, allocations: 7.859 kB / 0.7051 GB, free: 7.184 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.9253, allocations: 171 kB / 0.7053 GB, free: 6.977 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.9253, allocations: 8 kB / 0.7053 GB, free: 6.969 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.9253, allocations: 0 / 0.7053 GB, free: 6.969 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001211/0.9255, allocations: 20 kB / 0.7053 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.9256, allocations: 53.61 kB / 0.7054 GB, free: 6.891 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.9257, allocations: 4 kB / 0.7054 GB, free: 6.887 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.9257, allocations: 3.984 kB / 0.7054 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.9257, allocations: 3.953 kB / 0.7054 GB, free: 6.879 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.9263, allocations: 265.3 kB / 0.7056 GB, free: 6.582 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.9264, allocations: 38.58 kB / 0.7057 GB, free: 6.535 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.924e-05/0.9265, allocations: 16.98 kB / 0.7057 GB, free: 6.516 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.9265, allocations: 0 / 0.7057 GB, free: 6.516 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.9267, allocations: 71.33 kB / 0.7057 GB, free: 6.434 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 2.465e-06/0.9268, allocations: 4 kB / 0.7057 GB, free: 6.43 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002793/0.9271, allocations: 77.55 kB / 0.7058 GB, free: 6.348 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.9271, allocations: 55.39 kB / 0.7059 GB, free: 6.281 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.9272, allocations: 97 kB / 0.706 GB, free: 6.18 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.9273, allocations: 29.64 kB / 0.706 GB, free: 6.145 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/0.9274, allocations: 92.2 kB / 0.7061 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.848e-05/0.9274, allocations: 19.8 kB / 0.7061 GB, free: 6.031 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-06/0.9274, allocations: 0 / 0.7061 GB, free: 6.031 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.9276, allocations: 310.8 kB / 0.7064 GB, free: 5.719 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.567e-05/0.9277, allocations: 20 kB / 0.7064 GB, free: 5.699 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.524e-05/0.9278, allocations: 38.5 kB / 0.7064 GB, free: 5.652 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.602e-05/0.9278, allocations: 8 kB / 0.7065 GB, free: 5.645 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.9278, allocations: 4 kB / 0.7065 GB, free: 5.641 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002144/0.9281, allocations: 81.5 kB / 0.7065 GB, free: 5.555 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.9281, allocations: 8 kB / 0.7065 GB, free: 5.547 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.9281, allocations: 192 / 0.7065 GB, free: 5.547 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.9282, allocations: 7.984 kB / 0.7066 GB, free: 5.539 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.9284, allocations: 19.92 kB / 0.7066 GB, free: 5.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.9284, allocations: 4 kB / 0.7066 GB, free: 5.516 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.9286, allocations: 15.92 kB / 0.7066 GB, free: 5.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.9286, allocations: 4 kB / 0.7066 GB, free: 5.496 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.000103/0.9287, allocations: 109 kB / 0.7067 GB, free: 5.383 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002005/0.929, allocations: 77.53 kB / 0.7068 GB, free: 5.301 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.929, allocations: 15.94 kB / 0.7068 GB, free: 5.285 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.9292, allocations: 74.3 kB / 0.7069 GB, free: 5.203 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.9293, allocations: 4 kB / 0.7069 GB, free: 5.199 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.9293, allocations: 0 / 0.7069 GB, free: 5.199 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.9293, allocations: 0 / 0.7069 GB, free: 5.199 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005958/0.9299, allocations: 331 kB / 0.7072 GB, free: 4.832 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.9299, allocations: 0 / 0.7072 GB, free: 4.832 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.9301, allocations: 11.95 kB / 0.7072 GB, free: 4.82 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.9301, allocations: 0 / 0.7072 GB, free: 4.82 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.9301, allocations: 3.984 kB / 0.7072 GB, free: 4.816 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.9301, allocations: 0 / 0.7072 GB, free: 4.816 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.9301, allocations: 4 kB / 0.7072 GB, free: 4.812 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.9304, allocations: 172.1 kB / 0.7074 GB, free: 4.629 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.338e-05/0.9305, allocations: 81.02 kB / 0.7074 GB, free: 4.531 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.9305, allocations: 11.94 kB / 0.7075 GB, free: 4.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.9308, allocations: 11.98 kB / 0.7075 GB, free: 4.508 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-05/0.9308, allocations: 11.98 kB / 0.7075 GB, free: 4.496 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.9309, allocations: 7.938 kB / 0.7075 GB, free: 4.488 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.476e-05/0.9309, allocations: 87.34 kB / 0.7076 GB, free: 4.402 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.01e-07/0.931, allocations: 0 / 0.7076 GB, free: 4.402 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004181/0.9314, allocations: 16 kB / 0.7076 GB, free: 4.387 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0006307/0.932, allocations: 0.7044 MB / 0.7083 GB, free: 3.656 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001783/0.9322, allocations: 39.94 kB / 0.7083 GB, free: 3.617 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.9322, allocations: 0 / 0.7083 GB, free: 3.617 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.683e-05/0.9323, allocations: 24.06 kB / 0.7083 GB, free: 3.594 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.9327, allocations: 15.94 kB / 0.7083 GB, free: 3.578 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006156/0.9334, allocations: 125.6 kB / 0.7085 GB, free: 3.414 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.9337, allocations: 0.6923 MB / 0.7091 GB, free: 2.695 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.844e-05/0.9338, allocations: 3.984 kB / 0.7091 GB, free: 2.691 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.875e-05/0.9339, allocations: 23.38 kB / 0.7092 GB, free: 2.668 MB / 0.5886 GB Notification: Performance of SimCode: time 9.42e-07/0.9339, allocations: 0 / 0.7092 GB, free: 2.668 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04807/0.982, allocations: 1.262 MB / 0.7104 GB, free: 1.422 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004161/0.9824, allocations: 156.6 kB / 0.7105 GB, free: 1.223 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.456/3.439, allocations: 0.9844 kB / 0.7105 GB, free: 1.223 MB / 0.5886 GB