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 2.148/2.148, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.054e-05/4.062e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5435, allocations: 94.59 MB / 416.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5439, allocations: 75.06 kB / 416.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8732/1.417, allocations: 131.8 MB / 0.5354 GB, free: 88.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.417, allocations: 0 / 0.5354 GB, free: 88.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004334/1.418, allocations: 130.9 kB / 0.5356 GB, free: 88.94 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.02993/1.448, allocations: 6.667 MB / 0.5421 GB, free: 86.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.324e-05/1.448, allocations: 7.344 kB / 0.5421 GB, free: 86.32 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006619/1.454, allocations: 1.186 MB / 0.5432 GB, free: 86.22 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06758/1.522, allocations: 7.141 MB / 0.5502 GB, free: 85.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02654/1.548, allocations: 7.426 MB / 0.5575 GB, free: 84.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006391/1.549, allocations: 0.4996 MB / 0.5579 GB, free: 84.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003707/1.553, allocations: 0.6693 MB / 0.5586 GB, free: 83.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04829/1.601, allocations: 16.06 MB / 0.5743 GB, free: 75.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004244/1.602, allocations: 91.5 kB / 0.5744 GB, free: 75.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003067/1.605, allocations: 327.8 kB / 0.5747 GB, free: 75.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003264/1.608, allocations: 1.544 MB / 0.5762 GB, free: 74.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03996/1.648, allocations: 12.93 MB / 0.5888 GB, free: 64.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1259/1.774, allocations: 72.95 MB / 0.6601 GB, free: 6.219 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3635/2.138, allocations: 6.449 MB / 0.6664 GB, free: 96.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008582/2.146, allocations: 3.676 MB / 0.6699 GB, free: 96.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02831/2.175, allocations: 9.279 MB / 0.679 GB, free: 94.98 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.22e-05/2.175, allocations: 62.94 kB / 0.6791 GB, free: 94.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=269): time 9.478e-06/2.175, allocations: 0 / 0.6791 GB, free: 94.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=311): time 0.1345/2.309, allocations: 25.87 MB / 0.7043 GB, free: 89.53 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/2.309, allocations: 239.7 kB / 0.7046 GB, free: 89.28 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01554/2.325, allocations: 6.099 MB / 0.7105 GB, free: 87.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008809/2.326, allocations: 73.2 kB / 0.7106 GB, free: 87.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003878/2.33, allocations: 4.589 MB / 0.7151 GB, free: 83.42 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001853/2.332, allocations: 1.173 MB / 0.7162 GB, free: 82.56 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001102/2.333, allocations: 181.9 kB / 0.7164 GB, free: 82.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005416/2.333, allocations: 0.6907 MB / 0.7171 GB, free: 81.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008317/2.342, allocations: 3.49 MB / 0.7205 GB, free: 80.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01213/2.354, allocations: 8.776 MB / 0.729 GB, free: 72.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01248/2.366, allocations: 5.481 MB / 0.7344 GB, free: 70.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001829/2.367, allocations: 60.14 kB / 0.7344 GB, free: 70.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03693/2.404, allocations: 13.28 MB / 0.7474 GB, free: 66.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001324/2.404, allocations: 87.81 kB / 0.7475 GB, free: 66.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002558/2.404, allocations: 186.6 kB / 0.7477 GB, free: 66.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006907/2.411, allocations: 1.707 MB / 0.7493 GB, free: 66.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01414/2.425, allocations: 2.129 MB / 0.7514 GB, free: 66.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0208/2.446, allocations: 11.34 MB / 0.7625 GB, free: 56.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01143/2.458, allocations: 0.5314 MB / 0.763 GB, free: 55.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002192/2.46, allocations: 0.5346 MB / 0.7635 GB, free: 55.34 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.00246/2.462, allocations: 0.7968 MB / 0.7643 GB, free: 54.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001624/2.464, allocations: 0.5977 MB / 0.7649 GB, free: 53.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.019/2.483, allocations: 6.695 MB / 0.7714 GB, free: 48.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-05/2.483, allocations: 32 kB / 0.7715 GB, free: 48.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.903e-05/2.483, allocations: 12 kB / 0.7715 GB, free: 48.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-05/2.483, allocations: 16.38 kB / 0.7715 GB, free: 48.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04578/2.529, allocations: 15.12 MB / 0.7863 GB, free: 36.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.562e-05/2.529, allocations: 4 kB / 0.7863 GB, free: 36.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00592/2.535, allocations: 0.5626 MB / 0.7868 GB, free: 35.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006678/2.542, allocations: 1.421 MB / 0.7882 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009212/2.543, allocations: 52.94 kB / 0.7883 GB, free: 34.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02027/2.563, allocations: 10.5 MB / 0.7985 GB, free: 25.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/2.563, allocations: 4 kB / 0.7985 GB, free: 25.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02888/2.592, allocations: 11.74 MB / 0.81 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004744/2.597, allocations: 1.154 MB / 0.8111 GB, free: 13.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002116/2.599, allocations: 57.92 kB / 0.8112 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005797/2.605, allocations: 209.7 kB / 0.8114 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001208/2.606, allocations: 193 kB / 0.8115 GB, free: 13.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004042/2.606, allocations: 80.94 kB / 0.8116 GB, free: 13.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01165/2.618, allocations: 4.348 MB / 0.8159 GB, free: 9.078 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.11e-07/2.618, allocations: 0 / 0.8159 GB, free: 9.078 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0114/2.63, allocations: 1.648 MB / 0.8175 GB, free: 7.434 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.3802/3.01, allocations: 13.11 MB / 0.8303 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02401/3.034, allocations: 8.68 MB / 0.8388 GB, free: 100.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/3.034, allocations: 5.625 kB / 0.8388 GB, free: 100.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01098/3.045, allocations: 3.339 MB / 0.842 GB, free: 99.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006938/3.052, allocations: 0.7144 MB / 0.8427 GB, free: 99.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05747/3.109, allocations: 16.15 MB / 0.8585 GB, free: 97.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01311/3.123, allocations: 5.035 MB / 0.8634 GB, free: 95.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009279/3.132, allocations: 3.281 MB / 0.8666 GB, free: 93.36 MB / 458.7 MB Notification: Performance of SimCode: time 2.043e-06/3.132, allocations: 0 / 0.8666 GB, free: 93.36 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.708/8.84, allocations: 189.1 MB / 1.051 GB, free: 108.8 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