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.733/1.733, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.879e-05/3.887e-05, allocations: 4 kB / 225.1 MB, free: 2.727 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2677, allocations: 38.76 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1582/0.426, allocations: 86.56 MB / 350.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003486/0.4265, allocations: 83.95 kB / 350.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6444/1.071, allocations: 106.1 MB / 456.6 MB, free: 17.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.783e-06/1.071, allocations: 0 / 456.6 MB, free: 17.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003654/1.071, allocations: 108 kB / 456.7 MB, free: 17.04 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.02072/1.092, allocations: 5.259 MB / 462 MB, free: 11.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/1.092, allocations: 8.031 kB / 462 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004184/1.096, allocations: 0.9348 MB / 462.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04992/1.146, allocations: 6.901 MB / 469.8 MB, free: 3.836 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02551/1.172, allocations: 6.789 MB / 476.6 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006532/1.173, allocations: 406.7 kB / 477 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003173/1.176, allocations: 0.531 MB / 477.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04018/1.216, allocations: 12.22 MB / 489.8 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004289/1.216, allocations: 67.34 kB / 489.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002796/1.219, allocations: 259.9 kB / 490.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002942/1.222, allocations: 1.129 MB / 491.2 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03315/1.255, allocations: 9.585 MB / 0.4891 GB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3467/1.602, allocations: 56.5 MB / 0.5442 GB, free: 23.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01635/1.619, allocations: 4.076 MB / 0.5482 GB, free: 22.9 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004764/1.623, allocations: 2.253 MB / 0.5504 GB, free: 22.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02401/1.648, allocations: 9.501 MB / 0.5597 GB, free: 19.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/1.648, allocations: 55.59 kB / 0.5597 GB, free: 19.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=191): time 6.682e-06/1.648, allocations: 0 / 0.5597 GB, free: 19.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=218): time 0.07664/1.724, allocations: 16.48 MB / 0.5758 GB, free: 13.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.972e-05/1.724, allocations: 200.6 kB / 0.576 GB, free: 13.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/1.735, allocations: 4.199 MB / 0.5801 GB, free: 11.67 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005073/1.735, allocations: 57.39 kB / 0.5802 GB, free: 11.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003317/1.739, allocations: 3.62 MB / 0.5837 GB, free: 8.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001316/1.74, allocations: 0.8266 MB / 0.5845 GB, free: 8.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008206/1.741, allocations: 130.4 kB / 0.5846 GB, free: 8.152 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004384/1.741, allocations: 0.5898 MB / 0.5852 GB, free: 7.719 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005389/1.747, allocations: 2.179 MB / 0.5874 GB, free: 6.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008277/1.755, allocations: 6.075 MB / 0.5933 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009328/1.764, allocations: 3.66 MB / 0.5969 GB, free: 14.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001915/1.765, allocations: 43.94 kB / 0.5969 GB, free: 14.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02632/1.791, allocations: 8.234 MB / 0.6049 GB, free: 7.133 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/1.791, allocations: 64.94 kB / 0.605 GB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002529/1.791, allocations: 140 kB / 0.6051 GB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004732/1.796, allocations: 0.9322 MB / 0.606 GB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01035/1.807, allocations: 1.51 MB / 0.6075 GB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01527/1.822, allocations: 7.436 MB / 0.6148 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007745/1.83, allocations: 355.3 kB / 0.6151 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001663/1.831, allocations: 399.3 kB / 0.6155 GB, free: 13.35 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.001894/1.833, allocations: 0.6035 MB / 0.6161 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/1.835, allocations: 429.3 kB / 0.6165 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01125/1.846, allocations: 3.526 MB / 0.6199 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-05/1.846, allocations: 24 kB / 0.62 GB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/1.846, allocations: 7.516 kB / 0.62 GB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-05/1.846, allocations: 13.05 kB / 0.62 GB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02924/1.875, allocations: 9.183 MB / 0.629 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.579e-05/1.875, allocations: 3.953 kB / 0.629 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003561/1.879, allocations: 345.2 kB / 0.6293 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004075/1.883, allocations: 0.6942 MB / 0.63 GB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004383/1.884, allocations: 35.47 kB / 0.63 GB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2754/2.159, allocations: 6.559 MB / 0.6364 GB, free: 84.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/2.159, allocations: 0 / 0.6364 GB, free: 84.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/2.174, allocations: 6.21 MB / 0.6425 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00281/2.177, allocations: 0.735 MB / 0.6432 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001406/2.178, allocations: 34.38 kB / 0.6432 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003946/2.182, allocations: 112.9 kB / 0.6433 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007849/2.183, allocations: 133.6 kB / 0.6435 GB, free: 84.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002218/2.183, allocations: 53.38 kB / 0.6435 GB, free: 84.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008062/2.192, allocations: 2.962 MB / 0.6464 GB, free: 83.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.112e-06/2.192, allocations: 0 / 0.6464 GB, free: 83.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008661/2.2, allocations: 1.183 MB / 0.6476 GB, free: 83.86 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.0159/2.216, allocations: 7.08 MB / 0.6545 GB, free: 82.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01324/2.23, allocations: 5.394 MB / 0.6597 GB, free: 82.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/2.23, allocations: 0 / 0.6597 GB, free: 82.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004684/2.234, allocations: 1.906 MB / 0.6616 GB, free: 82.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00461/2.239, allocations: 0.5348 MB / 0.6621 GB, free: 82.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05008/2.289, allocations: 11.6 MB / 0.6734 GB, free: 78.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01244/2.302, allocations: 4.113 MB / 0.6775 GB, free: 77.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008012/2.31, allocations: 2.52 MB / 0.6799 GB, free: 75.26 MB / 378.7 MB Notification: Performance of SimCode: time 2.495e-06/2.31, allocations: 0 / 0.6799 GB, free: 75.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.27/7.58, allocations: 143.4 MB / 0.82 GB, free: 74.75 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