Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.899/1.899, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.94e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1294, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4345/0.564, allocations: 97.17 MB / 419 MB, free: 8.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.5643, allocations: 78.77 kB / 419.1 MB, free: 8.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9249/1.489, allocations: 148.5 MB / 0.5543 GB, free: 87.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.489, allocations: 0 / 0.5543 GB, free: 87.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004772/1.49, allocations: 155.2 kB / 0.5545 GB, free: 87.68 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: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.03145/1.521, allocations: 7.377 MB / 0.5617 GB, free: 84.13 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/1.521, allocations: 11.06 kB / 0.5617 GB, free: 84.13 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006544/1.528, allocations: 1.371 MB / 0.563 GB, free: 83.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05491/1.583, allocations: 7.315 MB / 0.5702 GB, free: 81.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02819/1.611, allocations: 7.879 MB / 0.5779 GB, free: 77.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007396/1.612, allocations: 0.5787 MB / 0.5784 GB, free: 77.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004542/1.616, allocations: 0.7648 MB / 0.5792 GB, free: 77.13 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05974/1.676, allocations: 18.74 MB / 0.5975 GB, free: 57.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004906/1.677, allocations: 99.11 kB / 0.5976 GB, free: 57.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003753/1.681, allocations: 373.5 kB / 0.5979 GB, free: 56.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004231/1.685, allocations: 1.828 MB / 0.5997 GB, free: 54.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04855/1.733, allocations: 15.06 MB / 0.6144 GB, free: 39.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5206/2.254, allocations: 81.68 MB / 0.6942 GB, free: 27.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04042/2.295, allocations: 8.622 MB / 0.7026 GB, free: 27.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009418/2.304, allocations: 4.617 MB / 0.7071 GB, free: 27.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0314/2.336, allocations: 11.7 MB / 0.7185 GB, free: 25.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.059e-05/2.336, allocations: 73.66 kB / 0.7186 GB, free: 25.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=347): time 8.646e-06/2.336, allocations: 0 / 0.7186 GB, free: 25.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=389): time 0.1468/2.483, allocations: 31.49 MB / 0.7494 GB, free: 14.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/2.483, allocations: 245.1 kB / 0.7496 GB, free: 14.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0184/2.501, allocations: 6.496 MB / 0.7559 GB, free: 12.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001209/2.502, allocations: 79.23 kB / 0.756 GB, free: 12.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005178/2.508, allocations: 5.013 MB / 0.7609 GB, free: 8.027 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002723/2.51, allocations: 1.444 MB / 0.7623 GB, free: 6.961 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002091/2.512, allocations: 200 kB / 0.7625 GB, free: 6.809 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001197/2.514, allocations: 0.7304 MB / 0.7632 GB, free: 6.316 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01139/2.525, allocations: 4.018 MB / 0.7672 GB, free: 4.922 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.017/2.542, allocations: 9.532 MB / 0.7765 GB, free: 12.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0171/2.559, allocations: 6.156 MB / 0.7825 GB, free: 7.617 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002596/2.56, allocations: 56 kB / 0.7825 GB, free: 7.562 MB / 442.7 MB Notification: Performance of matching and sorting (n=1297) (initialization): time 0.04772/2.607, allocations: 14.16 MB / 0.7964 GB, free: 11.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00019/2.608, allocations: 88 kB / 0.7964 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003729/2.608, allocations: 196 kB / 0.7966 GB, free: 11.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007907/2.616, allocations: 1.736 MB / 0.7983 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01803/2.634, allocations: 2.421 MB / 0.8007 GB, free: 8.258 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02667/2.661, allocations: 11.48 MB / 0.8119 GB, free: 14.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01345/2.674, allocations: 0.5698 MB / 0.8124 GB, free: 13.67 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002896/2.677, allocations: 0.5824 MB / 0.813 GB, free: 13.11 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 892 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1225): * Single equations (assignments): 1220 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004625/2.682, allocations: 0.8505 MB / 0.8138 GB, free: 12.26 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002404/2.684, allocations: 0.647 MB / 0.8145 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03254/2.717, allocations: 8.13 MB / 0.8224 GB, free: 4.484 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-05/2.717, allocations: 40 kB / 0.8225 GB, free: 4.445 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.894e-05/2.717, allocations: 8 kB / 0.8225 GB, free: 4.438 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000114/2.717, allocations: 26.36 kB / 0.8225 GB, free: 4.418 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3971/3.114, allocations: 18.17 MB / 0.8402 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-05/3.114, allocations: 9.25 kB / 0.8402 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00823/3.123, allocations: 0.771 MB / 0.841 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006978/3.13, allocations: 1.419 MB / 0.8424 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001167/3.131, allocations: 82.03 kB / 0.8425 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/3.153, allocations: 10.6 MB / 0.8528 GB, free: 113.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/3.153, allocations: 13.28 kB / 0.8528 GB, free: 113.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03346/3.186, allocations: 14.36 MB / 0.8668 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005676/3.192, allocations: 1.33 MB / 0.8681 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003047/3.195, allocations: 73.55 kB / 0.8682 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007475/3.202, allocations: 255.4 kB / 0.8685 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001572/3.204, allocations: 239.6 kB / 0.8687 GB, free: 107.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005856/3.205, allocations: 108.9 kB / 0.8688 GB, free: 107.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01326/3.218, allocations: 4.649 MB / 0.8733 GB, free: 106.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.322e-06/3.218, allocations: 0 / 0.8733 GB, free: 106.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01356/3.232, allocations: 1.873 MB / 0.8752 GB, free: 106.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (329): * Single equations (assignments): 324 * 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.03429/3.266, allocations: 16.1 MB / 0.8909 GB, free: 97.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02217/3.288, allocations: 9.628 MB / 0.9003 GB, free: 94.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/3.288, allocations: 0 / 0.9003 GB, free: 94.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01048/3.299, allocations: 3.923 MB / 0.9041 GB, free: 93.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007462/3.306, allocations: 0.7811 MB / 0.9049 GB, free: 92.87 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05605/3.362, allocations: 18.51 MB / 0.923 GB, free: 77.68 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01218/3.375, allocations: 5.634 MB / 0.9285 GB, free: 73.57 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009147/3.384, allocations: 3.753 MB / 0.9321 GB, free: 70.08 MB / 474.7 MB Notification: Performance of SimCode: time 1.813e-06/3.384, allocations: 1.969 kB / 0.9321 GB, free: 70.08 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.141/9.525, allocations: 212.4 MB / 1.14 GB, free: 16.59 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat