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 2.098/2.098, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.168e-05/3.183e-05, allocations: 0 / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4275/0.5296, allocations: 95.15 MB / 417 MB, free: 10.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.53, allocations: 82.98 kB / 417.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7801/1.31, allocations: 106.3 MB / 0.5111 GB, free: 89.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.31, allocations: 0 / 0.5111 GB, free: 89.61 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004218/1.311, allocations: 108.3 kB / 0.5112 GB, free: 89.61 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.02207/1.333, allocations: 5.261 MB / 0.5163 GB, free: 87.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/1.333, allocations: 9.781 kB / 0.5163 GB, free: 87.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00416/1.337, allocations: 0.9312 MB / 0.5172 GB, free: 87.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05011/1.387, allocations: 6.906 MB / 0.524 GB, free: 87.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02515/1.412, allocations: 6.85 MB / 0.5307 GB, free: 86.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000514/1.413, allocations: 408.5 kB / 0.5311 GB, free: 86.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002924/1.416, allocations: 0.5277 MB / 0.5316 GB, free: 86.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03558/1.451, allocations: 12.29 MB / 0.5436 GB, free: 83.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004284/1.452, allocations: 75.62 kB / 0.5437 GB, free: 83.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002422/1.454, allocations: 259.4 kB / 0.5439 GB, free: 83.15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002345/1.457, allocations: 1.124 MB / 0.545 GB, free: 83.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02858/1.485, allocations: 9.794 MB / 0.5546 GB, free: 80.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08124/1.567, allocations: 56.49 MB / 0.6097 GB, free: 36.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.016/1.583, allocations: 4.093 MB / 0.6137 GB, free: 32.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004599/1.587, allocations: 2.268 MB / 0.616 GB, free: 30.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02279/1.61, allocations: 9.498 MB / 0.6252 GB, free: 22.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/1.61, allocations: 51.88 kB / 0.6253 GB, free: 22.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 5.14e-06/1.61, allocations: 0 / 0.6253 GB, free: 22.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.07189/1.682, allocations: 16.49 MB / 0.6414 GB, free: 7.668 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.082e-05/1.682, allocations: 209.2 kB / 0.6416 GB, free: 7.422 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008528/1.691, allocations: 4.196 MB / 0.6457 GB, free: 3.227 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004971/1.691, allocations: 53.7 kB / 0.6457 GB, free: 3.168 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002995/1.694, allocations: 3.624 MB / 0.6493 GB, free: 15.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00146/1.696, allocations: 0.8324 MB / 0.6501 GB, free: 14.72 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007079/1.697, allocations: 128 kB / 0.6502 GB, free: 14.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005485/1.697, allocations: 0.5877 MB / 0.6508 GB, free: 14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005896/1.703, allocations: 2.176 MB / 0.6529 GB, free: 11.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009888/1.713, allocations: 6.114 MB / 0.6589 GB, free: 3.734 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009143/1.722, allocations: 3.633 MB / 0.6624 GB, free: 104 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001238/1.722, allocations: 40 kB / 0.6625 GB, free: 64 kB / 442.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.3248/2.047, allocations: 8.615 MB / 0.6709 GB, free: 94.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001472/2.047, allocations: 65.47 kB / 0.6709 GB, free: 94.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002758/2.048, allocations: 142.7 kB / 0.6711 GB, free: 94.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005019/2.053, allocations: 0.9364 MB / 0.672 GB, free: 94.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01065/2.063, allocations: 1.505 MB / 0.6735 GB, free: 94.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02023/2.084, allocations: 7.411 MB / 0.6807 GB, free: 91.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02664/2.11, allocations: 357.6 kB / 0.681 GB, free: 91.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001982/2.112, allocations: 396.2 kB / 0.6814 GB, free: 91.9 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.007047/2.12, allocations: 0.6201 MB / 0.682 GB, free: 91.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/2.121, allocations: 428.5 kB / 0.6824 GB, free: 91.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01022/2.131, allocations: 3.517 MB / 0.6859 GB, free: 91.47 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.209e-05/2.131, allocations: 22.72 kB / 0.6859 GB, free: 91.47 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/2.131, allocations: 7.781 kB / 0.6859 GB, free: 91.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.197e-05/2.131, allocations: 10.75 kB / 0.6859 GB, free: 91.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02992/2.161, allocations: 9.197 MB / 0.6949 GB, free: 90.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.61e-05/2.161, allocations: 0 / 0.6949 GB, free: 90.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004391/2.166, allocations: 340.1 kB / 0.6952 GB, free: 90.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00549/2.171, allocations: 0.6901 MB / 0.6959 GB, free: 90.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006034/2.172, allocations: 38.38 kB / 0.6959 GB, free: 90.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01769/2.19, allocations: 6.562 MB / 0.7023 GB, free: 86.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/2.19, allocations: 3.469 kB / 0.7023 GB, free: 86.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04504/2.235, allocations: 6.218 MB / 0.7084 GB, free: 84.33 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003808/2.239, allocations: 0.7367 MB / 0.7091 GB, free: 83.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001813/2.24, allocations: 34.38 kB / 0.7092 GB, free: 83.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005154/2.246, allocations: 109.5 kB / 0.7093 GB, free: 83.83 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000986/2.247, allocations: 142.1 kB / 0.7094 GB, free: 83.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003279/2.247, allocations: 59.34 kB / 0.7094 GB, free: 83.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01056/2.258, allocations: 2.958 MB / 0.7123 GB, free: 82.76 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.263e-06/2.258, allocations: 0 / 0.7123 GB, free: 82.76 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0244/2.282, allocations: 1.186 MB / 0.7135 GB, free: 82.62 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.03526/2.325, allocations: 7.083 MB / 0.7204 GB, free: 79.19 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01631/2.341, allocations: 5.597 MB / 0.7259 GB, free: 77.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/2.341, allocations: 0 / 0.7259 GB, free: 77.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00794/2.349, allocations: 1.941 MB / 0.7278 GB, free: 76.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005837/2.355, allocations: 0.5268 MB / 0.7283 GB, free: 76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04275/2.398, allocations: 11.62 MB / 0.7396 GB, free: 71.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009167/2.407, allocations: 4.111 MB / 0.7437 GB, free: 68.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005725/2.413, allocations: 2.518 MB / 0.7461 GB, free: 66.51 MB / 442.7 MB Notification: Performance of SimCode: time 2.064e-06/2.413, allocations: 0 / 0.7461 GB, free: 66.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.051/7.464, allocations: 144.6 MB / 0.8873 GB, free: 92.26 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