Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.746/2.746, allocations: 235.1 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.218e-05, allocations: 0 / 299.6 MB, free: 220 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3787, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1717/0.5505, allocations: 81.82 MB / 436.2 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003663/0.5509, allocations: 63.97 kB / 436.3 MB, free: 13.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02311/0.574, allocations: 4.07 MB / 440.4 MB, free: 9.133 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5741, allocations: 192 / 440.4 MB, free: 9.133 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.599e-05/0.5741, allocations: 7.938 kB / 440.4 MB, free: 9.125 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.0009446/0.5751, allocations: 466.9 kB / 440.8 MB, free: 8.625 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.284e-05/0.5752, allocations: 12.03 kB / 440.9 MB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.025e-05/0.5753, allocations: 31.67 kB / 440.9 MB, free: 8.582 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.5757, allocations: 228 kB / 441.1 MB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.5757, allocations: 4 kB / 441.1 MB, free: 8.312 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-05/0.5758, allocations: 23.88 kB / 441.1 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003805/0.5762, allocations: 96.84 kB / 441.2 MB, free: 8.195 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005181/0.5767, allocations: 177.9 kB / 441.4 MB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.325e-05/0.5768, allocations: 7.984 kB / 441.4 MB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.5768, allocations: 0 / 441.4 MB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.5769, allocations: 15.95 kB / 441.4 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.5792, allocations: 0.9905 MB / 442.4 MB, free: 6.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00038/0.5796, allocations: 148.2 kB / 442.6 MB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.5797, allocations: 43.47 kB / 442.6 MB, free: 6.676 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.5798, allocations: 7.938 kB / 442.6 MB, free: 6.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.5798, allocations: 30.56 kB / 442.6 MB, free: 6.629 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.146e-06/0.5798, allocations: 0 / 442.6 MB, free: 6.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004793/0.5803, allocations: 117.5 kB / 442.8 MB, free: 6.508 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/0.5804, allocations: 132.5 kB / 442.9 MB, free: 6.348 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.5807, allocations: 149.4 kB / 443 MB, free: 6.195 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.5807, allocations: 25.7 kB / 443.1 MB, free: 6.164 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.5809, allocations: 163.8 kB / 443.2 MB, free: 6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.581, allocations: 55.2 kB / 443.3 MB, free: 5.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.22e-05/0.581, allocations: 0 / 443.3 MB, free: 5.945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.5812, allocations: 326.8 kB / 443.6 MB, free: 5.617 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.5813, allocations: 40.02 kB / 443.6 MB, free: 5.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002383/0.5816, allocations: 142.4 kB / 443.8 MB, free: 5.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.5818, allocations: 67.88 kB / 443.8 MB, free: 5.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.5818, allocations: 4 kB / 443.8 MB, free: 5.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005894/0.5824, allocations: 193.2 kB / 444 MB, free: 5.121 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.5825, allocations: 8.438 kB / 444 MB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.5825, allocations: 4 kB / 444 MB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/0.5825, allocations: 8 kB / 444 MB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004849/0.583, allocations: 67.84 kB / 444.1 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.5831, allocations: 4 kB / 444.1 MB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.5833, allocations: 19.78 kB / 444.1 MB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.5834, allocations: 12.19 kB / 444.1 MB, free: 5 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.000126/0.5835, allocations: 116.8 kB / 444.3 MB, free: 4.879 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003882/0.5839, allocations: 117.3 kB / 444.4 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.5841, allocations: 23.83 kB / 444.4 MB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002352/0.5843, allocations: 67.25 kB / 444.5 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.5843, allocations: 0 / 444.5 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.5844, allocations: 7.984 kB / 444.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.5844, allocations: 0 / 444.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007428/0.5851, allocations: 225.9 kB / 444.7 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.5852, allocations: 4 kB / 444.7 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005699/0.5857, allocations: 43.92 kB / 444.7 MB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.5858, allocations: 3.938 kB / 444.7 MB, free: 4.344 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.5858, allocations: 4 kB / 444.8 MB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.5858, allocations: 7.984 kB / 444.8 MB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.5858, allocations: 0 / 444.8 MB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006155/0.5865, allocations: 0.5083 MB / 445.3 MB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.812e-05/0.5866, allocations: 92.86 kB / 445.4 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.156e-05/0.5866, allocations: 3.984 kB / 445.4 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.587, allocations: 4 kB / 445.4 MB, free: 3.672 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.105e-05/0.587, allocations: 15.88 kB / 445.4 MB, free: 3.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.5871, allocations: 8 kB / 445.4 MB, free: 3.648 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001882/0.5873, allocations: 124.8 kB / 445.5 MB, free: 3.527 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.5873, allocations: 0 / 445.5 MB, free: 3.527 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008425/0.5881, allocations: 47.84 kB / 445.6 MB, free: 3.48 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.001064/0.5892, allocations: 1.248 MB / 446.8 MB, free: 2.191 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003808/0.5896, allocations: 107.9 kB / 446.9 MB, free: 2.086 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5896, allocations: 3.938 kB / 446.9 MB, free: 2.082 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.5898, allocations: 39.94 kB / 447 MB, free: 2.043 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008434/0.5906, allocations: 43.02 kB / 447 MB, free: 2.004 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.5932, allocations: 0.7879 MB / 447.8 MB, free: 1.168 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.5937, allocations: 0.7483 MB / 448.5 MB, free: 404 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.5939, allocations: 22.08 kB / 448.6 MB, free: 376 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.5941, allocations: 59.41 kB / 448.6 MB, free: 320 kB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5941, allocations: 0 / 448.6 MB, free: 320 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05086/0.645, allocations: 3.137 MB / 451.7 MB, free: 13.2 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003369/0.6454, allocations: 136.2 kB / 451.9 MB, free: 13 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.747/3.392, allocations: 0 / 451.9 MB, free: 13 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat