Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.599/2.599, allocations: 270 MB / 283.6 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.193e-05/4.204e-05, allocations: 4 kB / 348.5 MB, free: 2.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4623/0.4624, allocations: 61.87 MB / 410.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.6716, allocations: 110.5 MB / 0.5087 GB, free: 11.95 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003414/0.672, allocations: 83.95 kB / 0.5087 GB, free: 11.87 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.896/2.569, allocations: 281 MB / 0.7831 GB, free: 57.05 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.835e-06/2.569, allocations: 3.938 kB / 0.7831 GB, free: 57.04 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0008317/2.569, allocations: 279.8 kB / 0.7834 GB, free: 57.04 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.05209/2.622, allocations: 12.87 MB / 0.7959 GB, free: 52 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/2.622, allocations: 10.34 kB / 0.796 GB, free: 52 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01277/2.634, allocations: 2.615 MB / 0.7985 GB, free: 51.83 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1795/2.814, allocations: 18.45 MB / 0.8165 GB, free: 50.81 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04986/2.864, allocations: 14.1 MB / 0.8303 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001428/2.865, allocations: 1.073 MB / 0.8313 GB, free: 49.17 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008554/2.874, allocations: 1.421 MB / 0.8327 GB, free: 49.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.11/2.984, allocations: 35.14 MB / 0.867 GB, free: 21.58 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001015/2.985, allocations: 126.2 kB / 0.8672 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00788/2.993, allocations: 0.6612 MB / 0.8678 GB, free: 20.89 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007299/3, allocations: 3.592 MB / 0.8713 GB, free: 17.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09761/3.098, allocations: 31.25 MB / 0.9018 GB, free: 4.945 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7496/3.848, allocations: 137.2 MB / 1.036 GB, free: 35.89 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.08092/3.929, allocations: 14.99 MB / 1.05 GB, free: 34.02 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01862/3.947, allocations: 9.234 MB / 1.059 GB, free: 31.32 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09243/4.04, allocations: 34.5 MB / 1.093 GB, free: 16.88 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.744e-05/4.04, allocations: 100.1 kB / 1.093 GB, free: 16.79 MB / 0.573 GB Notification: Performance of pre-optimization done (n=705): time 1.129e-05/4.04, allocations: 0 / 1.093 GB, free: 16.79 MB / 0.573 GB Notification: Performance of matching and sorting (n=787): time 0.7856/4.826, allocations: 69.78 MB / 1.161 GB, free: 121.6 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/4.826, allocations: 307.7 kB / 1.162 GB, free: 121.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02372/4.849, allocations: 9.072 MB / 1.171 GB, free: 120.5 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001673/4.851, allocations: 131.8 kB / 1.171 GB, free: 120.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.008782/4.86, allocations: 9.583 MB / 1.18 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.004594/4.865, allocations: 2.847 MB / 1.183 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003082/4.868, allocations: 343 kB / 1.183 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.002328/4.87, allocations: 1.081 MB / 1.184 GB, free: 113.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01941/4.89, allocations: 7.805 MB / 1.192 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02625/4.916, allocations: 17.04 MB / 1.208 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02704/4.943, allocations: 11.66 MB / 1.22 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005075/4.944, allocations: 98.3 kB / 1.22 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.07372/5.017, allocations: 25.7 MB / 1.245 GB, free: 95.96 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002628/5.018, allocations: 144.9 kB / 1.245 GB, free: 95.96 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005416/5.018, allocations: 322.2 kB / 1.245 GB, free: 95.96 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01159/5.03, allocations: 2.403 MB / 1.248 GB, free: 95.55 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02805/5.058, allocations: 4.131 MB / 1.252 GB, free: 95.09 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02883/5.087, allocations: 14.35 MB / 1.266 GB, free: 87.78 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02048/5.107, allocations: 1.057 MB / 1.267 GB, free: 87.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004211/5.112, allocations: 0.9665 MB / 1.268 GB, free: 87.35 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1479 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (2132): * Single equations (assignments): 2115 * 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.006216/5.118, allocations: 1.384 MB / 1.269 GB, free: 86.24 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002936/5.121, allocations: 0.9855 MB / 1.27 GB, free: 85.7 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04333/5.164, allocations: 15.07 MB / 1.285 GB, free: 73.41 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002844/5.164, allocations: 162.2 kB / 1.285 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.966e-05/5.165, allocations: 12 kB / 1.285 GB, free: 73.25 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001641/5.165, allocations: 34.75 kB / 1.285 GB, free: 73.25 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09702/5.262, allocations: 33.31 MB / 1.318 GB, free: 45.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.082e-05/5.262, allocations: 8 kB / 1.318 GB, free: 45.52 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01273/5.275, allocations: 1.305 MB / 1.319 GB, free: 44.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/5.285, allocations: 1.772 MB / 1.321 GB, free: 43.25 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001745/5.287, allocations: 116 kB / 1.321 GB, free: 43.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02662/5.313, allocations: 12.93 MB / 1.333 GB, free: 31.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/5.313, allocations: 10.58 kB / 1.333 GB, free: 31.59 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5507/5.864, allocations: 26.46 MB / 1.359 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003795/5.868, allocations: 0.9647 MB / 1.36 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00448/5.873, allocations: 118.6 kB / 1.36 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0116/5.884, allocations: 0.5109 MB / 1.361 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002639/5.887, allocations: 419.4 kB / 1.361 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001573/5.888, allocations: 182.4 kB / 1.361 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01906/5.908, allocations: 6.269 MB / 1.367 GB, free: 111.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.82e-07/5.908, allocations: 0 / 1.367 GB, free: 111.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02335/5.931, allocations: 3.328 MB / 1.371 GB, free: 111.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (611): * Single equations (assignments): 594 * 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.06369/5.995, allocations: 26.75 MB / 1.397 GB, free: 107.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.04445/6.039, allocations: 18.24 MB / 1.415 GB, free: 107 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/6.039, allocations: 3.125 kB / 1.415 GB, free: 107 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01896/6.058, allocations: 7.203 MB / 1.422 GB, free: 106.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01135/6.07, allocations: 1.246 MB / 1.423 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1184/6.188, allocations: 33.09 MB / 1.455 GB, free: 97.36 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02977/6.218, allocations: 10.29 MB / 1.465 GB, free: 91.04 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.03158/6.25, allocations: 6.483 MB / 1.472 GB, free: 87.16 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01967/6.269, allocations: 7.202 MB / 1.479 GB, free: 80.48 MB / 0.5886 GB Notification: Performance of SimCode: time 1.934e-06/6.269, allocations: 0 / 1.479 GB, free: 80.48 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.031/7.3, allocations: 228.1 MB / 1.701 GB, free: 79.05 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002637/7.3, allocations: 186.5 kB / 1.702 GB, free: 78.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/19.91, allocations: 0 / 1.702 GB, free: 78.82 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat