Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.139e-05/4.156e-05, allocations: 4 kB / 292.2 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1131, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4677/0.5808, allocations: 100.7 MB / 443.3 MB, free: 9.879 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003338/0.5812, allocations: 87.58 kB / 443.4 MB, free: 9.836 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.417/0.9983, allocations: 92.48 MB / 0.5233 GB, free: 1.031 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.9983, allocations: 0 / 0.5233 GB, free: 1.031 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003885/0.9988, allocations: 88 kB / 0.5234 GB, free: 0.9453 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.3257/1.324, allocations: 4.421 MB / 0.5277 GB, free: 96.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/1.325, allocations: 10.25 kB / 0.5277 GB, free: 96.55 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004373/1.329, allocations: 0.806 MB / 0.5285 GB, free: 96.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0381/1.367, allocations: 4.44 MB / 0.5328 GB, free: 96.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02141/1.389, allocations: 4.752 MB / 0.5375 GB, free: 95.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006775/1.389, allocations: 332 kB / 0.5378 GB, free: 95.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003076/1.392, allocations: 448.2 kB / 0.5382 GB, free: 95.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03667/1.429, allocations: 11.16 MB / 0.5491 GB, free: 93.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003629/1.43, allocations: 63.52 kB / 0.5492 GB, free: 93.08 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002537/1.432, allocations: 215.8 kB / 0.5494 GB, free: 93.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002564/1.435, allocations: 1.095 MB / 0.5505 GB, free: 93.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02876/1.463, allocations: 8.946 MB / 0.5592 GB, free: 93.05 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07727/1.541, allocations: 50.38 MB / 0.6084 GB, free: 57.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02025/1.561, allocations: 4.738 MB / 0.613 GB, free: 55.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004662/1.566, allocations: 2.3 MB / 0.6153 GB, free: 54.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01863/1.585, allocations: 7.267 MB / 0.6224 GB, free: 50.78 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.741e-05/1.585, allocations: 54.5 kB / 0.6224 GB, free: 50.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 5.972e-06/1.585, allocations: 0 / 0.6224 GB, free: 50.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=198): time 0.07196/1.657, allocations: 15.23 MB / 0.6373 GB, free: 39.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.405e-05/1.657, allocations: 186.3 kB / 0.6375 GB, free: 39.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/1.667, allocations: 4.039 MB / 0.6414 GB, free: 36.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005458/1.668, allocations: 57.7 kB / 0.6415 GB, free: 35.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003117/1.671, allocations: 3.248 MB / 0.6447 GB, free: 33.07 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001261/1.672, allocations: 0.7584 MB / 0.6454 GB, free: 32.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008929/1.673, allocations: 124 kB / 0.6455 GB, free: 32.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005134/1.674, allocations: 0.5661 MB / 0.6461 GB, free: 31.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005682/1.679, allocations: 2.161 MB / 0.6482 GB, free: 29.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008043/1.687, allocations: 5.847 MB / 0.6539 GB, free: 22.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008451/1.696, allocations: 3.551 MB / 0.6573 GB, free: 19.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001549/1.696, allocations: 36 kB / 0.6574 GB, free: 19.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=804) (initialization): time 0.02405/1.72, allocations: 8.228 MB / 0.6654 GB, free: 12.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/1.72, allocations: 64 kB / 0.6655 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/1.72, allocations: 132 kB / 0.6656 GB, free: 12.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003787/1.724, allocations: 0.919 MB / 0.6665 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009394/1.734, allocations: 1.471 MB / 0.6679 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/1.745, allocations: 5.769 MB / 0.6736 GB, free: 4.652 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007279/1.752, allocations: 351.4 kB / 0.6739 GB, free: 4.309 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001514/1.754, allocations: 376 kB / 0.6743 GB, free: 3.941 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 49 (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.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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.groundColor[3],world.groundColor[2],world.groundColor[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 (756): * Single equations (assignments): 752 * 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.002277/1.756, allocations: 0.5878 MB / 0.6748 GB, free: 3.348 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.757, allocations: 390.9 kB / 0.6752 GB, free: 2.961 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/1.769, allocations: 3.561 MB / 0.6787 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-05/1.769, allocations: 24 kB / 0.6787 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/1.769, allocations: 4 kB / 0.6787 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-05/1.769, allocations: 7.969 kB / 0.6787 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0324/1.801, allocations: 9.091 MB / 0.6876 GB, free: 6.164 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.993e-05/1.801, allocations: 8 kB / 0.6876 GB, free: 6.156 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003934/1.805, allocations: 395.1 kB / 0.688 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003664/1.809, allocations: 0.7195 MB / 0.6887 GB, free: 5.055 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005385/1.81, allocations: 43.98 kB / 0.6887 GB, free: 5.012 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.359/2.169, allocations: 5.295 MB / 0.6939 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.745e-05/2.169, allocations: 9.906 kB / 0.6939 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01839/2.187, allocations: 7.139 MB / 0.7009 GB, free: 98.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/2.189, allocations: 478 kB / 0.7013 GB, free: 98.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001803/2.191, allocations: 37.84 kB / 0.7014 GB, free: 98.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00405/2.195, allocations: 119.7 kB / 0.7015 GB, free: 98.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007856/2.196, allocations: 125 kB / 0.7016 GB, free: 98.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002633/2.196, allocations: 57.89 kB / 0.7017 GB, free: 98.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009944/2.206, allocations: 2.885 MB / 0.7045 GB, free: 98.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.463e-06/2.206, allocations: 0 / 0.7045 GB, free: 98.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009138/2.215, allocations: 1.059 MB / 0.7055 GB, free: 98.39 MB / 458.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 (157): * Single equations (assignments): 153 * 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.01872/2.234, allocations: 8.978 MB / 0.7143 GB, free: 95.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01219/2.246, allocations: 5.14 MB / 0.7193 GB, free: 95.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.246, allocations: 1.656 kB / 0.7193 GB, free: 95.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005303/2.251, allocations: 1.875 MB / 0.7211 GB, free: 94.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004598/2.256, allocations: 476.8 kB / 0.7216 GB, free: 94.96 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03273/2.289, allocations: 9.889 MB / 0.7312 GB, free: 93.13 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008589/2.298, allocations: 3.547 MB / 0.7347 GB, free: 92.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0101/2.308, allocations: 2.041 MB / 0.7367 GB, free: 92.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005694/2.313, allocations: 2.1 MB / 0.7388 GB, free: 90.75 MB / 458.7 MB Notification: Performance of SimCode: time 4.939e-06/2.314, allocations: 0 / 0.7388 GB, free: 90.75 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1925/2.506, allocations: 84.23 MB / 0.821 GB, free: 37.87 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/2.506, allocations: 185.4 kB / 0.8212 GB, free: 37.65 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.711/8.217, allocations: 4 kB / 0.8212 GB, free: 37.64 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat