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.764/1.764, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.811e-05/2.825e-05, allocations: 8 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2511, allocations: 38.76 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1523/0.4034, allocations: 88.24 MB / 346.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/0.4038, allocations: 83.94 kB / 346.7 MB, free: 5.457 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5864/0.9902, allocations: 94.91 MB / 441.6 MB, free: 34.19 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.9902, allocations: 0 / 441.6 MB, free: 34.19 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002244/0.9905, allocations: 88 kB / 441.7 MB, free: 34.11 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.01606/1.007, allocations: 4.677 MB / 446.3 MB, free: 29.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/1.007, allocations: 8.031 kB / 446.3 MB, free: 29.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03226/1.039, allocations: 4.494 MB / 450.8 MB, free: 24.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01723/1.056, allocations: 5.039 MB / 455.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/1.056, allocations: 156 kB / 456 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001415/1.058, allocations: 283.8 kB / 456.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01492/1.073, allocations: 6.973 MB / 463.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02201/1.095, allocations: 10.58 MB / 473.9 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002002/1.095, allocations: 59.41 kB / 473.9 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008515/1.096, allocations: 35.98 kB / 473.9 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002466/1.098, allocations: 1.195 MB / 475.1 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3293/1.428, allocations: 50.49 MB / 0.5133 GB, free: 43.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006661/1.434, allocations: 4.049 MB / 0.5173 GB, free: 42.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004208/1.439, allocations: 2.396 MB / 0.5196 GB, free: 42.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001306/1.44, allocations: 0.6924 MB / 0.5203 GB, free: 41.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/1.44, allocations: 62.84 kB / 0.5203 GB, free: 41.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=207): time 5.65e-06/1.44, allocations: 0 / 0.5203 GB, free: 41.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=229): time 0.05271/1.493, allocations: 17.06 MB / 0.537 GB, free: 38.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/1.493, allocations: 180.3 kB / 0.5372 GB, free: 38.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006845/1.5, allocations: 3.363 MB / 0.5405 GB, free: 38.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005748/1.5, allocations: 25.7 kB / 0.5405 GB, free: 38.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002739/1.503, allocations: 3.474 MB / 0.5439 GB, free: 35.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001294/1.504, allocations: 0.8446 MB / 0.5447 GB, free: 35.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007365/1.505, allocations: 0 / 0.5447 GB, free: 35.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004178/1.506, allocations: 0.6015 MB / 0.5453 GB, free: 34.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005453/1.511, allocations: 2.404 MB / 0.5476 GB, free: 33.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008065/1.519, allocations: 6.409 MB / 0.5539 GB, free: 27.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008202/1.527, allocations: 3.894 MB / 0.5577 GB, free: 26.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001302/1.528, allocations: 38.09 kB / 0.5577 GB, free: 26.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=901) (initialization): time 0.0231/1.551, allocations: 8.59 MB / 0.5661 GB, free: 24.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/1.551, allocations: 67.78 kB / 0.5662 GB, free: 24.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001882/1.551, allocations: 149.8 kB / 0.5663 GB, free: 24.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003586/1.555, allocations: 0.9334 MB / 0.5672 GB, free: 23.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01047/1.565, allocations: 1.661 MB / 0.5689 GB, free: 22.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/1.576, allocations: 5.497 MB / 0.5742 GB, free: 17.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007417/1.583, allocations: 255 kB / 0.5745 GB, free: 16.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00156/1.585, allocations: 414.8 kB / 0.5749 GB, free: 16.6 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * 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 (853): * Single equations (assignments): 849 * 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%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001482/1.586, allocations: 476.2 kB / 0.5753 GB, free: 16.13 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01036/1.597, allocations: 4.169 MB / 0.5794 GB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/1.598, allocations: 359.3 kB / 0.5797 GB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/1.608, allocations: 3.951 MB / 0.5836 GB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.574e-05/1.609, allocations: 30.7 kB / 0.5836 GB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/1.609, allocations: 10.3 kB / 0.5836 GB, free: 8.988 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-05/1.609, allocations: 11.27 kB / 0.5836 GB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/1.632, allocations: 9.08 MB / 0.5925 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.901e-05/1.633, allocations: 0 / 0.5925 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004058/1.637, allocations: 439.6 kB / 0.5929 GB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003081/1.64, allocations: 0.7083 MB / 0.5936 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002351/1.64, allocations: 12 kB / 0.5936 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/1.651, allocations: 5.001 MB / 0.5985 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/1.651, allocations: 7.5 kB / 0.5985 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/1.669, allocations: 7.323 MB / 0.6057 GB, free: 5.832 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002816/1.672, allocations: 0.7371 MB / 0.6064 GB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/1.673, allocations: 7.953 kB / 0.6064 GB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.677, allocations: 106.3 kB / 0.6065 GB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005925/1.677, allocations: 134.6 kB / 0.6066 GB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000261/1.677, allocations: 63.75 kB / 0.6067 GB, free: 4.922 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006159/1.684, allocations: 2.248 MB / 0.6089 GB, free: 2.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.292e-06/1.684, allocations: 0 / 0.6089 GB, free: 2.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008743/1.692, allocations: 0.9771 MB / 0.6098 GB, free: 1.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (190): * Single equations (assignments): 186 * 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.02321/1.716, allocations: 8.703 MB / 0.6183 GB, free: 10.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01536/1.731, allocations: 5.916 MB / 0.6241 GB, free: 5.648 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/1.731, allocations: 0 / 0.6241 GB, free: 5.648 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005942/1.737, allocations: 2.148 MB / 0.6262 GB, free: 3.723 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003438/1.741, allocations: 352.8 kB / 0.6266 GB, free: 3.418 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03566/1.776, allocations: 10.92 MB / 0.6372 GB, free: 8.973 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008638/1.785, allocations: 3.765 MB / 0.6409 GB, free: 5.199 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006208/1.791, allocations: 2.257 MB / 0.6431 GB, free: 2.941 MB / 394.7 MB Notification: Performance of SimCode: time 1.403e-06/1.791, allocations: 4 kB / 0.6431 GB, free: 2.938 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.342/6.133, allocations: 110.8 MB / 0.7513 GB, free: 45.85 MB / 394.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