Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.875/3.875, allocations: 432.7 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.352e-05, allocations: 1.438 kB / 0.5338 GB, free: 12.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2141, allocations: 98.72 MB / 0.6302 GB, free: 6.105 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2573/0.4715, allocations: 124.7 MB / 0.752 GB, free: 9.188 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.4718, allocations: 67.97 kB / 0.7521 GB, free: 9.121 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006222/0.478, allocations: 1.473 MB / 0.7535 GB, free: 7.645 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4781, allocations: 0 / 0.7535 GB, free: 7.645 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.4781, allocations: 4 kB / 0.7535 GB, free: 7.641 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006038/0.4787, allocations: 366.5 kB / 0.7539 GB, free: 7.238 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.4788, allocations: 8.031 kB / 0.7539 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.128e-05/0.4788, allocations: 38.55 kB / 0.7539 GB, free: 7.184 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.4789, allocations: 11.86 kB / 0.754 GB, free: 7.172 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.479, allocations: 175 kB / 0.7541 GB, free: 6.961 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.4791, allocations: 4 kB / 0.7541 GB, free: 6.957 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.4791, allocations: 4 kB / 0.7541 GB, free: 6.953 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.4793, allocations: 57.66 kB / 0.7542 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4793, allocations: 4 kB / 0.7542 GB, free: 6.887 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.4793, allocations: 0 / 0.7542 GB, free: 6.887 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.4793, allocations: 0 / 0.7542 GB, free: 6.887 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.457e-05/0.4794, allocations: 20 kB / 0.7542 GB, free: 6.867 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005047/0.4799, allocations: 300.6 kB / 0.7545 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.4801, allocations: 38.58 kB / 0.7545 GB, free: 6.477 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.217e-05/0.4801, allocations: 20.98 kB / 0.7545 GB, free: 6.453 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.4802, allocations: 7.938 kB / 0.7546 GB, free: 6.445 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/0.4804, allocations: 67.39 kB / 0.7546 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.154e-06/0.4804, allocations: 0 / 0.7546 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000302/0.4807, allocations: 81.64 kB / 0.7547 GB, free: 6.281 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.4807, allocations: 55.39 kB / 0.7547 GB, free: 6.215 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.4809, allocations: 108.9 kB / 0.7549 GB, free: 6.102 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.4809, allocations: 25.7 kB / 0.7549 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.481, allocations: 88.14 kB / 0.755 GB, free: 5.98 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.481, allocations: 15.8 kB / 0.755 GB, free: 5.965 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-06/0.481, allocations: 0 / 0.755 GB, free: 5.965 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.4812, allocations: 322.8 kB / 0.7553 GB, free: 5.641 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.314e-05/0.4813, allocations: 12 kB / 0.7553 GB, free: 5.629 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.765e-05/0.4813, allocations: 38.5 kB / 0.7553 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.98e-05/0.4814, allocations: 16 kB / 0.7553 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4814, allocations: 0 / 0.7553 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002052/0.4816, allocations: 81.52 kB / 0.7554 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.4817, allocations: 8.031 kB / 0.7554 GB, free: 5.473 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.4817, allocations: 4 kB / 0.7554 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.4817, allocations: 3.953 kB / 0.7554 GB, free: 5.465 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.4819, allocations: 19.92 kB / 0.7555 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.4819, allocations: 0 / 0.7555 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.4821, allocations: 19.98 kB / 0.7555 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.4821, allocations: 4 kB / 0.7555 GB, free: 5.422 MB / 0.6355 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 9.053e-05/0.4822, allocations: 116.9 kB / 0.7556 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.984e-05/0.4822, allocations: 3.906 kB / 0.7556 GB, free: 5.297 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002338/0.4825, allocations: 86.67 kB / 0.7557 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4825, allocations: 0 / 0.7557 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.4825, allocations: 11.88 kB / 0.7557 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.4825, allocations: 96 / 0.7557 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005503/0.4831, allocations: 354.6 kB / 0.756 GB, free: 4.789 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4831, allocations: 3.984 kB / 0.756 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.4832, allocations: 11.98 kB / 0.756 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4832, allocations: 0 / 0.756 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.4833, allocations: 11.95 kB / 0.7561 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.4833, allocations: 0 / 0.7561 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/0.4833, allocations: 4 kB / 0.7561 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.4836, allocations: 187.3 kB / 0.7562 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/0.4836, allocations: 77.11 kB / 0.7563 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.4837, allocations: 4 kB / 0.7563 GB, free: 4.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.4839, allocations: 15.94 kB / 0.7563 GB, free: 4.445 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.4839, allocations: 11.98 kB / 0.7563 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.484, allocations: 4 kB / 0.7563 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.642e-05/0.484, allocations: 87.28 kB / 0.7564 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.21e-07/0.484, allocations: 4 kB / 0.7564 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003173/0.4844, allocations: 8 kB / 0.7564 GB, free: 4.332 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: 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.0005883/0.485, allocations: 0.7124 MB / 0.7571 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001904/0.4852, allocations: 47.97 kB / 0.7572 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.4852, allocations: 4.062 kB / 0.7572 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.852e-05/0.4853, allocations: 23.94 kB / 0.7572 GB, free: 3.52 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.4856, allocations: 20.06 kB / 0.7572 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005284/0.4861, allocations: 122.7 kB / 0.7573 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.4865, allocations: 0.6887 MB / 0.758 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.036e-05/0.4865, allocations: 7.781 kB / 0.758 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.68e-05/0.4866, allocations: 19.44 kB / 0.758 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of SimCode: time 7.61e-07/0.4866, allocations: 0 / 0.758 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.5112, allocations: 1.589 MB / 0.7596 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002522/0.5115, allocations: 163.4 kB / 0.7598 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.148/2.659, allocations: 3.938 kB / 0.7598 GB, free: 0.8594 MB / 0.6355 GB