Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.03/2.03, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.14e-05/4.149e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 48.69 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4522/0.5558, allocations: 76.79 MB / 398.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.5562, allocations: 71.95 kB / 398.7 MB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02089/0.5771, allocations: 4.329 MB / 403 MB, free: 8.668 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5771, allocations: 0 / 403 MB, free: 8.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.067e-05/0.5772, allocations: 4 kB / 403 MB, free: 8.664 MB / 330.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.001269/0.5784, allocations: 0.51 MB / 403.5 MB, free: 8.109 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.5785, allocations: 15.97 kB / 403.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.5786, allocations: 54.55 kB / 403.6 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.5787, allocations: 31.67 kB / 403.6 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.5792, allocations: 235.4 kB / 403.9 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.5792, allocations: 24.38 kB / 403.9 MB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.176e-05/0.5793, allocations: 20 kB / 403.9 MB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007024/0.58, allocations: 251.2 kB / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.5801, allocations: 15.89 kB / 404.2 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.677e-05/0.5801, allocations: 8 kB / 404.2 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.5801, allocations: 11.98 kB / 404.2 MB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.5808, allocations: 217.6 kB / 404.4 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.583, allocations: 0.7285 MB / 405.1 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008022/0.5838, allocations: 234.5 kB / 405.3 MB, free: 6.168 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.5842, allocations: 132.8 kB / 405.5 MB, free: 6.035 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.849e-05/0.5842, allocations: 11.94 kB / 405.5 MB, free: 6.023 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.5843, allocations: 34.56 kB / 405.5 MB, free: 5.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 3.366e-06/0.5843, allocations: 0 / 405.5 MB, free: 5.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003551/0.5879, allocations: 1.219 MB / 406.7 MB, free: 4.668 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.5879, allocations: 51.41 kB / 406.8 MB, free: 4.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.5882, allocations: 177.9 kB / 407 MB, free: 4.418 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.992e-05/0.5883, allocations: 41.69 kB / 407 MB, free: 4.371 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.5885, allocations: 194.9 kB / 407.2 MB, free: 4.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.5886, allocations: 114.5 kB / 407.3 MB, free: 4.066 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/0.5887, allocations: 4 kB / 407.3 MB, free: 4.062 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.5888, allocations: 326.8 kB / 407.6 MB, free: 3.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.5892, allocations: 119.9 kB / 407.7 MB, free: 3.617 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.5896, allocations: 162.9 kB / 407.9 MB, free: 3.445 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.5899, allocations: 108 kB / 408 MB, free: 3.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.59, allocations: 4 kB / 408 MB, free: 3.336 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001497/0.5915, allocations: 477.9 kB / 408.5 MB, free: 2.859 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.5915, allocations: 11.98 kB / 408.5 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5915, allocations: 0 / 408.5 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008194/0.5924, allocations: 244.7 kB / 408.7 MB, free: 2.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.5928, allocations: 59.91 kB / 408.8 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.594, allocations: 0.7358 MB / 409.5 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005313/0.5946, allocations: 47.98 kB / 409.6 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.5947, allocations: 16 kB / 409.6 MB, free: 1.723 MB / 330.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 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001866/0.5949, allocations: 136.9 kB / 409.7 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.024e-05/0.595, allocations: 23.72 kB / 409.7 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.5951, allocations: 30.78 kB / 409.8 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.5951, allocations: 4 kB / 409.8 MB, free: 1.523 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.5951, allocations: 0 / 409.8 MB, free: 1.523 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.5952, allocations: 3.984 kB / 409.8 MB, free: 1.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.5978, allocations: 0.9928 MB / 410.8 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.5978, allocations: 0 / 410.8 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.5983, allocations: 43.97 kB / 410.8 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007277/0.5991, allocations: 228.6 kB / 411 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.976e-05/0.5991, allocations: 15.95 kB / 411.1 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.6001, allocations: 0.7045 MB / 411.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.6002, allocations: 3.984 kB / 411.8 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.6021, allocations: 0.6782 MB / 412.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.6023, allocations: 124.8 kB / 412.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.469e-05/0.6024, allocations: 11.95 kB / 412.6 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.6029, allocations: 59.95 kB / 412.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.6031, allocations: 51.89 kB / 412.7 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.101e-05/0.6032, allocations: 15.98 kB / 412.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002003/0.6034, allocations: 140.2 kB / 412.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6034, allocations: 0 / 412.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005221/0.604, allocations: 76 kB / 412.9 MB, free: 14.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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.002458/0.6064, allocations: 1.315 MB / 414.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.6075, allocations: 287.8 kB / 414.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.6076, allocations: 0 / 414.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004714/0.608, allocations: 160.1 kB / 414.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/0.6085, allocations: 31.97 kB / 414.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003389/0.6119, allocations: 0.7672 MB / 415.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.6124, allocations: 0.7607 MB / 416.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.6126, allocations: 79.34 kB / 416.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6126, allocations: 0 / 416.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.802/3.414, allocations: 4.736 MB / 421 MB, free: 6.008 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat