Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.641/2.641, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.109e-05, allocations: 4 kB / 299.6 MB, free: 188 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3855, allocations: 54.85 MB / 354.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2084/0.5939, allocations: 102.5 MB / 457 MB, free: 8.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.5943, allocations: 83.95 kB / 457.1 MB, free: 8.488 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.002/2.597, allocations: 278.1 MB / 0.7179 GB, free: 42.31 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.555e-06/2.597, allocations: 3.938 kB / 0.7179 GB, free: 42.31 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009099/2.598, allocations: 282 kB / 0.7182 GB, free: 42.3 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: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.05766/2.655, allocations: 13.18 MB / 0.7311 GB, free: 37.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/2.655, allocations: 11.03 kB / 0.7311 GB, free: 37.09 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1629/2.818, allocations: 18.53 MB / 0.7492 GB, free: 27.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05943/2.878, allocations: 14.87 MB / 0.7637 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000954/2.879, allocations: 476 kB / 0.7642 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008856/2.888, allocations: 0.863 MB / 0.765 GB, free: 12.97 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07339/2.961, allocations: 24.22 MB / 0.7887 GB, free: 4.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5776/3.539, allocations: 32.99 MB / 0.8209 GB, free: 56.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001302/3.54, allocations: 136 kB / 0.821 GB, free: 56.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009753/3.55, allocations: 60.81 kB / 0.8211 GB, free: 56.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01249/3.562, allocations: 3.715 MB / 0.8247 GB, free: 56.17 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3012/3.864, allocations: 135.6 MB / 0.9571 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03025/3.894, allocations: 14.52 MB / 0.9713 GB, free: 7.633 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02294/3.917, allocations: 9.398 MB / 0.9805 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003176/3.92, allocations: 1.313 MB / 0.9817 GB, free: 2.594 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/3.92, allocations: 112.4 kB / 0.9819 GB, free: 2.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=810): time 1.662e-05/3.92, allocations: 0 / 0.9819 GB, free: 2.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=883): time 0.7768/4.697, allocations: 79.06 MB / 1.059 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/4.697, allocations: 310.4 kB / 1.059 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02518/4.723, allocations: 8.313 MB / 1.067 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.002206/4.725, allocations: 25.7 kB / 1.068 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.01001/4.735, allocations: 9.885 MB / 1.077 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.005854/4.741, allocations: 3.081 MB / 1.08 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003702/4.745, allocations: 0 / 1.08 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00273/4.747, allocations: 1.143 MB / 1.081 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02216/4.77, allocations: 7.959 MB / 1.089 GB, free: 99.75 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03125/4.801, allocations: 18.12 MB / 1.107 GB, free: 83.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03265/4.834, allocations: 12.1 MB / 1.119 GB, free: 79.39 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005125/4.834, allocations: 100 kB / 1.119 GB, free: 79.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2534) (initialization): time 0.08582/4.92, allocations: 26 MB / 1.144 GB, free: 57.26 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003582/4.92, allocations: 160 kB / 1.144 GB, free: 57.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008197/4.921, allocations: 356 kB / 1.145 GB, free: 56.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0139/4.935, allocations: 2.396 MB / 1.147 GB, free: 54.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03646/4.972, allocations: 4.529 MB / 1.151 GB, free: 51.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.034/5.006, allocations: 13.7 MB / 1.165 GB, free: 38.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0253/5.031, allocations: 0.7623 MB / 1.165 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005604/5.037, allocations: 1.059 MB / 1.166 GB, free: 37.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1631 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2338): * Single equations (assignments): 2321 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008703/5.046, allocations: 1.012 MB / 1.167 GB, free: 36.29 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05272/5.098, allocations: 14.94 MB / 1.182 GB, free: 23.28 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004493/5.103, allocations: 0.9872 MB / 1.183 GB, free: 22.28 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5547/5.658, allocations: 16.85 MB / 1.199 GB, free: 94.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000621/5.658, allocations: 166.7 kB / 1.2 GB, free: 94.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001102/5.658, allocations: 13.45 kB / 1.2 GB, free: 94.73 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002783/5.659, allocations: 37.31 kB / 1.2 GB, free: 94.73 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1231/5.782, allocations: 35.22 MB / 1.234 GB, free: 92.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001406/5.782, allocations: 14.19 kB / 1.234 GB, free: 92.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01804/5.8, allocations: 1.489 MB / 1.236 GB, free: 92.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01248/5.813, allocations: 1.755 MB / 1.237 GB, free: 92.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002151/5.815, allocations: 40.45 kB / 1.237 GB, free: 92.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03098/5.846, allocations: 12.14 MB / 1.249 GB, free: 90.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.448e-05/5.846, allocations: 19.31 kB / 1.249 GB, free: 90.17 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07255/5.919, allocations: 28.9 MB / 1.277 GB, free: 79.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01037/5.929, allocations: 2.25 MB / 1.28 GB, free: 78.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005007/5.934, allocations: 19.8 kB / 1.28 GB, free: 78.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01322/5.947, allocations: 445.1 kB / 1.28 GB, free: 78.49 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003452/5.951, allocations: 0.4884 MB / 1.28 GB, free: 78.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001423/5.952, allocations: 221.6 kB / 1.281 GB, free: 78.37 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01721/5.969, allocations: 5.537 MB / 1.286 GB, free: 76.42 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.82e-07/5.969, allocations: 0 / 1.286 GB, free: 76.42 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02691/5.996, allocations: 2.979 MB / 1.289 GB, free: 76.42 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (705): * Single equations (assignments): 688 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07342/6.07, allocations: 31.14 MB / 1.319 GB, free: 56.03 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.05101/6.121, allocations: 19.22 MB / 1.338 GB, free: 39.31 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.253e-05/6.121, allocations: 6.906 kB / 1.338 GB, free: 39.31 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02204/6.143, allocations: 7.934 MB / 1.346 GB, free: 32.16 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/6.154, allocations: 0.9459 MB / 1.347 GB, free: 31.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1237/6.278, allocations: 34.32 MB / 1.38 GB, free: 1.441 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03395/6.312, allocations: 10.6 MB / 1.391 GB, free: 9.879 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.5454/6.857, allocations: 7.513 MB / 1.398 GB, free: 101 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02363/6.881, allocations: 7.481 MB / 1.405 GB, free: 101 MB / 0.5417 GB Notification: Performance of SimCode: time 1.853e-06/6.881, allocations: 0 / 1.405 GB, free: 101 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.111/7.992, allocations: 223.6 MB / 1.624 GB, free: 57.46 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003657/7.992, allocations: 161.9 kB / 1.624 GB, free: 57.27 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 13.7/21.69, allocations: 0 / 1.624 GB, free: 57.27 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat