Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.748/2.748, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.171e-05/2.164e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3919, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1692/0.5612, allocations: 82.5 MB / 436.9 MB, free: 12.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5616, allocations: 67.97 kB / 437 MB, free: 12.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02346/0.585, allocations: 4.285 MB / 441.3 MB, free: 8.215 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5851, allocations: 0 / 441.3 MB, free: 8.215 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.377e-05/0.5851, allocations: 4 kB / 441.3 MB, free: 8.211 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.001415/0.5866, allocations: 0.5145 MB / 441.8 MB, free: 7.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.5866, allocations: 8.031 kB / 441.8 MB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.5867, allocations: 23.72 kB / 441.8 MB, free: 7.621 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.5872, allocations: 234.7 kB / 442.1 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.5872, allocations: 7.938 kB / 442.1 MB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.989e-05/0.5873, allocations: 20 kB / 442.1 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006839/0.588, allocations: 188.8 kB / 442.3 MB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006689/0.5887, allocations: 210.3 kB / 442.5 MB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.5888, allocations: 3.984 kB / 442.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.5888, allocations: 0 / 442.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.77e-05/0.5889, allocations: 4 kB / 442.5 MB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.5912, allocations: 0.6543 MB / 443.1 MB, free: 6.223 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006061/0.5918, allocations: 201 kB / 443.3 MB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003663/0.5922, allocations: 125.3 kB / 443.5 MB, free: 5.895 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.11e-05/0.5923, allocations: 8.172 kB / 443.5 MB, free: 5.887 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.5923, allocations: 34.8 kB / 443.5 MB, free: 5.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 3.616e-06/0.5924, allocations: 4 kB / 443.5 MB, free: 5.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.004097/0.5965, allocations: 1.095 MB / 444.6 MB, free: 4.652 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.5965, allocations: 59.41 kB / 444.7 MB, free: 4.582 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.5968, allocations: 145.7 kB / 444.8 MB, free: 4.434 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.658e-05/0.5969, allocations: 25.7 kB / 444.8 MB, free: 4.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.597, allocations: 129 kB / 445 MB, free: 4.273 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.5972, allocations: 118.3 kB / 445.1 MB, free: 4.156 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.5972, allocations: 0 / 445.1 MB, free: 4.156 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.5974, allocations: 334.8 kB / 445.4 MB, free: 3.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.5977, allocations: 100 kB / 445.5 MB, free: 3.723 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.5981, allocations: 139.4 kB / 445.6 MB, free: 3.574 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004516/0.5986, allocations: 103.9 kB / 445.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.5986, allocations: 0 / 445.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001368/0.6, allocations: 357.9 kB / 446.1 MB, free: 3.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.6001, allocations: 8.062 kB / 446.1 MB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.6001, allocations: 4.062 kB / 446.1 MB, free: 3.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008477/0.601, allocations: 188.7 kB / 446.3 MB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.6015, allocations: 55.91 kB / 446.3 MB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.6028, allocations: 0.728 MB / 447.1 MB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005836/0.6035, allocations: 48.05 kB / 447.1 MB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.196e-05/0.6036, allocations: 15.98 kB / 447.1 MB, free: 2.043 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002501/0.6038, allocations: 114.1 kB / 447.2 MB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001448/0.6053, allocations: 354.2 kB / 447.6 MB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.6054, allocations: 23.72 kB / 447.6 MB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001543/0.6069, allocations: 401.3 kB / 448 MB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.607, allocations: 4 kB / 448 MB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.607, allocations: 0 / 448 MB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.607, allocations: 7.938 kB / 448 MB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.6097, allocations: 0.8552 MB / 448.9 MB, free: 224 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6097, allocations: 0 / 448.9 MB, free: 224 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/0.6102, allocations: 51.97 kB / 448.9 MB, free: 172 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006989/0.6109, allocations: 168.7 kB / 449.1 MB, free: 0 / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.611, allocations: 8.109 kB / 449.1 MB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.6122, allocations: 0.6965 MB / 449.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.6122, allocations: 0 / 449.8 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.6142, allocations: 0.607 MB / 450.4 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.6145, allocations: 120.9 kB / 450.5 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.623e-05/0.6146, allocations: 8 kB / 450.5 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005568/0.6152, allocations: 44.02 kB / 450.6 MB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.6154, allocations: 55.83 kB / 450.6 MB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.058e-05/0.6155, allocations: 15.98 kB / 450.6 MB, free: 14.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001525/0.6156, allocations: 119.3 kB / 450.8 MB, free: 14.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6157, allocations: 0 / 450.8 MB, free: 14.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006512/0.6163, allocations: 71.81 kB / 450.8 MB, free: 14.18 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.002578/0.6189, allocations: 1.285 MB / 452.1 MB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.6201, allocations: 302.4 kB / 452.4 MB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6201, allocations: 4.125 kB / 452.4 MB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005173/0.6206, allocations: 143.8 kB / 452.5 MB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006046/0.6213, allocations: 23.97 kB / 452.6 MB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004124/0.6254, allocations: 0.7169 MB / 453.3 MB, free: 11.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006563/0.6261, allocations: 0.7564 MB / 454 MB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002457/0.6264, allocations: 18.08 kB / 454.1 MB, free: 10.83 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/0.6267, allocations: 67.41 kB / 454.1 MB, free: 10.76 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6267, allocations: 3.938 kB / 454.1 MB, free: 10.76 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07236/0.6991, allocations: 5.849 MB / 460 MB, free: 4.934 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003982/0.6996, allocations: 149.9 kB / 460.1 MB, free: 4.742 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.131/3.83, allocations: 4.031 kB / 460.1 MB, free: 4.738 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat