Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.945/1.945, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.605e-05/2.613e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4035/0.5068, allocations: 79.57 MB / 395.9 MB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.5071, allocations: 67.33 kB / 395.9 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05461/0.5618, allocations: 11.38 MB / 407.3 MB, free: 3.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.5618, allocations: 0 / 407.3 MB, free: 3.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.396e-05/0.5619, allocations: 23.94 kB / 407.3 MB, free: 3.312 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00322/0.5651, allocations: 0.9457 MB / 408.3 MB, free: 2.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.5652, allocations: 8.031 kB / 408.3 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.5655, allocations: 86.2 kB / 408.4 MB, free: 2.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008576/0.5663, allocations: 414.6 kB / 408.8 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.5664, allocations: 27.44 kB / 408.8 MB, free: 1.844 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.5666, allocations: 36 kB / 408.8 MB, free: 1.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002274/0.5689, allocations: 0.6445 MB / 409.5 MB, free: 1.363 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.5709, allocations: 0.6962 MB / 410.2 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.923e-05/0.571, allocations: 3.906 kB / 410.2 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.653e-05/0.5711, allocations: 4 kB / 410.2 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.5712, allocations: 19.95 kB / 410.2 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007184/0.5784, allocations: 2.499 MB / 412.7 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.5801, allocations: 0.5545 MB / 413.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008469/0.581, allocations: 315 kB / 413.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.5812, allocations: 12.62 kB / 413.6 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.793e-05/0.5812, allocations: 49.86 kB / 413.6 MB, free: 13.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 4.168e-06/0.5812, allocations: 0 / 413.6 MB, free: 13.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.007484/0.5887, allocations: 2.454 MB / 416.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.5889, allocations: 136.5 kB / 416.2 MB, free: 11.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007928/0.5897, allocations: 344.5 kB / 416.6 MB, free: 11.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.59, allocations: 41 kB / 416.6 MB, free: 11.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/0.5903, allocations: 333.6 kB / 416.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/0.5907, allocations: 253.8 kB / 417.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.5909, allocations: 4 kB / 417.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.5911, allocations: 348.8 kB / 417.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.5923, allocations: 321.8 kB / 417.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.5937, allocations: 488.2 kB / 418.3 MB, free: 9.652 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.5952, allocations: 286.5 kB / 418.6 MB, free: 9.453 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.5952, allocations: 0 / 418.6 MB, free: 9.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005276/0.6005, allocations: 1.18 MB / 419.8 MB, free: 8.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.572e-05/0.6006, allocations: 8 kB / 419.8 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/0.6006, allocations: 7.984 kB / 419.8 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003044/0.6037, allocations: 0.7836 MB / 420.6 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00165/0.6054, allocations: 159.8 kB / 420.7 MB, free: 7.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005811/0.6112, allocations: 2.752 MB / 423.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002651/0.6139, allocations: 171.8 kB / 423.6 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002687/0.6142, allocations: 47.97 kB / 423.7 MB, free: 4.496 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005419/0.6148, allocations: 149.9 kB / 423.8 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005132/0.62, allocations: 1.004 MB / 424.8 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004769/0.6205, allocations: 67.19 kB / 424.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003804/0.6209, allocations: 75.75 kB / 425 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.191e-05/0.6209, allocations: 11.95 kB / 425 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.6209, allocations: 0 / 425 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.908e-05/0.621, allocations: 11.97 kB / 425 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009227/0.6302, allocations: 2.099 MB / 427.1 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.283e-05/0.6303, allocations: 8 kB / 427.1 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/0.6319, allocations: 115.9 kB / 427.2 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003013/0.635, allocations: 0.753 MB / 428 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00022/0.6352, allocations: 23.97 kB / 428 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005191/0.6404, allocations: 2.693 MB / 430.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.6405, allocations: 0 / 430.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006812/0.6473, allocations: 1.751 MB / 432.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007782/0.6482, allocations: 216.2 kB / 432.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003298/0.6485, allocations: 16 kB / 432.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002397/0.6509, allocations: 163.8 kB / 432.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007986/0.6518, allocations: 171.6 kB / 433 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/0.652, allocations: 44.08 kB / 433 MB, free: 10.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006359/0.6526, allocations: 259 kB / 433.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.82e-07/0.6526, allocations: 0 / 433.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001827/0.6545, allocations: 171.9 kB / 433.5 MB, free: 10.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007527/0.662, allocations: 2.548 MB / 436 MB, free: 7.852 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003425/0.6655, allocations: 0.808 MB / 436.8 MB, free: 7.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.6656, allocations: 0 / 436.8 MB, free: 7.043 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.6674, allocations: 431.6 kB / 437.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.6687, allocations: 86.41 kB / 437.3 MB, free: 6.539 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008848/0.6775, allocations: 2.1 MB / 439.4 MB, free: 4.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000661/0.6783, allocations: 0.9264 MB / 440.4 MB, free: 3.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005849/0.6789, allocations: 219.3 kB / 440.6 MB, free: 3.211 MB / 362.7 MB Notification: Performance of SimCode: time 3.416e-06/0.6789, allocations: 0 / 440.6 MB, free: 3.211 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.986/3.665, allocations: 18.29 MB / 458.9 MB, free: 0.918 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat