Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.351/2.351, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.666e-05/3.687e-05, allocations: 2.078 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1485, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5168/0.6653, allocations: 77 MB / 371.3 MB, free: 7.238 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.6657, allocations: 69.27 kB / 371.4 MB, free: 7.238 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06067/0.7264, allocations: 11.45 MB / 382.8 MB, free: 20.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.7264, allocations: 0 / 382.8 MB, free: 20.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.54e-05/0.7265, allocations: 11.78 kB / 382.8 MB, free: 20.43 MB / 314.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.002341/0.7288, allocations: 0.7026 MB / 383.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.7289, allocations: 7.75 kB / 383.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006235/0.7295, allocations: 69.53 kB / 383.6 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007567/0.7303, allocations: 330.7 kB / 383.9 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.7305, allocations: 83.55 kB / 384 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.7307, allocations: 31.03 kB / 384 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001607/0.7323, allocations: 0.529 MB / 384.6 MB, free: 19.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.7336, allocations: 463.2 kB / 385 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.538e-05/0.7336, allocations: 0 / 385 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.898e-05/0.7338, allocations: 0 / 385 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.7338, allocations: 15.47 kB / 385 MB, free: 19.28 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.7375, allocations: 1.068 MB / 386.1 MB, free: 18.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.7388, allocations: 445.1 kB / 386.5 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006996/0.7396, allocations: 273.4 kB / 386.8 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001534/0.7397, allocations: 11.95 kB / 386.8 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.7398, allocations: 38.81 kB / 386.9 MB, free: 18.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 4.879e-06/0.7398, allocations: 0 / 386.9 MB, free: 18.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.006804/0.7466, allocations: 1.867 MB / 388.7 MB, free: 17.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.7467, allocations: 88.08 kB / 388.8 MB, free: 17.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003989/0.7471, allocations: 224.5 kB / 389 MB, free: 17.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001456/0.7473, allocations: 25.7 kB / 389.1 MB, free: 17.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.7474, allocations: 158.6 kB / 389.2 MB, free: 17.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002839/0.7477, allocations: 224.8 kB / 389.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.7478, allocations: 7.984 kB / 389.4 MB, free: 17.28 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.748, allocations: 341.1 kB / 389.8 MB, free: 16.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006634/0.7487, allocations: 230.4 kB / 390 MB, free: 16.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007026/0.7494, allocations: 285.8 kB / 390.3 MB, free: 16.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008699/0.7503, allocations: 212.3 kB / 390.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.7503, allocations: 0 / 390.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002727/0.7531, allocations: 0.7569 MB / 391.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.7531, allocations: 3.75 kB / 391.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/0.7532, allocations: 0 / 391.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.755, allocations: 418.3 kB / 391.7 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009018/0.7559, allocations: 89.75 kB / 391.7 MB, free: 16.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/0.7582, allocations: 1.058 MB / 392.8 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.7593, allocations: 74.22 kB / 392.9 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.7595, allocations: 27.42 kB / 392.9 MB, free: 15.98 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): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003853/0.7599, allocations: 124.4 kB / 393 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002559/0.7625, allocations: 0.7024 MB / 393.7 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.7627, allocations: 38.91 kB / 393.8 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002662/0.7653, allocations: 0.7703 MB / 394.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.7654, allocations: 11.58 kB / 394.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.7654, allocations: 0 / 394.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.7654, allocations: 3.984 kB / 394.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005044/0.7705, allocations: 1.545 MB / 396.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.7706, allocations: 3.906 kB / 396.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008861/0.7715, allocations: 85.38 kB / 396.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001713/0.7732, allocations: 396.8 kB / 396.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/0.7734, allocations: 19.28 kB / 396.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.7755, allocations: 1.014 MB / 397.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/0.7755, allocations: 0 / 397.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003675/0.7792, allocations: 1.143 MB / 398.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.7798, allocations: 177.2 kB / 398.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.78, allocations: 11.05 kB / 398.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.781, allocations: 62.5 kB / 399 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004059/0.7814, allocations: 100.3 kB / 399.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.7816, allocations: 34.28 kB / 399.1 MB, free: 13.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.7819, allocations: 176.4 kB / 399.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7819, allocations: 0 / 399.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000945/0.7828, allocations: 127.3 kB / 399.4 MB, free: 13.43 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (40): * Single equations (assignments): 39 * 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.004461/0.7873, allocations: 1.88 MB / 401.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.7893, allocations: 0.6035 MB / 401.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.7894, allocations: 0 / 401.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.7905, allocations: 336.6 kB / 402.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007027/0.7913, allocations: 31.11 kB / 402.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005238/0.7965, allocations: 1.013 MB / 403.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005873/0.7972, allocations: 0.8265 MB / 404.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005418/0.7977, allocations: 66.38 kB / 404.2 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004641/0.7982, allocations: 137.1 kB / 404.3 MB, free: 10.97 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.7982, allocations: 0 / 404.3 MB, free: 10.97 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08165/0.8799, allocations: 11.24 MB / 415.5 MB, free: 1.922 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004263/0.8804, allocations: 149.9 kB / 415.7 MB, free: 1.727 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.595/4.476, allocations: 0 / 415.7 MB, free: 1.727 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat