Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.653e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.269, allocations: 38.76 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.4011, allocations: 70.38 MB / 334.2 MB, free: 3.391 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/0.4015, allocations: 67.97 kB / 334.3 MB, free: 3.324 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04617/0.4477, allocations: 9.278 MB / 343.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4478, allocations: 0 / 343.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.4478, allocations: 8 kB / 343.6 MB, free: 10.01 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001487/0.4493, allocations: 0.5567 MB / 344.1 MB, free: 9.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.4494, allocations: 16.03 kB / 344.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.4495, allocations: 62.53 kB / 344.2 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004763/0.45, allocations: 47.61 kB / 344.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.4507, allocations: 290.4 kB / 344.5 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001821/0.4509, allocations: 83.95 kB / 344.6 MB, free: 8.859 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.533e-05/0.451, allocations: 35.89 kB / 344.6 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009395/0.4519, allocations: 349.4 kB / 345 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.452, allocations: 8 kB / 345 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.549e-05/0.452, allocations: 8 kB / 345 MB, free: 8.449 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.4521, allocations: 8 kB / 345 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.4532, allocations: 378 kB / 345.4 MB, free: 8.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003151/0.4563, allocations: 1.167 MB / 346.5 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009422/0.4573, allocations: 306.5 kB / 346.8 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004689/0.4578, allocations: 168.8 kB / 347 MB, free: 6.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-05/0.4579, allocations: 11.97 kB / 347 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/0.458, allocations: 38.5 kB / 347 MB, free: 6.301 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.097e-06/0.458, allocations: 4 kB / 347 MB, free: 6.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004082/0.4621, allocations: 1.323 MB / 348.4 MB, free: 4.879 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.566e-05/0.4622, allocations: 88.86 kB / 348.5 MB, free: 4.773 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003802/0.4626, allocations: 182.6 kB / 348.6 MB, free: 4.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.734e-05/0.4627, allocations: 33.7 kB / 348.7 MB, free: 4.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.4629, allocations: 203 kB / 348.9 MB, free: 4.352 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.4631, allocations: 145.9 kB / 349 MB, free: 4.207 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.4632, allocations: 12 kB / 349 MB, free: 4.195 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.4633, allocations: 326.8 kB / 349.3 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/0.4638, allocations: 148.8 kB / 349.5 MB, free: 3.723 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005186/0.4643, allocations: 201.9 kB / 349.7 MB, free: 3.504 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004411/0.4648, allocations: 137.7 kB / 349.8 MB, free: 3.371 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.4648, allocations: 0 / 349.8 MB, free: 3.371 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001557/0.4664, allocations: 0.5044 MB / 350.3 MB, free: 2.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.4664, allocations: 4 kB / 350.3 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.4664, allocations: 7.953 kB / 350.3 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.4677, allocations: 236.8 kB / 350.6 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005189/0.4682, allocations: 51.97 kB / 350.6 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006212/0.4745, allocations: 2.632 MB / 353.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.4751, allocations: 36.03 kB / 353.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-05/0.4752, allocations: 20 kB / 353.3 MB, free: 15.74 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002137/0.4754, allocations: 134.4 kB / 353.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.4756, allocations: 27.72 kB / 353.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.4757, allocations: 38.78 kB / 353.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.4757, allocations: 4 kB / 353.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4758, allocations: 0 / 353.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.4758, allocations: 3.984 kB / 353.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/0.4786, allocations: 1.034 MB / 354.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.4787, allocations: 0 / 354.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004999/0.4792, allocations: 43.97 kB / 354.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/0.4803, allocations: 228.8 kB / 354.8 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.104e-05/0.4805, allocations: 15.92 kB / 354.8 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005816/0.4863, allocations: 2.596 MB / 357.4 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4864, allocations: 0 / 357.4 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.4883, allocations: 0.7359 MB / 358.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.4886, allocations: 140.8 kB / 358.3 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.222e-05/0.4887, allocations: 12 kB / 358.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.4892, allocations: 32.09 kB / 358.3 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002908/0.4895, allocations: 71.88 kB / 358.4 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-05/0.4896, allocations: 15.98 kB / 358.4 MB, free: 10.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002395/0.4899, allocations: 151.4 kB / 358.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4899, allocations: 0 / 358.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008902/0.4908, allocations: 144 kB / 358.7 MB, free: 10.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002703/0.4935, allocations: 1.339 MB / 360 MB, free: 8.719 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.4953, allocations: 0.5712 MB / 360.6 MB, free: 8.137 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4953, allocations: 0 / 360.6 MB, free: 8.137 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.4963, allocations: 396.8 kB / 361 MB, free: 7.734 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.4968, allocations: 34.33 kB / 361 MB, free: 7.703 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.4989, allocations: 0.6304 MB / 361.7 MB, free: 7.031 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.4994, allocations: 0.7881 MB / 362.5 MB, free: 6.219 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/0.4998, allocations: 87.39 kB / 362.5 MB, free: 6.133 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4998, allocations: 0 / 362.5 MB, free: 6.133 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.104/3.604, allocations: 6.131 MB / 368.7 MB, free: 0 / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat