Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.348/2.348, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.47e-05/3.474e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4015/0.4016, allocations: 54.85 MB / 359.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.194/0.5956, allocations: 102.4 MB / 462.3 MB, free: 10.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003313/0.596, allocations: 83.95 kB / 462.4 MB, free: 10.44 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7637/1.36, allocations: 106.6 MB / 0.5556 GB, free: 100.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.36, allocations: 0 / 0.5556 GB, free: 100.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000386/1.36, allocations: 110.8 kB / 0.5557 GB, free: 100.9 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.02283/1.383, allocations: 5.267 MB / 0.5608 GB, free: 98.72 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/1.383, allocations: 9.531 kB / 0.5608 GB, free: 98.72 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004529/1.388, allocations: 0.9355 MB / 0.5618 GB, free: 98.63 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05059/1.438, allocations: 6.931 MB / 0.5685 GB, free: 98.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02496/1.463, allocations: 6.874 MB / 0.5752 GB, free: 96.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000718/1.464, allocations: 406.1 kB / 0.5756 GB, free: 96.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003627/1.468, allocations: 0.5431 MB / 0.5761 GB, free: 96.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08255/1.55, allocations: 12.6 MB / 0.5885 GB, free: 89.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004474/1.551, allocations: 77.41 kB / 0.5885 GB, free: 89.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002643/1.554, allocations: 258.7 kB / 0.5888 GB, free: 89.72 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/1.556, allocations: 1.125 MB / 0.5899 GB, free: 89.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03148/1.588, allocations: 10.08 MB / 0.5997 GB, free: 85 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0826/1.671, allocations: 57.09 MB / 0.6555 GB, free: 27.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/1.688, allocations: 4.345 MB / 0.6597 GB, free: 23.33 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004707/1.693, allocations: 2.378 MB / 0.662 GB, free: 20.94 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02425/1.717, allocations: 9.969 MB / 0.6718 GB, free: 10.88 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/1.717, allocations: 55.81 kB / 0.6718 GB, free: 10.81 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 6.472e-06/1.717, allocations: 0 / 0.6718 GB, free: 10.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=218): time 0.07553/1.793, allocations: 16.17 MB / 0.6876 GB, free: 10.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001602/1.793, allocations: 205.2 kB / 0.6878 GB, free: 10.31 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/1.805, allocations: 4.191 MB / 0.6919 GB, free: 6.121 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005508/1.805, allocations: 57.7 kB / 0.692 GB, free: 6.059 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004565/1.81, allocations: 3.621 MB / 0.6955 GB, free: 2.441 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001719/1.812, allocations: 0.8273 MB / 0.6963 GB, free: 1.621 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009136/1.813, allocations: 132 kB / 0.6964 GB, free: 1.492 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006425/1.813, allocations: 0.5877 MB / 0.697 GB, free: 0.8945 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.457/2.27, allocations: 2.178 MB / 0.6991 GB, free: 106.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01429/2.285, allocations: 6.085 MB / 0.7051 GB, free: 101.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/2.299, allocations: 3.642 MB / 0.7086 GB, free: 101.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003844/2.299, allocations: 39.31 kB / 0.7087 GB, free: 101.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.04037/2.34, allocations: 8.247 MB / 0.7167 GB, free: 100.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003292/2.34, allocations: 64.53 kB / 0.7168 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005576/2.341, allocations: 142.4 kB / 0.7169 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007759/2.348, allocations: 0.9411 MB / 0.7178 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01475/2.363, allocations: 1.504 MB / 0.7193 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01341/2.377, allocations: 7.413 MB / 0.7265 GB, free: 98.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00799/2.385, allocations: 366.3 kB / 0.7269 GB, free: 98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00171/2.386, allocations: 398.2 kB / 0.7273 GB, free: 97.95 MB / 474.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.002741/2.389, allocations: 0.6111 MB / 0.7279 GB, free: 97.54 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/2.39, allocations: 423.8 kB / 0.7283 GB, free: 97.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/2.401, allocations: 3.537 MB / 0.7317 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.873e-05/2.401, allocations: 25.02 kB / 0.7317 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/2.401, allocations: 12.25 kB / 0.7318 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.128e-05/2.401, allocations: 7.969 kB / 0.7318 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03302/2.434, allocations: 9.226 MB / 0.7408 GB, free: 92.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.723e-05/2.434, allocations: 6.719 kB / 0.7408 GB, free: 92.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004695/2.439, allocations: 344 kB / 0.7411 GB, free: 92.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005579/2.445, allocations: 0.6862 MB / 0.7418 GB, free: 92.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006234/2.445, allocations: 42.53 kB / 0.7418 GB, free: 92.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/2.459, allocations: 6.544 MB / 0.7482 GB, free: 88.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.459, allocations: 3.969 kB / 0.7482 GB, free: 88.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01491/2.474, allocations: 6.257 MB / 0.7543 GB, free: 85.95 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/2.477, allocations: 0.7391 MB / 0.755 GB, free: 85.49 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001406/2.478, allocations: 34.86 kB / 0.7551 GB, free: 85.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003905/2.482, allocations: 115.4 kB / 0.7552 GB, free: 85.44 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007826/2.483, allocations: 128.4 kB / 0.7553 GB, free: 85.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/2.483, allocations: 56.55 kB / 0.7554 GB, free: 85.41 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008017/2.491, allocations: 2.954 MB / 0.7583 GB, free: 84.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.92e-07/2.491, allocations: 1.031 kB / 0.7583 GB, free: 84.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008989/2.5, allocations: 1.184 MB / 0.7594 GB, free: 84.24 MB / 474.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.01575/2.516, allocations: 7.114 MB / 0.7664 GB, free: 80.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01394/2.53, allocations: 5.427 MB / 0.7717 GB, free: 78.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/2.53, allocations: 0 / 0.7717 GB, free: 78.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004971/2.535, allocations: 1.919 MB / 0.7735 GB, free: 77.92 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004666/2.54, allocations: 0.5325 MB / 0.7741 GB, free: 77.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03827/2.578, allocations: 11.61 MB / 0.7854 GB, free: 69.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009172/2.587, allocations: 4.106 MB / 0.7894 GB, free: 66.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005835/2.593, allocations: 2.508 MB / 0.7919 GB, free: 63.77 MB / 474.7 MB Notification: Performance of SimCode: time 1.904e-06/2.593, allocations: 4 kB / 0.7919 GB, free: 63.77 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.994/7.587, allocations: 143.5 MB / 0.932 GB, free: 103.6 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat