Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.074/2.074, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.265e-05, allocations: 0 / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5224/0.6335, allocations: 103 MB / 445.6 MB, free: 7.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000324/0.6339, allocations: 95.55 kB / 445.7 MB, free: 7.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7981/1.432, allocations: 97.59 MB / 0.5305 GB, free: 93.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.432, allocations: 1.375 kB / 0.5305 GB, free: 93.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004594/1.432, allocations: 100.6 kB / 0.5306 GB, free: 93.96 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.05656/1.489, allocations: 5.986 MB / 0.5365 GB, free: 92.11 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.104e-05/1.489, allocations: 9.531 kB / 0.5365 GB, free: 92.11 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005547/1.495, allocations: 0.8856 MB / 0.5374 GB, free: 92.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03671/1.532, allocations: 4.396 MB / 0.5417 GB, free: 91.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02082/1.552, allocations: 5.097 MB / 0.5466 GB, free: 91.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004876/1.553, allocations: 377.9 kB / 0.547 GB, free: 91.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003336/1.556, allocations: 0.491 MB / 0.5475 GB, free: 91.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04281/1.599, allocations: 12.7 MB / 0.5599 GB, free: 88.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003713/1.6, allocations: 64.83 kB / 0.5599 GB, free: 88.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003028/1.603, allocations: 243.5 kB / 0.5602 GB, free: 88.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002807/1.605, allocations: 1.089 MB / 0.5612 GB, free: 88.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03704/1.643, allocations: 10.96 MB / 0.5719 GB, free: 87.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09611/1.739, allocations: 55.86 MB / 0.6265 GB, free: 47.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03489/1.774, allocations: 5.793 MB / 0.6322 GB, free: 45.35 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00664/1.78, allocations: 3.386 MB / 0.6355 GB, free: 42.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003113/1.784, allocations: 1.035 MB / 0.6365 GB, free: 41.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.079e-05/1.784, allocations: 59.83 kB / 0.6365 GB, free: 41.17 MB / 442.7 MB Notification: Performance of pre-optimization done (n=214): time 6.863e-06/1.784, allocations: 0 / 0.6365 GB, free: 41.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=252): time 0.1379/1.922, allocations: 26.81 MB / 0.6627 GB, free: 19.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.276e-05/1.922, allocations: 209.9 kB / 0.6629 GB, free: 18.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00844/1.93, allocations: 3.796 MB / 0.6666 GB, free: 15.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009352/1.931, allocations: 65.61 kB / 0.6667 GB, free: 15.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002717/1.934, allocations: 3.369 MB / 0.67 GB, free: 11.66 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001755/1.936, allocations: 0.9481 MB / 0.6709 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/1.937, allocations: 136 kB / 0.671 GB, free: 10.58 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005367/1.937, allocations: 0.592 MB / 0.6716 GB, free: 9.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008292/1.946, allocations: 3.395 MB / 0.6749 GB, free: 6.582 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01129/1.957, allocations: 7.21 MB / 0.682 GB, free: 13.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/1.97, allocations: 4.906 MB / 0.6867 GB, free: 8.551 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001289/1.97, allocations: 40 kB / 0.6868 GB, free: 8.512 MB / 458.7 MB Notification: Performance of matching and sorting (n=881) (initialization): time 0.3899/2.36, allocations: 12.03 MB / 0.6985 GB, free: 93.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001294/2.361, allocations: 63.81 kB / 0.6986 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000296/2.361, allocations: 134.8 kB / 0.6987 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/2.373, allocations: 2.276 MB / 0.7009 GB, free: 93.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01262/2.386, allocations: 1.637 MB / 0.7025 GB, free: 93.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03298/2.419, allocations: 15.29 MB / 0.7175 GB, free: 89.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009711/2.429, allocations: 458 kB / 0.7179 GB, free: 89.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002134/2.431, allocations: 444.2 kB / 0.7183 GB, free: 89.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 802 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003439/2.435, allocations: 0.6069 MB / 0.7189 GB, free: 89.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001482/2.436, allocations: 395.4 kB / 0.7193 GB, free: 89.86 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0249/2.461, allocations: 7.549 MB / 0.7267 GB, free: 89.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.961e-05/2.461, allocations: 30.03 kB / 0.7267 GB, free: 89.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.142e-05/2.461, allocations: 11.78 kB / 0.7267 GB, free: 89.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.789e-05/2.461, allocations: 14.67 kB / 0.7267 GB, free: 89.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04486/2.506, allocations: 14.96 MB / 0.7413 GB, free: 86.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.025e-05/2.506, allocations: 2.312 kB / 0.7413 GB, free: 86.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005108/2.511, allocations: 441.1 kB / 0.7418 GB, free: 86.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0105/2.522, allocations: 2.032 MB / 0.7437 GB, free: 85.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008855/2.523, allocations: 45.78 kB / 0.7438 GB, free: 85.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02726/2.55, allocations: 13.86 MB / 0.7573 GB, free: 78.51 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/2.55, allocations: 3.438 kB / 0.7573 GB, free: 78.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03077/2.581, allocations: 11.88 MB / 0.7689 GB, free: 74.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/2.583, allocations: 454.4 kB / 0.7694 GB, free: 73.72 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001963/2.585, allocations: 41.69 kB / 0.7694 GB, free: 73.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00568/2.59, allocations: 210.6 kB / 0.7696 GB, free: 73.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001311/2.592, allocations: 157.7 kB / 0.7698 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006112/2.592, allocations: 71.28 kB / 0.7698 GB, free: 73.62 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00722/2.599, allocations: 2.65 MB / 0.7724 GB, free: 72.68 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.302e-06/2.6, allocations: 3.5 kB / 0.7724 GB, free: 72.68 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009909/2.609, allocations: 1.382 MB / 0.7738 GB, free: 72.53 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 189 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03286/2.642, allocations: 12.73 MB / 0.7862 GB, free: 65.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02071/2.663, allocations: 8.403 MB / 0.7944 GB, free: 58.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/2.663, allocations: 7.656 kB / 0.7944 GB, free: 58.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009453/2.673, allocations: 3.627 MB / 0.798 GB, free: 55.28 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004422/2.677, allocations: 452.8 kB / 0.7984 GB, free: 54.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04075/2.718, allocations: 12.34 MB / 0.8104 GB, free: 44.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008684/2.727, allocations: 3.849 MB / 0.8142 GB, free: 41.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006655/2.733, allocations: 2.32 MB / 0.8165 GB, free: 39.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.734e-06/2.733, allocations: 0 / 0.8165 GB, free: 39.49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.214/7.948, allocations: 161.3 MB / 0.974 GB, free: 48.12 MB / 474.7 MB