Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.84e-05/3.854e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.121, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4478/0.5688, allocations: 92.31 MB / 392.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5692, allocations: 89.72 kB / 392.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4901/1.059, allocations: 117.6 MB / 0.498 GB, free: 6.609 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.059, allocations: 4 kB / 0.498 GB, free: 6.605 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004834/1.06, allocations: 124 kB / 0.4981 GB, free: 6.484 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2063 * Number of variables: 2063 Notification: Performance of Generate backend data structure: time 0.02847/1.088, allocations: 6.089 MB / 0.504 GB, free: 328 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/1.088, allocations: 8.031 kB / 0.504 GB, free: 320 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005492/1.094, allocations: 1.034 MB / 0.5051 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02387/1.118, allocations: 2.784 MB / 0.5078 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02863/1.147, allocations: 7.633 MB / 0.5152 GB, free: 4.777 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008031/1.147, allocations: 456 kB / 0.5157 GB, free: 4.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003924/1.151, allocations: 0.6012 MB / 0.5162 GB, free: 3.727 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4027/1.554, allocations: 15.49 MB / 0.5314 GB, free: 63.53 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005654/1.555, allocations: 80.86 kB / 0.5315 GB, free: 63.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003164/1.558, allocations: 290.6 kB / 0.5317 GB, free: 63.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004004/1.562, allocations: 1.479 MB / 0.5332 GB, free: 63.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05742/1.619, allocations: 13.05 MB / 0.5459 GB, free: 63.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1365/1.756, allocations: 70.27 MB / 0.6146 GB, free: 37.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03121/1.787, allocations: 7.238 MB / 0.6216 GB, free: 35.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009086/1.796, allocations: 4.818 MB / 0.6263 GB, free: 33.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001995/1.798, allocations: 1.292 MB / 0.6276 GB, free: 31.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.236e-05/1.799, allocations: 63 kB / 0.6276 GB, free: 31.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 7.193e-06/1.799, allocations: 0 / 0.6276 GB, free: 31.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=378): time 0.2454/2.044, allocations: 40.61 MB / 0.6673 GB, free: 8.402 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/2.044, allocations: 175 kB / 0.6675 GB, free: 8.203 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0118/2.056, allocations: 4.554 MB / 0.6719 GB, free: 4.238 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001251/2.057, allocations: 81.7 kB / 0.672 GB, free: 4.152 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004398/2.062, allocations: 3.814 MB / 0.6757 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.3406/2.402, allocations: 1.369 MB / 0.6771 GB, free: 79.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/2.404, allocations: 162.2 kB / 0.6772 GB, free: 79.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008147/2.405, allocations: 0.6533 MB / 0.6779 GB, free: 78.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01267/2.417, allocations: 4.437 MB / 0.6822 GB, free: 78.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01592/2.433, allocations: 8.62 MB / 0.6906 GB, free: 73.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01503/2.448, allocations: 6.196 MB / 0.6967 GB, free: 73.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002615/2.449, allocations: 50.75 kB / 0.6967 GB, free: 73.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=1059) (initialization): time 0.06457/2.513, allocations: 18.27 MB / 0.7146 GB, free: 73.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000183/2.513, allocations: 66.56 kB / 0.7146 GB, free: 73.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002302/2.514, allocations: 153.5 kB / 0.7148 GB, free: 73.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03338/2.547, allocations: 6.572 MB / 0.7212 GB, free: 72.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0118/2.559, allocations: 1.757 MB / 0.7229 GB, free: 72.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08894/2.648, allocations: 35.85 MB / 0.7579 GB, free: 59.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0119/2.66, allocations: 0.5727 MB / 0.7585 GB, free: 59.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002595/2.663, allocations: 466.5 kB / 0.7589 GB, free: 59.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 51 (shape.color[3],shape.color[2],shape.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],wheelSet.wheelSetJoint.revolute2.cylinderColor[3],wheelSet.wheelSetJoint.revolute2.cylinderColor[2],wheelSet.wheelSetJoint.revolute2.cylinderColor[1],wheelSet.wheelSetJoint.revolute1.cylinderColor[3],wheelSet.wheelSetJoint.revolute1.cylinderColor[2],wheelSet.wheelSetJoint.revolute1.cylinderColor[1],wheelSet.wheelSetJoint.rod2.color[3],wheelSet.wheelSetJoint.rod2.color[2],wheelSet.wheelSetJoint.rod2.color[1],wheelSet.wheelSetJoint.revolute.cylinderColor[3],wheelSet.wheelSetJoint.revolute.cylinderColor[2],wheelSet.wheelSetJoint.revolute.cylinderColor[1],wheelSet.wheelSetJoint.prismatic2.boxColor[3],wheelSet.wheelSetJoint.prismatic2.boxColor[2],wheelSet.wheelSetJoint.prismatic2.boxColor[1],wheelSet.wheelSetJoint.prismatic1.boxColor[3],wheelSet.wheelSetJoint.prismatic1.boxColor[2],wheelSet.wheelSetJoint.prismatic1.boxColor[1],wheelSet.wheelSetJoint.rod1.color[3],wheelSet.wheelSetJoint.rod1.color[2],wheelSet.wheelSetJoint.rod1.color[1],wheelSet.wheelSetJoint.fixed.color[3],wheelSet.wheelSetJoint.fixed.color[2],wheelSet.wheelSetJoint.fixed.color[1],wheelSet.body1.sphereColor[3],wheelSet.body1.sphereColor[2],wheelSet.body1.sphereColor[1],wheelSet.body2.sphereColor[3],wheelSet.body2.sphereColor[2],wheelSet.body2.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],ground.fixed.color[3],ground.fixed.color[2],ground.fixed.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (900): * Single equations (assignments): 892 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,80.6%) 103,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004283/2.667, allocations: 0.7067 MB / 0.7596 GB, free: 59.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/2.669, allocations: 0.4938 MB / 0.7601 GB, free: 59.11 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05042/2.719, allocations: 13.69 MB / 0.7734 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-05/2.719, allocations: 37.09 kB / 0.7735 GB, free: 53.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-05/2.719, allocations: 28 kB / 0.7735 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.919e-05/2.719, allocations: 17.77 kB / 0.7735 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08591/2.805, allocations: 26.25 MB / 0.7992 GB, free: 32.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.461e-05/2.805, allocations: 0 / 0.7992 GB, free: 32.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004982/2.81, allocations: 0.5186 MB / 0.7997 GB, free: 31.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03807/2.848, allocations: 6.326 MB / 0.8058 GB, free: 27.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001601/2.85, allocations: 71.56 kB / 0.8059 GB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4181/3.268, allocations: 32.47 MB / 0.8376 GB, free: 64.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.471e-05/3.268, allocations: 11.69 kB / 0.8376 GB, free: 64.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06355/3.332, allocations: 20.16 MB / 0.8573 GB, free: 63.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005145/3.337, allocations: 1.353 MB / 0.8586 GB, free: 63.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00249/3.34, allocations: 65.78 kB / 0.8587 GB, free: 63.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007208/3.347, allocations: 342.5 kB / 0.859 GB, free: 63.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002136/3.349, allocations: 265.1 kB / 0.8593 GB, free: 63.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001064/3.35, allocations: 101 kB / 0.8594 GB, free: 63.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008846/3.359, allocations: 3.268 MB / 0.8626 GB, free: 63.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.132e-06/3.359, allocations: 0 / 0.8626 GB, free: 63.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01339/3.373, allocations: 1.888 MB / 0.8644 GB, free: 63.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 7 (wheelSet.x,wheelSet.y,wheelSet.phi,wheelSet.theta1,wheelSet.theta2,wheelSet.der_theta1,wheelSet.der_theta2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 223 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,66.7%) 97,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06418/3.437, allocations: 21.5 MB / 0.8854 GB, free: 60.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02995/3.467, allocations: 11.46 MB / 0.8966 GB, free: 55.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/3.467, allocations: 0 / 0.8966 GB, free: 55.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01572/3.483, allocations: 5.541 MB / 0.902 GB, free: 53.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006238/3.489, allocations: 0.6177 MB / 0.9026 GB, free: 53.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06909/3.558, allocations: 17.23 MB / 0.9194 GB, free: 46.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01134/3.569, allocations: 4.696 MB / 0.924 GB, free: 44.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007341/3.577, allocations: 2.823 MB / 0.9268 GB, free: 42.13 MB / 426.7 MB Notification: Performance of SimCode: time 1.714e-06/3.577, allocations: 0 / 0.9268 GB, free: 42.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.36/9.937, allocations: 256.3 MB / 1.177 GB, free: 106.9 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving_res.mat does not exist to compare? outputFormat=mat