Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.659e-05, allocations: 4 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09692/0.09699, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5091, allocations: 75.69 MB / 375.6 MB, free: 12.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.5095, allocations: 72.7 kB / 375.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04378/0.5533, allocations: 9.279 MB / 385 MB, free: 12.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5533, allocations: 0 / 385 MB, free: 12.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.286e-05/0.5534, allocations: 5.156 kB / 385 MB, free: 12.09 MB / 314.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.001378/0.5548, allocations: 0.5613 MB / 385.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.5548, allocations: 9.312 kB / 385.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.555, allocations: 69.2 kB / 385.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005172/0.5555, allocations: 48.16 kB / 385.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.5561, allocations: 277.1 kB / 385.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001725/0.5563, allocations: 89.91 kB / 386 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.511e-05/0.5564, allocations: 27.88 kB / 386 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008766/0.5573, allocations: 353 kB / 386.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/0.5573, allocations: 5.219 kB / 386.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.401e-05/0.5574, allocations: 12.28 kB / 386.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.5574, allocations: 6.312 kB / 386.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009829/0.5584, allocations: 376.3 kB / 386.8 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.5613, allocations: 1.163 MB / 387.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007592/0.5621, allocations: 324.4 kB / 388.3 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003791/0.5625, allocations: 161.2 kB / 388.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.459e-05/0.5626, allocations: 11.27 kB / 388.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.5626, allocations: 34 kB / 388.5 MB, free: 10.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.387e-06/0.5626, allocations: 4 kB / 388.5 MB, free: 10.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.003491/0.5661, allocations: 1.309 MB / 389.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.5662, allocations: 91.59 kB / 389.9 MB, free: 9.965 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.5665, allocations: 187.5 kB / 390 MB, free: 9.871 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.755e-05/0.5666, allocations: 35.89 kB / 390.1 MB, free: 9.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.063e-05/0.5667, allocations: 202.3 kB / 390.3 MB, free: 9.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.5669, allocations: 149.1 kB / 390.4 MB, free: 9.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.885e-05/0.5669, allocations: 6.625 kB / 390.4 MB, free: 9.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.248e-05/0.567, allocations: 328.7 kB / 390.7 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.5674, allocations: 145 kB / 390.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.5679, allocations: 212.5 kB / 391.1 MB, free: 9.195 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.5683, allocations: 135 kB / 391.2 MB, free: 9.191 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.5683, allocations: 3.938 kB / 391.2 MB, free: 9.188 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001261/0.5696, allocations: 0.5055 MB / 391.7 MB, free: 9.117 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.5696, allocations: 5.406 kB / 391.7 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.5696, allocations: 3.875 kB / 391.7 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001071/0.5707, allocations: 229.8 kB / 392 MB, free: 9.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004653/0.5712, allocations: 54.08 kB / 392 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00496/0.5762, allocations: 2.649 MB / 394.7 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005566/0.5768, allocations: 26.09 kB / 394.7 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-05/0.5769, allocations: 21.58 kB / 394.7 MB, free: 7.68 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.0001619/0.577, allocations: 124.2 kB / 394.8 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.686e-05/0.5772, allocations: 31.28 kB / 394.9 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.5773, allocations: 40.34 kB / 394.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.5773, allocations: 3.844 kB / 394.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5773, allocations: 0 / 394.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.5773, allocations: 10.31 kB / 394.9 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/0.5796, allocations: 1.028 MB / 395.9 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.5797, allocations: 4 kB / 396 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004638/0.5802, allocations: 52.69 kB / 396 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009614/0.5811, allocations: 224.2 kB / 396.2 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.865e-05/0.5812, allocations: 13.73 kB / 396.2 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004986/0.5862, allocations: 2.582 MB / 398.8 MB, free: 21.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5863, allocations: 0 / 398.8 MB, free: 21.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.588, allocations: 0.7375 MB / 399.6 MB, free: 21.61 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.5884, allocations: 137.3 kB / 399.7 MB, free: 21.51 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.419e-05/0.5885, allocations: 10.88 kB / 399.7 MB, free: 21.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004887/0.589, allocations: 33.12 kB / 399.7 MB, free: 21.51 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/0.5892, allocations: 63.47 kB / 399.8 MB, free: 21.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.584e-05/0.5893, allocations: 23.14 kB / 399.8 MB, free: 21.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002268/0.5895, allocations: 152.2 kB / 400 MB, free: 21.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5895, allocations: 0 / 400 MB, free: 21.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008704/0.5904, allocations: 141.7 kB / 400.1 MB, free: 21.42 MB / 330.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.002369/0.5928, allocations: 1.357 MB / 401.5 MB, free: 20.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.5943, allocations: 0.5693 MB / 402 MB, free: 20.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.5943, allocations: 0 / 402 MB, free: 20.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008676/0.5952, allocations: 404.7 kB / 402.4 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004763/0.5957, allocations: 23.98 kB / 402.5 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.5976, allocations: 0.6249 MB / 403.1 MB, free: 20.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.5981, allocations: 0.7825 MB / 403.9 MB, free: 19.38 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003013/0.5984, allocations: 93.48 kB / 404 MB, free: 19.37 MB / 330.7 MB Notification: Performance of SimCode: time 2.274e-06/0.5984, allocations: 0 / 404 MB, free: 19.37 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.82/3.419, allocations: 6.13 MB / 410.1 MB, free: 18.12 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat