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.759/1.759, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.61e-05/3.627e-05, allocations: 0 / 225.1 MB, free: 2.75 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2687, allocations: 38.78 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.4022, allocations: 72.53 MB / 336.4 MB, free: 1.133 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.4026, allocations: 67.97 kB / 336.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06404/0.4666, allocations: 11.88 MB / 348.3 MB, free: 5.152 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4667, allocations: 0 / 348.3 MB, free: 5.152 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.914e-05/0.4667, allocations: 16 kB / 348.3 MB, free: 5.137 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.002282/0.469, allocations: 0.7245 MB / 349 MB, free: 4.363 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.4691, allocations: 8.031 kB / 349.1 MB, free: 4.355 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001999/0.4693, allocations: 78.53 kB / 349.1 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005162/0.4699, allocations: 63.42 kB / 349.2 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008014/0.4707, allocations: 329.3 kB / 349.5 MB, free: 3.844 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.4709, allocations: 104.1 kB / 349.6 MB, free: 3.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.471, allocations: 36 kB / 349.7 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.4725, allocations: 0.53 MB / 350.2 MB, free: 3.148 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/0.4726, allocations: 3.906 kB / 350.2 MB, free: 3.145 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.213e-05/0.4727, allocations: 20 kB / 350.2 MB, free: 3.125 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.4727, allocations: 8 kB / 350.2 MB, free: 3.117 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.4745, allocations: 0.5887 MB / 350.8 MB, free: 2.531 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003785/0.4783, allocations: 1.227 MB / 352 MB, free: 1.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/0.48, allocations: 498.3 kB / 352.5 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008241/0.4808, allocations: 290.5 kB / 352.8 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.521e-05/0.4809, allocations: 12.73 kB / 352.8 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.481, allocations: 43.06 kB / 352.9 MB, free: 404 kB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 2.895e-06/0.481, allocations: 0 / 352.9 MB, free: 404 kB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.006378/0.4874, allocations: 2.042 MB / 354.9 MB, free: 14.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/0.4875, allocations: 85.67 kB / 355 MB, free: 14.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005523/0.4881, allocations: 271.4 kB / 355.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.4882, allocations: 45.7 kB / 355.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.4884, allocations: 212 kB / 355.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003075/0.4887, allocations: 232.7 kB / 355.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.4888, allocations: 15.94 kB / 355.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.489, allocations: 338.8 kB / 356.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007999/0.4898, allocations: 257.5 kB / 356.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009083/0.4907, allocations: 320 kB / 356.6 MB, free: 12.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000705/0.4915, allocations: 234 kB / 356.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4915, allocations: 3.938 kB / 356.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002484/0.494, allocations: 0.8257 MB / 357.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.4941, allocations: 4 kB / 357.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.4941, allocations: 4 kB / 357.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001959/0.4961, allocations: 0.5299 MB / 358.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008083/0.4969, allocations: 95.81 kB / 358.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.4992, allocations: 1.079 MB / 359.4 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.5002, allocations: 76 kB / 359.5 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.5004, allocations: 31.98 kB / 359.5 MB, free: 9.559 MB / 314.7 MB 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.0002737/0.5006, allocations: 136.9 kB / 359.6 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.5008, allocations: 47.44 kB / 359.7 MB, free: 9.371 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.5011, allocations: 59.78 kB / 359.7 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.5011, allocations: 11.98 kB / 359.8 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.5011, allocations: 0 / 359.8 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.5011, allocations: 7.953 kB / 359.8 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005423/0.5066, allocations: 1.75 MB / 361.5 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.5066, allocations: 0 / 361.5 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007732/0.5074, allocations: 83.89 kB / 361.6 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.5093, allocations: 0.5087 MB / 362.1 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.5094, allocations: 35.92 kB / 362.1 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002042/0.5115, allocations: 1.025 MB / 363.2 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5115, allocations: 0 / 363.2 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003702/0.5153, allocations: 1.261 MB / 364.4 MB, free: 4.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004977/0.5158, allocations: 188.5 kB / 364.6 MB, free: 4.297 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.516, allocations: 24.05 kB / 364.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008642/0.5168, allocations: 67.94 kB / 364.7 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/0.5172, allocations: 100.4 kB / 364.8 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.5173, allocations: 31.98 kB / 364.8 MB, free: 4.078 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003849/0.5177, allocations: 215.1 kB / 365 MB, free: 3.871 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5177, allocations: 0 / 365 MB, free: 3.871 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008578/0.5186, allocations: 167.9 kB / 365.2 MB, free: 3.707 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.004436/0.5231, allocations: 1.989 MB / 367.2 MB, free: 1.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.5252, allocations: 0.6259 MB / 367.8 MB, free: 1.051 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5253, allocations: 0 / 367.8 MB, free: 1.051 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.5265, allocations: 351 kB / 368.2 MB, free: 0.707 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006545/0.5272, allocations: 40.83 kB / 368.2 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2223/0.7494, allocations: 1.111 MB / 369.3 MB, free: 93.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.75, allocations: 0.8315 MB / 370.1 MB, free: 92.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000571/0.7505, allocations: 138.2 kB / 370.3 MB, free: 92.72 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/0.7506, allocations: 1.125 kB / 370.3 MB, free: 92.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.835/3.585, allocations: 8.511 MB / 378.8 MB, free: 91.67 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