Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.13/2.13, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.614e-05/3.619e-05, allocations: 3.984 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.554, allocations: 79.6 MB / 422.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.5543, allocations: 79.27 kB / 422.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0133/0.5676, allocations: 2.977 MB / 425.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5677, allocations: 0 / 425.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.5677, allocations: 4 kB / 425.3 MB, free: 11.55 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.00105/0.5688, allocations: 0.4994 MB / 425.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.5688, allocations: 12.03 kB / 425.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.213e-05/0.5689, allocations: 56.56 kB / 425.8 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.141e-05/0.569, allocations: 23.72 kB / 425.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.5695, allocations: 224.6 kB / 426.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.222e-05/0.5696, allocations: 45.03 kB / 426.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.5696, allocations: 11.94 kB / 426.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007293/0.5704, allocations: 299.3 kB / 426.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.5704, allocations: 7.953 kB / 426.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.5704, allocations: 3.875 kB / 426.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.5704, allocations: 4 kB / 426.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.5708, allocations: 98.05 kB / 426.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.5718, allocations: 487.2 kB / 427 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.5722, allocations: 151 kB / 427.2 MB, free: 9.723 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002114/0.5725, allocations: 84.52 kB / 427.3 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.5725, allocations: 4 kB / 427.3 MB, free: 9.656 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.5728, allocations: 102.3 kB / 427.4 MB, free: 9.562 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 3.797e-06/0.5728, allocations: 0 / 427.4 MB, free: 9.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005346/0.5733, allocations: 171.1 kB / 427.5 MB, free: 9.422 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.834e-05/0.5734, allocations: 84.8 kB / 427.6 MB, free: 9.324 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.5736, allocations: 143.3 kB / 427.7 MB, free: 9.188 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.5737, allocations: 37.58 kB / 427.8 MB, free: 9.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.5738, allocations: 174.4 kB / 428 MB, free: 8.984 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.284e-05/0.5739, allocations: 39.17 kB / 428 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-05/0.5739, allocations: 3.75 kB / 428 MB, free: 8.953 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.574, allocations: 322.7 kB / 428.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.5742, allocations: 39.55 kB / 428.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.5744, allocations: 134.4 kB / 428.5 MB, free: 8.465 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.5746, allocations: 80.98 kB / 428.6 MB, free: 8.395 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.5746, allocations: 0 / 428.6 MB, free: 8.395 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005321/0.5751, allocations: 225.1 kB / 428.8 MB, free: 8.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.881e-05/0.5752, allocations: 35.11 kB / 428.8 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5752, allocations: 4 kB / 428.8 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.5752, allocations: 4 kB / 428.8 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003792/0.5756, allocations: 51.89 kB / 428.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.5757, allocations: 4 kB / 428.9 MB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.576, allocations: 31.77 kB / 428.9 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.576, allocations: 23.91 kB / 428.9 MB, free: 8.051 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001369/0.5762, allocations: 128.3 kB / 429.1 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000235/0.5764, allocations: 100.8 kB / 429.2 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.124e-05/0.5765, allocations: 28.3 kB / 429.2 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.5765, allocations: 4 kB / 429.2 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5765, allocations: 0 / 429.2 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5766, allocations: 0 / 429.2 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007658/0.5773, allocations: 467.4 kB / 429.6 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.5774, allocations: 4 kB / 429.6 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.5777, allocations: 43.83 kB / 429.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.5778, allocations: 4 kB / 429.7 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.5778, allocations: 0 / 429.7 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.5778, allocations: 3.938 kB / 429.7 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.5778, allocations: 4 kB / 429.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004979/0.5783, allocations: 292 kB / 430 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.317e-05/0.5784, allocations: 88.92 kB / 430.1 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.5785, allocations: 7.859 kB / 430.1 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.5788, allocations: 23.92 kB / 430.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.224e-05/0.5789, allocations: 27.61 kB / 430.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.5789, allocations: 4 kB / 430.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001102/0.5791, allocations: 113.2 kB / 430.2 MB, free: 6.785 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5791, allocations: 0 / 430.2 MB, free: 6.785 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004422/0.5795, allocations: 47.47 kB / 430.3 MB, free: 6.746 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001093/0.5806, allocations: 0.9942 MB / 431.3 MB, free: 5.801 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000474/0.5811, allocations: 193.8 kB / 431.5 MB, free: 5.637 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5811, allocations: 0 / 431.5 MB, free: 5.637 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.5813, allocations: 43.23 kB / 431.5 MB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.5818, allocations: 64.16 kB / 431.6 MB, free: 5.559 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.5828, allocations: 304.8 kB / 431.9 MB, free: 5.254 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.5831, allocations: 0.7324 MB / 432.6 MB, free: 4.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.5833, allocations: 50.22 kB / 432.7 MB, free: 4.48 MB / 346.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5833, allocations: 0 / 432.7 MB, free: 4.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.393/2.977, allocations: 2.775 MB / 435.4 MB, free: 1.746 MB / 346.7 MB