Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.984/1.984, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.696e-05/2.709e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 48.69 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4715/0.5764, allocations: 96.65 MB / 412.9 MB, free: 11.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.5767, allocations: 78.98 kB / 413 MB, free: 11.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.141/1.717, allocations: 217.7 MB / 0.616 GB, free: 13.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.756e-06/1.718, allocations: 0 / 0.616 GB, free: 13.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007526/1.718, allocations: 240 kB / 0.6162 GB, free: 13.65 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.04851/1.767, allocations: 11.37 MB / 0.6273 GB, free: 2.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/1.767, allocations: 12.03 kB / 0.6273 GB, free: 2.168 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1056/1.873, allocations: 12.63 MB / 0.6396 GB, free: 5.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3783/2.251, allocations: 12.53 MB / 0.6519 GB, free: 45.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009039/2.252, allocations: 395.6 kB / 0.6523 GB, free: 45.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00621/2.258, allocations: 0.7035 MB / 0.6529 GB, free: 45.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05069/2.309, allocations: 16.7 MB / 0.6693 GB, free: 45.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07978/2.389, allocations: 24.43 MB / 0.6931 GB, free: 39.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007844/2.39, allocations: 121.1 kB / 0.6932 GB, free: 39.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005442/2.395, allocations: 63.44 kB / 0.6933 GB, free: 39.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006072/2.401, allocations: 2.678 MB / 0.6959 GB, free: 39.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2395/2.641, allocations: 110.2 MB / 0.8036 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02375/2.664, allocations: 10.82 MB / 0.8141 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.4402/3.105, allocations: 8.353 MB / 0.8223 GB, free: 89.86 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005559/3.11, allocations: 2.342 MB / 0.8246 GB, free: 87.88 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/3.111, allocations: 98.14 kB / 0.8247 GB, free: 87.83 MB / 474.7 MB Notification: Performance of pre-optimization done (n=541): time 1.642e-05/3.111, allocations: 0 / 0.8247 GB, free: 87.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=629): time 0.2194/3.33, allocations: 56.88 MB / 0.8802 GB, free: 79.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/3.33, allocations: 323.5 kB / 0.8805 GB, free: 79.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01905/3.349, allocations: 7.052 MB / 0.8874 GB, free: 78.88 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002023/3.351, allocations: 25.7 kB / 0.8874 GB, free: 78.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006704/3.358, allocations: 7.65 MB / 0.8949 GB, free: 74.27 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004244/3.362, allocations: 2.231 MB / 0.8971 GB, free: 72.59 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003191/3.366, allocations: 3.75 kB / 0.8971 GB, free: 72.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001676/3.367, allocations: 0.9348 MB / 0.898 GB, free: 72 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01566/3.383, allocations: 6.205 MB / 0.9041 GB, free: 69.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02117/3.404, allocations: 14.01 MB / 0.9177 GB, free: 57.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02059/3.425, allocations: 9.207 MB / 0.9267 GB, free: 54.06 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003642/3.425, allocations: 79.25 kB / 0.9268 GB, free: 54.06 MB / 474.7 MB Notification: Performance of matching and sorting (n=1919) (initialization): time 0.06238/3.488, allocations: 21.37 MB / 0.9477 GB, free: 37.32 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002375/3.488, allocations: 124 kB / 0.9478 GB, free: 37.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004466/3.488, allocations: 276.1 kB / 0.9481 GB, free: 36.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/3.503, allocations: 3.28 MB / 0.9513 GB, free: 34.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02558/3.528, allocations: 3.606 MB / 0.9548 GB, free: 31.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04314/3.571, allocations: 21.32 MB / 0.9756 GB, free: 12.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01904/3.591, allocations: 0.5995 MB / 0.9762 GB, free: 12.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004429/3.595, allocations: 0.8432 MB / 0.977 GB, free: 11.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1255 * Number of states: 0 () * Number of discrete variables: 105 (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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[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],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 (1799): * Single equations (assignments): 1792 * 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.007477/3.603, allocations: 0.8293 MB / 0.9778 GB, free: 10.39 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4205/4.023, allocations: 13.04 MB / 0.9906 GB, free: 69.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004962/4.028, allocations: 0.8201 MB / 0.9914 GB, free: 69.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05039/4.079, allocations: 13.75 MB / 1.005 GB, free: 69.36 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001751/4.079, allocations: 63.56 kB / 1.005 GB, free: 69.36 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-05/4.079, allocations: 17.75 kB / 1.005 GB, free: 69.36 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001976/4.079, allocations: 30.61 kB / 1.005 GB, free: 69.36 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09398/4.173, allocations: 27.66 MB / 1.032 GB, free: 68.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.763e-05/4.173, allocations: 3.031 kB / 1.032 GB, free: 68.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01313/4.186, allocations: 1.231 MB / 1.033 GB, free: 68.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01338/4.2, allocations: 2.791 MB / 1.036 GB, free: 68.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00211/4.202, allocations: 28.69 kB / 1.036 GB, free: 68.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04087/4.243, allocations: 19.65 MB / 1.055 GB, free: 61.14 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/4.243, allocations: 6.375 kB / 1.055 GB, free: 61.14 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0599/4.303, allocations: 21.53 MB / 1.076 GB, free: 53.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008201/4.311, allocations: 1.839 MB / 1.078 GB, free: 52.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004816/4.316, allocations: 13.8 kB / 1.078 GB, free: 52.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01128/4.327, allocations: 383.1 kB / 1.078 GB, free: 52.38 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002911/4.33, allocations: 367.7 kB / 1.079 GB, free: 52.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001825/4.332, allocations: 158.6 kB / 1.079 GB, free: 52.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01337/4.346, allocations: 4.766 MB / 1.083 GB, free: 50.58 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.202e-06/4.346, allocations: 0 / 1.083 GB, free: 50.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02197/4.368, allocations: 2.526 MB / 1.086 GB, free: 50.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (540): * Single equations (assignments): 533 * 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.06096/4.429, allocations: 22.46 MB / 1.108 GB, free: 36.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03929/4.468, allocations: 15.85 MB / 1.123 GB, free: 22.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/4.468, allocations: 2.312 kB / 1.123 GB, free: 22.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01875/4.487, allocations: 6.719 MB / 1.13 GB, free: 17 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009685/4.497, allocations: 0.8528 MB / 1.131 GB, free: 16.29 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.103/4.6, allocations: 28.22 MB / 1.158 GB, free: 8.277 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.412/5.012, allocations: 8.315 MB / 1.166 GB, free: 85 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02132/5.033, allocations: 5.874 MB / 1.172 GB, free: 85 MB / 490.7 MB Notification: Performance of SimCode: time 2.134e-06/5.033, allocations: 4.781 kB / 1.172 GB, free: 85 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.781/12.81, allocations: 408.8 MB / 1.571 GB, free: 104.9 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat