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.736/1.736, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.595e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2527, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.4086, allocations: 88.9 MB / 352.7 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/0.409, allocations: 87.94 kB / 352.8 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.571/0.9799, allocations: 97.09 MB / 449.9 MB, free: 23.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.98, allocations: 0 / 449.9 MB, free: 23.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002274/0.9802, allocations: 95.98 kB / 450 MB, free: 23.71 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.01627/0.9965, allocations: 4.666 MB / 454.7 MB, free: 18.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.9966, allocations: 8.031 kB / 454.7 MB, free: 18.97 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002529/0.9991, allocations: 0.8773 MB / 455.6 MB, free: 18.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03247/1.032, allocations: 4.487 MB / 460 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0177/1.049, allocations: 5.046 MB / 465.1 MB, free: 8.473 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/1.05, allocations: 357.4 kB / 465.4 MB, free: 8.121 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001651/1.051, allocations: 479.8 kB / 465.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03173/1.083, allocations: 11.95 MB / 477.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002203/1.083, allocations: 59.41 kB / 477.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/1.084, allocations: 227.9 kB / 478.1 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002708/1.087, allocations: 1.203 MB / 479.3 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03239/1.12, allocations: 9.824 MB / 489.2 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3241/1.444, allocations: 52.83 MB / 0.5293 GB, free: 28.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02056/1.464, allocations: 5.187 MB / 0.5343 GB, free: 28.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004876/1.469, allocations: 2.616 MB / 0.5369 GB, free: 28.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01794/1.487, allocations: 8.051 MB / 0.5448 GB, free: 26.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/1.487, allocations: 54.75 kB / 0.5448 GB, free: 26.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=216): time 7.554e-06/1.487, allocations: 0 / 0.5448 GB, free: 26.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=237): time 0.06719/1.555, allocations: 16.67 MB / 0.5611 GB, free: 23.15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.791e-05/1.555, allocations: 177.8 kB / 0.5613 GB, free: 22.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007965/1.563, allocations: 4.161 MB / 0.5653 GB, free: 21.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005563/1.563, allocations: 56.27 kB / 0.5654 GB, free: 21.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00241/1.566, allocations: 3.297 MB / 0.5686 GB, free: 18.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001247/1.567, allocations: 0.8899 MB / 0.5695 GB, free: 18.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005451/1.567, allocations: 129.2 kB / 0.5696 GB, free: 18.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003643/1.568, allocations: 0.5956 MB / 0.5702 GB, free: 17.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005316/1.573, allocations: 2.445 MB / 0.5726 GB, free: 16.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00738/1.581, allocations: 6.315 MB / 0.5787 GB, free: 10.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008236/1.589, allocations: 3.921 MB / 0.5826 GB, free: 9.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.243e-05/1.589, allocations: 39.03 kB / 0.5826 GB, free: 9.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02254/1.612, allocations: 9.203 MB / 0.5916 GB, free: 5.348 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.3e-05/1.612, allocations: 65.5 kB / 0.5916 GB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001323/1.612, allocations: 136 kB / 0.5918 GB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003407/1.615, allocations: 0.9271 MB / 0.5927 GB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009874/1.625, allocations: 1.601 MB / 0.5942 GB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/1.636, allocations: 5.768 MB / 0.5999 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007468/1.644, allocations: 379.7 kB / 0.6002 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/1.645, allocations: 398.7 kB / 0.6006 GB, free: 13.19 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.001496/1.646, allocations: 0.6043 MB / 0.6012 GB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001094/1.647, allocations: 414.7 kB / 0.6016 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/1.66, allocations: 4.238 MB / 0.6057 GB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.978e-05/1.66, allocations: 27.95 kB / 0.6058 GB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/1.66, allocations: 7.141 kB / 0.6058 GB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.814e-05/1.66, allocations: 12.39 kB / 0.6058 GB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02924/1.689, allocations: 10.35 MB / 0.6159 GB, free: 200 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.201e-05/1.689, allocations: 4 kB / 0.6159 GB, free: 196 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004872/1.694, allocations: 0.4883 MB / 0.6164 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003309/1.697, allocations: 0.7199 MB / 0.6171 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002587/1.698, allocations: 47.95 kB / 0.6171 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/1.709, allocations: 5.303 MB / 0.6223 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-05/1.709, allocations: 11.94 kB / 0.6223 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01856/1.728, allocations: 8.236 MB / 0.6304 GB, free: 2.969 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003116/1.731, allocations: 0.8209 MB / 0.6312 GB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008091/1.732, allocations: 44 kB / 0.6312 GB, free: 2.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003148/1.735, allocations: 144.5 kB / 0.6313 GB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005191/1.736, allocations: 143.5 kB / 0.6315 GB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002723/1.736, allocations: 69.59 kB / 0.6315 GB, free: 1.902 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.2614/1.997, allocations: 3.005 MB / 0.6345 GB, free: 88.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.997, allocations: 3.969 kB / 0.6345 GB, free: 88.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01212/2.01, allocations: 1.145 MB / 0.6356 GB, free: 88.76 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.02454/2.034, allocations: 10.05 MB / 0.6454 GB, free: 85.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01805/2.052, allocations: 6.038 MB / 0.6513 GB, free: 85.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/2.052, allocations: 3.531 kB / 0.6513 GB, free: 85.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005737/2.058, allocations: 2.24 MB / 0.6535 GB, free: 85.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003509/2.062, allocations: 476.5 kB / 0.654 GB, free: 85.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0308/2.092, allocations: 11.35 MB / 0.665 GB, free: 83.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005756/2.098, allocations: 3.765 MB / 0.6687 GB, free: 82.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0049/2.103, allocations: 2.267 MB / 0.6709 GB, free: 81.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.485e-06/2.103, allocations: 0 / 0.6709 GB, free: 81.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.055/7.158, allocations: 114.9 MB / 0.7831 GB, free: 83 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