Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.796/1.796, allocations: 171.2 MB / 183.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.406e-05/3.419e-05, allocations: 4 kB / 225.1 MB, free: 2.141 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2746, allocations: 38.76 MB / 263.8 MB, free: 9.797 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2144/0.4891, allocations: 72.53 MB / 336.4 MB, free: 1.16 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.4894, allocations: 79.95 kB / 336.5 MB, free: 1.082 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0612/0.5506, allocations: 11.87 MB / 348.3 MB, free: 5.176 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.5507, allocations: 8 kB / 348.3 MB, free: 5.168 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.515e-05/0.5507, allocations: 8 kB / 348.3 MB, free: 5.16 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.002427/0.5532, allocations: 0.7245 MB / 349.1 MB, free: 4.387 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.809e-05/0.5532, allocations: 12.03 kB / 349.1 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002384/0.5535, allocations: 78.53 kB / 349.2 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005735/0.5541, allocations: 67.41 kB / 349.2 MB, free: 4.223 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008913/0.555, allocations: 325.3 kB / 349.5 MB, free: 3.863 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.5553, allocations: 100.1 kB / 349.6 MB, free: 3.754 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.5554, allocations: 43.94 kB / 349.7 MB, free: 3.711 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.557, allocations: 0.5222 MB / 350.2 MB, free: 3.172 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.337e-05/0.5571, allocations: 19.83 kB / 350.2 MB, free: 3.152 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-05/0.5572, allocations: 20 kB / 350.2 MB, free: 3.133 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.5573, allocations: 8 kB / 350.2 MB, free: 3.125 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.5591, allocations: 0.5809 MB / 350.8 MB, free: 2.547 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.5633, allocations: 1.231 MB / 352.1 MB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.5651, allocations: 497.6 kB / 352.5 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009491/0.5661, allocations: 290.7 kB / 352.8 MB, free: 480 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.246e-05/0.5662, allocations: 12.5 kB / 352.8 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.134e-05/0.5663, allocations: 39.12 kB / 352.9 MB, free: 420 kB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.036e-06/0.5663, allocations: 0 / 352.9 MB, free: 420 kB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.006787/0.5731, allocations: 2.042 MB / 354.9 MB, free: 14.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.433e-05/0.5732, allocations: 85.67 kB / 355 MB, free: 14.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005814/0.5738, allocations: 271.4 kB / 355.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001981/0.574, allocations: 37.7 kB / 355.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.5742, allocations: 165.6 kB / 355.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003292/0.5745, allocations: 228.7 kB / 355.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.5746, allocations: 16 kB / 355.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.5748, allocations: 354.8 kB / 356.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008358/0.5757, allocations: 253.5 kB / 356.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008546/0.5766, allocations: 320 kB / 356.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007364/0.5773, allocations: 238 kB / 356.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5773, allocations: 0 / 356.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002557/0.5799, allocations: 0.8373 MB / 357.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.58, allocations: 8 kB / 357.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.58, allocations: 0 / 357.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001999/0.582, allocations: 0.5338 MB / 358.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008153/0.5829, allocations: 87.88 kB / 358.3 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.5851, allocations: 1.068 MB / 359.4 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.5863, allocations: 87.94 kB / 359.5 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.5865, allocations: 27.98 kB / 359.5 MB, free: 9.613 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.0002631/0.5867, allocations: 136.9 kB / 359.6 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.587, allocations: 47.44 kB / 359.7 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002137/0.5872, allocations: 67.77 kB / 359.7 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.5872, allocations: 8 kB / 359.7 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/0.5872, allocations: 0 / 359.7 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.5872, allocations: 3.984 kB / 359.8 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005613/0.5929, allocations: 1.757 MB / 361.5 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.5929, allocations: 4 kB / 361.5 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008074/0.5937, allocations: 83.81 kB / 361.6 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001951/0.5957, allocations: 0.5204 MB / 362.1 MB, free: 6.918 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.596, allocations: 23.94 kB / 362.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.598, allocations: 1.021 MB / 363.2 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.598, allocations: 0 / 363.2 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003836/0.6019, allocations: 1.265 MB / 364.4 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005398/0.6024, allocations: 184.6 kB / 364.6 MB, free: 4.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.6026, allocations: 27.95 kB / 364.6 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009284/0.6036, allocations: 67.94 kB / 364.7 MB, free: 4.254 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003671/0.604, allocations: 100.4 kB / 364.8 MB, free: 4.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.6041, allocations: 31.97 kB / 364.8 MB, free: 4.125 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000404/0.6045, allocations: 211.1 kB / 365 MB, free: 3.922 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6045, allocations: 0 / 365 MB, free: 3.922 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009125/0.6055, allocations: 171.9 kB / 365.2 MB, free: 3.754 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.004518/0.61, allocations: 1.99 MB / 367.2 MB, free: 1.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.6123, allocations: 0.6259 MB / 367.8 MB, free: 1.098 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.6123, allocations: 0 / 367.8 MB, free: 1.098 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.6136, allocations: 355 kB / 368.2 MB, free: 0.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.6143, allocations: 40.77 kB / 368.2 MB, free: 0.707 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2303/0.8447, allocations: 1.075 MB / 369.3 MB, free: 93.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004318/0.8451, allocations: 0.8291 MB / 370.1 MB, free: 92.9 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004719/0.8456, allocations: 63.59 kB / 370.2 MB, free: 92.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004234/0.8461, allocations: 131.2 kB / 370.3 MB, free: 92.89 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8461, allocations: 0.5 kB / 370.3 MB, free: 92.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06278/0.9089, allocations: 12.08 MB / 382.4 MB, free: 88.64 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002483/0.9092, allocations: 190.2 kB / 382.6 MB, free: 88.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.969/3.878, allocations: 0 / 382.6 MB, free: 88.41 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat