Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.117/2.117, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.739e-05/2.753e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3569, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1398/0.4967, allocations: 75.63 MB / 369.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.4971, allocations: 67.97 kB / 369.9 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04766/0.5447, allocations: 9.844 MB / 379.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5448, allocations: 0 / 379.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.5448, allocations: 8 kB / 379.7 MB, free: 12.32 MB / 330.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.001579/0.5464, allocations: 0.592 MB / 380.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.5465, allocations: 11.97 kB / 380.4 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004564/0.547, allocations: 63.45 kB / 380.4 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005922/0.5476, allocations: 274.6 kB / 380.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.5478, allocations: 88.11 kB / 380.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.5479, allocations: 19.91 kB / 380.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001084/0.549, allocations: 401.3 kB / 381.2 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008644/0.5498, allocations: 337.3 kB / 381.5 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.5499, allocations: 4 kB / 381.5 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.082e-05/0.55, allocations: 0 / 381.5 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.55, allocations: 8 kB / 381.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.5522, allocations: 0.8288 MB / 382.3 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009132/0.5531, allocations: 335.8 kB / 382.7 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.5536, allocations: 186.2 kB / 382.9 MB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.32e-05/0.5537, allocations: 4.438 kB / 382.9 MB, free: 9.027 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.5537, allocations: 35 kB / 382.9 MB, free: 8.984 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 5.911e-06/0.5538, allocations: 7.984 kB / 382.9 MB, free: 8.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.004492/0.5583, allocations: 1.436 MB / 384.3 MB, free: 7.445 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/0.5584, allocations: 85.67 kB / 384.4 MB, free: 7.344 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003325/0.5587, allocations: 178.1 kB / 384.6 MB, free: 7.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/0.5588, allocations: 29.7 kB / 384.6 MB, free: 7.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.559, allocations: 203.4 kB / 384.8 MB, free: 6.922 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/0.5592, allocations: 169.4 kB / 385 MB, free: 6.754 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.5593, allocations: 4 kB / 385 MB, free: 6.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.5595, allocations: 330.8 kB / 385.3 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000437/0.5599, allocations: 153.1 kB / 385.5 MB, free: 6.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004922/0.5604, allocations: 199.6 kB / 385.7 MB, free: 6.066 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005716/0.561, allocations: 162 kB / 385.8 MB, free: 5.906 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.561, allocations: 4.031 kB / 385.8 MB, free: 5.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001543/0.5626, allocations: 0.508 MB / 386.3 MB, free: 5.387 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.5626, allocations: 7.984 kB / 386.3 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.5626, allocations: 0 / 386.3 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.5638, allocations: 238.8 kB / 386.6 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/0.5645, allocations: 63.89 kB / 386.6 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005649/0.5701, allocations: 2.588 MB / 389.2 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006052/0.5708, allocations: 23.97 kB / 389.2 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.553e-05/0.5709, allocations: 23.98 kB / 389.3 MB, free: 2.332 MB / 330.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: 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.0002663/0.5712, allocations: 125.9 kB / 389.4 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001677/0.5729, allocations: 0.5032 MB / 389.9 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.573, allocations: 31.62 kB / 389.9 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.5731, allocations: 43.39 kB / 390 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.5732, allocations: 12 kB / 390 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.5732, allocations: 0 / 390 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.5732, allocations: 7.984 kB / 390 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.5762, allocations: 1.085 MB / 391.1 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.5763, allocations: 0 / 391.1 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006489/0.5769, allocations: 79.91 kB / 391.2 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.578, allocations: 224.6 kB / 391.4 MB, free: 164 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.872e-05/0.578, allocations: 7.984 kB / 391.4 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005241/0.5833, allocations: 2.49 MB / 393.9 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.5833, allocations: 4.031 kB / 393.9 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.5855, allocations: 0.8225 MB / 394.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003637/0.5859, allocations: 152.7 kB / 394.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.5861, allocations: 4 kB / 394.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.5867, allocations: 32.03 kB / 394.9 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002955/0.587, allocations: 76.42 kB / 395 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-05/0.5871, allocations: 19.98 kB / 395 MB, free: 12.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002369/0.5873, allocations: 147 kB / 395.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.408e-06/0.5873, allocations: 0 / 395.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001064/0.5884, allocations: 151.8 kB / 395.3 MB, free: 12.1 MB / 346.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.003016/0.5915, allocations: 1.487 MB / 396.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.5931, allocations: 0.5839 MB / 397.3 MB, free: 9.977 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.5932, allocations: 0 / 397.3 MB, free: 9.977 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.5942, allocations: 421.6 kB / 397.8 MB, free: 9.559 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005365/0.5948, allocations: 28.94 kB / 397.8 MB, free: 9.531 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.5972, allocations: 0.6899 MB / 398.5 MB, free: 8.797 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007703/0.598, allocations: 0.8093 MB / 399.3 MB, free: 7.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005763/0.5986, allocations: 103.4 kB / 399.4 MB, free: 7.859 MB / 346.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5986, allocations: 0 / 399.4 MB, free: 7.859 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.88/3.479, allocations: 6.94 MB / 406.3 MB, free: 0.9297 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat