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.873/1.873, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.825e-05/2.837e-05, allocations: 0 / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0896/0.08965, allocations: 44.52 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.4942, allocations: 76 MB / 375.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.4945, allocations: 70.27 kB / 376 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03498/0.5295, allocations: 7.451 MB / 383.5 MB, free: 12 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5296, allocations: 0 / 383.5 MB, free: 12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.932e-05/0.5296, allocations: 7.969 kB / 383.5 MB, free: 12 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.001926/0.5316, allocations: 0.6856 MB / 384.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.5316, allocations: 9.625 kB / 384.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001812/0.5318, allocations: 90.77 kB / 384.2 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.532, allocations: 48.19 kB / 384.3 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005098/0.5325, allocations: 315 kB / 384.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.5325, allocations: 31.88 kB / 384.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.5327, allocations: 42.62 kB / 384.7 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.5339, allocations: 434.1 kB / 385.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/0.5339, allocations: 10.12 kB / 385.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.178e-05/0.534, allocations: 17.61 kB / 385.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.5341, allocations: 10.53 kB / 385.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.5352, allocations: 407.1 kB / 385.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003505/0.5387, allocations: 1.161 MB / 386.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.5399, allocations: 390.7 kB / 387.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006994/0.5406, allocations: 243.2 kB / 387.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.904e-05/0.5407, allocations: 8.844 kB / 387.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.5408, allocations: 35 kB / 387.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 4.358e-06/0.5408, allocations: 0 / 387.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.004518/0.5453, allocations: 1.647 MB / 389 MB, free: 10.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.5454, allocations: 62.69 kB / 389.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.5457, allocations: 230.5 kB / 389.3 MB, free: 9.938 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.625e-05/0.5459, allocations: 45.95 kB / 389.3 MB, free: 9.902 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.546, allocations: 236.3 kB / 389.6 MB, free: 9.715 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.5462, allocations: 196.4 kB / 389.8 MB, free: 9.598 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-05/0.5462, allocations: 11.69 kB / 389.8 MB, free: 9.598 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.5463, allocations: 333.5 kB / 390.1 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.5469, allocations: 197.3 kB / 390.3 MB, free: 9.285 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005613/0.5475, allocations: 247.6 kB / 390.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.5479, allocations: 161.7 kB / 390.7 MB, free: 9.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5479, allocations: 0 / 390.7 MB, free: 9.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002232/0.5502, allocations: 0.6818 MB / 391.4 MB, free: 9.152 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.5502, allocations: 8.562 kB / 391.4 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.5503, allocations: 4 kB / 391.4 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.5514, allocations: 380.9 kB / 391.8 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006669/0.5521, allocations: 89.64 kB / 391.8 MB, free: 9.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.5535, allocations: 1.327 MB / 393.2 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.5545, allocations: 101.4 kB / 393.3 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.5547, allocations: 21.98 kB / 393.3 MB, free: 8.051 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.0002276/0.5549, allocations: 137.1 kB / 393.4 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.5551, allocations: 46.28 kB / 393.5 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002936/0.558, allocations: 0.6858 MB / 394.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.5581, allocations: 3.875 kB / 394.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.5581, allocations: 7.891 kB / 394.2 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.5581, allocations: 7.328 kB / 394.2 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005055/0.5632, allocations: 1.37 MB / 395.5 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.5632, allocations: 3.969 kB / 395.5 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009304/0.5642, allocations: 86.39 kB / 395.6 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001336/0.5655, allocations: 365.3 kB / 396 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.5657, allocations: 19.64 kB / 396 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.5674, allocations: 1.305 MB / 397.3 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5674, allocations: 0 / 397.3 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003449/0.5709, allocations: 1.004 MB / 398.3 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004383/0.5714, allocations: 165.2 kB / 398.5 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001919/0.5716, allocations: 19.06 kB / 398.5 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.5727, allocations: 79.62 kB / 398.6 MB, free: 5.852 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004546/0.5732, allocations: 111.9 kB / 398.7 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/0.5734, allocations: 41.11 kB / 398.7 MB, free: 5.836 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000375/0.5738, allocations: 192.2 kB / 398.9 MB, free: 5.754 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.5738, allocations: 0 / 398.9 MB, free: 5.754 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001115/0.5749, allocations: 131.3 kB / 399 MB, free: 5.75 MB / 314.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.004611/0.5796, allocations: 1.938 MB / 401 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002093/0.5817, allocations: 0.5653 MB / 401.5 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.5817, allocations: 0 / 401.5 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.5829, allocations: 303.9 kB / 401.8 MB, free: 20.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009794/0.5839, allocations: 55.58 kB / 401.9 MB, free: 20.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008229/0.5921, allocations: 1.467 MB / 403.4 MB, free: 19.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000618/0.5928, allocations: 0.8292 MB / 404.2 MB, free: 19.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004132/0.5932, allocations: 135.2 kB / 404.3 MB, free: 19.12 MB / 330.7 MB Notification: Performance of SimCode: time 1.283e-06/0.5932, allocations: 0 / 404.3 MB, free: 19.12 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.897/3.49, allocations: 9.965 MB / 414.3 MB, free: 15.82 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