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 1.982/1.982, allocations: 194.9 MB / 208.5 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.552e-05/4.557e-05, allocations: 8 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1278, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5679/0.6958, allocations: 75.7 MB / 375.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/0.6961, allocations: 72.38 kB / 375.7 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04229/0.7384, allocations: 9.281 MB / 385 MB, free: 11.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.7385, allocations: 0 / 385 MB, free: 11.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.069e-05/0.7385, allocations: 5.062 kB / 385 MB, free: 11.59 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.001283/0.7398, allocations: 0.5659 MB / 385.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.7399, allocations: 8.75 kB / 385.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.872e-05/0.74, allocations: 63.75 kB / 385.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004239/0.7404, allocations: 47.95 kB / 385.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004517/0.7409, allocations: 269.3 kB / 385.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.7411, allocations: 95.25 kB / 386 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-05/0.7412, allocations: 27.09 kB / 386.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008419/0.742, allocations: 350.7 kB / 386.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.7421, allocations: 9.203 kB / 386.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.418e-05/0.7422, allocations: 8.781 kB / 386.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.7422, allocations: 7.781 kB / 386.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009656/0.7431, allocations: 378.4 kB / 386.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.7457, allocations: 1.17 MB / 388 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007273/0.7464, allocations: 308.3 kB / 388.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004023/0.7469, allocations: 157.9 kB / 388.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.689e-05/0.7469, allocations: 3.875 kB / 388.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.747, allocations: 38.16 kB / 388.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.256e-06/0.747, allocations: 4 kB / 388.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.003292/0.7503, allocations: 1.311 MB / 389.8 MB, free: 9.559 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.7504, allocations: 88.73 kB / 389.9 MB, free: 9.457 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002731/0.7507, allocations: 185.7 kB / 390.1 MB, free: 9.363 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.7507, allocations: 43.17 kB / 390.1 MB, free: 9.328 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.277e-05/0.7508, allocations: 202.5 kB / 390.3 MB, free: 9.152 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.751, allocations: 143.8 kB / 390.4 MB, free: 9.062 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.751, allocations: 10.31 kB / 390.4 MB, free: 9.062 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.732e-05/0.7511, allocations: 329.6 kB / 390.8 MB, free: 8.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.7515, allocations: 144.5 kB / 390.9 MB, free: 8.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.7519, allocations: 208.6 kB / 391.1 MB, free: 8.688 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.7523, allocations: 137.5 kB / 391.2 MB, free: 8.688 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.7523, allocations: 3.938 kB / 391.2 MB, free: 8.684 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001259/0.7535, allocations: 0.5003 MB / 391.7 MB, free: 8.613 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.7536, allocations: 5.531 kB / 391.8 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.7536, allocations: 0 / 391.8 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.7546, allocations: 238.2 kB / 392 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.7551, allocations: 49.08 kB / 392 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004708/0.7598, allocations: 2.648 MB / 394.7 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/0.7604, allocations: 29.36 kB / 394.7 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.817e-05/0.7605, allocations: 21.3 kB / 394.7 MB, free: 7.168 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.0001529/0.7606, allocations: 125.5 kB / 394.9 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.203e-05/0.7607, allocations: 23.31 kB / 394.9 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.7608, allocations: 44.12 kB / 394.9 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.7609, allocations: 3.844 kB / 394.9 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7609, allocations: 0 / 394.9 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.7609, allocations: 6.438 kB / 394.9 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002204/0.7631, allocations: 1.03 MB / 396 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.7631, allocations: 4 kB / 396 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.7636, allocations: 50.14 kB / 396 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009225/0.7645, allocations: 230.9 kB / 396.2 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.914e-05/0.7646, allocations: 16.8 kB / 396.3 MB, free: 6.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004812/0.7694, allocations: 2.575 MB / 398.8 MB, free: 21.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.7695, allocations: 3.188 kB / 398.8 MB, free: 21.27 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.7711, allocations: 0.7433 MB / 399.6 MB, free: 21.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.7714, allocations: 137.6 kB / 399.7 MB, free: 20.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.871e-05/0.7714, allocations: 11.5 kB / 399.7 MB, free: 20.99 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004698/0.7719, allocations: 33.95 kB / 399.8 MB, free: 20.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.7722, allocations: 64.45 kB / 399.8 MB, free: 20.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.335e-05/0.7722, allocations: 21.81 kB / 399.8 MB, free: 20.99 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002099/0.7724, allocations: 151.1 kB / 400 MB, free: 20.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7725, allocations: 0 / 400 MB, free: 20.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009209/0.7734, allocations: 141.9 kB / 400.1 MB, free: 20.91 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.002262/0.7757, allocations: 1.357 MB / 401.5 MB, free: 20.17 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.7771, allocations: 0.5463 MB / 402 MB, free: 20.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.7771, allocations: 0 / 402 MB, free: 20.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008264/0.778, allocations: 389.8 kB / 402.4 MB, free: 19.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004454/0.7784, allocations: 20.41 kB / 402.4 MB, free: 19.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.7802, allocations: 0.64 MB / 403.1 MB, free: 19.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.7807, allocations: 0.7827 MB / 403.8 MB, free: 18.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/0.781, allocations: 91.12 kB / 403.9 MB, free: 18.87 MB / 330.7 MB Notification: Performance of SimCode: time 1.713e-06/0.781, allocations: 0 / 403.9 MB, free: 18.87 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.738/3.519, allocations: 6.122 MB / 410.1 MB, free: 17.68 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