Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.249e-05/2.266e-05, allocations: 8 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.302, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1686/0.4706, allocations: 95.3 MB / 389.5 MB, free: 2.559 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/0.471, allocations: 87.94 kB / 389.6 MB, free: 2.473 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6167/1.088, allocations: 93.89 MB / 483.5 MB, free: 66.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.088, allocations: 0 / 483.5 MB, free: 66.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003292/1.088, allocations: 103.9 kB / 483.6 MB, free: 65.95 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1752 * Number of variables: 1752 Notification: Performance of Generate backend data structure: time 0.03954/1.128, allocations: 5.997 MB / 489.6 MB, free: 59.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/1.128, allocations: 12.03 kB / 489.6 MB, free: 59.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03099/1.159, allocations: 4.4 MB / 494 MB, free: 55.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01914/1.178, allocations: 5.238 MB / 499.2 MB, free: 50.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000311/1.178, allocations: 160 kB / 499.4 MB, free: 50.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002844/1.181, allocations: 299.8 kB / 499.7 MB, free: 49.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01906/1.2, allocations: 7.625 MB / 0.4954 GB, free: 42.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02931/1.23, allocations: 11.33 MB / 0.5065 GB, free: 29.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003569/1.23, allocations: 63.41 kB / 0.5065 GB, free: 29.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002597/1.233, allocations: 35.98 kB / 0.5066 GB, free: 29.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002812/1.236, allocations: 1.092 MB / 0.5076 GB, free: 28.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09485/1.33, allocations: 53.96 MB / 0.5603 GB, free: 5.355 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009863/1.34, allocations: 4.697 MB / 0.5649 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3163/1.657, allocations: 3.339 MB / 0.5682 GB, free: 94.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003159/1.66, allocations: 1.037 MB / 0.5692 GB, free: 93.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.94e-05/1.66, allocations: 59.89 kB / 0.5692 GB, free: 93.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=217): time 6.502e-06/1.66, allocations: 0 / 0.5692 GB, free: 93.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=255): time 0.09591/1.756, allocations: 25.69 MB / 0.5943 GB, free: 90.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.392e-05/1.756, allocations: 209.5 kB / 0.5945 GB, free: 89.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006975/1.763, allocations: 3.31 MB / 0.5978 GB, free: 88.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008378/1.764, allocations: 25.7 kB / 0.5978 GB, free: 88.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002716/1.767, allocations: 3.466 MB / 0.6012 GB, free: 85.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001679/1.768, allocations: 0.9278 MB / 0.6021 GB, free: 85.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009474/1.769, allocations: 0 / 0.6021 GB, free: 85.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004663/1.77, allocations: 0.6017 MB / 0.6027 GB, free: 84.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00716/1.777, allocations: 3.309 MB / 0.6059 GB, free: 83.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009921/1.787, allocations: 7.259 MB / 0.613 GB, free: 77.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.797, allocations: 4.827 MB / 0.6177 GB, free: 75.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/1.798, allocations: 41.81 kB / 0.6177 GB, free: 75.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=906) (initialization): time 0.03611/1.834, allocations: 11.69 MB / 0.6292 GB, free: 69.99 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/1.834, allocations: 64 kB / 0.6292 GB, free: 69.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000264/1.834, allocations: 140.7 kB / 0.6293 GB, free: 69.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01484/1.849, allocations: 2.261 MB / 0.6316 GB, free: 68.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01135/1.86, allocations: 1.682 MB / 0.6332 GB, free: 66.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02641/1.887, allocations: 14.26 MB / 0.6471 GB, free: 54.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009216/1.896, allocations: 327.8 kB / 0.6474 GB, free: 53.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001938/1.898, allocations: 456.4 kB / 0.6479 GB, free: 53.37 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 641 * Number of states: 0 () * Number of discrete variables: 33 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.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],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.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 (833): * Single equations (assignments): 827 * 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,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002387/1.901, allocations: 465.7 kB / 0.6483 GB, free: 52.91 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02144/1.922, allocations: 7.379 MB / 0.6555 GB, free: 46.99 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001635/1.924, allocations: 371.2 kB / 0.6559 GB, free: 46.62 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02238/1.946, allocations: 7.367 MB / 0.6631 GB, free: 40.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.267e-05/1.946, allocations: 28.62 kB / 0.6631 GB, free: 40.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-05/1.946, allocations: 8 kB / 0.6631 GB, free: 40.85 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.426e-05/1.946, allocations: 18.22 kB / 0.6631 GB, free: 40.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04001/1.986, allocations: 13.94 MB / 0.6767 GB, free: 27.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.642e-05/1.986, allocations: 3.938 kB / 0.6767 GB, free: 27.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004967/1.991, allocations: 442.1 kB / 0.6772 GB, free: 27.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01017/2.002, allocations: 2.024 MB / 0.6791 GB, free: 25.47 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008102/2.002, allocations: 11.94 kB / 0.6792 GB, free: 25.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02513/2.028, allocations: 13.11 MB / 0.692 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/2.028, allocations: 0 / 0.692 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02993/2.058, allocations: 11.7 MB / 0.7034 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003859/2.061, allocations: 0.9489 MB / 0.7043 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001656/2.063, allocations: 4 kB / 0.7043 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005109/2.068, allocations: 171.7 kB / 0.7045 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001321/2.07, allocations: 153.8 kB / 0.7046 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004523/2.07, allocations: 69.08 kB / 0.7047 GB, free: 14.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005974/2.076, allocations: 2.221 MB / 0.7069 GB, free: 12.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.152e-06/2.076, allocations: 0 / 0.7069 GB, free: 12.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009577/2.086, allocations: 1.21 MB / 0.708 GB, free: 11.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.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 (198): * Single equations (assignments): 192 * 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,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3369/2.423, allocations: 12.51 MB / 0.7203 GB, free: 97.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01848/2.441, allocations: 8.165 MB / 0.7282 GB, free: 97.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/2.441, allocations: 0 / 0.7282 GB, free: 97.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008946/2.45, allocations: 3.603 MB / 0.7318 GB, free: 96.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003861/2.454, allocations: 366.3 kB / 0.7321 GB, free: 96.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03763/2.492, allocations: 12.06 MB / 0.7439 GB, free: 93.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009179/2.501, allocations: 3.841 MB / 0.7476 GB, free: 92.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006917/2.508, allocations: 2.324 MB / 0.7499 GB, free: 90.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/2.508, allocations: 0 / 0.7499 GB, free: 90.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.045/7.553, allocations: 159.7 MB / 0.9059 GB, free: 109.8 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat