Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.159e-05/3.159e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3011, allocations: 44.48 MB / 294.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1435/0.4447, allocations: 75.36 MB / 369.6 MB, free: 6.484 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.445, allocations: 67.97 kB / 369.6 MB, free: 6.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03501/0.48, allocations: 7.381 MB / 377 MB, free: 15.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4801, allocations: 0 / 377 MB, free: 15.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.118e-05/0.4801, allocations: 12 kB / 377 MB, free: 15 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.00207/0.4822, allocations: 0.6896 MB / 377.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.4823, allocations: 8.031 kB / 377.7 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.4824, allocations: 55.38 kB / 377.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.4831, allocations: 314.2 kB / 378.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.4831, allocations: 15.98 kB / 378.1 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.4832, allocations: 24 kB / 378.1 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001096/0.4843, allocations: 377.3 kB / 378.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.4854, allocations: 374 kB / 378.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.4855, allocations: 3.906 kB / 378.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.072e-05/0.4856, allocations: 3.984 kB / 378.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.4856, allocations: 12 kB / 378.9 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003587/0.4892, allocations: 1.065 MB / 380 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.4903, allocations: 363.9 kB / 380.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005886/0.4909, allocations: 225.2 kB / 380.5 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.502e-05/0.491, allocations: 12.38 kB / 380.5 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.4911, allocations: 42.94 kB / 380.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.446e-06/0.4911, allocations: 0 / 380.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.005196/0.4963, allocations: 1.563 MB / 382.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.4964, allocations: 59.97 kB / 382.2 MB, free: 9.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.4967, allocations: 202.3 kB / 382.4 MB, free: 9.367 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.24e-05/0.4968, allocations: 33.7 kB / 382.4 MB, free: 9.328 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.497, allocations: 181.3 kB / 382.6 MB, free: 9.148 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002412/0.4973, allocations: 193.2 kB / 382.8 MB, free: 8.957 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/0.4973, allocations: 0 / 382.8 MB, free: 8.957 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.4975, allocations: 352.4 kB / 383.1 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005321/0.4981, allocations: 185.5 kB / 383.3 MB, free: 8.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005746/0.4987, allocations: 232.7 kB / 383.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006409/0.4993, allocations: 160.5 kB / 383.7 MB, free: 8.035 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4993, allocations: 0 / 383.7 MB, free: 8.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002471/0.5018, allocations: 0.6497 MB / 384.4 MB, free: 7.375 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.5019, allocations: 8 kB / 384.4 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/0.5019, allocations: 0 / 384.4 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.5031, allocations: 385.4 kB / 384.7 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/0.5038, allocations: 91.83 kB / 384.8 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.5057, allocations: 1.378 MB / 386.2 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009705/0.5067, allocations: 96 kB / 386.3 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-05/0.5068, allocations: 20 kB / 386.3 MB, free: 5.352 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.0002819/0.5071, allocations: 124.6 kB / 386.4 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001936/0.5091, allocations: 0.5471 MB / 387 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.5092, allocations: 39.53 kB / 387 MB, free: 4.625 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.5114, allocations: 0.647 MB / 387.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.5115, allocations: 7.984 kB / 387.7 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5115, allocations: 4 kB / 387.7 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.5115, allocations: 0 / 387.7 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004094/0.5156, allocations: 1.271 MB / 389 MB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.5156, allocations: 4 kB / 389 MB, free: 2.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007544/0.5164, allocations: 87.89 kB / 389.1 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.5175, allocations: 357.6 kB / 389.4 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.088e-05/0.5176, allocations: 19.97 kB / 389.4 MB, free: 2.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/0.5194, allocations: 1.335 MB / 390.8 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.798e-06/0.5194, allocations: 4.031 kB / 390.8 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.5221, allocations: 0.9715 MB / 391.7 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003457/0.5225, allocations: 160.7 kB / 391.9 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.5226, allocations: 11.98 kB / 391.9 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007752/0.5234, allocations: 71.94 kB / 392 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003597/0.5238, allocations: 108.2 kB / 392.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.165e-05/0.5239, allocations: 27.97 kB / 392.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002331/0.5241, allocations: 162 kB / 392.3 MB, free: 15.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5241, allocations: 0 / 392.3 MB, free: 15.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007356/0.5249, allocations: 116 kB / 392.4 MB, free: 15.05 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.003296/0.5282, allocations: 1.895 MB / 394.3 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.5298, allocations: 0.5399 MB / 394.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.5299, allocations: 0 / 394.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009298/0.5308, allocations: 289.4 kB / 395.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000766/0.5316, allocations: 63.44 kB / 395.2 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00653/0.5381, allocations: 1.378 MB / 396.5 MB, free: 10.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/0.5387, allocations: 0.8363 MB / 397.4 MB, free: 9.895 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00027/0.539, allocations: 31.28 kB / 397.4 MB, free: 9.863 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.5393, allocations: 123.4 kB / 397.5 MB, free: 9.746 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5393, allocations: 0 / 397.5 MB, free: 9.746 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06033/0.5996, allocations: 11.08 MB / 408.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003214/0.6, allocations: 142.2 kB / 408.7 MB, free: 14.47 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.011/3.611, allocations: 0 / 408.7 MB, free: 14.47 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat