Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.599e-05/2.609e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3033, allocations: 44.49 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1351/0.4385, allocations: 75.34 MB / 369.5 MB, free: 6.535 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.4388, allocations: 71.95 kB / 369.6 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03622/0.4751, allocations: 7.388 MB / 377 MB, free: 15.05 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4751, allocations: 3.938 kB / 377 MB, free: 15.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.383e-05/0.4752, allocations: 12 kB / 377 MB, free: 15.04 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002067/0.4772, allocations: 0.6935 MB / 377.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.4773, allocations: 12.03 kB / 377.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.4775, allocations: 51.38 kB / 377.8 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006144/0.4782, allocations: 302.2 kB / 378.1 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.4782, allocations: 12 kB / 378.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.4783, allocations: 31.98 kB / 378.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00114/0.4795, allocations: 373.4 kB / 378.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.4805, allocations: 377.9 kB / 378.8 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.4806, allocations: 7.906 kB / 378.8 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.115e-05/0.4807, allocations: 7.984 kB / 378.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.4807, allocations: 8 kB / 378.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003692/0.4844, allocations: 1.061 MB / 379.9 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.4855, allocations: 359.5 kB / 380.3 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006248/0.4862, allocations: 230.1 kB / 380.5 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.88e-05/0.4863, allocations: 16.3 kB / 380.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.4864, allocations: 46.95 kB / 380.6 MB, free: 11.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.837e-06/0.4864, allocations: 0 / 380.6 MB, free: 11.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.005368/0.4918, allocations: 1.559 MB / 382.1 MB, free: 9.672 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.4919, allocations: 55.97 kB / 382.2 MB, free: 9.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.4922, allocations: 198.4 kB / 382.4 MB, free: 9.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.691e-05/0.4923, allocations: 37.69 kB / 382.4 MB, free: 9.367 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.4925, allocations: 231.8 kB / 382.6 MB, free: 9.141 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.4927, allocations: 193.2 kB / 382.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.907e-05/0.4928, allocations: 4 kB / 382.8 MB, free: 8.945 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.493, allocations: 336.5 kB / 383.2 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005393/0.4935, allocations: 189.5 kB / 383.3 MB, free: 8.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005835/0.4941, allocations: 232.7 kB / 383.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006588/0.4948, allocations: 164.5 kB / 383.7 MB, free: 8.031 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.4948, allocations: 0 / 383.7 MB, free: 8.031 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002481/0.4973, allocations: 0.6381 MB / 384.4 MB, free: 7.383 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.4974, allocations: 8 kB / 384.4 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.321e-05/0.4974, allocations: 3.984 kB / 384.4 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.4986, allocations: 381.4 kB / 384.8 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007235/0.4994, allocations: 91.89 kB / 384.8 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.5014, allocations: 1.366 MB / 386.2 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009899/0.5025, allocations: 96.06 kB / 386.3 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.5026, allocations: 31.92 kB / 386.3 MB, free: 5.359 MB / 330.7 MB 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: brake.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: 2 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002898/0.5029, allocations: 116.6 kB / 386.4 MB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002025/0.5049, allocations: 0.5548 MB / 387 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.5051, allocations: 35.62 kB / 387 MB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002262/0.5074, allocations: 0.6508 MB / 387.7 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.5074, allocations: 12 kB / 387.7 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.5075, allocations: 0 / 387.7 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/0.5075, allocations: 3.984 kB / 387.7 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004173/0.5117, allocations: 1.267 MB / 389 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.5117, allocations: 0 / 389 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007716/0.5125, allocations: 88.05 kB / 389.1 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.5136, allocations: 357.4 kB / 389.4 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.102e-05/0.5138, allocations: 23.97 kB / 389.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.5156, allocations: 1.327 MB / 390.8 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/0.5157, allocations: 4.031 kB / 390.8 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.5184, allocations: 0.9715 MB / 391.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003577/0.5188, allocations: 168.6 kB / 391.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.519, allocations: 8 kB / 391.9 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008064/0.5198, allocations: 75.92 kB / 392 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003669/0.5202, allocations: 108.2 kB / 392.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.036e-05/0.5203, allocations: 27.97 kB / 392.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002417/0.5206, allocations: 166 kB / 392.3 MB, free: 15.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5206, allocations: 0 / 392.3 MB, free: 15.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007213/0.5213, allocations: 108 kB / 392.4 MB, free: 15.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003414/0.5247, allocations: 1.895 MB / 394.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.5264, allocations: 0.5399 MB / 394.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5265, allocations: 4.062 kB / 394.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000921/0.5274, allocations: 285.4 kB / 395.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007755/0.5282, allocations: 49.36 kB / 395.1 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00653/0.5347, allocations: 1.423 MB / 396.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.5353, allocations: 0.8285 MB / 397.4 MB, free: 9.879 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003456/0.5357, allocations: 131.4 kB / 397.5 MB, free: 9.754 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5357, allocations: 0 / 397.5 MB, free: 9.754 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.774/3.31, allocations: 9.756 MB / 407.3 MB, free: 4 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat