Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.863e-05/3.879e-05, allocations: 7.984 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2832, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1566/0.4399, allocations: 86.55 MB / 350.4 MB, free: 3.18 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.4403, allocations: 87.94 kB / 350.5 MB, free: 3.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6469/1.087, allocations: 106.1 MB / 456.6 MB, free: 17.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.087, allocations: 0 / 456.6 MB, free: 17.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000378/1.088, allocations: 112 kB / 456.7 MB, free: 17.03 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: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.0214/1.109, allocations: 5.248 MB / 461.9 MB, free: 11.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/1.109, allocations: 16.03 kB / 462 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004885/1.114, allocations: 0.9348 MB / 462.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09143/1.206, allocations: 6.897 MB / 469.8 MB, free: 3.832 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02526/1.231, allocations: 6.789 MB / 476.6 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006139/1.232, allocations: 402.7 kB / 477 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002905/1.235, allocations: 0.5349 MB / 477.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03801/1.273, allocations: 12.29 MB / 489.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003528/1.273, allocations: 71.39 kB / 489.9 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002054/1.275, allocations: 259.9 kB / 490.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002729/1.278, allocations: 1.129 MB / 491.2 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0319/1.31, allocations: 9.79 MB / 0.4893 GB, free: 3.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3381/1.648, allocations: 56.49 MB / 0.5445 GB, free: 22.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01607/1.664, allocations: 4.098 MB / 0.5485 GB, free: 22.19 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00459/1.669, allocations: 2.262 MB / 0.5507 GB, free: 22.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02288/1.692, allocations: 9.491 MB / 0.5599 GB, free: 19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.505e-05/1.692, allocations: 55.25 kB / 0.56 GB, free: 18.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=191): time 5.901e-06/1.692, allocations: 0 / 0.56 GB, free: 18.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=218): time 0.07211/1.764, allocations: 16.49 MB / 0.5761 GB, free: 12.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.829e-05/1.764, allocations: 209.1 kB / 0.5763 GB, free: 12.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/1.774, allocations: 4.193 MB / 0.5804 GB, free: 11.19 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004984/1.775, allocations: 56.55 kB / 0.5804 GB, free: 11.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003089/1.778, allocations: 3.622 MB / 0.584 GB, free: 8.344 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/1.779, allocations: 0.8284 MB / 0.5848 GB, free: 7.742 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007327/1.78, allocations: 134 kB / 0.5849 GB, free: 7.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004047/1.78, allocations: 0.586 MB / 0.5855 GB, free: 7.207 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00519/1.785, allocations: 2.177 MB / 0.5876 GB, free: 6.469 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008584/1.794, allocations: 6.112 MB / 0.5936 GB, free: 432 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/1.806, allocations: 3.8 MB / 0.5973 GB, free: 13.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001645/1.806, allocations: 40 kB / 0.5973 GB, free: 13.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02672/1.833, allocations: 8.629 MB / 0.6058 GB, free: 6.723 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001339/1.833, allocations: 68 kB / 0.6058 GB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002345/1.833, allocations: 139 kB / 0.606 GB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004657/1.838, allocations: 0.9419 MB / 0.6069 GB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009889/1.848, allocations: 1.506 MB / 0.6083 GB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01512/1.863, allocations: 7.396 MB / 0.6156 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007559/1.87, allocations: 368 kB / 0.6159 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00162/1.872, allocations: 394.8 kB / 0.6163 GB, free: 12.87 MB / 378.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.001829/1.874, allocations: 0.6144 MB / 0.6169 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001304/1.875, allocations: 426.5 kB / 0.6173 GB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/1.887, allocations: 3.521 MB / 0.6207 GB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.069e-05/1.887, allocations: 20 kB / 0.6208 GB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-05/1.887, allocations: 8 kB / 0.6208 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.227e-05/1.887, allocations: 7.406 kB / 0.6208 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03069/1.918, allocations: 9.191 MB / 0.6297 GB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.892e-05/1.918, allocations: 0 / 0.6297 GB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003563/1.921, allocations: 343.7 kB / 0.6301 GB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004183/1.925, allocations: 0.6868 MB / 0.6307 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004726/1.926, allocations: 42.44 kB / 0.6308 GB, free: 0.582 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2811/2.207, allocations: 6.553 MB / 0.6372 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/2.207, allocations: 2.531 kB / 0.6372 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01488/2.222, allocations: 6.208 MB / 0.6433 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002849/2.225, allocations: 0.7408 MB / 0.644 GB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001317/2.226, allocations: 38.73 kB / 0.644 GB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003585/2.23, allocations: 108.5 kB / 0.6441 GB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007487/2.231, allocations: 133.4 kB / 0.6442 GB, free: 83.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002236/2.231, allocations: 53.91 kB / 0.6443 GB, free: 83.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007733/2.239, allocations: 2.955 MB / 0.6472 GB, free: 83.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.71e-07/2.239, allocations: 2.656 kB / 0.6472 GB, free: 83.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007951/2.247, allocations: 1.185 MB / 0.6483 GB, free: 83.48 MB / 378.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.0157/2.262, allocations: 7.085 MB / 0.6553 GB, free: 82.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01332/2.276, allocations: 5.608 MB / 0.6607 GB, free: 81.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/2.276, allocations: 0 / 0.6607 GB, free: 81.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00483/2.281, allocations: 1.936 MB / 0.6626 GB, free: 81.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004287/2.285, allocations: 0.522 MB / 0.6631 GB, free: 81.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03674/2.322, allocations: 11.62 MB / 0.6745 GB, free: 78.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009186/2.331, allocations: 4.12 MB / 0.6785 GB, free: 76.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005912/2.337, allocations: 2.512 MB / 0.681 GB, free: 74.77 MB / 378.7 MB Notification: Performance of SimCode: time 2.184e-06/2.337, allocations: 0 / 0.681 GB, free: 74.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.102/7.439, allocations: 144.5 MB / 0.8221 GB, free: 72.5 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat