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.707/1.707, allocations: 171.3 MB / 178.8 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.597e-05/2.608e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2738, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1575/0.4313, allocations: 85.89 MB / 344.2 MB, free: 7.891 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.4317, allocations: 79.95 kB / 344.3 MB, free: 7.812 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6161/1.048, allocations: 103.7 MB / 448 MB, free: 27.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.624e-06/1.048, allocations: 0 / 448 MB, free: 27.63 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000345/1.048, allocations: 108 kB / 448.1 MB, free: 27.53 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.01957/1.068, allocations: 5.259 MB / 453.3 MB, free: 22.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/1.068, allocations: 16.03 kB / 453.4 MB, free: 22.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04877/1.117, allocations: 6.897 MB / 460.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02338/1.14, allocations: 6.781 MB / 467 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003239/1.14, allocations: 172 kB / 467.2 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002614/1.143, allocations: 327.8 kB / 467.5 MB, free: 7.941 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01796/1.161, allocations: 7.217 MB / 474.7 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03539/1.197, allocations: 11.13 MB / 485.9 MB, free: 4.434 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005401/1.197, allocations: 75.34 kB / 486 MB, free: 4.359 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003009/1.2, allocations: 36 kB / 486 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004541/1.205, allocations: 1.125 MB / 487.1 MB, free: 3.199 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3612/1.566, allocations: 55.34 MB / 0.5297 GB, free: 34.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007867/1.574, allocations: 3.396 MB / 0.5331 GB, free: 33.81 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00411/1.578, allocations: 2.174 MB / 0.5352 GB, free: 33.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005872/1.579, allocations: 332.2 kB / 0.5355 GB, free: 33.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/1.579, allocations: 54.02 kB / 0.5355 GB, free: 33.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=200): time 5.491e-06/1.579, allocations: 3.625 kB / 0.5355 GB, free: 33.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=227): time 0.06406/1.643, allocations: 19.6 MB / 0.5547 GB, free: 29.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.757e-05/1.643, allocations: 207.8 kB / 0.5549 GB, free: 29.51 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008338/1.651, allocations: 3.658 MB / 0.5585 GB, free: 28.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005351/1.652, allocations: 28.02 kB / 0.5585 GB, free: 28.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00333/1.655, allocations: 3.723 MB / 0.5621 GB, free: 25.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001289/1.657, allocations: 0.8333 MB / 0.5629 GB, free: 24.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007549/1.657, allocations: 0 / 0.5629 GB, free: 24.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005123/1.658, allocations: 0.6002 MB / 0.5635 GB, free: 24.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005011/1.663, allocations: 2.149 MB / 0.5656 GB, free: 23.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007987/1.671, allocations: 6.214 MB / 0.5717 GB, free: 17.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008015/1.679, allocations: 3.641 MB / 0.5752 GB, free: 16.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001736/1.679, allocations: 41.97 kB / 0.5753 GB, free: 16.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.02327/1.703, allocations: 8.071 MB / 0.5832 GB, free: 13.51 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.703, allocations: 68 kB / 0.5832 GB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002142/1.703, allocations: 146.9 kB / 0.5834 GB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00444/1.707, allocations: 0.9489 MB / 0.5843 GB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009729/1.717, allocations: 1.569 MB / 0.5858 GB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/1.73, allocations: 7.263 MB / 0.5929 GB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007613/1.737, allocations: 236.7 kB / 0.5931 GB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001704/1.739, allocations: 417.8 kB / 0.5935 GB, free: 3.859 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * 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 (831): * Single equations (assignments): 826 * 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.002052/1.741, allocations: 480.5 kB / 0.594 GB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01025/1.751, allocations: 3.717 MB / 0.5976 GB, free: 204 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001554/1.753, allocations: 400 kB / 0.598 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01149/1.765, allocations: 3.45 MB / 0.6014 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.852e-05/1.765, allocations: 25.09 kB / 0.6014 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.077e-05/1.765, allocations: 8 kB / 0.6014 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.658e-05/1.765, allocations: 10.22 kB / 0.6014 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02741/1.792, allocations: 8.485 MB / 0.6097 GB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-05/1.792, allocations: 0 / 0.6097 GB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003525/1.796, allocations: 360.4 kB / 0.6101 GB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004005/1.8, allocations: 0.6711 MB / 0.6107 GB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000457/1.8, allocations: 14.05 kB / 0.6107 GB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/1.813, allocations: 6.218 MB / 0.6168 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/1.813, allocations: 4 kB / 0.6168 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01552/1.829, allocations: 6.27 MB / 0.6229 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002847/1.831, allocations: 0.7052 MB / 0.6236 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001211/1.833, allocations: 8 kB / 0.6236 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003136/1.836, allocations: 76.53 kB / 0.6237 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008499/1.837, allocations: 141.1 kB / 0.6238 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002983/1.837, allocations: 63.09 kB / 0.6239 GB, free: 8.973 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007406/1.845, allocations: 2.48 MB / 0.6263 GB, free: 6.812 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.253e-06/1.845, allocations: 4 kB / 0.6263 GB, free: 6.809 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008918/1.854, allocations: 1.027 MB / 0.6273 GB, free: 5.785 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (178): * Single equations (assignments): 173 * 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.288/2.142, allocations: 7.507 MB / 0.6346 GB, free: 90.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01417/2.156, allocations: 5.431 MB / 0.64 GB, free: 90.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/2.156, allocations: 0 / 0.64 GB, free: 90.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004645/2.16, allocations: 1.913 MB / 0.6418 GB, free: 89.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004035/2.165, allocations: 443.1 kB / 0.6422 GB, free: 89.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03727/2.202, allocations: 11.42 MB / 0.6534 GB, free: 87.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00944/2.211, allocations: 4.112 MB / 0.6574 GB, free: 87.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006253/2.218, allocations: 2.491 MB / 0.6598 GB, free: 87.13 MB / 378.7 MB Notification: Performance of SimCode: time 2.104e-06/2.218, allocations: 0 / 0.6598 GB, free: 87.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.913/7.131, allocations: 142.1 MB / 0.7986 GB, free: 91.16 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