Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.541/2.541, allocations: 235 MB / 247.6 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.649e-05/3.658e-05, allocations: 0 / 305 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3818/0.3818, allocations: 54.85 MB / 359.9 MB, free: 2.594 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1888/0.5707, allocations: 83.19 MB / 443 MB, free: 13.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003565/0.5711, allocations: 69 kB / 443.1 MB, free: 13.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02666/0.5978, allocations: 4.304 MB / 447.4 MB, free: 9.496 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5979, allocations: 0 / 447.4 MB, free: 9.496 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.5979, allocations: 8 kB / 447.4 MB, free: 9.488 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001541/0.5995, allocations: 0.5093 MB / 447.9 MB, free: 8.938 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.5996, allocations: 8.031 kB / 447.9 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.5997, allocations: 54.55 kB / 448 MB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.5998, allocations: 23.72 kB / 448 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004926/0.6004, allocations: 240 kB / 448.2 MB, free: 8.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-05/0.6004, allocations: 16.44 kB / 448.3 MB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.6005, allocations: 20 kB / 448.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009494/0.6015, allocations: 246.4 kB / 448.5 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/0.6016, allocations: 7.859 kB / 448.5 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-05/0.6016, allocations: 8 kB / 448.5 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.6017, allocations: 11.98 kB / 448.5 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008519/0.6025, allocations: 196.8 kB / 448.7 MB, free: 8.066 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002773/0.6053, allocations: 0.7092 MB / 449.4 MB, free: 7.305 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008187/0.6062, allocations: 203.9 kB / 449.6 MB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004959/0.6067, allocations: 137.2 kB / 449.8 MB, free: 6.961 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-05/0.6068, allocations: 4.234 kB / 449.8 MB, free: 6.957 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.6069, allocations: 34.78 kB / 449.8 MB, free: 6.914 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 4.679e-06/0.6069, allocations: 0 / 449.8 MB, free: 6.914 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.004527/0.6114, allocations: 1.155 MB / 451 MB, free: 5.664 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.107e-05/0.6115, allocations: 59.39 kB / 451 MB, free: 5.594 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.6119, allocations: 168.4 kB / 451.2 MB, free: 5.426 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.623e-05/0.612, allocations: 33.7 kB / 451.2 MB, free: 5.387 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.6121, allocations: 191.2 kB / 451.4 MB, free: 5.199 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.6123, allocations: 122.3 kB / 451.5 MB, free: 5.078 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.6124, allocations: 4 kB / 451.5 MB, free: 5.074 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.6126, allocations: 326.8 kB / 451.9 MB, free: 4.746 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004514/0.613, allocations: 100 kB / 452 MB, free: 4.648 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.6136, allocations: 147.3 kB / 452.1 MB, free: 4.492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.614, allocations: 108.9 kB / 452.2 MB, free: 4.387 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.614, allocations: 0 / 452.2 MB, free: 4.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001548/0.6156, allocations: 374.1 kB / 452.6 MB, free: 4.012 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.6156, allocations: 5.719 kB / 452.6 MB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/0.6157, allocations: 7.938 kB / 452.6 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009332/0.6166, allocations: 188.8 kB / 452.8 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005622/0.6172, allocations: 55.91 kB / 452.8 MB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.6186, allocations: 0.7046 MB / 453.5 MB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006973/0.6193, allocations: 51.98 kB / 453.6 MB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.659e-05/0.6194, allocations: 11.98 kB / 453.6 MB, free: 2.965 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002247/0.6197, allocations: 132.9 kB / 453.7 MB, free: 2.828 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.6198, allocations: 23.72 kB / 453.7 MB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.6218, allocations: 425.1 kB / 454.2 MB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.6218, allocations: 3.984 kB / 454.2 MB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.027e-05/0.6218, allocations: 8 kB / 454.2 MB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.6219, allocations: 0 / 454.2 MB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.625, allocations: 0.9217 MB / 455.1 MB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.6251, allocations: 4 kB / 455.1 MB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000587/0.6257, allocations: 47.91 kB / 455.1 MB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008124/0.6265, allocations: 173.8 kB / 455.3 MB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.772e-05/0.6266, allocations: 11.98 kB / 455.3 MB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.6278, allocations: 0.6754 MB / 456 MB, free: 456 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.6278, allocations: 4.031 kB / 456 MB, free: 452 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.63, allocations: 0.6258 MB / 456.6 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.6303, allocations: 125 kB / 456.8 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.6305, allocations: 8 kB / 456.8 MB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006898/0.6312, allocations: 51.95 kB / 456.8 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/0.6314, allocations: 55.95 kB / 456.9 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.948e-05/0.6315, allocations: 21.02 kB / 456.9 MB, free: 15.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002371/0.6318, allocations: 139.4 kB / 457 MB, free: 15.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6318, allocations: 0 / 457 MB, free: 15.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008366/0.6326, allocations: 79.88 kB / 457.1 MB, free: 15.29 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003023/0.6357, allocations: 1.321 MB / 458.4 MB, free: 13.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.6371, allocations: 313.7 kB / 458.7 MB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.6372, allocations: 0 / 458.7 MB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006545/0.6379, allocations: 139.9 kB / 458.9 MB, free: 13.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005924/0.6385, allocations: 32.2 kB / 458.9 MB, free: 13.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.642, allocations: 0.7802 MB / 459.7 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.6425, allocations: 0.7566 MB / 460.4 MB, free: 11.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.6427, allocations: 71.41 kB / 460.5 MB, free: 11.76 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6427, allocations: 0 / 460.5 MB, free: 11.76 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.716/3.358, allocations: 4.947 MB / 465.4 MB, free: 6.816 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat