Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.01/2.01, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.771e-05/3.777e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1174, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.567, allocations: 92.54 MB / 414.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.5673, allocations: 79.94 kB / 414.5 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9732/1.541, allocations: 162.5 MB / 0.5634 GB, free: 84.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.541, allocations: 0 / 0.5634 GB, free: 84.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006031/1.541, allocations: 173 kB / 0.5636 GB, free: 84.93 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: 2802 * Number of variables: 2802 Notification: Performance of Generate backend data structure: time 0.03331/1.575, allocations: 8.009 MB / 0.5714 GB, free: 80.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/1.575, allocations: 7.781 kB / 0.5714 GB, free: 80.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006316/1.581, allocations: 1.4 MB / 0.5728 GB, free: 79.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08742/1.668, allocations: 12.03 MB / 0.5845 GB, free: 71.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03683/1.705, allocations: 10.8 MB / 0.5951 GB, free: 60.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007864/1.706, allocations: 0.5998 MB / 0.5957 GB, free: 60.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004603/1.711, allocations: 0.8116 MB / 0.5964 GB, free: 59.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06686/1.778, allocations: 19.01 MB / 0.615 GB, free: 39.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007574/1.779, allocations: 103 kB / 0.6151 GB, free: 39.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004557/1.783, allocations: 385.5 kB / 0.6155 GB, free: 38.76 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005025/1.788, allocations: 1.738 MB / 0.6172 GB, free: 37.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06158/1.85, allocations: 15.18 MB / 0.632 GB, free: 21.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4748/2.325, allocations: 79.59 MB / 0.7097 GB, free: 23.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03558/2.36, allocations: 8.137 MB / 0.7177 GB, free: 22.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008427/2.369, allocations: 4.092 MB / 0.7217 GB, free: 22.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001108/2.37, allocations: 0.6638 MB / 0.7223 GB, free: 21.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.163e-05/2.37, allocations: 66.16 kB / 0.7224 GB, free: 21.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=307): time 9.227e-06/2.37, allocations: 0 / 0.7224 GB, free: 21.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=331): time 0.1237/2.494, allocations: 25.91 MB / 0.7477 GB, free: 14.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/2.494, allocations: 291.8 kB / 0.748 GB, free: 14.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01844/2.512, allocations: 6.655 MB / 0.7545 GB, free: 11.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009508/2.513, allocations: 74.36 kB / 0.7545 GB, free: 11.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005293/2.519, allocations: 5.296 MB / 0.7597 GB, free: 7.602 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002227/2.521, allocations: 1.256 MB / 0.7609 GB, free: 6.684 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/2.523, allocations: 185.4 kB / 0.7611 GB, free: 6.539 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007563/2.523, allocations: 0.7053 MB / 0.7618 GB, free: 6.055 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009064/2.532, allocations: 3.367 MB / 0.7651 GB, free: 4.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01413/2.547, allocations: 8.808 MB / 0.7737 GB, free: 12.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/2.561, allocations: 5.404 MB / 0.779 GB, free: 10.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003058/2.561, allocations: 55.25 kB / 0.779 GB, free: 10.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.03839/2.599, allocations: 12 MB / 0.7907 GB, free: 4.383 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000192/2.6, allocations: 92.03 kB / 0.7908 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004067/2.6, allocations: 196 kB / 0.791 GB, free: 4.102 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004656/2.605, allocations: 1.003 MB / 0.792 GB, free: 3.262 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01575/2.621, allocations: 2.155 MB / 0.7941 GB, free: 1.391 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02169/2.642, allocations: 10.99 MB / 0.8048 GB, free: 6.895 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01308/2.655, allocations: 0.5231 MB / 0.8053 GB, free: 6.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002731/2.658, allocations: 0.5454 MB / 0.8059 GB, free: 5.895 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 882 * Number of states: 0 () * Number of discrete variables: 63 (frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.color[3],frameForce3.color[2],frameForce3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1149): * Single equations (assignments): 1142 * 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 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004532/2.663, allocations: 0.8311 MB / 0.8067 GB, free: 5.066 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002376/2.665, allocations: 0.6634 MB / 0.8073 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0209/2.686, allocations: 5.915 MB / 0.8131 GB, free: 15.69 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.382e-05/2.686, allocations: 36 kB / 0.8131 GB, free: 15.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-05/2.686, allocations: 8 kB / 0.8131 GB, free: 15.65 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.193e-05/2.686, allocations: 23.66 kB / 0.8132 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04998/2.736, allocations: 14.63 MB / 0.8274 GB, free: 3.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.315e-05/2.736, allocations: 4 kB / 0.8275 GB, free: 3.766 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005716/2.742, allocations: 0.5202 MB / 0.828 GB, free: 3.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003574/2.746, allocations: 0.668 MB / 0.8286 GB, free: 2.824 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007457/2.747, allocations: 59.7 kB / 0.8287 GB, free: 2.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3566/3.103, allocations: 9.855 MB / 0.8383 GB, free: 108.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/3.103, allocations: 3.141 kB / 0.8383 GB, free: 108.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02684/3.13, allocations: 9.918 MB / 0.848 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005122/3.135, allocations: 1.173 MB / 0.8491 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002446/3.138, allocations: 53.94 kB / 0.8492 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006629/3.144, allocations: 197.6 kB / 0.8494 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/3.146, allocations: 198.1 kB / 0.8496 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003956/3.146, allocations: 84.38 kB / 0.8496 GB, free: 107.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01446/3.161, allocations: 4.748 MB / 0.8543 GB, free: 107.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.92e-07/3.161, allocations: 0 / 0.8543 GB, free: 107.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01339/3.174, allocations: 1.815 MB / 0.856 GB, free: 107.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 269 * 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 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0246/3.199, allocations: 10.88 MB / 0.8667 GB, free: 105.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02041/3.219, allocations: 8.334 MB / 0.8748 GB, free: 103.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/3.219, allocations: 3.938 kB / 0.8748 GB, free: 103.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007104/3.226, allocations: 3.089 MB / 0.8778 GB, free: 102 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008805/3.235, allocations: 0.9087 MB / 0.8787 GB, free: 101.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06191/3.297, allocations: 18.03 MB / 0.8963 GB, free: 95.09 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01614/3.313, allocations: 5.897 MB / 0.9021 GB, free: 93.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01096/3.324, allocations: 3.985 MB / 0.906 GB, free: 90 MB / 474.7 MB Notification: Performance of SimCode: time 2.054e-06/3.324, allocations: 0 / 0.906 GB, free: 90 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.408/9.733, allocations: 283.2 MB / 1.183 GB, free: 14.82 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForces2_res.mat does not exist to compare? outputFormat=mat