Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.81/1.81, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.657e-05/3.663e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2639, allocations: 38.77 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1254/0.3893, allocations: 70.38 MB / 334.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.3897, allocations: 67.97 kB / 334.3 MB, free: 3.332 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04393/0.4336, allocations: 9.282 MB / 343.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4337, allocations: 0 / 343.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.4337, allocations: 4 kB / 343.6 MB, free: 10.02 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001373/0.4351, allocations: 0.5606 MB / 344.1 MB, free: 9.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.4351, allocations: 8.031 kB / 344.1 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.4353, allocations: 74.53 kB / 344.2 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000428/0.4357, allocations: 47.61 kB / 344.3 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005077/0.4362, allocations: 286.4 kB / 344.5 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.4364, allocations: 95.94 kB / 344.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.912e-05/0.4365, allocations: 31.95 kB / 344.7 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00088/0.4374, allocations: 348.2 kB / 345 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.4374, allocations: 0 / 345 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.782e-05/0.4375, allocations: 12 kB / 345 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.4375, allocations: 4 kB / 345 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009935/0.4385, allocations: 380.9 kB / 345.4 MB, free: 8.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.4413, allocations: 1.163 MB / 346.6 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008346/0.4422, allocations: 299 kB / 346.9 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004338/0.4427, allocations: 168.8 kB / 347 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.806e-05/0.4427, allocations: 4 kB / 347 MB, free: 6.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.4428, allocations: 38.5 kB / 347.1 MB, free: 6.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.436e-06/0.4428, allocations: 4 kB / 347.1 MB, free: 6.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003694/0.4465, allocations: 1.315 MB / 348.4 MB, free: 4.898 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.4466, allocations: 92.8 kB / 348.5 MB, free: 4.789 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.4469, allocations: 186.6 kB / 348.7 MB, free: 4.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.365e-05/0.447, allocations: 37.7 kB / 348.7 MB, free: 4.559 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.4472, allocations: 195 kB / 348.9 MB, free: 4.367 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.4474, allocations: 150 kB / 349 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.4474, allocations: 8 kB / 349 MB, free: 4.211 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4476, allocations: 326.8 kB / 349.4 MB, free: 3.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004244/0.448, allocations: 152.8 kB / 349.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004872/0.4485, allocations: 201.1 kB / 349.7 MB, free: 3.516 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004176/0.4489, allocations: 133.6 kB / 349.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4489, allocations: 0 / 349.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001419/0.4504, allocations: 0.5084 MB / 350.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.4504, allocations: 4 kB / 350.3 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.4504, allocations: 7.953 kB / 350.3 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.4516, allocations: 228.8 kB / 350.6 MB, free: 2.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004585/0.4521, allocations: 59.89 kB / 350.6 MB, free: 2.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005566/0.4576, allocations: 2.635 MB / 353.3 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005205/0.4582, allocations: 27.97 kB / 353.3 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.4583, allocations: 16 kB / 353.3 MB, free: 15.76 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001861/0.4585, allocations: 140.9 kB / 353.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.4586, allocations: 31.69 kB / 353.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000119/0.4587, allocations: 38.78 kB / 353.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.4588, allocations: 8 kB / 353.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.4588, allocations: 0 / 353.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.4588, allocations: 3.984 kB / 353.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/0.4614, allocations: 1.03 MB / 354.6 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4615, allocations: 0 / 354.6 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004717/0.4619, allocations: 47.97 kB / 354.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.463, allocations: 224.9 kB / 354.8 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.4631, allocations: 19.92 kB / 354.8 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005398/0.4685, allocations: 2.584 MB / 357.4 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4686, allocations: 0 / 357.4 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.4705, allocations: 0.744 MB / 358.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002736/0.4708, allocations: 144.8 kB / 358.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.355e-05/0.4709, allocations: 8 kB / 358.3 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005121/0.4714, allocations: 31.97 kB / 358.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.4717, allocations: 63.88 kB / 358.4 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.924e-05/0.4718, allocations: 20.05 kB / 358.4 MB, free: 10.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002319/0.472, allocations: 155.4 kB / 358.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.472, allocations: 0 / 358.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009706/0.473, allocations: 148 kB / 358.7 MB, free: 10.1 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002548/0.4756, allocations: 1.343 MB / 360.1 MB, free: 8.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.4772, allocations: 0.5418 MB / 360.6 MB, free: 8.172 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.4772, allocations: 0 / 360.6 MB, free: 8.172 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009209/0.4781, allocations: 392.2 kB / 361 MB, free: 7.777 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/0.4786, allocations: 30.47 kB / 361 MB, free: 7.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.4807, allocations: 0.6292 MB / 361.7 MB, free: 7.078 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.4812, allocations: 0.792 MB / 362.4 MB, free: 6.262 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003114/0.4815, allocations: 83.39 kB / 362.5 MB, free: 6.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.553e-06/0.4816, allocations: 0 / 362.5 MB, free: 6.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.047/3.529, allocations: 6.126 MB / 368.7 MB, free: 56 kB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat