Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.728/1.728, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.378e-05/4.399e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2912, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.4391, allocations: 70.98 MB / 334.8 MB, free: 2.785 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.4394, allocations: 67.97 kB / 334.9 MB, free: 2.719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04887/0.4883, allocations: 9.889 MB / 344.8 MB, free: 8.801 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.208e-06/0.4884, allocations: 0 / 344.8 MB, free: 8.801 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.4884, allocations: 7.938 kB / 344.8 MB, free: 8.793 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001614/0.4901, allocations: 0.5957 MB / 345.4 MB, free: 8.152 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.4901, allocations: 12.02 kB / 345.4 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.4903, allocations: 66.55 kB / 345.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004628/0.4908, allocations: 59.44 kB / 345.5 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000581/0.4914, allocations: 294.5 kB / 345.8 MB, free: 7.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.4916, allocations: 88.17 kB / 345.9 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.4917, allocations: 28 kB / 345.9 MB, free: 7.555 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.4927, allocations: 386.8 kB / 346.3 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.4928, allocations: 3.906 kB / 346.3 MB, free: 7.156 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.455e-05/0.4928, allocations: 16 kB / 346.3 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.4929, allocations: 8 kB / 346.3 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.4941, allocations: 418.9 kB / 346.7 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002432/0.4965, allocations: 0.9 MB / 347.6 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.4976, allocations: 363 kB / 348 MB, free: 5.406 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005749/0.4982, allocations: 198.2 kB / 348.2 MB, free: 5.211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.248e-05/0.4983, allocations: 4.438 kB / 348.2 MB, free: 5.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.4984, allocations: 39 kB / 348.2 MB, free: 5.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.987e-06/0.4984, allocations: 0 / 348.2 MB, free: 5.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004495/0.5029, allocations: 1.539 MB / 349.7 MB, free: 3.527 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.503, allocations: 85.67 kB / 349.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.5034, allocations: 215 kB / 350 MB, free: 3.207 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.076e-05/0.5035, allocations: 37.7 kB / 350.1 MB, free: 3.164 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.5036, allocations: 199.5 kB / 350.3 MB, free: 2.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.5039, allocations: 177.4 kB / 350.4 MB, free: 2.793 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.861e-05/0.5039, allocations: 12 kB / 350.4 MB, free: 2.781 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.5041, allocations: 330.8 kB / 350.8 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005237/0.5046, allocations: 169 kB / 350.9 MB, free: 2.281 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000566/0.5052, allocations: 220.6 kB / 351.1 MB, free: 2.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004897/0.5057, allocations: 155.2 kB / 351.3 MB, free: 1.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5057, allocations: 4.031 kB / 351.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001592/0.5074, allocations: 0.5394 MB / 351.8 MB, free: 1.355 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.5074, allocations: 8 kB / 351.9 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.5074, allocations: 3.953 kB / 351.9 MB, free: 1.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.5086, allocations: 246.8 kB / 352.1 MB, free: 1.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.5093, allocations: 63.89 kB / 352.2 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005943/0.5152, allocations: 2.684 MB / 354.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000622/0.5159, allocations: 35.97 kB / 354.9 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.467e-05/0.516, allocations: 16 kB / 354.9 MB, free: 14.17 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: 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002052/0.5162, allocations: 140.9 kB / 355 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.5164, allocations: 35.61 kB / 355.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.5165, allocations: 43.09 kB / 355.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.5165, allocations: 8 kB / 355.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5166, allocations: 0 / 355.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.5166, allocations: 3.984 kB / 355.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00315/0.5197, allocations: 1.19 MB / 356.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.5198, allocations: 3.984 kB / 356.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006586/0.5205, allocations: 71.89 kB / 356.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.5215, allocations: 220.8 kB / 356.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.952e-05/0.5216, allocations: 15.98 kB / 356.6 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005645/0.5273, allocations: 2.584 MB / 359.2 MB, free: 9.656 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.5273, allocations: 11.97 kB / 359.2 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.5296, allocations: 0.8652 MB / 360.1 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003336/0.53, allocations: 160.8 kB / 360.2 MB, free: 8.574 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.797e-05/0.5301, allocations: 12 kB / 360.2 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006025/0.5307, allocations: 35.97 kB / 360.3 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.5311, allocations: 72.48 kB / 360.4 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.872e-05/0.5312, allocations: 19.98 kB / 360.4 MB, free: 8.438 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002947/0.5315, allocations: 173.6 kB / 360.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5315, allocations: 0 / 360.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009539/0.5324, allocations: 163.9 kB / 360.7 MB, free: 8.109 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.003278/0.5357, allocations: 1.549 MB / 362.2 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001844/0.5376, allocations: 0.6179 MB / 362.9 MB, free: 5.891 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.5377, allocations: 4.062 kB / 362.9 MB, free: 5.887 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.5388, allocations: 447.3 kB / 363.3 MB, free: 5.438 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.5394, allocations: 32.38 kB / 363.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.5419, allocations: 0.7334 MB / 364.1 MB, free: 4.629 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005557/0.5425, allocations: 0.8087 MB / 364.9 MB, free: 3.797 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003872/0.5429, allocations: 107.4 kB / 365 MB, free: 3.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5429, allocations: 4 kB / 365 MB, free: 3.688 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.345/3.888, allocations: 7.009 MB / 372 MB, free: 92.26 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat