Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 194.9 MB / 208.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.909e-05/3.915e-05, allocations: 0 / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09474/0.09482, allocations: 44.5 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4787/0.5735, allocations: 92.76 MB / 392.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.5739, allocations: 83.23 kB / 392.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4234/0.9973, allocations: 106.4 MB / 499.2 MB, free: 1.363 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.9974, allocations: 0 / 499.2 MB, free: 1.363 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004129/0.9978, allocations: 108 kB / 499.3 MB, free: 1.258 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.0224/1.02, allocations: 5.255 MB / 0.4927 GB, free: 11.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/1.02, allocations: 8.031 kB / 0.4927 GB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004321/1.025, allocations: 0.9349 MB / 0.4936 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05214/1.077, allocations: 6.931 MB / 0.5004 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02578/1.103, allocations: 6.82 MB / 0.5071 GB, free: 13.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005934/1.103, allocations: 406.7 kB / 0.5074 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003124/1.106, allocations: 0.5309 MB / 0.508 GB, free: 12.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3182/1.425, allocations: 12.6 MB / 0.5203 GB, free: 71.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005404/1.425, allocations: 77.91 kB / 0.5203 GB, free: 71.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002994/1.428, allocations: 257.4 kB / 0.5206 GB, free: 71.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003223/1.432, allocations: 1.123 MB / 0.5217 GB, free: 71.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03394/1.466, allocations: 10.08 MB / 0.5315 GB, free: 71.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08643/1.552, allocations: 57.09 MB / 0.5873 GB, free: 37.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02462/1.577, allocations: 4.348 MB / 0.5915 GB, free: 36.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006716/1.583, allocations: 2.373 MB / 0.5938 GB, free: 35.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03166/1.615, allocations: 9.967 MB / 0.6036 GB, free: 30.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.735e-05/1.615, allocations: 58.91 kB / 0.6036 GB, free: 30.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 6.702e-06/1.615, allocations: 0 / 0.6036 GB, free: 30.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.0745/1.69, allocations: 16.17 MB / 0.6194 GB, free: 24.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/1.69, allocations: 202.7 kB / 0.6196 GB, free: 23.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01023/1.7, allocations: 4.178 MB / 0.6237 GB, free: 22.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005391/1.701, allocations: 56.89 kB / 0.6237 GB, free: 22.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00332/1.704, allocations: 3.634 MB / 0.6273 GB, free: 19.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00139/1.706, allocations: 0.8253 MB / 0.6281 GB, free: 18.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/1.707, allocations: 133.8 kB / 0.6282 GB, free: 18.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006993/1.707, allocations: 0.585 MB / 0.6288 GB, free: 18.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006039/1.713, allocations: 2.196 MB / 0.6309 GB, free: 17.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008378/1.722, allocations: 6.082 MB / 0.6369 GB, free: 11.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008011/1.73, allocations: 3.648 MB / 0.6404 GB, free: 10.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001721/1.73, allocations: 41.06 kB / 0.6405 GB, free: 10.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02359/1.754, allocations: 8.236 MB / 0.6485 GB, free: 4.465 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.754, allocations: 67.38 kB / 0.6486 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001933/1.754, allocations: 140 kB / 0.6487 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004563/1.759, allocations: 0.9397 MB / 0.6496 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009881/1.769, allocations: 1.502 MB / 0.6511 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/1.783, allocations: 7.404 MB / 0.6583 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007675/1.791, allocations: 361.7 kB / 0.6587 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001585/1.793, allocations: 401.4 kB / 0.6591 GB, free: 10.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (795): * Single equations (assignments): 790 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001642/1.794, allocations: 0.6115 MB / 0.6597 GB, free: 9.996 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001262/1.796, allocations: 434.4 kB / 0.6601 GB, free: 9.566 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/1.807, allocations: 3.535 MB / 0.6635 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.041e-05/1.807, allocations: 24 kB / 0.6636 GB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/1.807, allocations: 11.81 kB / 0.6636 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/1.807, allocations: 10.36 kB / 0.6636 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3257/2.133, allocations: 9.394 MB / 0.6727 GB, free: 83.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-05/2.133, allocations: 1.906 kB / 0.6728 GB, free: 83.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003702/2.137, allocations: 345.4 kB / 0.6731 GB, free: 83.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004277/2.141, allocations: 0.6848 MB / 0.6737 GB, free: 83.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005531/2.142, allocations: 39.94 kB / 0.6738 GB, free: 83.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01313/2.155, allocations: 6.553 MB / 0.6802 GB, free: 80.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/2.155, allocations: 3.844 kB / 0.6802 GB, free: 80.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01654/2.171, allocations: 6.254 MB / 0.6863 GB, free: 80.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002777/2.174, allocations: 0.7408 MB / 0.687 GB, free: 79.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001364/2.176, allocations: 32.88 kB / 0.6871 GB, free: 79.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003714/2.179, allocations: 109 kB / 0.6872 GB, free: 79.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007197/2.18, allocations: 138.1 kB / 0.6873 GB, free: 79.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002136/2.18, allocations: 54.05 kB / 0.6873 GB, free: 79.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007925/2.188, allocations: 2.955 MB / 0.6902 GB, free: 79.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.253e-06/2.188, allocations: 0 / 0.6902 GB, free: 79.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008603/2.197, allocations: 1.186 MB / 0.6914 GB, free: 79.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01543/2.213, allocations: 7.107 MB / 0.6983 GB, free: 78.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01319/2.226, allocations: 5.429 MB / 0.7036 GB, free: 78.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/2.226, allocations: 0.5469 kB / 0.7036 GB, free: 78.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004781/2.231, allocations: 1.928 MB / 0.7055 GB, free: 77.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004547/2.235, allocations: 0.5269 MB / 0.706 GB, free: 77.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03669/2.272, allocations: 11.61 MB / 0.7174 GB, free: 75.97 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008896/2.281, allocations: 4.112 MB / 0.7214 GB, free: 75.15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005649/2.287, allocations: 2.505 MB / 0.7238 GB, free: 74.08 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/2.287, allocations: 0 / 0.7238 GB, free: 74.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.111/7.398, allocations: 143.5 MB / 0.864 GB, free: 80.9 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat