Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.997/1.997, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.42e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1153, allocations: 48.69 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4627/0.578, allocations: 98.07 MB / 414.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.5783, allocations: 81.34 kB / 414.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.188/1.767, allocations: 233.9 MB / 0.6331 GB, free: 12.63 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.767, allocations: 0 / 0.6331 GB, free: 12.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000969/1.768, allocations: 252 kB / 0.6334 GB, free: 12.39 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: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.7667/2.535, allocations: 12.34 MB / 0.6454 GB, free: 33.09 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/2.535, allocations: 9.25 kB / 0.6454 GB, free: 33.09 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1154/2.65, allocations: 12.81 MB / 0.6579 GB, free: 32.23 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05223/2.702, allocations: 13.27 MB / 0.6709 GB, free: 31.63 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008913/2.703, allocations: 415.8 kB / 0.6713 GB, free: 31.63 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006795/2.71, allocations: 0.7466 MB / 0.672 GB, free: 31.62 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04469/2.755, allocations: 17.52 MB / 0.6891 GB, free: 31.55 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07022/2.825, allocations: 26 MB / 0.7145 GB, free: 25.55 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009161/2.826, allocations: 142.5 kB / 0.7147 GB, free: 25.54 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006066/2.832, allocations: 71.98 kB / 0.7147 GB, free: 25.53 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006427/2.839, allocations: 2.858 MB / 0.7175 GB, free: 25.5 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7045/3.543, allocations: 121.5 MB / 0.8361 GB, free: 32.22 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02154/3.565, allocations: 10.77 MB / 0.8467 GB, free: 30.92 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01424/3.579, allocations: 7.536 MB / 0.854 GB, free: 30.84 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002407/3.582, allocations: 1.108 MB / 0.8551 GB, free: 29.99 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000109/3.582, allocations: 91.91 kB / 0.8552 GB, free: 29.94 MB / 490.8 MB Notification: Performance of pre-optimization done (n=548): time 1.009e-05/3.582, allocations: 0 / 0.8552 GB, free: 29.94 MB / 490.8 MB Notification: Performance of matching and sorting (n=636): time 0.209/3.791, allocations: 61.47 MB / 0.9152 GB, free: 17.65 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002121/3.791, allocations: 378.1 kB / 0.9156 GB, free: 17.27 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02266/3.814, allocations: 8.034 MB / 0.9234 GB, free: 15.46 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001957/3.816, allocations: 25.7 kB / 0.9235 GB, free: 15.43 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007408/3.823, allocations: 8.374 MB / 0.9316 GB, free: 8.949 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004169/3.827, allocations: 2.273 MB / 0.9339 GB, free: 7.246 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003204/3.831, allocations: 0 / 0.9339 GB, free: 7.246 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001771/3.832, allocations: 0.992 MB / 0.9348 GB, free: 6.641 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01677/3.849, allocations: 6.446 MB / 0.9411 GB, free: 4.277 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02888/3.878, allocations: 15.11 MB / 0.9559 GB, free: 3.906 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02658/3.905, allocations: 9.759 MB / 0.9654 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000467/3.905, allocations: 92 kB / 0.9655 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2081) (initialization): time 0.0747/3.98, allocations: 22.49 MB / 0.9875 GB, free: 9.984 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002856/3.98, allocations: 143 kB / 0.9876 GB, free: 9.848 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006606/3.981, allocations: 312 kB / 0.9879 GB, free: 9.543 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01522/3.996, allocations: 3.326 MB / 0.9912 GB, free: 7.062 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02843/4.025, allocations: 3.874 MB / 0.9949 GB, free: 3.797 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04971/4.075, allocations: 21.38 MB / 1.016 GB, free: 0.7383 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02033/4.095, allocations: 0.6434 MB / 1.016 GB, free: 268 kB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009513/4.105, allocations: 1.204 MB / 1.018 GB, free: 0 / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1397 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 (1961): * Single equations (assignments): 1954 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007942/4.113, allocations: 0.9094 MB / 1.019 GB, free: 15.09 MB / 0.5574 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04463/4.157, allocations: 13.16 MB / 1.031 GB, free: 4.109 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005068/4.162, allocations: 0.9063 MB / 1.032 GB, free: 3.191 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4387/4.601, allocations: 13.79 MB / 1.046 GB, free: 152.9 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001741/4.601, allocations: 66.47 kB / 1.046 GB, free: 152.9 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001125/4.601, allocations: 16.72 kB / 1.046 GB, free: 152.9 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001792/4.602, allocations: 34.64 kB / 1.046 GB, free: 152.9 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09278/4.694, allocations: 28.81 MB / 1.074 GB, free: 151.5 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001057/4.695, allocations: 3.719 kB / 1.074 GB, free: 151.5 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01269/4.707, allocations: 1.226 MB / 1.075 GB, free: 151.5 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01302/4.72, allocations: 2.814 MB / 1.078 GB, free: 151.5 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002143/4.723, allocations: 29.86 kB / 1.078 GB, free: 151.5 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04052/4.763, allocations: 19.79 MB / 1.097 GB, free: 146.4 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-05/4.763, allocations: 14.31 kB / 1.097 GB, free: 146.4 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06389/4.827, allocations: 23.37 MB / 1.12 GB, free: 138.5 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01136/4.839, allocations: 1.922 MB / 1.122 GB, free: 138 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005833/4.844, allocations: 19.3 kB / 1.122 GB, free: 138 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01467/4.859, allocations: 347.1 kB / 1.122 GB, free: 138 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003522/4.863, allocations: 398 kB / 1.123 GB, free: 137.9 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002203/4.865, allocations: 160 kB / 1.123 GB, free: 137.9 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0206/4.886, allocations: 5.429 MB / 1.128 GB, free: 136 MB / 0.5574 GB Notification: Performance of sort global known variables: time 9.22e-07/4.886, allocations: 0.875 kB / 1.128 GB, free: 136 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02539/4.911, allocations: 2.673 MB / 1.131 GB, free: 136 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (547): * Single equations (assignments): 540 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.06199/4.973, allocations: 24.89 MB / 1.155 GB, free: 124.7 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.04064/5.014, allocations: 16.37 MB / 1.171 GB, free: 112.2 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-05/5.014, allocations: 4 kB / 1.171 GB, free: 112.2 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01827/5.032, allocations: 6.818 MB / 1.178 GB, free: 106.3 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01086/5.043, allocations: 0.9727 MB / 1.179 GB, free: 105.5 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1021/5.145, allocations: 30.19 MB / 1.208 GB, free: 79.79 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0248/5.17, allocations: 8.89 MB / 1.217 GB, free: 73.43 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02358/5.194, allocations: 6.507 MB / 1.223 GB, free: 67.38 MB / 0.5574 GB Notification: Performance of SimCode: time 1.743e-06/5.194, allocations: 0 / 1.223 GB, free: 67.38 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.033/14.23, allocations: 438.2 MB / 1.651 GB, free: 118.3 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat