Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.903/1.903, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.982e-05/4.012e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.09959, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4325/0.5321, allocations: 94.6 MB / 416.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.5325, allocations: 78.77 kB / 416.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8426/1.375, allocations: 131.8 MB / 0.5355 GB, free: 88.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.115e-06/1.375, allocations: 0 / 0.5355 GB, free: 88.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004683/1.376, allocations: 131.6 kB / 0.5356 GB, free: 88.55 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02801/1.404, allocations: 6.656 MB / 0.5421 GB, free: 85.94 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.62e-05/1.404, allocations: 11.53 kB / 0.5421 GB, free: 85.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00582/1.41, allocations: 1.185 MB / 0.5433 GB, free: 85.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0536/1.463, allocations: 7.141 MB / 0.5502 GB, free: 85.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02663/1.49, allocations: 7.431 MB / 0.5575 GB, free: 84.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006047/1.491, allocations: 0.4946 MB / 0.558 GB, free: 83.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/1.494, allocations: 0.6656 MB / 0.5586 GB, free: 83.74 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04631/1.541, allocations: 15.98 MB / 0.5742 GB, free: 75.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003918/1.541, allocations: 88.56 kB / 0.5743 GB, free: 75.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002671/1.544, allocations: 325.3 kB / 0.5746 GB, free: 75.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003172/1.547, allocations: 1.551 MB / 0.5761 GB, free: 74.81 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03782/1.585, allocations: 12.66 MB / 0.5885 GB, free: 64.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1076/1.692, allocations: 72.93 MB / 0.6597 GB, free: 6.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3315/2.024, allocations: 6.432 MB / 0.666 GB, free: 95.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008568/2.033, allocations: 3.673 MB / 0.6696 GB, free: 95.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02857/2.061, allocations: 9.276 MB / 0.6787 GB, free: 94.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.272e-05/2.061, allocations: 67.44 kB / 0.6787 GB, free: 94.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=269): time 8.315e-06/2.061, allocations: 0 / 0.6787 GB, free: 94.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=311): time 0.1182/2.18, allocations: 25.87 MB / 0.704 GB, free: 89.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/2.18, allocations: 237.4 kB / 0.7042 GB, free: 89.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01616/2.196, allocations: 6.1 MB / 0.7102 GB, free: 86.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009348/2.197, allocations: 72.61 kB / 0.7102 GB, free: 86.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00427/2.201, allocations: 4.587 MB / 0.7147 GB, free: 83.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002008/2.203, allocations: 1.174 MB / 0.7159 GB, free: 82.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/2.205, allocations: 189 kB / 0.716 GB, free: 82.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007974/2.205, allocations: 0.6918 MB / 0.7167 GB, free: 81.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009101/2.215, allocations: 3.49 MB / 0.7201 GB, free: 80.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01278/2.227, allocations: 8.724 MB / 0.7286 GB, free: 72.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01261/2.24, allocations: 5.474 MB / 0.734 GB, free: 70.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002066/2.24, allocations: 54.14 kB / 0.734 GB, free: 70.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03787/2.278, allocations: 12.76 MB / 0.7465 GB, free: 66.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/2.278, allocations: 85.59 kB / 0.7466 GB, free: 66.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003106/2.279, allocations: 188 kB / 0.7468 GB, free: 66.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007232/2.286, allocations: 1.701 MB / 0.7484 GB, free: 66.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01418/2.3, allocations: 2.134 MB / 0.7505 GB, free: 66.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02104/2.321, allocations: 11.34 MB / 0.7616 GB, free: 56.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01175/2.333, allocations: 0.5365 MB / 0.7621 GB, free: 56.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002356/2.335, allocations: 0.5381 MB / 0.7626 GB, free: 55.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (1104): * Single equations (assignments): 1099 * 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.003877/2.339, allocations: 0.7949 MB / 0.7634 GB, free: 55.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001809/2.341, allocations: 0.5938 MB / 0.764 GB, free: 54.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02091/2.362, allocations: 6.692 MB / 0.7705 GB, free: 49.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.987e-05/2.362, allocations: 36.7 kB / 0.7706 GB, free: 48.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.027e-05/2.362, allocations: 11.33 kB / 0.7706 GB, free: 48.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-05/2.362, allocations: 10.88 kB / 0.7706 GB, free: 48.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05577/2.418, allocations: 15.12 MB / 0.7854 GB, free: 36.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-05/2.418, allocations: 7.562 kB / 0.7854 GB, free: 36.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007926/2.426, allocations: 0.5616 MB / 0.7859 GB, free: 36.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008786/2.435, allocations: 1.412 MB / 0.7873 GB, free: 35.36 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001042/2.436, allocations: 63.61 kB / 0.7873 GB, free: 35.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02421/2.46, allocations: 10.49 MB / 0.7976 GB, free: 25.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/2.461, allocations: 8 kB / 0.7976 GB, free: 25.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02745/2.488, allocations: 11.73 MB / 0.8091 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004596/2.493, allocations: 1.15 MB / 0.8102 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002285/2.495, allocations: 60.33 kB / 0.8102 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006295/2.501, allocations: 211.6 kB / 0.8104 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001191/2.503, allocations: 186.5 kB / 0.8106 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003738/2.503, allocations: 83.03 kB / 0.8107 GB, free: 13.92 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01153/2.514, allocations: 4.351 MB / 0.8149 GB, free: 9.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.515, allocations: 0 / 0.8149 GB, free: 9.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01217/2.527, allocations: 1.654 MB / 0.8166 GB, free: 8.121 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (254): * Single equations (assignments): 249 * 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.3472/2.874, allocations: 13.1 MB / 0.8294 GB, free: 99.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02243/2.896, allocations: 8.402 MB / 0.8376 GB, free: 99.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/2.897, allocations: 0.9688 kB / 0.8376 GB, free: 99.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01025/2.907, allocations: 3.3 MB / 0.8408 GB, free: 99.07 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006562/2.913, allocations: 0.7083 MB / 0.8415 GB, free: 99.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05342/2.967, allocations: 16.14 MB / 0.8572 GB, free: 96.39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01198/2.979, allocations: 5.028 MB / 0.8622 GB, free: 95.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008788/2.988, allocations: 3.29 MB / 0.8654 GB, free: 93.29 MB / 458.7 MB Notification: Performance of SimCode: time 1.974e-06/2.988, allocations: 1.375 kB / 0.8654 GB, free: 93.29 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.855/8.842, allocations: 187.5 MB / 1.048 GB, free: 110.9 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat