Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.575/2.575, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.165e-05/3.162e-05, allocations: 4 kB / 299.6 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.4045, allocations: 54.87 MB / 354.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2053/0.6098, allocations: 100.8 MB / 455.3 MB, free: 13.29 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003677/0.6103, allocations: 91.94 kB / 455.4 MB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.041/1.651, allocations: 128.1 MB / 0.5698 GB, free: 57.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.651, allocations: 0 / 0.5698 GB, free: 57.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000541/1.652, allocations: 132 kB / 0.5699 GB, free: 56.98 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: 2232 * Number of variables: 2232 Notification: Performance of Generate backend data structure: time 0.03297/1.684, allocations: 6.871 MB / 0.5767 GB, free: 50.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/1.685, allocations: 8.031 kB / 0.5767 GB, free: 50.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08188/1.766, allocations: 9.414 MB / 0.5859 GB, free: 40.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04383/1.81, allocations: 8.988 MB / 0.5946 GB, free: 31.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004133/1.811, allocations: 208 kB / 0.5948 GB, free: 31.31 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003633/1.814, allocations: 395.8 kB / 0.5952 GB, free: 30.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03536/1.85, allocations: 10.01 MB / 0.605 GB, free: 20.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05217/1.902, allocations: 14.23 MB / 0.6189 GB, free: 5.445 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004252/1.903, allocations: 87.16 kB / 0.619 GB, free: 5.359 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002088/1.905, allocations: 36 kB / 0.619 GB, free: 5.324 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004228/1.909, allocations: 1.53 MB / 0.6205 GB, free: 3.789 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6053/2.514, allocations: 68.16 MB / 0.687 GB, free: 70.88 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/2.529, allocations: 6.623 MB / 0.6935 GB, free: 70.21 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01087/2.54, allocations: 5.16 MB / 0.6986 GB, free: 70.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05081/2.591, allocations: 17.74 MB / 0.7159 GB, free: 66.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.634e-05/2.591, allocations: 67.42 kB / 0.7159 GB, free: 66.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 8.546e-06/2.591, allocations: 0 / 0.7159 GB, free: 66.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.2032/2.794, allocations: 43.08 MB / 0.758 GB, free: 48.06 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001635/2.794, allocations: 331.1 kB / 0.7583 GB, free: 47.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01336/2.808, allocations: 4.31 MB / 0.7625 GB, free: 44.01 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001414/2.809, allocations: 29.64 kB / 0.7626 GB, free: 43.97 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004284/2.813, allocations: 4.48 MB / 0.7669 GB, free: 39.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002702/2.816, allocations: 1.355 MB / 0.7683 GB, free: 38.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001351/2.818, allocations: 3.094 kB / 0.7683 GB, free: 38.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006114/2.818, allocations: 0.6699 MB / 0.7689 GB, free: 38.11 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01561/2.834, allocations: 4.405 MB / 0.7732 GB, free: 34.18 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02128/2.855, allocations: 8.913 MB / 0.7819 GB, free: 23.83 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02291/2.878, allocations: 6.185 MB / 0.788 GB, free: 18.86 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002836/2.878, allocations: 44 kB / 0.788 GB, free: 18.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=1114) (initialization): time 0.07411/2.953, allocations: 16.67 MB / 0.8043 GB, free: 5.723 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/2.953, allocations: 72 kB / 0.8043 GB, free: 5.652 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002799/2.953, allocations: 156 kB / 0.8045 GB, free: 5.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03074/2.984, allocations: 4.727 MB / 0.8091 GB, free: 2.297 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01748/3.001, allocations: 2.04 MB / 0.8111 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07692/3.078, allocations: 23.58 MB / 0.8341 GB, free: 9.145 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01409/3.093, allocations: 463 kB / 0.8346 GB, free: 8.691 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003051/3.096, allocations: 499.9 kB / 0.8351 GB, free: 8.203 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * 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 (1011): * Single equations (assignments): 1005 * 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 {(2,100.0%) 16,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004641/3.1, allocations: 0.5189 MB / 0.8356 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05617/3.156, allocations: 11.81 MB / 0.8471 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002998/3.16, allocations: 0.5091 MB / 0.8476 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05786/3.217, allocations: 12.08 MB / 0.8594 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000133/3.218, allocations: 40 kB / 0.8594 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.469e-05/3.218, allocations: 16 kB / 0.8594 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001192/3.218, allocations: 19.92 kB / 0.8595 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5051/3.723, allocations: 20.77 MB / 0.8797 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.572e-05/3.723, allocations: 0 / 0.8797 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009119/3.732, allocations: 0.673 MB / 0.8804 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03049/3.763, allocations: 4.498 MB / 0.8848 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001451/3.764, allocations: 7.484 kB / 0.8848 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06494/3.829, allocations: 23.06 MB / 0.9073 GB, free: 149 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/3.829, allocations: 0 / 0.9073 GB, free: 149 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06364/3.893, allocations: 18.21 MB / 0.9251 GB, free: 144.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006126/3.899, allocations: 1.315 MB / 0.9264 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00308/3.902, allocations: 3.5 kB / 0.9264 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008942/3.911, allocations: 297.3 kB / 0.9267 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002366/3.914, allocations: 237.7 kB / 0.9269 GB, free: 143.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009493/3.915, allocations: 93.95 kB / 0.927 GB, free: 143.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008835/3.924, allocations: 2.956 MB / 0.9299 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.32e-07/3.924, allocations: 0 / 0.9299 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0143/3.938, allocations: 1.628 MB / 0.9315 GB, free: 142.6 MB / 0.5261 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 (295): * Single equations (assignments): 289 * 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,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06456/4.003, allocations: 19.01 MB / 0.95 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03594/4.039, allocations: 11.47 MB / 0.9612 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/4.039, allocations: 0 / 0.9612 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02198/4.061, allocations: 5.606 MB / 0.9667 GB, free: 122.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006934/4.068, allocations: 0.5625 MB / 0.9673 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05792/4.126, allocations: 16.43 MB / 0.9833 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01294/4.139, allocations: 5.059 MB / 0.9882 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01637/4.155, allocations: 2.844 MB / 0.991 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009658/4.165, allocations: 3.151 MB / 0.9941 GB, free: 99.82 MB / 0.5261 GB Notification: Performance of SimCode: time 1.593e-06/4.165, allocations: 0 / 0.9941 GB, free: 99.82 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7908/4.955, allocations: 138 MB / 1.129 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003013/4.956, allocations: 151.1 kB / 1.129 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.225/13.18, allocations: 4 kB / 1.129 GB, free: 144.5 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat