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.763/1.763, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.784e-05, allocations: 4 kB / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2704, allocations: 38.77 MB / 258.3 MB, free: 12.14 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/0.401, allocations: 69.7 MB / 328 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.4013, allocations: 71.95 kB / 328.1 MB, free: 8.129 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04499/0.4463, allocations: 9.229 MB / 337.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4464, allocations: 0 / 337.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.311e-05/0.4464, allocations: 4 kB / 337.3 MB, free: 14.87 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.0014/0.4478, allocations: 0.5645 MB / 337.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.4479, allocations: 8.031 kB / 337.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004588/0.4484, allocations: 51.59 kB / 338 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.4489, allocations: 274.5 kB / 338.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.4491, allocations: 79.95 kB / 338.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.06e-05/0.4492, allocations: 16 kB / 338.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009955/0.4502, allocations: 368.8 kB / 338.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007744/0.451, allocations: 312.2 kB / 339 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.451, allocations: 4 kB / 339 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.066e-05/0.4511, allocations: 3.984 kB / 339 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.4511, allocations: 4 kB / 339 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002788/0.4539, allocations: 1.112 MB / 340.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000752/0.4547, allocations: 287 kB / 340.4 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003885/0.4551, allocations: 152.8 kB / 340.5 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.945e-05/0.4552, allocations: 8.141 kB / 340.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.4552, allocations: 38.56 kB / 340.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.065e-06/0.4553, allocations: 0 / 340.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003818/0.4591, allocations: 1.232 MB / 341.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.4592, allocations: 88.8 kB / 341.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.4595, allocations: 185.6 kB / 342.1 MB, free: 9.797 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.284e-05/0.4596, allocations: 29.64 kB / 342.1 MB, free: 9.762 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.4598, allocations: 203.4 kB / 342.3 MB, free: 9.562 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.4599, allocations: 141.9 kB / 342.4 MB, free: 9.422 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.46, allocations: 0 / 342.4 MB, free: 9.422 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4601, allocations: 330.8 kB / 342.8 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.4605, allocations: 140.8 kB / 342.9 MB, free: 8.953 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.461, allocations: 189.1 kB / 343.1 MB, free: 8.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005007/0.4615, allocations: 140.8 kB / 343.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4615, allocations: 0 / 343.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001437/0.463, allocations: 476.6 kB / 343.7 MB, free: 8.137 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.463, allocations: 7.594 kB / 343.7 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.4631, allocations: 0 / 343.7 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.4642, allocations: 244.7 kB / 343.9 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.4647, allocations: 55.89 kB / 344 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005483/0.4702, allocations: 2.55 MB / 346.5 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.4707, allocations: 32.03 kB / 346.6 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.988e-05/0.4708, allocations: 12 kB / 346.6 MB, free: 5.121 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.0002465/0.4711, allocations: 116.9 kB / 346.7 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001381/0.4725, allocations: 429.7 kB / 347.1 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.4726, allocations: 27.72 kB / 347.1 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.4727, allocations: 39.36 kB / 347.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4728, allocations: 11.98 kB / 347.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.4728, allocations: 0 / 347.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.4728, allocations: 0 / 347.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002517/0.4753, allocations: 0.9494 MB / 348.1 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.4754, allocations: 0 / 348.1 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004692/0.4758, allocations: 47.97 kB / 348.2 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.4769, allocations: 229.2 kB / 348.4 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.427e-05/0.477, allocations: 15.92 kB / 348.4 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005187/0.4822, allocations: 2.49 MB / 350.9 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.4822, allocations: 4.031 kB / 350.9 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.4841, allocations: 0.7081 MB / 351.6 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002759/0.4844, allocations: 144.7 kB / 351.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.932e-05/0.4845, allocations: 0 / 351.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004804/0.485, allocations: 23.97 kB / 351.8 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002833/0.4853, allocations: 71.81 kB / 351.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.04e-05/0.4854, allocations: 19.98 kB / 351.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002241/0.4856, allocations: 148.3 kB / 352 MB, free: 15.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4856, allocations: 4.062 kB / 352 MB, free: 15.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001034/0.4867, allocations: 128 kB / 352.2 MB, free: 15.33 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.002591/0.4893, allocations: 1.296 MB / 353.5 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.4909, allocations: 0.5269 MB / 354 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.491, allocations: 0 / 354 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009791/0.492, allocations: 380.2 kB / 354.4 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005131/0.4925, allocations: 24.16 kB / 354.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.4947, allocations: 0.596 MB / 355 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/0.4952, allocations: 0.7839 MB / 355.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003477/0.4955, allocations: 91.39 kB / 355.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4955, allocations: 0 / 355.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.193/3.689, allocations: 6.133 MB / 362 MB, free: 5.387 MB / 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