Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.546/2.546, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.172e-05/4.198e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4026, allocations: 54.85 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.6615, allocations: 101.5 MB / 461.4 MB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/0.6619, allocations: 85.19 kB / 461.5 MB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8628/1.525, allocations: 131.2 MB / 0.5787 GB, free: 97.83 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.525, allocations: 4 kB / 0.5788 GB, free: 97.83 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005247/1.525, allocations: 135.8 kB / 0.5789 GB, free: 97.82 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: 2232 * Number of variables: 2232 Notification: Performance of Generate backend data structure: time 0.03027/1.556, allocations: 6.87 MB / 0.5856 GB, free: 94.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/1.556, allocations: 6.875 kB / 0.5856 GB, free: 94.66 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005829/1.562, allocations: 1.12 MB / 0.5867 GB, free: 94.12 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06802/1.63, allocations: 9.415 MB / 0.5959 GB, free: 89.53 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03118/1.661, allocations: 8.995 MB / 0.6047 GB, free: 82.82 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005897/1.662, allocations: 485.8 kB / 0.6051 GB, free: 82.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004049/1.666, allocations: 0.6475 MB / 0.6058 GB, free: 81.77 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05105/1.717, allocations: 16.15 MB / 0.6215 GB, free: 64.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004712/1.717, allocations: 91.08 kB / 0.6216 GB, free: 64.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00329/1.721, allocations: 301.2 kB / 0.6219 GB, free: 64.15 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003599/1.724, allocations: 1.528 MB / 0.6234 GB, free: 62.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05024/1.774, allocations: 13.85 MB / 0.6369 GB, free: 48.77 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6583/2.433, allocations: 70.54 MB / 0.7058 GB, free: 63.64 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.034/2.467, allocations: 7.323 MB / 0.713 GB, free: 62.98 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0109/2.478, allocations: 5.244 MB / 0.7181 GB, free: 62.93 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04184/2.52, allocations: 17.91 MB / 0.7356 GB, free: 60.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/2.52, allocations: 71.14 kB / 0.7356 GB, free: 60.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 6.693e-06/2.52, allocations: 0 / 0.7356 GB, free: 60.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=404): time 0.2354/2.755, allocations: 51.51 MB / 0.7859 GB, free: 43.74 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001676/2.755, allocations: 336.2 kB / 0.7863 GB, free: 43.35 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01762/2.773, allocations: 4.902 MB / 0.791 GB, free: 39.03 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001909/2.775, allocations: 90.41 kB / 0.7911 GB, free: 38.94 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005323/2.78, allocations: 4.199 MB / 0.7952 GB, free: 35.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004135/2.785, allocations: 1.459 MB / 0.7967 GB, free: 33.83 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002709/2.787, allocations: 172 kB / 0.7968 GB, free: 33.66 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009725/2.788, allocations: 0.6672 MB / 0.7975 GB, free: 33.08 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03302/2.821, allocations: 4.907 MB / 0.8023 GB, free: 28.66 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0196/2.841, allocations: 9.257 MB / 0.8113 GB, free: 18.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01589/2.857, allocations: 6.7 MB / 0.8178 GB, free: 12.61 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000187/2.857, allocations: 44 kB / 0.8179 GB, free: 12.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=1104) (initialization): time 0.06182/2.919, allocations: 17.77 MB / 0.8352 GB, free: 11.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/2.919, allocations: 68 kB / 0.8353 GB, free: 11.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002846/2.92, allocations: 152 kB / 0.8355 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02686/2.946, allocations: 4.767 MB / 0.8401 GB, free: 6.734 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01583/2.962, allocations: 2.016 MB / 0.8421 GB, free: 4.715 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06557/3.028, allocations: 25.42 MB / 0.8669 GB, free: 10.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01269/3.041, allocations: 0.6006 MB / 0.8675 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002767/3.044, allocations: 493.3 kB / 0.868 GB, free: 9.816 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 690 * Number of states: 0 () * Number of discrete variables: 54 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1001): * Single equations (assignments): 995 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(14,44.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003993/3.048, allocations: 0.7314 MB / 0.8687 GB, free: 9.078 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002052/3.05, allocations: 0.5476 MB / 0.8692 GB, free: 8.523 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05134/3.101, allocations: 13.34 MB / 0.8822 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-05/3.101, allocations: 44 kB / 0.8823 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-05/3.101, allocations: 16 kB / 0.8823 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/3.101, allocations: 23.92 kB / 0.8823 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08391/3.185, allocations: 23.73 MB / 0.9055 GB, free: 3.281 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.394e-05/3.185, allocations: 3.938 kB / 0.9055 GB, free: 3.277 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008359/3.194, allocations: 0.7074 MB / 0.9062 GB, free: 2.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4044/3.598, allocations: 4.511 MB / 0.9106 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001451/3.6, allocations: 69.88 kB / 0.9107 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06261/3.662, allocations: 24.59 MB / 0.9347 GB, free: 164.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/3.662, allocations: 5.547 kB / 0.9347 GB, free: 164.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07048/3.733, allocations: 20.05 MB / 0.9543 GB, free: 158.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005962/3.739, allocations: 1.464 MB / 0.9557 GB, free: 157.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002857/3.742, allocations: 69.47 kB / 0.9557 GB, free: 157.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008068/3.75, allocations: 363.2 kB / 0.9561 GB, free: 157.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002519/3.752, allocations: 248.2 kB / 0.9563 GB, free: 157.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009342/3.753, allocations: 103.3 kB / 0.9564 GB, free: 157.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01228/3.766, allocations: 3.471 MB / 0.9598 GB, free: 156.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.312e-06/3.766, allocations: 0 / 0.9598 GB, free: 156.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01665/3.782, allocations: 1.931 MB / 0.9617 GB, free: 156.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (315): * Single equations (assignments): 309 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07203/3.854, allocations: 20.9 MB / 0.9821 GB, free: 148.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03444/3.889, allocations: 12.65 MB / 0.9945 GB, free: 141.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/3.889, allocations: 0 / 0.9945 GB, free: 141.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01921/3.908, allocations: 6.148 MB / 1 GB, free: 136.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006795/3.915, allocations: 0.7076 MB / 1.001 GB, free: 135.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05533/3.97, allocations: 18.28 MB / 1.019 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01142/3.982, allocations: 5.101 MB / 1.024 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009206/3.991, allocations: 3.25 MB / 1.027 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.863e-06/3.991, allocations: 0 / 1.027 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.181/10.17, allocations: 223.7 MB / 1.246 GB, free: 76.87 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat