Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.884/1.884, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.476e-05/4.481e-05, allocations: 3.938 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1195, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4187/0.5383, allocations: 95.16 MB / 417 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.5386, allocations: 83.94 kB / 417.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7127/1.251, allocations: 106.3 MB / 0.5111 GB, free: 89.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.953e-06/1.251, allocations: 3.469 kB / 0.5111 GB, free: 89.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004008/1.252, allocations: 108.6 kB / 0.5112 GB, free: 89.44 MB / 426.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.02186/1.274, allocations: 5.265 MB / 0.5164 GB, free: 87.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/1.274, allocations: 9.75 kB / 0.5164 GB, free: 87.32 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004146/1.278, allocations: 0.9339 MB / 0.5173 GB, free: 87.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05096/1.329, allocations: 6.902 MB / 0.524 GB, free: 86.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02442/1.353, allocations: 6.853 MB / 0.5307 GB, free: 86.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005096/1.354, allocations: 405.3 kB / 0.5311 GB, free: 86.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002861/1.357, allocations: 0.5242 MB / 0.5316 GB, free: 86.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03514/1.392, allocations: 12.23 MB / 0.5436 GB, free: 83.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003887/1.392, allocations: 73.19 kB / 0.5436 GB, free: 83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002353/1.395, allocations: 260 kB / 0.5439 GB, free: 83 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002249/1.397, allocations: 1.135 MB / 0.545 GB, free: 82.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02781/1.425, allocations: 9.586 MB / 0.5543 GB, free: 80.28 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08001/1.505, allocations: 56.49 MB / 0.6095 GB, free: 36.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01602/1.521, allocations: 4.071 MB / 0.6135 GB, free: 32.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004438/1.526, allocations: 2.264 MB / 0.6157 GB, free: 30.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02197/1.548, allocations: 9.503 MB / 0.625 GB, free: 22.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/1.548, allocations: 55.88 kB / 0.625 GB, free: 22.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 5.52e-06/1.548, allocations: 0 / 0.625 GB, free: 22.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.07108/1.619, allocations: 16.48 MB / 0.6411 GB, free: 7.793 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/1.619, allocations: 205.2 kB / 0.6413 GB, free: 7.547 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008749/1.628, allocations: 4.196 MB / 0.6454 GB, free: 3.352 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00049/1.628, allocations: 57.7 kB / 0.6455 GB, free: 3.289 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002912/1.631, allocations: 3.62 MB / 0.649 GB, free: 15.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001438/1.633, allocations: 0.8321 MB / 0.6498 GB, free: 14.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006662/1.633, allocations: 132 kB / 0.6499 GB, free: 14.72 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005511/1.634, allocations: 0.5916 MB / 0.6505 GB, free: 14.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005728/1.64, allocations: 2.176 MB / 0.6526 GB, free: 11.94 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009553/1.649, allocations: 6.07 MB / 0.6586 GB, free: 3.902 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009137/1.658, allocations: 3.641 MB / 0.6621 GB, free: 272 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000122/1.658, allocations: 43.84 kB / 0.6622 GB, free: 232 kB / 442.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.3233/1.982, allocations: 8.229 MB / 0.6702 GB, free: 94.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/1.982, allocations: 64.78 kB / 0.6703 GB, free: 94.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000274/1.982, allocations: 138.5 kB / 0.6704 GB, free: 94.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004908/1.987, allocations: 0.9318 MB / 0.6713 GB, free: 94.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01021/1.997, allocations: 1.503 MB / 0.6728 GB, free: 94.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01424/2.012, allocations: 7.406 MB / 0.68 GB, free: 91.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007615/2.019, allocations: 359.4 kB / 0.6804 GB, free: 91.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001574/2.021, allocations: 396.1 kB / 0.6807 GB, free: 91.95 MB / 442.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.001827/2.023, allocations: 0.6172 MB / 0.6813 GB, free: 91.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/2.024, allocations: 430.1 kB / 0.6817 GB, free: 91.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009846/2.034, allocations: 3.516 MB / 0.6852 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.883e-05/2.034, allocations: 23.62 kB / 0.6852 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/2.034, allocations: 7.844 kB / 0.6852 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-05/2.034, allocations: 11.31 kB / 0.6852 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/2.06, allocations: 9.195 MB / 0.6942 GB, free: 90.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.349e-05/2.06, allocations: 0 / 0.6942 GB, free: 90.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003334/2.063, allocations: 342.5 kB / 0.6945 GB, free: 90.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003725/2.067, allocations: 0.6833 MB / 0.6952 GB, free: 90.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003389/2.067, allocations: 43.2 kB / 0.6952 GB, free: 90.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01137/2.078, allocations: 6.561 MB / 0.7016 GB, free: 87.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/2.079, allocations: 3.938 kB / 0.7016 GB, free: 87.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/2.093, allocations: 6.209 MB / 0.7077 GB, free: 84.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00282/2.096, allocations: 0.7451 MB / 0.7084 GB, free: 84.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001417/2.097, allocations: 39.78 kB / 0.7085 GB, free: 84.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003812/2.101, allocations: 117.2 kB / 0.7086 GB, free: 84.33 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006204/2.102, allocations: 131.4 kB / 0.7087 GB, free: 84.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002331/2.102, allocations: 64.23 kB / 0.7088 GB, free: 84.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00768/2.109, allocations: 2.958 MB / 0.7117 GB, free: 83.26 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.473e-06/2.11, allocations: 0 / 0.7117 GB, free: 83.26 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008318/2.118, allocations: 1.184 MB / 0.7128 GB, free: 83.12 MB / 442.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.0145/2.132, allocations: 7.074 MB / 0.7197 GB, free: 79.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0128/2.145, allocations: 5.389 MB / 0.725 GB, free: 77.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/2.145, allocations: 0 / 0.725 GB, free: 77.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004594/2.15, allocations: 1.916 MB / 0.7269 GB, free: 76.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00424/2.154, allocations: 0.5249 MB / 0.7274 GB, free: 76.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03445/2.189, allocations: 11.61 MB / 0.7387 GB, free: 72.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008425/2.197, allocations: 4.116 MB / 0.7427 GB, free: 69.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005631/2.203, allocations: 2.514 MB / 0.7452 GB, free: 67.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.794e-06/2.203, allocations: 0 / 0.7452 GB, free: 67.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.96/7.163, allocations: 143.5 MB / 0.8853 GB, free: 93.94 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat