Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.78/1.78, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.138e-05/3.149e-05, allocations: 0 / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2728, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4054, allocations: 70.69 MB / 334.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.4057, allocations: 67.97 kB / 334.6 MB, free: 3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03596/0.4417, allocations: 7.401 MB / 342 MB, free: 11.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4418, allocations: 3.938 kB / 342 MB, free: 11.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.048e-05/0.4418, allocations: 8 kB / 342 MB, free: 11.56 MB / 298.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.002057/0.4439, allocations: 0.6974 MB / 342.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.4439, allocations: 12.03 kB / 342.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002176/0.4442, allocations: 87.45 kB / 342.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.4443, allocations: 51.34 kB / 342.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005898/0.4449, allocations: 310.2 kB / 343.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.25e-05/0.445, allocations: 40.95 kB / 343.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.4451, allocations: 47.89 kB / 343.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.4464, allocations: 452.4 kB / 343.7 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.4465, allocations: 0 / 343.7 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.281e-05/0.4465, allocations: 20 kB / 343.7 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.4466, allocations: 11.94 kB / 343.7 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.4478, allocations: 441.8 kB / 344.2 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00368/0.4515, allocations: 1.172 MB / 345.3 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.4527, allocations: 364 kB / 345.7 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006893/0.4534, allocations: 246.1 kB / 345.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.005e-05/0.4535, allocations: 4.438 kB / 345.9 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.4535, allocations: 46.94 kB / 346 MB, free: 7.422 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.936e-06/0.4536, allocations: 0 / 346 MB, free: 7.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.005163/0.4587, allocations: 1.756 MB / 347.7 MB, free: 5.574 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.4588, allocations: 59.97 kB / 347.8 MB, free: 5.504 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.4593, allocations: 247.4 kB / 348 MB, free: 5.254 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.715e-05/0.4594, allocations: 45.7 kB / 348.1 MB, free: 5.203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.4596, allocations: 243.8 kB / 348.3 MB, free: 4.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002551/0.4598, allocations: 201.2 kB / 348.5 MB, free: 4.762 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.497e-05/0.4599, allocations: 8 kB / 348.5 MB, free: 4.754 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4601, allocations: 330.8 kB / 348.8 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/0.4607, allocations: 217.5 kB / 349.1 MB, free: 4.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006976/0.4615, allocations: 268.6 kB / 349.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005701/0.4621, allocations: 182.1 kB / 349.5 MB, free: 3.762 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4621, allocations: 4 kB / 349.5 MB, free: 3.758 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004022/0.4661, allocations: 0.8266 MB / 350.3 MB, free: 2.918 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.4662, allocations: 8 kB / 350.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.4662, allocations: 0 / 350.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/0.4686, allocations: 0.5207 MB / 350.9 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.4698, allocations: 91.89 kB / 350.9 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.4728, allocations: 1.39 MB / 352.3 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.4744, allocations: 99.97 kB / 352.4 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.4746, allocations: 23.98 kB / 352.5 MB, free: 0.7305 MB / 298.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): 56 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003483/0.4749, allocations: 140.9 kB / 352.6 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/0.4752, allocations: 43.53 kB / 352.6 MB, free: 0.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/0.4755, allocations: 55.52 kB / 352.7 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.4755, allocations: 11.94 kB / 352.7 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.4755, allocations: 7.953 kB / 352.7 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/0.4756, allocations: 3.984 kB / 352.7 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00749/0.4831, allocations: 1.52 MB / 354.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.4832, allocations: 0 / 354.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.4844, allocations: 87.89 kB / 354.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.4868, allocations: 0.4897 MB / 354.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/0.487, allocations: 23.97 kB / 354.8 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002883/0.4899, allocations: 1.355 MB / 356.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.49, allocations: 12.08 kB / 356.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005372/0.4954, allocations: 1.124 MB / 357.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007524/0.4962, allocations: 168.6 kB / 357.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/0.4965, allocations: 23.98 kB / 357.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/0.4983, allocations: 79.92 kB / 357.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005094/0.4988, allocations: 120 kB / 357.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.499, allocations: 27.98 kB / 357.7 MB, free: 11.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004764/0.4995, allocations: 195.1 kB / 357.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4995, allocations: 4 kB / 357.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001159/0.5007, allocations: 139.9 kB / 358.1 MB, free: 10.89 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.005317/0.506, allocations: 2.053 MB / 360.1 MB, free: 8.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.5087, allocations: 0.5211 MB / 360.6 MB, free: 8.246 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.5087, allocations: 0 / 360.6 MB, free: 8.246 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.5103, allocations: 301.8 kB / 360.9 MB, free: 7.953 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.5116, allocations: 67.34 kB / 361 MB, free: 7.891 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.5223, allocations: 1.479 MB / 362.5 MB, free: 6.344 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007226/0.523, allocations: 0.8327 MB / 363.3 MB, free: 5.488 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005181/0.5236, allocations: 135.4 kB / 363.4 MB, free: 5.355 MB / 314.7 MB Notification: Performance of SimCode: time 1.543e-06/0.5236, allocations: 0 / 363.4 MB, free: 5.355 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.184/3.708, allocations: 9.583 MB / 373 MB, free: 93.16 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat