Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.797/1.797, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.913e-05/2.912e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2671, allocations: 38.77 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.3998, allocations: 71.86 MB / 330.2 MB, free: 5.965 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.4002, allocations: 67.95 kB / 330.2 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05844/0.4586, allocations: 11.82 MB / 342.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4587, allocations: 0 / 342.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.029e-05/0.4587, allocations: 8 kB / 342.1 MB, free: 10.04 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.00217/0.4609, allocations: 0.7166 MB / 342.8 MB, free: 9.281 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.461, allocations: 8.031 kB / 342.8 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005605/0.4616, allocations: 67.41 kB / 342.9 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007799/0.4624, allocations: 337.5 kB / 343.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.4626, allocations: 80.17 kB / 343.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.4627, allocations: 27.95 kB / 343.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001581/0.4643, allocations: 0.5676 MB / 343.9 MB, free: 8.148 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.4655, allocations: 489.2 kB / 344.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.4656, allocations: 7.844 kB / 344.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.121e-05/0.4657, allocations: 0 / 344.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.4657, allocations: 8 kB / 344.4 MB, free: 7.641 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003452/0.4692, allocations: 1.145 MB / 345.5 MB, free: 6.453 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.4706, allocations: 480.4 kB / 346 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006634/0.4713, allocations: 274.5 kB / 346.2 MB, free: 5.695 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.713e-05/0.4714, allocations: 12.56 kB / 346.3 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.4715, allocations: 39.08 kB / 346.3 MB, free: 5.637 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.797e-06/0.4715, allocations: 4 kB / 346.3 MB, free: 5.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.006089/0.4776, allocations: 1.9 MB / 348.2 MB, free: 3.645 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.961e-05/0.4777, allocations: 81.67 kB / 348.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004493/0.4782, allocations: 242 kB / 348.5 MB, free: 3.297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.4783, allocations: 33.7 kB / 348.5 MB, free: 3.258 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.4785, allocations: 223.9 kB / 348.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002759/0.4788, allocations: 224.8 kB / 349 MB, free: 2.812 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-05/0.4788, allocations: 0 / 349 MB, free: 2.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.479, allocations: 334.8 kB / 349.3 MB, free: 2.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006554/0.4797, allocations: 249.5 kB / 349.6 MB, free: 2.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007066/0.4804, allocations: 302.4 kB / 349.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000822/0.4812, allocations: 236.5 kB / 350.1 MB, free: 1.695 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4812, allocations: 0 / 350.1 MB, free: 1.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002364/0.4836, allocations: 0.771 MB / 350.9 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.4837, allocations: 8 kB / 350.9 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4837, allocations: 3.938 kB / 350.9 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001867/0.4856, allocations: 0.5221 MB / 351.4 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008111/0.4864, allocations: 91.88 kB / 351.5 MB, free: 296 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/0.4886, allocations: 1.134 MB / 352.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009624/0.4896, allocations: 68.03 kB / 352.7 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4898, allocations: 31.98 kB / 352.7 MB, free: 15.03 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003293/0.4901, allocations: 126.3 kB / 352.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002571/0.4927, allocations: 0.7647 MB / 353.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.493, allocations: 43.53 kB / 353.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.4932, allocations: 52.05 kB / 353.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.4932, allocations: 11.94 kB / 353.7 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.4932, allocations: 0 / 353.7 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.4932, allocations: 3.984 kB / 353.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004952/0.4982, allocations: 1.638 MB / 355.3 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.4982, allocations: 0 / 355.3 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007517/0.499, allocations: 83.88 kB / 355.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001757/0.5008, allocations: 0.5087 MB / 355.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.501, allocations: 15.98 kB / 355.9 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002013/0.503, allocations: 1.087 MB / 357 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/0.503, allocations: 3.984 kB / 357 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003592/0.5066, allocations: 1.234 MB / 358.3 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/0.5071, allocations: 184.6 kB / 358.5 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.5073, allocations: 15.95 kB / 358.5 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008291/0.5082, allocations: 60 kB / 358.5 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000365/0.5085, allocations: 100.3 kB / 358.6 MB, free: 8.969 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-05/0.5086, allocations: 27.97 kB / 358.7 MB, free: 8.941 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003027/0.509, allocations: 186 kB / 358.8 MB, free: 8.762 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.509, allocations: 0 / 358.8 MB, free: 8.762 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008674/0.5099, allocations: 144 kB / 359 MB, free: 8.621 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.004305/0.5142, allocations: 1.947 MB / 360.9 MB, free: 6.641 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.5161, allocations: 0.5919 MB / 361.5 MB, free: 6.047 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.5161, allocations: 0 / 361.5 MB, free: 6.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.5172, allocations: 334.1 kB / 361.8 MB, free: 5.723 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006079/0.5178, allocations: 39.09 kB / 361.9 MB, free: 5.688 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004549/0.5224, allocations: 1.061 MB / 362.9 MB, free: 4.578 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.5229, allocations: 0.8249 MB / 363.8 MB, free: 3.727 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004818/0.5234, allocations: 139.4 kB / 363.9 MB, free: 3.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5234, allocations: 0 / 363.9 MB, free: 3.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.347/3.871, allocations: 8.401 MB / 372.3 MB, free: 94.03 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat