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.729/1.729, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.962e-05/3.966e-05, allocations: 0 / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2592, allocations: 38.78 MB / 263.9 MB, free: 9.695 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.3962, allocations: 70.98 MB / 334.9 MB, free: 2.613 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.3966, allocations: 67.97 kB / 334.9 MB, free: 2.547 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0481/0.4447, allocations: 9.897 MB / 344.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.07e-06/0.4448, allocations: 0 / 344.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.124e-05/0.4448, 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.001556/0.4464, allocations: 0.5919 MB / 345.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.4464, allocations: 12.03 kB / 345.4 MB, free: 7.965 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.4466, allocations: 74.52 kB / 345.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005049/0.4471, allocations: 51.52 kB / 345.6 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005488/0.4476, allocations: 290.3 kB / 345.8 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.4478, allocations: 92.17 kB / 345.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.448, allocations: 28 kB / 346 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000987/0.449, allocations: 381.3 kB / 346.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.449, allocations: 7.906 kB / 346.3 MB, free: 6.984 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.946e-05/0.4491, allocations: 12 kB / 346.3 MB, free: 6.973 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.4491, allocations: 8 kB / 346.4 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.4503, allocations: 413.3 kB / 346.8 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002228/0.4525, allocations: 0.9 MB / 347.7 MB, free: 5.598 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.4536, allocations: 356.4 kB / 348 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005282/0.4541, allocations: 206.1 kB / 348.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.868e-05/0.4542, allocations: 12.41 kB / 348.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.4543, allocations: 39 kB / 348.3 MB, free: 4.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.357e-06/0.4543, allocations: 0 / 348.3 MB, free: 4.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004445/0.4587, allocations: 1.535 MB / 349.8 MB, free: 3.352 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/0.4588, allocations: 85.67 kB / 349.9 MB, free: 3.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003832/0.4592, allocations: 207 kB / 350.1 MB, free: 3.039 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.487e-05/0.4593, allocations: 33.7 kB / 350.1 MB, free: 3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.4595, allocations: 141.1 kB / 350.2 MB, free: 2.859 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.4597, allocations: 181.4 kB / 350.4 MB, free: 2.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.4597, allocations: 12 kB / 350.4 MB, free: 2.668 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4599, allocations: 342.8 kB / 350.8 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/0.4605, allocations: 161.1 kB / 350.9 MB, free: 2.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005363/0.4611, allocations: 215.5 kB / 351.1 MB, free: 1.949 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004694/0.4616, allocations: 159.2 kB / 351.3 MB, free: 1.793 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4616, allocations: 0 / 351.3 MB, free: 1.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001577/0.4632, allocations: 0.5511 MB / 351.8 MB, free: 1.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.4632, allocations: 4 kB / 351.8 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4632, allocations: 3.953 kB / 351.9 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.4644, allocations: 242.8 kB / 352.1 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006022/0.465, allocations: 71.94 kB / 352.2 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005734/0.4708, allocations: 2.684 MB / 354.8 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006941/0.4715, allocations: 35.97 kB / 354.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.021e-05/0.4716, allocations: 16 kB / 354.9 MB, free: 14.05 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.0002213/0.4718, allocations: 132.9 kB / 355 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4719, allocations: 35.69 kB / 355.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.4721, allocations: 47.09 kB / 355.1 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4721, allocations: 8 kB / 355.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.4721, allocations: 0 / 355.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4722, allocations: 3.984 kB / 355.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003022/0.4752, allocations: 1.186 MB / 356.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4752, allocations: 0 / 356.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006398/0.4759, allocations: 71.89 kB / 356.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.4769, allocations: 224.8 kB / 356.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.279e-05/0.477, allocations: 11.98 kB / 356.6 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005379/0.4824, allocations: 2.6 MB / 359.2 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4825, allocations: 0 / 359.2 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002199/0.4847, allocations: 0.8723 MB / 360.1 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.485, allocations: 156.6 kB / 360.2 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.644e-05/0.4851, allocations: 12.12 kB / 360.2 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005754/0.4857, allocations: 39.97 kB / 360.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000257/0.4859, allocations: 72.48 kB / 360.4 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.708e-05/0.486, allocations: 19.98 kB / 360.4 MB, free: 8.316 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002741/0.4863, allocations: 173.6 kB / 360.5 MB, free: 8.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4863, allocations: 0 / 360.5 MB, free: 8.148 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001109/0.4874, allocations: 163.9 kB / 360.7 MB, free: 7.988 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.003062/0.4905, allocations: 1.545 MB / 362.2 MB, free: 6.406 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.4923, allocations: 0.6114 MB / 362.9 MB, free: 5.785 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4923, allocations: 0 / 362.9 MB, free: 5.785 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.4934, allocations: 433.8 kB / 363.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.4939, allocations: 35.05 kB / 363.3 MB, free: 5.324 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.4961, allocations: 0.6934 MB / 364 MB, free: 4.594 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.4966, allocations: 0.8127 MB / 364.8 MB, free: 3.758 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003889/0.497, allocations: 70.92 kB / 364.9 MB, free: 3.688 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002964/0.4974, allocations: 99.39 kB / 365 MB, free: 3.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4974, allocations: 0 / 365 MB, free: 3.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2744/0.7717, allocations: 9.637 MB / 374.6 MB, free: 92.83 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002073/0.772, allocations: 187.8 kB / 374.8 MB, free: 92.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.862/3.634, allocations: 3.938 kB / 374.8 MB, free: 92.6 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