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.932/1.932, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.491e-05/3.502e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09992/0.09999, allocations: 44.5 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4026/0.5027, allocations: 76.01 MB / 376 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.503, allocations: 71.34 kB / 376 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03566/0.5387, allocations: 7.445 MB / 383.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5388, allocations: 0 / 383.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.5388, allocations: 8.25 kB / 383.5 MB, free: 11.59 MB / 314.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.002008/0.5408, allocations: 0.6911 MB / 384.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.5409, allocations: 9.719 kB / 384.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002014/0.5411, allocations: 88.03 kB / 384.3 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.5413, allocations: 52.25 kB / 384.3 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005251/0.5418, allocations: 316.1 kB / 384.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.5419, allocations: 36.62 kB / 384.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.542, allocations: 39.53 kB / 384.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.5431, allocations: 430 kB / 385.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.5432, allocations: 9.266 kB / 385.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.045e-05/0.5433, allocations: 14.97 kB / 385.2 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.5433, allocations: 10.66 kB / 385.2 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.5444, allocations: 399.9 kB / 385.6 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003525/0.5479, allocations: 1.17 MB / 386.7 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.5491, allocations: 374.2 kB / 387.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005903/0.5497, allocations: 245.5 kB / 387.3 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.923e-05/0.5498, allocations: 4.312 kB / 387.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.5498, allocations: 38.59 kB / 387.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 3.617e-06/0.5498, allocations: 0 / 387.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.004389/0.5542, allocations: 1.638 MB / 389 MB, free: 9.711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.5543, allocations: 59.72 kB / 389.1 MB, free: 9.648 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.5547, allocations: 235.7 kB / 389.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.688e-05/0.5548, allocations: 40.17 kB / 389.3 MB, free: 9.516 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.5549, allocations: 235.8 kB / 389.6 MB, free: 9.328 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.5551, allocations: 196.5 kB / 389.8 MB, free: 9.211 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.5551, allocations: 14.47 kB / 389.8 MB, free: 9.211 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.373e-05/0.5552, allocations: 338 kB / 390.1 MB, free: 8.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/0.5558, allocations: 197.9 kB / 390.3 MB, free: 8.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005488/0.5563, allocations: 237.8 kB / 390.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/0.5568, allocations: 171.9 kB / 390.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5568, allocations: 0 / 390.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002174/0.559, allocations: 0.6778 MB / 391.4 MB, free: 8.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.559, allocations: 5.438 kB / 391.4 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/0.5591, allocations: 3.875 kB / 391.4 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.5602, allocations: 382 kB / 391.8 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006577/0.5609, allocations: 90.8 kB / 391.8 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.5623, allocations: 1.321 MB / 393.2 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.5633, allocations: 99.89 kB / 393.3 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.26e-05/0.5634, allocations: 30 kB / 393.3 MB, free: 7.664 MB / 314.7 MB 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.0002053/0.5636, allocations: 142.2 kB / 393.4 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.5638, allocations: 42.86 kB / 393.5 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.5657, allocations: 0.6818 MB / 394.2 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.5658, allocations: 7.781 kB / 394.2 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.5658, allocations: 7.953 kB / 394.2 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.5658, allocations: 11.3 kB / 394.2 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.5695, allocations: 1.363 MB / 395.5 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5696, allocations: 0 / 395.5 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007266/0.5703, allocations: 86.64 kB / 395.6 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009858/0.5713, allocations: 364.1 kB / 396 MB, free: 6.965 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.16e-05/0.5714, allocations: 29.75 kB / 396 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.5727, allocations: 1.294 MB / 397.3 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5727, allocations: 0 / 397.3 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002612/0.5753, allocations: 1.002 MB / 398.3 MB, free: 21.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.5757, allocations: 161.5 kB / 398.5 MB, free: 21.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.5758, allocations: 21.44 kB / 398.5 MB, free: 21.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007921/0.5766, allocations: 78.39 kB / 398.6 MB, free: 21.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003126/0.5769, allocations: 113.8 kB / 398.7 MB, free: 21.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.889e-05/0.577, allocations: 29.3 kB / 398.7 MB, free: 21.46 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002657/0.5773, allocations: 191.4 kB / 398.9 MB, free: 21.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5773, allocations: 0 / 398.9 MB, free: 21.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007101/0.578, allocations: 135.2 kB / 399 MB, free: 21.38 MB / 330.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.003121/0.5812, allocations: 1.938 MB / 401 MB, free: 20.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.5828, allocations: 0.5636 MB / 401.5 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5828, allocations: 4.062 kB / 401.5 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008548/0.5837, allocations: 297.4 kB / 401.8 MB, free: 20.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007787/0.5845, allocations: 60.58 kB / 401.9 MB, free: 20.06 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007439/0.5919, allocations: 1.469 MB / 403.3 MB, free: 19.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006089/0.5926, allocations: 0.8282 MB / 404.2 MB, free: 18.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003958/0.593, allocations: 134.2 kB / 404.3 MB, free: 18.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.402e-06/0.593, allocations: 0 / 404.3 MB, free: 18.73 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.005/3.598, allocations: 9.952 MB / 414.3 MB, free: 15.42 MB / 330.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