Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.963/1.963, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.785e-05/2.795e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 48.69 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4503/0.5545, allocations: 95.56 MB / 411.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.5549, allocations: 79.39 kB / 411.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.735/2.29, allocations: 277.3 MB / 0.6731 GB, free: 33.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.607e-06/2.29, allocations: 5.781 kB / 0.6731 GB, free: 33.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00179/2.292, allocations: 282.1 kB / 0.6734 GB, free: 33.97 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: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.06866/2.361, allocations: 13.17 MB / 0.6863 GB, free: 28.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/2.361, allocations: 7.906 kB / 0.6863 GB, free: 28.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1459/2.507, allocations: 18.45 MB / 0.7043 GB, free: 27.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05191/2.559, allocations: 14.84 MB / 0.7188 GB, free: 26.22 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001016/2.56, allocations: 480.3 kB / 0.7192 GB, free: 26.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008747/2.568, allocations: 0.8523 MB / 0.7201 GB, free: 26.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05844/2.627, allocations: 23.57 MB / 0.7431 GB, free: 26.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09202/2.719, allocations: 32.63 MB / 0.775 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00119/2.72, allocations: 137.2 kB / 0.7751 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008549/2.729, allocations: 64 kB / 0.7751 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01496/2.744, allocations: 4.089 MB / 0.7791 GB, free: 14.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6581/3.402, allocations: 134.4 MB / 0.9104 GB, free: 21.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02566/3.428, allocations: 14.31 MB / 0.9244 GB, free: 18.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0188/3.447, allocations: 9.194 MB / 0.9334 GB, free: 17.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002497/3.449, allocations: 1.294 MB / 0.9347 GB, free: 16.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000158/3.449, allocations: 119.4 kB / 0.9348 GB, free: 16.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=808): time 1.465e-05/3.449, allocations: 0 / 0.9348 GB, free: 16.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=882): time 0.6791/4.128, allocations: 79.42 MB / 1.012 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/4.129, allocations: 313.6 kB / 1.013 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02458/4.153, allocations: 8.311 MB / 1.021 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001965/4.155, allocations: 29.39 kB / 1.021 GB, free: 101 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008427/4.164, allocations: 9.624 MB / 1.03 GB, free: 96.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005075/4.169, allocations: 3.077 MB / 1.033 GB, free: 95 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002877/4.172, allocations: 0 / 1.033 GB, free: 95 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001982/4.174, allocations: 1.158 MB / 1.034 GB, free: 94.64 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01881/4.193, allocations: 7.886 MB / 1.042 GB, free: 94.61 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02628/4.219, allocations: 18.07 MB / 1.06 GB, free: 81.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02676/4.246, allocations: 12.03 MB / 1.071 GB, free: 81.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004821/4.246, allocations: 105.4 kB / 1.072 GB, free: 81.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2533) (initialization): time 0.07124/4.318, allocations: 25.61 MB / 1.097 GB, free: 77.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003004/4.318, allocations: 157.6 kB / 1.097 GB, free: 77.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005714/4.318, allocations: 359 kB / 1.097 GB, free: 77.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01108/4.33, allocations: 2.396 MB / 1.099 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02977/4.359, allocations: 4.531 MB / 1.104 GB, free: 76.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03089/4.39, allocations: 13.71 MB / 1.117 GB, free: 69.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0219/4.412, allocations: 0.7539 MB / 1.118 GB, free: 69.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005466/4.418, allocations: 1.063 MB / 1.119 GB, free: 68.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1634 * 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 (2337): * Single equations (assignments): 2320 * 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.009211/4.427, allocations: 1.014 MB / 1.12 GB, free: 68.07 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05503/4.482, allocations: 14.8 MB / 1.134 GB, free: 61.26 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004852/4.487, allocations: 0.991 MB / 1.135 GB, free: 60.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05055/4.538, allocations: 16.7 MB / 1.152 GB, free: 46.36 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003558/4.538, allocations: 169.5 kB / 1.152 GB, free: 46.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.794e-05/4.538, allocations: 12 kB / 1.152 GB, free: 46.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000205/4.538, allocations: 37.88 kB / 1.152 GB, free: 46.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5117/5.05, allocations: 36.35 MB / 1.187 GB, free: 83.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001589/5.05, allocations: 13.53 kB / 1.187 GB, free: 83.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02035/5.071, allocations: 1.498 MB / 1.189 GB, free: 83.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01457/5.085, allocations: 1.755 MB / 1.191 GB, free: 83.14 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002323/5.088, allocations: 37.97 kB / 1.191 GB, free: 83.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03743/5.125, allocations: 12.13 MB / 1.202 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.074e-05/5.125, allocations: 25.02 kB / 1.202 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1207/5.246, allocations: 28.79 MB / 1.231 GB, free: 75.21 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009059/5.255, allocations: 2.249 MB / 1.233 GB, free: 75.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004151/5.259, allocations: 27.47 kB / 1.233 GB, free: 75.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01102/5.27, allocations: 445.7 kB / 1.233 GB, free: 75.11 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003044/5.273, allocations: 493.3 kB / 1.234 GB, free: 75.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001115/5.274, allocations: 218.6 kB / 1.234 GB, free: 75.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01418/5.289, allocations: 5.539 MB / 1.239 GB, free: 74.81 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.02e-07/5.289, allocations: 1.812 kB / 1.239 GB, free: 74.81 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0227/5.311, allocations: 2.983 MB / 1.242 GB, free: 74.81 MB / 0.4948 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 (704): * Single equations (assignments): 687 * 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.064/5.375, allocations: 31.03 MB / 1.273 GB, free: 64.23 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04231/5.418, allocations: 19.12 MB / 1.291 GB, free: 58.28 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/5.418, allocations: 3.75 kB / 1.291 GB, free: 58.28 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01872/5.437, allocations: 7.906 MB / 1.299 GB, free: 55.29 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009679/5.446, allocations: 0.9453 MB / 1.3 GB, free: 54.88 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1176/5.564, allocations: 36 MB / 1.335 GB, free: 24.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02971/5.594, allocations: 10.59 MB / 1.345 GB, free: 17.14 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02107/5.615, allocations: 7.615 MB / 1.353 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of SimCode: time 1.663e-06/5.615, allocations: 0 / 1.353 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.918/14.53, allocations: 405.5 MB / 1.749 GB, free: 47.23 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat