Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.383e-05/4.421e-05, allocations: 0 / 225.1 MB, free: 2.141 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3103, allocations: 38.77 MB / 263.8 MB, free: 9.691 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1554/0.4657, allocations: 70.97 MB / 334.8 MB, free: 2.613 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000348/0.4661, allocations: 71.95 kB / 334.9 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09119/0.5573, allocations: 9.894 MB / 344.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.378e-06/0.5574, allocations: 0 / 344.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.198e-05/0.5574, allocations: 7.938 kB / 344.8 MB, free: 8.613 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001657/0.5591, allocations: 0.5957 MB / 345.4 MB, free: 7.973 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.5591, allocations: 8.031 kB / 345.4 MB, free: 7.965 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.5593, allocations: 70.53 kB / 345.5 MB, free: 7.887 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004573/0.5598, allocations: 51.52 kB / 345.5 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000623/0.5604, allocations: 290.5 kB / 345.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.5606, allocations: 96.16 kB / 345.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.5607, allocations: 32 kB / 345.9 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.5618, allocations: 386.8 kB / 346.3 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.5618, allocations: 3.906 kB / 346.3 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.5619, allocations: 12 kB / 346.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.747e-05/0.5619, allocations: 8 kB / 346.3 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.5631, allocations: 414.9 kB / 346.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.5654, allocations: 0.9039 MB / 347.6 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.5664, allocations: 355.8 kB / 348 MB, free: 5.234 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005731/0.567, allocations: 206.1 kB / 348.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.204e-05/0.5671, allocations: 4.438 kB / 348.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.5672, allocations: 39 kB / 348.2 MB, free: 4.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.156e-06/0.5672, allocations: 3.938 kB / 348.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004478/0.5717, allocations: 1.543 MB / 349.8 MB, free: 3.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.5718, allocations: 85.67 kB / 349.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.5722, allocations: 207 kB / 350.1 MB, free: 3.027 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-05/0.5723, allocations: 37.69 kB / 350.1 MB, free: 2.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.5724, allocations: 137.1 kB / 350.2 MB, free: 2.848 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.5726, allocations: 185.4 kB / 350.4 MB, free: 2.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/0.5727, allocations: 16 kB / 350.4 MB, free: 2.648 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5729, allocations: 338.8 kB / 350.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004932/0.5734, allocations: 161.1 kB / 350.9 MB, free: 2.148 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.5739, allocations: 220.6 kB / 351.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004766/0.5744, allocations: 159.2 kB / 351.3 MB, free: 1.773 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5744, allocations: 0 / 351.3 MB, free: 1.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001604/0.5761, allocations: 0.5471 MB / 351.8 MB, free: 1.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.5761, allocations: 12 kB / 351.8 MB, free: 1.203 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.5761, allocations: 3.953 kB / 351.8 MB, free: 1.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.5773, allocations: 242.8 kB / 352.1 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006198/0.578, allocations: 63.95 kB / 352.1 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005833/0.5838, allocations: 2.684 MB / 354.8 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006267/0.5845, allocations: 35.97 kB / 354.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-05/0.5846, allocations: 19.98 kB / 354.9 MB, free: 14.03 MB / 314.7 MB 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.0002083/0.5848, allocations: 132.9 kB / 355 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.585, allocations: 31.62 kB / 355 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.5851, allocations: 51.14 kB / 355.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.5852, allocations: 8 kB / 355.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5852, allocations: 0 / 355.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.5852, allocations: 0 / 355.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.5882, allocations: 1.198 MB / 356.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5883, allocations: 0 / 356.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/0.5889, allocations: 67.89 kB / 356.4 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.59, allocations: 224.8 kB / 356.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.491e-05/0.5901, allocations: 15.98 kB / 356.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005383/0.5955, allocations: 2.584 MB / 359.2 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.5955, allocations: 4.031 kB / 359.2 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.5977, allocations: 0.8612 MB / 360.1 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/0.5981, allocations: 156.7 kB / 360.2 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.5982, allocations: 12 kB / 360.2 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.5988, allocations: 40.09 kB / 360.3 MB, free: 8.398 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.5991, allocations: 76.48 kB / 360.3 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.453e-05/0.5992, allocations: 15.98 kB / 360.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002695/0.5995, allocations: 173.6 kB / 360.5 MB, free: 8.141 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.5995, allocations: 0 / 360.5 MB, free: 8.141 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009/0.6004, allocations: 167.9 kB / 360.7 MB, free: 7.977 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: 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.003035/0.6034, allocations: 1.553 MB / 362.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.6052, allocations: 0.6295 MB / 362.9 MB, free: 5.742 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.6052, allocations: 0 / 362.9 MB, free: 5.742 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.6063, allocations: 447.5 kB / 363.3 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.6068, allocations: 32.38 kB / 363.3 MB, free: 5.262 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.6091, allocations: 0.7013 MB / 364 MB, free: 4.523 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004659/0.6096, allocations: 0.8126 MB / 364.8 MB, free: 3.688 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004073/0.6101, allocations: 66.94 kB / 364.9 MB, free: 3.621 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.6104, allocations: 103.4 kB / 365 MB, free: 3.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6104, allocations: 0 / 365 MB, free: 3.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2603/0.8707, allocations: 9.68 MB / 374.7 MB, free: 92.92 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/0.871, allocations: 189.1 kB / 374.9 MB, free: 92.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.986/3.857, allocations: 0 / 374.9 MB, free: 92.7 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat