Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 235 MB / 247.6 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.029e-05/4.035e-05, allocations: 0 / 305 MB, free: 5.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4027/0.4028, allocations: 54.86 MB / 359.9 MB, free: 2.227 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.189/0.5919, allocations: 101.4 MB / 461.3 MB, free: 11.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/0.5922, allocations: 71.97 kB / 461.3 MB, free: 11.41 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8573/1.45, allocations: 132 MB / 0.5794 GB, free: 98.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.45, allocations: 0 / 0.5794 GB, free: 98.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004672/1.45, allocations: 127.4 kB / 0.5795 GB, free: 98.6 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.02745/1.478, allocations: 6.667 MB / 0.586 GB, free: 95.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/1.478, allocations: 11.12 kB / 0.5861 GB, free: 95.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005696/1.483, allocations: 1.191 MB / 0.5872 GB, free: 94.82 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.053/1.536, allocations: 7.137 MB / 0.5942 GB, free: 92.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02698/1.563, allocations: 7.435 MB / 0.6014 GB, free: 87.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006078/1.564, allocations: 0.5007 MB / 0.6019 GB, free: 87.17 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003718/1.568, allocations: 0.6707 MB / 0.6026 GB, free: 86.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04794/1.616, allocations: 15.99 MB / 0.6182 GB, free: 69.19 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004799/1.616, allocations: 95.2 kB / 0.6183 GB, free: 69.09 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003236/1.62, allocations: 332.7 kB / 0.6186 GB, free: 68.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003335/1.623, allocations: 1.545 MB / 0.6201 GB, free: 67.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03985/1.663, allocations: 12.67 MB / 0.6325 GB, free: 54.57 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4645/2.127, allocations: 72.97 MB / 0.7038 GB, free: 92.81 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02793/2.155, allocations: 6.427 MB / 0.71 GB, free: 92.12 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008034/2.163, allocations: 3.677 MB / 0.7136 GB, free: 92.07 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02546/2.189, allocations: 9.288 MB / 0.7227 GB, free: 90.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.043e-05/2.189, allocations: 67.69 kB / 0.7228 GB, free: 90.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=269): time 6.853e-06/2.189, allocations: 4.172 kB / 0.7228 GB, free: 90.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=311): time 0.1139/2.303, allocations: 25.86 MB / 0.748 GB, free: 84.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/2.303, allocations: 238.1 kB / 0.7482 GB, free: 84.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01544/2.319, allocations: 6.097 MB / 0.7542 GB, free: 82.37 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008853/2.32, allocations: 74.95 kB / 0.7543 GB, free: 82.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004197/2.324, allocations: 4.587 MB / 0.7588 GB, free: 78.65 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002051/2.326, allocations: 1.184 MB / 0.7599 GB, free: 77.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001648/2.328, allocations: 182.8 kB / 0.7601 GB, free: 77.65 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009363/2.329, allocations: 0.6895 MB / 0.7608 GB, free: 77.17 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009327/2.338, allocations: 3.493 MB / 0.7642 GB, free: 75.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01335/2.351, allocations: 8.722 MB / 0.7727 GB, free: 67.73 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/2.365, allocations: 5.477 MB / 0.778 GB, free: 66.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002878/2.366, allocations: 53.53 kB / 0.7781 GB, free: 66.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04694/2.413, allocations: 12.76 MB / 0.7905 GB, free: 60.81 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000245/2.413, allocations: 91.95 kB / 0.7906 GB, free: 60.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006196/2.414, allocations: 188.1 kB / 0.7908 GB, free: 60.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01183/2.425, allocations: 1.701 MB / 0.7925 GB, free: 59.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02078/2.446, allocations: 2.13 MB / 0.7946 GB, free: 57.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0274/2.474, allocations: 11.35 MB / 0.8056 GB, free: 47.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01151/2.485, allocations: 0.5332 MB / 0.8062 GB, free: 46.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00226/2.488, allocations: 0.5317 MB / 0.8067 GB, free: 46.27 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.003458/2.491, allocations: 0.7928 MB / 0.8074 GB, free: 45.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00161/2.493, allocations: 0.59 MB / 0.808 GB, free: 44.88 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02039/2.513, allocations: 6.695 MB / 0.8146 GB, free: 39.46 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-05/2.513, allocations: 32 kB / 0.8146 GB, free: 39.43 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.53e-05/2.513, allocations: 11.95 kB / 0.8146 GB, free: 39.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.003e-05/2.513, allocations: 19.56 kB / 0.8146 GB, free: 39.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04538/2.559, allocations: 15.11 MB / 0.8294 GB, free: 26.69 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.944e-05/2.559, allocations: 12.7 kB / 0.8294 GB, free: 26.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005783/2.565, allocations: 0.5599 MB / 0.8299 GB, free: 26.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006481/2.571, allocations: 1.422 MB / 0.8313 GB, free: 24.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008483/2.572, allocations: 57.64 kB / 0.8314 GB, free: 24.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02017/2.592, allocations: 10.48 MB / 0.8416 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.106e-06/2.592, allocations: 11.89 kB / 0.8416 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03341/2.626, allocations: 11.74 MB / 0.8531 GB, free: 1.926 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006011/2.632, allocations: 1.145 MB / 0.8542 GB, free: 0.7539 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00278/2.635, allocations: 60 kB / 0.8543 GB, free: 0.6953 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007957/2.643, allocations: 208.9 kB / 0.8545 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001416/2.644, allocations: 189.9 kB / 0.8546 GB, free: 312 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000521/2.645, allocations: 96.88 kB / 0.8547 GB, free: 216 kB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0174/2.662, allocations: 4.348 MB / 0.859 GB, free: 11.88 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.104e-06/2.662, allocations: 0 / 0.859 GB, free: 11.88 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01712/2.679, allocations: 1.654 MB / 0.8606 GB, free: 10.23 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.03472/2.714, allocations: 13.1 MB / 0.8734 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02327/2.737, allocations: 8.402 MB / 0.8816 GB, free: 4.516 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/2.738, allocations: 0 / 0.8816 GB, free: 4.516 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3698/3.107, allocations: 3.292 MB / 0.8848 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006532/3.114, allocations: 0.703 MB / 0.8855 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06931/3.183, allocations: 16.14 MB / 0.9013 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01652/3.2, allocations: 5.038 MB / 0.9062 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01203/3.212, allocations: 3.282 MB / 0.9094 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.973e-06/3.212, allocations: 3.906 kB / 0.9094 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.913/9.125, allocations: 187.7 MB / 1.093 GB, free: 119.8 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat