Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.656/1.656, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.214e-05/3.226e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2521, allocations: 38.77 MB / 263.9 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1524/0.4045, allocations: 88.92 MB / 352.8 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.4049, allocations: 83.95 kB / 352.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6056/1.01, allocations: 97.08 MB / 449.9 MB, free: 23.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.011, allocations: 0 / 449.9 MB, free: 23.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000262/1.011, allocations: 92 kB / 450 MB, free: 23.5 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1732 * Number of variables: 1732 Notification: Performance of Generate backend data structure: time 0.01728/1.028, allocations: 4.673 MB / 454.7 MB, free: 18.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/1.028, allocations: 8.031 kB / 454.7 MB, free: 18.75 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003484/1.032, allocations: 0.8696 MB / 455.6 MB, free: 17.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0327/1.064, allocations: 4.487 MB / 460.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01803/1.082, allocations: 5.046 MB / 465.1 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004061/1.083, allocations: 361.4 kB / 465.5 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/1.085, allocations: 479.8 kB / 465.9 MB, free: 7.438 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03544/1.121, allocations: 11.89 MB / 477.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003024/1.121, allocations: 59.47 kB / 477.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00227/1.124, allocations: 227.9 kB / 478.1 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003033/1.127, allocations: 1.203 MB / 479.3 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03314/1.16, allocations: 9.627 MB / 488.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3805/1.54, allocations: 52.83 MB / 0.5291 GB, free: 29.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02574/1.566, allocations: 5.171 MB / 0.5341 GB, free: 28.51 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005475/1.572, allocations: 2.61 MB / 0.5367 GB, free: 28.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02012/1.592, allocations: 8.044 MB / 0.5445 GB, free: 26.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.095e-05/1.592, allocations: 55.75 kB / 0.5446 GB, free: 26.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=216): time 5.781e-06/1.592, allocations: 0 / 0.5446 GB, free: 26.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=237): time 0.07172/1.664, allocations: 16.68 MB / 0.5609 GB, free: 23.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/1.664, allocations: 178.1 kB / 0.561 GB, free: 23.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009635/1.674, allocations: 4.16 MB / 0.5651 GB, free: 21.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005714/1.674, allocations: 59.3 kB / 0.5651 GB, free: 21.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002807/1.677, allocations: 3.291 MB / 0.5684 GB, free: 19.06 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001401/1.678, allocations: 0.8841 MB / 0.5692 GB, free: 18.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008473/1.679, allocations: 135 kB / 0.5694 GB, free: 18.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004849/1.68, allocations: 0.5924 MB / 0.5699 GB, free: 17.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006157/1.686, allocations: 2.448 MB / 0.5723 GB, free: 17.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008662/1.695, allocations: 6.279 MB / 0.5785 GB, free: 11.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008479/1.703, allocations: 3.922 MB / 0.5823 GB, free: 9.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000135/1.703, allocations: 40.97 kB / 0.5823 GB, free: 9.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02394/1.727, allocations: 8.82 MB / 0.5909 GB, free: 5.723 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/1.727, allocations: 64 kB / 0.591 GB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000202/1.728, allocations: 143.8 kB / 0.5911 GB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003636/1.731, allocations: 0.9131 MB / 0.592 GB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01016/1.742, allocations: 1.601 MB / 0.5936 GB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/1.753, allocations: 5.785 MB / 0.5992 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007765/1.761, allocations: 380 kB / 0.5996 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00168/1.762, allocations: 398.3 kB / 0.6 GB, free: 13.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 812 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002437/1.765, allocations: 0.6007 MB / 0.6006 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/1.766, allocations: 422.4 kB / 0.601 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/1.78, allocations: 4.235 MB / 0.6051 GB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.07e-05/1.78, allocations: 29.08 kB / 0.6051 GB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/1.78, allocations: 7.234 kB / 0.6051 GB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.095e-05/1.78, allocations: 13.05 kB / 0.6052 GB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03304/1.813, allocations: 10.32 MB / 0.6152 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.711e-05/1.813, allocations: 4 kB / 0.6152 GB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004661/1.818, allocations: 472.6 kB / 0.6157 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005536/1.823, allocations: 0.838 MB / 0.6165 GB, free: 0 / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008367/1.824, allocations: 62.2 kB / 0.6166 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/1.836, allocations: 5.326 MB / 0.6218 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.198e-05/1.836, allocations: 7.938 kB / 0.6218 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02007/1.856, allocations: 8.23 MB / 0.6298 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003237/1.859, allocations: 0.8185 MB / 0.6306 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001311/1.861, allocations: 49.28 kB / 0.6307 GB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003911/1.865, allocations: 146.6 kB / 0.6308 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007243/1.866, allocations: 145.8 kB / 0.6309 GB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002851/1.866, allocations: 64 kB / 0.631 GB, free: 2.555 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008668/1.874, allocations: 2.991 MB / 0.6339 GB, free: 0 / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.875, allocations: 336 / 0.6339 GB, free: 0 / 378.7 MB Notification: Performance of remove unused functions: time 0.2556/2.13, allocations: 1.175 MB / 0.6351 GB, free: 90.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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): 194 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01856/2.149, allocations: 10.05 MB / 0.6449 GB, free: 87.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0134/2.162, allocations: 5.839 MB / 0.6506 GB, free: 87.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/2.162, allocations: 0 / 0.6506 GB, free: 87.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005721/2.168, allocations: 2.205 MB / 0.6527 GB, free: 87.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003935/2.172, allocations: 470.1 kB / 0.6532 GB, free: 87.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03438/2.206, allocations: 11.34 MB / 0.6643 GB, free: 85.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007999/2.214, allocations: 3.759 MB / 0.6679 GB, free: 84.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005691/2.22, allocations: 2.266 MB / 0.6701 GB, free: 83.29 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/2.22, allocations: 3.406 kB / 0.6702 GB, free: 83.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.668/6.888, allocations: 113.8 MB / 0.7813 GB, free: 80.89 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat