Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.34/2.34, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.057e-05/4.083e-05, allocations: 4 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1324, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5988/0.7312, allocations: 110.5 MB / 0.5086 GB, free: 9.523 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.7315, allocations: 83.94 kB / 0.5087 GB, free: 9.441 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.544/2.275, allocations: 281 MB / 0.7831 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.254e-06/2.275, allocations: 0 / 0.7831 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001112/2.276, allocations: 279.9 kB / 0.7834 GB, free: 16.24 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.06734/2.344, allocations: 12.86 MB / 0.796 GB, free: 3.277 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/2.344, allocations: 12.03 kB / 0.796 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01435/2.358, allocations: 2.619 MB / 0.7985 GB, free: 0.6328 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5802/2.938, allocations: 18.45 MB / 0.8165 GB, free: 58.68 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06032/2.999, allocations: 14.09 MB / 0.8303 GB, free: 58.13 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002115/3.001, allocations: 1.068 MB / 0.8313 GB, free: 58.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01082/3.012, allocations: 1.42 MB / 0.8327 GB, free: 58.09 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1202/3.132, allocations: 35.15 MB / 0.867 GB, free: 52.56 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001236/3.134, allocations: 133.7 kB / 0.8672 GB, free: 52.55 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009172/3.143, allocations: 0.6487 MB / 0.8678 GB, free: 52.55 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008071/3.151, allocations: 3.598 MB / 0.8713 GB, free: 52.52 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09837/3.249, allocations: 31.25 MB / 0.9018 GB, free: 47.82 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3102/3.56, allocations: 137.2 MB / 1.036 GB, free: 2.027 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5511/4.111, allocations: 17.58 MB / 1.053 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02259/4.133, allocations: 9.237 MB / 1.062 GB, free: 113.5 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1018/4.235, allocations: 34.51 MB / 1.096 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/4.235, allocations: 97.52 kB / 1.096 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=705): time 1.335e-05/4.236, allocations: 3.031 kB / 1.096 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=787): time 0.3348/4.57, allocations: 68.62 MB / 1.163 GB, free: 93.56 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/4.571, allocations: 297.1 kB / 1.163 GB, free: 93.27 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0254/4.596, allocations: 9.076 MB / 1.172 GB, free: 90.03 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001946/4.598, allocations: 134.7 kB / 1.172 GB, free: 89.92 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.008865/4.607, allocations: 9.581 MB / 1.181 GB, free: 82.6 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.00493/4.612, allocations: 2.857 MB / 1.184 GB, free: 80.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003446/4.615, allocations: 344.5 kB / 1.185 GB, free: 80.23 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.003466/4.619, allocations: 1.081 MB / 1.186 GB, free: 79.51 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01969/4.639, allocations: 7.804 MB / 1.193 GB, free: 72.45 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02599/4.665, allocations: 17.04 MB / 1.21 GB, free: 52.33 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02634/4.691, allocations: 11.66 MB / 1.221 GB, free: 43.02 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003682/4.692, allocations: 95.47 kB / 1.221 GB, free: 42.93 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.07335/4.765, allocations: 25.7 MB / 1.246 GB, free: 21.17 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002405/4.765, allocations: 146.7 kB / 1.247 GB, free: 21.03 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005485/4.766, allocations: 327.9 kB / 1.247 GB, free: 20.71 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01164/4.777, allocations: 2.401 MB / 1.249 GB, free: 18.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02777/4.805, allocations: 4.13 MB / 1.253 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.49/5.295, allocations: 14.33 MB / 1.267 GB, free: 90.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02069/5.316, allocations: 1.06 MB / 1.268 GB, free: 90.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004623/5.321, allocations: 0.9666 MB / 1.269 GB, free: 90.55 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.006446/5.327, allocations: 1.383 MB / 1.271 GB, free: 90.42 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002939/5.33, allocations: 0.9806 MB / 1.272 GB, free: 90.42 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04895/5.379, allocations: 15.08 MB / 1.286 GB, free: 90.04 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003192/5.38, allocations: 160.1 kB / 1.286 GB, free: 90.04 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.673e-05/5.38, allocations: 12.55 kB / 1.286 GB, free: 90.04 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001755/5.38, allocations: 30.09 kB / 1.286 GB, free: 90.04 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1027/5.482, allocations: 33.32 MB / 1.319 GB, free: 88.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001049/5.483, allocations: 11.23 kB / 1.319 GB, free: 88.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01289/5.496, allocations: 1.307 MB / 1.32 GB, free: 88.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/5.506, allocations: 1.77 MB / 1.322 GB, free: 88.48 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001879/5.508, allocations: 127 kB / 1.322 GB, free: 88.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0275/5.535, allocations: 12.91 MB / 1.335 GB, free: 82.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/5.535, allocations: 13.97 kB / 1.335 GB, free: 82.89 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05993/5.595, allocations: 25.27 MB / 1.359 GB, free: 72.52 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0034/5.599, allocations: 0.9682 MB / 1.36 GB, free: 72.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004442/5.603, allocations: 120.3 kB / 1.361 GB, free: 72.15 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01162/5.615, allocations: 0.505 MB / 1.361 GB, free: 72.07 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002548/5.618, allocations: 429.6 kB / 1.361 GB, free: 72 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001339/5.619, allocations: 179.2 kB / 1.362 GB, free: 71.96 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01751/5.637, allocations: 6.268 MB / 1.368 GB, free: 69.88 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.173e-06/5.637, allocations: 0 / 1.368 GB, free: 69.88 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02291/5.659, allocations: 3.323 MB / 1.371 GB, free: 69.52 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.06456/5.724, allocations: 26.76 MB / 1.397 GB, free: 57.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0442/5.768, allocations: 18.23 MB / 1.415 GB, free: 42.62 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.47e-05/5.768, allocations: 0 / 1.415 GB, free: 42.62 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01863/5.787, allocations: 7.203 MB / 1.422 GB, free: 36.21 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01103/5.798, allocations: 1.25 MB / 1.423 GB, free: 35.17 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1062/5.904, allocations: 33.09 MB / 1.455 GB, free: 6.336 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03611/5.941, allocations: 10.74 MB / 1.466 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.03265/5.973, allocations: 6.484 MB / 1.472 GB, free: 12.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5001/6.473, allocations: 7.999 MB / 1.48 GB, free: 107.5 MB / 0.6042 GB Notification: Performance of SimCode: time 2.735e-06/6.474, allocations: 0 / 1.48 GB, free: 107.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.148/7.621, allocations: 228.1 MB / 1.703 GB, free: 45.9 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002912/7.621, allocations: 183.5 kB / 1.703 GB, free: 45.68 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/20.29, allocations: 2.375 kB / 1.703 GB, free: 45.68 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat