Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.33/2.33, allocations: 235 MB / 247.6 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.433e-05/3.449e-05, allocations: 7.938 kB / 305 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3874, allocations: 54.85 MB / 359.8 MB, free: 2.234 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.5376, allocations: 82.49 MB / 442.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.5379, allocations: 63.97 kB / 442.4 MB, free: 14.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01816/0.5561, allocations: 4.112 MB / 446.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5561, allocations: 0 / 446.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.194e-05/0.5562, allocations: 8 kB / 446.5 MB, free: 10.28 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007762/0.5569, allocations: 454.3 kB / 447 MB, free: 9.789 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.557, allocations: 16.03 kB / 447 MB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.56e-05/0.5571, allocations: 50.55 kB / 447 MB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.389e-05/0.5572, allocations: 27.75 kB / 447.1 MB, free: 9.688 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.5575, allocations: 231.1 kB / 447.3 MB, free: 9.418 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.5575, allocations: 24.44 kB / 447.3 MB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.5576, allocations: 20 kB / 447.3 MB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004831/0.5581, allocations: 209.9 kB / 447.5 MB, free: 9.152 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.5581, allocations: 11.91 kB / 447.5 MB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.5582, allocations: 4 kB / 447.5 MB, free: 9.137 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.5582, allocations: 15.94 kB / 447.6 MB, free: 9.121 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003249/0.5585, allocations: 111.9 kB / 447.7 MB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.5605, allocations: 1.026 MB / 448.7 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.5609, allocations: 154.6 kB / 448.8 MB, free: 7.707 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.561, allocations: 47.47 kB / 448.9 MB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.561, allocations: 4 kB / 448.9 MB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.5611, allocations: 38.5 kB / 448.9 MB, free: 7.598 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 5.971e-06/0.5611, allocations: 4 kB / 448.9 MB, free: 7.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004246/0.5615, allocations: 121.5 kB / 449.1 MB, free: 7.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/0.5616, allocations: 136.5 kB / 449.2 MB, free: 7.305 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.5619, allocations: 158.3 kB / 449.3 MB, free: 7.141 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.5619, allocations: 29.7 kB / 449.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.562, allocations: 222.2 kB / 449.6 MB, free: 6.887 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.907e-05/0.5621, allocations: 67.12 kB / 449.7 MB, free: 6.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/0.5622, allocations: 4 kB / 449.7 MB, free: 6.816 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5623, allocations: 326.8 kB / 450 MB, free: 6.488 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.5624, allocations: 36 kB / 450 MB, free: 6.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.5627, allocations: 154.5 kB / 450.2 MB, free: 6.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.5629, allocations: 64.75 kB / 450.2 MB, free: 6.188 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.5629, allocations: 4 kB / 450.2 MB, free: 6.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005049/0.5634, allocations: 209.4 kB / 450.4 MB, free: 5.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.5634, allocations: 8 kB / 450.4 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.5635, allocations: 4 kB / 450.5 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.5635, allocations: 8 kB / 450.5 MB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.5639, allocations: 63.91 kB / 450.5 MB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.971e-05/0.5639, allocations: 7.938 kB / 450.5 MB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.5642, allocations: 24.19 kB / 450.6 MB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.5642, allocations: 16.56 kB / 450.6 MB, free: 5.844 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001065/0.5643, allocations: 124.8 kB / 450.7 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.5644, allocations: 15.81 kB / 450.7 MB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/0.5647, allocations: 74.61 kB / 450.8 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.5647, allocations: 0 / 450.8 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.5647, allocations: 4 kB / 450.8 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.5647, allocations: 8.953 kB / 450.8 MB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006793/0.5654, allocations: 261.5 kB / 451 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5654, allocations: 4 kB / 451.1 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/0.5659, allocations: 43.98 kB / 451.1 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.5659, allocations: 0 / 451.1 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.566, allocations: 4 kB / 451.1 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.566, allocations: 3.984 kB / 451.1 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.566, allocations: 4 kB / 451.1 MB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.5666, allocations: 0.5106 MB / 451.6 MB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.682e-05/0.5667, allocations: 96.8 kB / 451.7 MB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.839e-05/0.5668, allocations: 11.98 kB / 451.7 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/0.567, allocations: 1.5 kB / 451.7 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.5671, allocations: 19.94 kB / 451.7 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.5671, allocations: 8 kB / 451.8 MB, free: 4.539 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001529/0.5673, allocations: 129.2 kB / 451.9 MB, free: 4.414 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5673, allocations: 0 / 451.9 MB, free: 4.414 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006978/0.568, allocations: 60.34 kB / 451.9 MB, free: 4.355 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0008943/0.5689, allocations: 1.258 MB / 453.2 MB, free: 3.059 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003402/0.5693, allocations: 117 kB / 453.3 MB, free: 2.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5693, allocations: 0.875 kB / 453.3 MB, free: 2.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.5694, allocations: 48.05 kB / 453.4 MB, free: 2.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006631/0.5701, allocations: 50.95 kB / 453.4 MB, free: 2.855 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.5722, allocations: 0.8296 MB / 454.2 MB, free: 1.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.5725, allocations: 0.7443 MB / 455 MB, free: 1.199 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.5727, allocations: 67.42 kB / 455 MB, free: 1.137 MB / 378.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5727, allocations: 0 / 455 MB, free: 1.137 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.295/2.867, allocations: 3.277 MB / 458.3 MB, free: 13.86 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat