Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.121/2.121, allocations: 209.4 MB / 216.9 MB, free: 6.727 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.307e-05/2.328e-05, allocations: 0 / 267.6 MB, free: 5.398 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 48.7 MB / 316.3 MB, free: 4.602 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.549, allocations: 94.06 MB / 410.4 MB, free: 14.5 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.5493, allocations: 73.97 kB / 410.4 MB, free: 14.46 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.8168/1.366, allocations: 129.8 MB / 0.5275 GB, free: 82.25 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.994e-06/1.366, allocations: 3.938 kB / 0.5275 GB, free: 82.24 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0004154/1.367, allocations: 131.8 kB / 0.5277 GB, free: 82.24 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2406 * Number of variables: 2406 Notification: Performance of Generate backend data structure: time 0.0287/1.395, allocations: 6.425 MB / 0.5339 GB, free: 79.67 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/1.395, allocations: 7.875 kB / 0.5339 GB, free: 79.67 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05229/1.448, allocations: 7.132 MB / 0.5409 GB, free: 78.63 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02528/1.473, allocations: 7.226 MB / 0.548 GB, free: 75.92 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004621/1.474, allocations: 221.1 kB / 0.5482 GB, free: 75.92 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003832/1.477, allocations: 395.3 kB / 0.5486 GB, free: 75.91 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02401/1.501, allocations: 9.516 MB / 0.5579 GB, free: 71.51 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03741/1.539, allocations: 14.38 MB / 0.5719 GB, free: 55.79 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004456/1.539, allocations: 83.28 kB / 0.572 GB, free: 55.71 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003348/1.543, allocations: 40 kB / 0.572 GB, free: 55.67 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003331/1.546, allocations: 1.56 MB / 0.5735 GB, free: 54.12 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1064/1.653, allocations: 67.13 MB / 0.6391 GB, free: 1.68 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.322/1.975, allocations: 5.584 MB / 0.6445 GB, free: 90.7 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007895/1.983, allocations: 3.8 MB / 0.6483 GB, free: 90.66 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003784/1.983, allocations: 57.56 kB / 0.6483 GB, free: 90.66 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.987e-05/1.983, allocations: 67.14 kB / 0.6484 GB, free: 90.62 MB / 426.8 MB Notification: Performance of pre-optimization done (n=290): time 7.514e-06/1.983, allocations: 0 / 0.6484 GB, free: 90.62 MB / 426.8 MB Notification: Performance of matching and sorting (n=334): time 0.1082/2.091, allocations: 29.33 MB / 0.677 GB, free: 84.8 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/2.092, allocations: 216.3 kB / 0.6772 GB, free: 84.57 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/2.102, allocations: 4.249 MB / 0.6814 GB, free: 83.04 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001005/2.103, allocations: 25.7 kB / 0.6814 GB, free: 83.01 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003713/2.107, allocations: 4.593 MB / 0.6859 GB, free: 79.45 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002153/2.109, allocations: 1.206 MB / 0.6871 GB, free: 78.55 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001392/2.11, allocations: 3.969 kB / 0.6871 GB, free: 78.55 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0007926/2.111, allocations: 0.6881 MB / 0.6877 GB, free: 78.07 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008716/2.12, allocations: 3.622 MB / 0.6913 GB, free: 76.76 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/2.132, allocations: 8.625 MB / 0.6997 GB, free: 68.71 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/2.145, allocations: 5.518 MB / 0.7051 GB, free: 66.99 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002263/2.145, allocations: 50.56 kB / 0.7051 GB, free: 66.99 MB / 426.8 MB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.0361/2.181, allocations: 12.53 MB / 0.7174 GB, free: 63.12 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/2.181, allocations: 87.78 kB / 0.7174 GB, free: 63.12 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003235/2.182, allocations: 175.9 kB / 0.7176 GB, free: 63.12 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006983/2.189, allocations: 1.696 MB / 0.7193 GB, free: 62.12 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01471/2.204, allocations: 2.173 MB / 0.7214 GB, free: 60.29 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02135/2.225, allocations: 10.78 MB / 0.7319 GB, free: 50.69 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01095/2.236, allocations: 369.4 kB / 0.7323 GB, free: 50.42 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002463/2.238, allocations: 0.5272 MB / 0.7328 GB, free: 49.92 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 812 * Number of states: 0 () * Number of discrete variables: 51 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1091): * Single equations (assignments): 1086 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004075/2.243, allocations: 0.5542 MB / 0.7333 GB, free: 49.36 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02055/2.263, allocations: 7.092 MB / 0.7402 GB, free: 43.39 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/2.265, allocations: 485.8 kB / 0.7407 GB, free: 42.91 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02171/2.287, allocations: 7.143 MB / 0.7477 GB, free: 37.11 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.246e-05/2.287, allocations: 38.52 kB / 0.7477 GB, free: 37.07 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.978e-05/2.287, allocations: 8 kB / 0.7477 GB, free: 37.07 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001012/2.287, allocations: 15.75 kB / 0.7477 GB, free: 37.07 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04476/2.332, allocations: 15 MB / 0.7624 GB, free: 24.89 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.521e-05/2.332, allocations: 2.812 kB / 0.7624 GB, free: 24.89 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006881/2.339, allocations: 0.652 MB / 0.763 GB, free: 24.39 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006399/2.346, allocations: 1.409 MB / 0.7644 GB, free: 23.4 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001044/2.347, allocations: 14.81 kB / 0.7644 GB, free: 23.39 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01882/2.366, allocations: 9.862 MB / 0.7741 GB, free: 14.54 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/2.366, allocations: 11.89 kB / 0.7741 GB, free: 14.53 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02863/2.394, allocations: 12.34 MB / 0.7861 GB, free: 2.18 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004837/2.399, allocations: 1.077 MB / 0.7872 GB, free: 1.078 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002687/2.402, allocations: 11.95 kB / 0.7872 GB, free: 1.066 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006239/2.408, allocations: 227.6 kB / 0.7874 GB, free: 0.8438 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001549/2.41, allocations: 197.8 kB / 0.7876 GB, free: 0.6484 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000615/2.41, allocations: 91.98 kB / 0.7877 GB, free: 0.5586 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.008685/2.419, allocations: 2.849 MB / 0.7905 GB, free: 13.72 MB / 442.8 MB Notification: Performance of sort global known variables: time 8.31e-07/2.419, allocations: 0 / 0.7905 GB, free: 13.72 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01327/2.433, allocations: 1.44 MB / 0.7919 GB, free: 12.29 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (280): * Single equations (assignments): 275 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3513/2.784, allocations: 13.73 MB / 0.8053 GB, free: 92.57 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02463/2.809, allocations: 9.082 MB / 0.8141 GB, free: 92.29 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/2.809, allocations: 1.875 kB / 0.8141 GB, free: 92.29 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01/2.819, allocations: 3.639 MB / 0.8177 GB, free: 92.03 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/2.824, allocations: 497.9 kB / 0.8182 GB, free: 92.01 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05117/2.875, allocations: 15.88 MB / 0.8337 GB, free: 88.28 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01165/2.887, allocations: 4.996 MB / 0.8386 GB, free: 86.63 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008725/2.895, allocations: 3.176 MB / 0.8417 GB, free: 84.06 MB / 442.8 MB Notification: Performance of SimCode: time 1.152e-06/2.896, allocations: 0 / 0.8417 GB, free: 84.06 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.569/8.465, allocations: 182.4 MB / 1.02 GB, free: 101.1 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat does not exist to compare? outputFormat=mat