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={"static"}) Notification: Performance of loadModel(Buildings): time 4.108/4.108, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 5.904e-05/5.927e-05, allocations: 4 kB / 0.4992 GB, free: 13.31 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6423/0.6424, allocations: 92.69 MB / 0.5897 GB, free: 14.34 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2429/0.8854, allocations: 121.6 MB / 0.7084 GB, free: 4.551 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003374/0.8858, allocations: 87.94 kB / 0.7085 GB, free: 4.465 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.006735/0.8926, allocations: 1.498 MB / 0.71 GB, free: 2.965 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8926, allocations: 0 / 0.71 GB, free: 2.965 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.8926, allocations: 4 kB / 0.71 GB, free: 2.961 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.0006713/0.8933, allocations: 366.5 kB / 0.7103 GB, free: 2.559 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.8934, allocations: 8.031 kB / 0.7104 GB, free: 2.551 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.793e-05/0.8934, allocations: 30.56 kB / 0.7104 GB, free: 2.512 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.761e-05/0.8935, allocations: 11.86 kB / 0.7104 GB, free: 2.5 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.8937, allocations: 178.9 kB / 0.7106 GB, free: 2.285 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.8937, allocations: 0 / 0.7106 GB, free: 2.285 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.8937, allocations: 4 kB / 0.7106 GB, free: 2.281 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.8939, allocations: 61.62 kB / 0.7106 GB, free: 2.215 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.8939, allocations: 0 / 0.7106 GB, free: 2.215 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.894, allocations: 4 kB / 0.7106 GB, free: 2.211 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.894, allocations: 0 / 0.7106 GB, free: 2.211 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.8941, allocations: 23.94 kB / 0.7107 GB, free: 2.188 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.8947, allocations: 288.8 kB / 0.7109 GB, free: 1.855 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.8948, allocations: 46.56 kB / 0.711 GB, free: 1.801 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.852e-05/0.8949, allocations: 24.92 kB / 0.711 GB, free: 1.773 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.8949, allocations: 4 kB / 0.711 GB, free: 1.77 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.8951, allocations: 67.34 kB / 0.7111 GB, free: 1.691 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 2.245e-06/0.8952, allocations: 4 kB / 0.7111 GB, free: 1.688 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002723/0.8954, allocations: 77.58 kB / 0.7111 GB, free: 1.605 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.8955, allocations: 51.41 kB / 0.7112 GB, free: 1.543 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.8956, allocations: 109 kB / 0.7113 GB, free: 1.43 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.8957, allocations: 29.7 kB / 0.7113 GB, free: 1.395 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.467e-05/0.8958, allocations: 84.14 kB / 0.7114 GB, free: 1.309 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.8958, allocations: 15.88 kB / 0.7114 GB, free: 1.293 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.8958, allocations: 4 kB / 0.7114 GB, free: 1.289 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.896, allocations: 318.8 kB / 0.7117 GB, free: 0.9688 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.8961, allocations: 15.94 kB / 0.7117 GB, free: 0.9531 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.661e-05/0.8962, allocations: 42.52 kB / 0.7118 GB, free: 0.9023 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.789e-05/0.8963, allocations: 19.97 kB / 0.7118 GB, free: 0.8828 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.8963, allocations: 4 kB / 0.7118 GB, free: 0.8789 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000202/0.8965, allocations: 77.53 kB / 0.7119 GB, free: 0.7969 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.8966, allocations: 11.95 kB / 0.7119 GB, free: 0.7852 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.8966, allocations: 0 / 0.7119 GB, free: 0.7852 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.8966, allocations: 3.984 kB / 0.7119 GB, free: 0.7812 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.8968, allocations: 16.03 kB / 0.7119 GB, free: 0.7656 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.8968, allocations: 0 / 0.7119 GB, free: 0.7656 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.897, allocations: 23.91 kB / 0.7119 GB, free: 0.7422 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.897, allocations: 4 kB / 0.7119 GB, free: 0.7383 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.0001105/0.8972, allocations: 112.9 kB / 0.712 GB, free: 0.6211 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.8972, allocations: 3.906 kB / 0.7121 GB, free: 0.6172 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.8975, allocations: 94.19 kB / 0.7121 GB, free: 0.5195 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.8975, allocations: 4 kB / 0.7121 GB, free: 0.5156 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.8975, allocations: 0 / 0.7121 GB, free: 0.5156 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.8975, allocations: 0 / 0.7121 GB, free: 0.5156 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006175/0.8981, allocations: 350.5 kB / 0.7125 GB, free: 120 kB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.8982, allocations: 0 / 0.7125 GB, free: 120 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.8983, allocations: 15.94 kB / 0.7125 GB, free: 104 kB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.8983, allocations: 8 kB / 0.7125 GB, free: 96 kB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.8983, allocations: 0 / 0.7125 GB, free: 96 kB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.8984, allocations: 0 / 0.7125 GB, free: 96 kB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.8984, allocations: 3.984 kB / 0.7125 GB, free: 92 kB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.8987, allocations: 167.5 kB / 0.7127 GB, free: 15.91 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-05/0.8987, allocations: 81.11 kB / 0.7127 GB, free: 15.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.8988, allocations: 7.953 kB / 0.7128 GB, free: 15.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.899, allocations: 23.97 kB / 0.7128 GB, free: 15.78 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.899, allocations: 3.938 kB / 0.7128 GB, free: 15.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.8991, allocations: 7.984 kB / 0.7128 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.261e-05/0.8992, allocations: 87.91 kB / 0.7129 GB, free: 15.68 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.1e-07/0.8992, allocations: 0 / 0.7129 GB, free: 15.68 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003165/0.8995, allocations: 15.91 kB / 0.7129 GB, free: 15.67 MB / 0.6042 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.0006823/0.9002, allocations: 0.7218 MB / 0.7136 GB, free: 14.92 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002/0.9004, allocations: 39.94 kB / 0.7136 GB, free: 14.88 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.9004, allocations: 0 / 0.7136 GB, free: 14.88 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.073e-05/0.9005, allocations: 24 kB / 0.7137 GB, free: 14.86 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.9009, allocations: 16.06 kB / 0.7137 GB, free: 14.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005981/0.9015, allocations: 134.6 kB / 0.7138 GB, free: 14.67 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.9018, allocations: 0.6926 MB / 0.7145 GB, free: 13.95 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.041e-05/0.9019, allocations: 7.984 kB / 0.7145 GB, free: 13.95 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.572e-05/0.902, allocations: 15.44 kB / 0.7145 GB, free: 13.93 MB / 0.6042 GB Notification: Performance of SimCode: time 9.02e-07/0.902, allocations: 0 / 0.7145 GB, free: 13.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.924, allocations: 1.596 MB / 0.7161 GB, free: 12.4 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/0.9243, allocations: 162.5 kB / 0.7162 GB, free: 12.18 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/3.32, allocations: 0 / 0.7162 GB, free: 12.18 MB / 0.6042 GB