Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.768/1.768, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.738e-05/2.729e-05, allocations: 8 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2608, allocations: 38.76 MB / 258.3 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.416, allocations: 69.7 MB / 328 MB, free: 8.074 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4164, allocations: 63.97 kB / 328.1 MB, free: 8.012 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04622/0.4626, allocations: 9.238 MB / 337.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4626, allocations: 0 / 337.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.4627, allocations: 4 kB / 337.4 MB, free: 14.75 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.001445/0.4641, allocations: 0.5568 MB / 337.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.4642, allocations: 8.031 kB / 337.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004524/0.4647, allocations: 55.53 kB / 338 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005361/0.4652, allocations: 282.4 kB / 338.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.4654, allocations: 79.95 kB / 338.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.683e-05/0.4655, allocations: 19.98 kB / 338.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009541/0.4665, allocations: 360.9 kB / 338.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007607/0.4672, allocations: 320.2 kB / 339 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.833e-05/0.4673, allocations: 4 kB / 339 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.4674, allocations: 0 / 339 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.4674, allocations: 4 kB / 339 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002678/0.4701, allocations: 1.104 MB / 340.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007238/0.4708, allocations: 291 kB / 340.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.4712, allocations: 148.8 kB / 340.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.592e-05/0.4713, allocations: 4 kB / 340.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.4714, allocations: 42.5 kB / 340.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.227e-06/0.4714, allocations: 0 / 340.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003624/0.475, allocations: 1.232 MB / 341.8 MB, free: 9.969 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.4751, allocations: 84.86 kB / 341.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.4754, allocations: 185.8 kB / 342.1 MB, free: 9.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.184e-05/0.4755, allocations: 29.64 kB / 342.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.4756, allocations: 144.9 kB / 342.3 MB, free: 9.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.4758, allocations: 137.9 kB / 342.4 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.4759, allocations: 4 kB / 342.4 MB, free: 9.359 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.476, allocations: 342.7 kB / 342.7 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003754/0.4764, allocations: 140.8 kB / 342.9 MB, free: 8.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.4768, allocations: 189.1 kB / 343.1 MB, free: 8.676 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004809/0.4773, allocations: 140.8 kB / 343.2 MB, free: 8.539 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.4773, allocations: 0 / 343.2 MB, free: 8.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001402/0.4787, allocations: 484.5 kB / 343.7 MB, free: 8.055 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.4788, allocations: 4 kB / 343.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4788, allocations: 0 / 343.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.4799, allocations: 240.7 kB / 343.9 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.4804, allocations: 59.89 kB / 344 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00536/0.4858, allocations: 2.546 MB / 346.5 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005049/0.4864, allocations: 23.97 kB / 346.5 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.418e-05/0.4864, allocations: 20.06 kB / 346.6 MB, free: 5.043 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.0002477/0.4867, allocations: 116.8 kB / 346.7 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001405/0.4881, allocations: 433.7 kB / 347.1 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.92e-05/0.4883, allocations: 27.72 kB / 347.1 MB, free: 4.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.4884, allocations: 39.36 kB / 347.2 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.4884, allocations: 4 kB / 347.2 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.4884, allocations: 7.984 kB / 347.2 MB, free: 4.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4884, allocations: 3.938 kB / 347.2 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002432/0.4909, allocations: 0.9532 MB / 348.1 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.4909, allocations: 0 / 348.1 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004704/0.4914, allocations: 43.97 kB / 348.2 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.4924, allocations: 229.2 kB / 348.4 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.006e-05/0.4925, allocations: 15.92 kB / 348.4 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004969/0.4975, allocations: 2.494 MB / 350.9 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.397e-06/0.4975, allocations: 8.031 kB / 350.9 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.4993, allocations: 0.7042 MB / 351.6 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.4996, allocations: 144.9 kB / 351.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.765e-05/0.4997, allocations: 0 / 351.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000478/0.5002, allocations: 23.97 kB / 351.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.5005, allocations: 63.88 kB / 351.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-05/0.5006, allocations: 19.98 kB / 351.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000203/0.5008, allocations: 148.3 kB / 352 MB, free: 15.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5008, allocations: 0 / 352 MB, free: 15.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008951/0.5017, allocations: 132 kB / 352.1 MB, free: 15.24 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.002463/0.5042, allocations: 1.296 MB / 353.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.5057, allocations: 0.527 MB / 354 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.5057, allocations: 0 / 354 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008803/0.5066, allocations: 384.2 kB / 354.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.5071, allocations: 27.03 kB / 354.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.509, allocations: 0.567 MB / 354.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.5095, allocations: 0.78 MB / 355.7 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003804/0.5099, allocations: 59.27 kB / 355.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002591/0.5101, allocations: 83.39 kB / 355.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5101, allocations: 0 / 355.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0578/0.568, allocations: 8.197 MB / 364 MB, free: 3.23 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002729/0.5683, allocations: 141 kB / 364.2 MB, free: 3.039 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/3.625, allocations: 0 / 364.2 MB, free: 3.039 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat