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 2.02/2.02, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.546e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2885, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.4146, allocations: 70.98 MB / 334.8 MB, free: 2.672 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.415, allocations: 71.97 kB / 334.9 MB, free: 2.602 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04756/0.4625, allocations: 9.893 MB / 344.8 MB, free: 8.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4626, allocations: 3.938 kB / 344.8 MB, free: 8.676 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.358e-05/0.4626, allocations: 4 kB / 344.8 MB, free: 8.672 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.001567/0.4642, allocations: 0.6036 MB / 345.4 MB, free: 8.023 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.4643, allocations: 8.031 kB / 345.4 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.4644, allocations: 70.53 kB / 345.5 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000456/0.4649, allocations: 55.45 kB / 345.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005857/0.4655, allocations: 286.3 kB / 345.8 MB, free: 7.562 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.4657, allocations: 88.17 kB / 345.9 MB, free: 7.465 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.855e-05/0.4658, allocations: 31.94 kB / 345.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000966/0.4668, allocations: 377.3 kB / 346.3 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.4668, allocations: 11.91 kB / 346.3 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.365e-05/0.4669, allocations: 15.98 kB / 346.3 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.4669, allocations: 8 kB / 346.3 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.468, allocations: 409.3 kB / 346.7 MB, free: 6.617 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.4703, allocations: 0.9 MB / 347.6 MB, free: 5.656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.4713, allocations: 350.1 kB / 348 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/0.4719, allocations: 202.2 kB / 348.2 MB, free: 5.109 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.707e-05/0.472, allocations: 8.422 kB / 348.2 MB, free: 5.102 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/0.472, allocations: 46.98 kB / 348.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.497e-06/0.4721, allocations: 0 / 348.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004347/0.4764, allocations: 1.535 MB / 349.8 MB, free: 3.418 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/0.4765, allocations: 85.67 kB / 349.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/0.4769, allocations: 211 kB / 350.1 MB, free: 3.102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.722e-05/0.477, allocations: 37.7 kB / 350.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.4772, allocations: 199.5 kB / 350.3 MB, free: 2.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.4774, allocations: 177.4 kB / 350.5 MB, free: 2.688 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.4774, allocations: 12 kB / 350.5 MB, free: 2.676 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4776, allocations: 330.8 kB / 350.8 MB, free: 2.344 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004824/0.4781, allocations: 165 kB / 351 MB, free: 2.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005257/0.4786, allocations: 215.6 kB / 351.2 MB, free: 1.965 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/0.4791, allocations: 163.2 kB / 351.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4791, allocations: 0 / 351.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001483/0.4806, allocations: 0.5317 MB / 351.9 MB, free: 1.262 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.4807, allocations: 7.984 kB / 351.9 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.4807, allocations: 3.953 kB / 351.9 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.4819, allocations: 242.9 kB / 352.1 MB, free: 1.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006043/0.4825, allocations: 71.89 kB / 352.2 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005653/0.4881, allocations: 2.682 MB / 354.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006209/0.4888, allocations: 36.06 kB / 354.9 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.409e-05/0.4889, allocations: 27.98 kB / 354.9 MB, free: 14.07 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.0002035/0.4891, allocations: 124.9 kB / 355 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.4893, allocations: 31.62 kB / 355.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.4894, allocations: 51.09 kB / 355.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.4894, allocations: 4 kB / 355.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.4895, allocations: 7.922 kB / 355.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4895, allocations: 0 / 355.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.4924, allocations: 1.19 MB / 356.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.4925, allocations: 0 / 356.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006784/0.4932, allocations: 75.92 kB / 356.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.4942, allocations: 216.7 kB / 356.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.506e-05/0.4943, allocations: 15.98 kB / 356.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005348/0.4997, allocations: 2.588 MB / 359.2 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4997, allocations: 0 / 359.2 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.502, allocations: 0.8769 MB / 360.1 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003012/0.5023, allocations: 152.7 kB / 360.2 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.504e-05/0.5024, allocations: 12 kB / 360.2 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005862/0.503, allocations: 35.97 kB / 360.3 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002784/0.5033, allocations: 76.55 kB / 360.4 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-05/0.5034, allocations: 19.98 kB / 360.4 MB, free: 8.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002826/0.5037, allocations: 177.6 kB / 360.6 MB, free: 8.172 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5037, allocations: 0 / 360.6 MB, free: 8.172 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001026/0.5047, allocations: 155.9 kB / 360.7 MB, free: 8.02 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.003042/0.5078, allocations: 1.549 MB / 362.3 MB, free: 6.434 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.5095, allocations: 0.6153 MB / 362.9 MB, free: 5.809 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5096, allocations: 0 / 362.9 MB, free: 5.809 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.5106, allocations: 425.6 kB / 363.3 MB, free: 5.387 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.5111, allocations: 39.53 kB / 363.3 MB, free: 5.352 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.5136, allocations: 0.7341 MB / 364.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.5141, allocations: 0.8088 MB / 364.9 MB, free: 3.742 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/0.5145, allocations: 107.4 kB / 365 MB, free: 3.637 MB / 314.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5145, allocations: 0 / 365 MB, free: 3.637 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.036/3.551, allocations: 6.992 MB / 372 MB, free: 92.18 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