Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.358/2.358, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.031e-05/5.038e-05, allocations: 7.984 kB / 305 MB, free: 5.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4384/0.4385, allocations: 54.85 MB / 359.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1943/0.6328, allocations: 101.4 MB / 461.3 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.6332, allocations: 79.95 kB / 461.4 MB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8908/1.524, allocations: 132 MB / 0.5794 GB, free: 98.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.544e-06/1.524, allocations: 0 / 0.5794 GB, free: 98.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004731/1.525, allocations: 133 kB / 0.5796 GB, free: 98.74 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.02953/1.554, allocations: 6.665 MB / 0.5861 GB, free: 95.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/1.554, allocations: 11.62 kB / 0.5861 GB, free: 95.54 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006909/1.561, allocations: 1.185 MB / 0.5873 GB, free: 94.97 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05331/1.614, allocations: 7.144 MB / 0.5942 GB, free: 92.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02692/1.641, allocations: 7.417 MB / 0.6015 GB, free: 87.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000567/1.642, allocations: 0.5026 MB / 0.602 GB, free: 86.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003894/1.646, allocations: 0.6669 MB / 0.6026 GB, free: 86.36 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04833/1.694, allocations: 16 MB / 0.6182 GB, free: 69 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004736/1.695, allocations: 95.14 kB / 0.6183 GB, free: 68.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00324/1.698, allocations: 328.1 kB / 0.6186 GB, free: 68.63 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003229/1.701, allocations: 1.551 MB / 0.6202 GB, free: 67.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03939/1.741, allocations: 12.67 MB / 0.6325 GB, free: 54.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5139/2.255, allocations: 72.98 MB / 0.7038 GB, free: 93.06 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02941/2.284, allocations: 6.429 MB / 0.7101 GB, free: 92.38 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009644/2.294, allocations: 3.669 MB / 0.7137 GB, free: 92.32 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02781/2.322, allocations: 9.283 MB / 0.7227 GB, free: 90.91 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.457e-05/2.322, allocations: 66.16 kB / 0.7228 GB, free: 90.87 MB / 474.7 MB Notification: Performance of pre-optimization done (n=269): time 7.884e-06/2.322, allocations: 1.125 kB / 0.7228 GB, free: 90.87 MB / 474.7 MB Notification: Performance of matching and sorting (n=311): time 0.1202/2.442, allocations: 25.86 MB / 0.748 GB, free: 84.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/2.442, allocations: 245 kB / 0.7483 GB, free: 84.69 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01732/2.46, allocations: 6.1 MB / 0.7542 GB, free: 82.51 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001031/2.461, allocations: 71.23 kB / 0.7543 GB, free: 82.45 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005352/2.466, allocations: 4.833 MB / 0.759 GB, free: 78.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0022/2.468, allocations: 1.176 MB / 0.7602 GB, free: 77.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001469/2.47, allocations: 180.6 kB / 0.7603 GB, free: 77.73 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007712/2.471, allocations: 0.6861 MB / 0.761 GB, free: 77.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009343/2.48, allocations: 3.494 MB / 0.7644 GB, free: 76.07 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01318/2.493, allocations: 8.722 MB / 0.7729 GB, free: 67.83 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01337/2.507, allocations: 5.477 MB / 0.7783 GB, free: 66.21 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000281/2.507, allocations: 55.12 kB / 0.7783 GB, free: 66.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03948/2.547, allocations: 13.03 MB / 0.7911 GB, free: 60.18 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001552/2.547, allocations: 84 kB / 0.7911 GB, free: 60.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002863/2.547, allocations: 184.9 kB / 0.7913 GB, free: 59.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007032/2.554, allocations: 1.701 MB / 0.793 GB, free: 58.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01426/2.569, allocations: 2.131 MB / 0.7951 GB, free: 56.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/2.589, allocations: 11.34 MB / 0.8061 GB, free: 46.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/2.601, allocations: 0.5281 MB / 0.8067 GB, free: 46.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002378/2.604, allocations: 0.5404 MB / 0.8072 GB, free: 45.65 MB / 474.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.002685/2.607, allocations: 0.7977 MB / 0.808 GB, free: 44.86 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002034/2.609, allocations: 0.5862 MB / 0.8085 GB, free: 44.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02196/2.631, allocations: 6.691 MB / 0.8151 GB, free: 38.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.446e-05/2.631, allocations: 36.98 kB / 0.8151 GB, free: 38.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.688e-05/2.631, allocations: 11.33 kB / 0.8151 GB, free: 38.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.234e-05/2.631, allocations: 18.42 kB / 0.8151 GB, free: 38.79 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05064/2.682, allocations: 15.12 MB / 0.8299 GB, free: 25.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.758e-05/2.682, allocations: 4 kB / 0.8299 GB, free: 25.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006119/2.688, allocations: 0.5629 MB / 0.8305 GB, free: 25.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006869/2.695, allocations: 1.412 MB / 0.8318 GB, free: 23.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001023/2.696, allocations: 59.98 kB / 0.8319 GB, free: 23.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02103/2.717, allocations: 10.49 MB / 0.8421 GB, free: 13.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/2.717, allocations: 11.94 kB / 0.8421 GB, free: 13.06 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02886/2.746, allocations: 11.73 MB / 0.8536 GB, free: 1.113 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005103/2.751, allocations: 1.151 MB / 0.8547 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002818/2.754, allocations: 65.77 kB / 0.8548 GB, free: 15.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006961/2.761, allocations: 211.5 kB / 0.855 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/2.763, allocations: 190 kB / 0.8552 GB, free: 15.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005064/2.763, allocations: 87.92 kB / 0.8553 GB, free: 15.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01472/2.778, allocations: 4.344 MB / 0.8595 GB, free: 11.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.778, allocations: 7.938 kB / 0.8595 GB, free: 11.06 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01423/2.792, allocations: 1.651 MB / 0.8611 GB, free: 9.414 MB / 490.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.03582/2.828, allocations: 13.1 MB / 0.8739 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02464/2.853, allocations: 8.395 MB / 0.8821 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/2.853, allocations: 4.062 kB / 0.8821 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3953/3.248, allocations: 3.289 MB / 0.8853 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007268/3.255, allocations: 0.7045 MB / 0.886 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06156/3.317, allocations: 15.39 MB / 0.901 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01349/3.331, allocations: 5.028 MB / 0.9059 GB, free: 126 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01534/3.346, allocations: 2.975 MB / 0.9089 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009369/3.355, allocations: 3.228 MB / 0.912 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.874e-06/3.356, allocations: 0 / 0.912 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3015/3.657, allocations: 131.2 MB / 1.04 GB, free: 28.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002171/3.657, allocations: 167.4 kB / 1.04 GB, free: 28.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.113/11.77, allocations: 0 / 1.04 GB, free: 28.34 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat