Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.915/1.915, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.844e-05/3.854e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4632/0.5686, allocations: 95.71 MB / 417.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.5689, allocations: 79.94 kB / 417.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9219/1.491, allocations: 151.7 MB / 0.556 GB, free: 87.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.491, allocations: 0 / 0.556 GB, free: 87.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005327/1.491, allocations: 154.1 kB / 0.5562 GB, free: 87.59 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: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.03129/1.523, allocations: 7.387 MB / 0.5634 GB, free: 84.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/1.523, allocations: 7.062 kB / 0.5634 GB, free: 84.05 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006451/1.529, allocations: 1.347 MB / 0.5647 GB, free: 83.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06956/1.599, allocations: 9.63 MB / 0.5741 GB, free: 79.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03238/1.631, allocations: 9.117 MB / 0.583 GB, free: 73.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007483/1.632, allocations: 0.5717 MB / 0.5836 GB, free: 72.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00459/1.637, allocations: 0.7713 MB / 0.5843 GB, free: 71.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0572/1.694, allocations: 18 MB / 0.6019 GB, free: 52.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006353/1.695, allocations: 107 kB / 0.602 GB, free: 52.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004385/1.699, allocations: 375.6 kB / 0.6024 GB, free: 52.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003904/1.703, allocations: 1.697 MB / 0.604 GB, free: 50.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04568/1.749, allocations: 14.37 MB / 0.618 GB, free: 35.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4852/2.234, allocations: 80.77 MB / 0.6969 GB, free: 23.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03001/2.264, allocations: 7.133 MB / 0.7039 GB, free: 23.18 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008236/2.272, allocations: 4.063 MB / 0.7079 GB, free: 23.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004555/2.273, allocations: 57.41 kB / 0.7079 GB, free: 23.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.268e-05/2.273, allocations: 73.56 kB / 0.708 GB, free: 23.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=307): time 8.937e-06/2.273, allocations: 3.891 kB / 0.708 GB, free: 23.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.1188/2.392, allocations: 27.36 MB / 0.7347 GB, free: 16.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/2.392, allocations: 294.9 kB / 0.735 GB, free: 15.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.018/2.41, allocations: 6.524 MB / 0.7414 GB, free: 14.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009899/2.411, allocations: 74.67 kB / 0.7414 GB, free: 14.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004952/2.416, allocations: 5.075 MB / 0.7464 GB, free: 10.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002424/2.419, allocations: 1.283 MB / 0.7476 GB, free: 9.109 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/2.42, allocations: 195.5 kB / 0.7478 GB, free: 8.957 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009066/2.421, allocations: 0.7188 MB / 0.7485 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01001/2.431, allocations: 3.595 MB / 0.752 GB, free: 7.234 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01391/2.445, allocations: 9.19 MB / 0.761 GB, free: 14.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01396/2.459, allocations: 5.706 MB / 0.7666 GB, free: 12.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002341/2.459, allocations: 57 kB / 0.7666 GB, free: 12.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03967/2.499, allocations: 13.46 MB / 0.7798 GB, free: 7.414 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001962/2.499, allocations: 92.19 kB / 0.7799 GB, free: 7.324 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004148/2.5, allocations: 200 kB / 0.7801 GB, free: 7.129 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006256/2.506, allocations: 1.374 MB / 0.7814 GB, free: 6.051 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01596/2.522, allocations: 2.245 MB / 0.7836 GB, free: 4.117 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02331/2.545, allocations: 11.24 MB / 0.7946 GB, free: 9.711 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01237/2.558, allocations: 0.5349 MB / 0.7951 GB, free: 9.242 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00266/2.561, allocations: 0.5642 MB / 0.7957 GB, free: 8.695 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.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 (1172): * Single equations (assignments): 1166 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003641/2.564, allocations: 0.8393 MB / 0.7965 GB, free: 7.852 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002265/2.567, allocations: 0.644 MB / 0.7971 GB, free: 7.199 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02283/2.589, allocations: 6.589 MB / 0.8035 GB, free: 1.773 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/2.59, allocations: 38.19 kB / 0.8036 GB, free: 1.738 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.859e-05/2.59, allocations: 12 kB / 0.8036 GB, free: 1.727 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-05/2.59, allocations: 15.61 kB / 0.8036 GB, free: 1.727 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0542/2.644, allocations: 15.44 MB / 0.8187 GB, free: 5.391 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.114e-05/2.644, allocations: 4 kB / 0.8187 GB, free: 5.387 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006558/2.651, allocations: 0.5826 MB / 0.8193 GB, free: 4.918 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005499/2.656, allocations: 1.051 MB / 0.8203 GB, free: 4.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001037/2.657, allocations: 64.92 kB / 0.8203 GB, free: 4.102 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3659/3.023, allocations: 10.24 MB / 0.8303 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/3.023, allocations: 6.531 kB / 0.8303 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03333/3.057, allocations: 11.12 MB / 0.8412 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005786/3.063, allocations: 1.217 MB / 0.8424 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003065/3.066, allocations: 53.66 kB / 0.8424 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007242/3.073, allocations: 204.1 kB / 0.8426 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001487/3.074, allocations: 197.4 kB / 0.8428 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005037/3.075, allocations: 85.2 kB / 0.8429 GB, free: 113.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0144/3.089, allocations: 4.628 MB / 0.8474 GB, free: 113.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.192e-06/3.089, allocations: 0 / 0.8474 GB, free: 113.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01337/3.103, allocations: 1.792 MB / 0.8492 GB, free: 113.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0301/3.133, allocations: 12.02 MB / 0.8609 GB, free: 110.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02204/3.155, allocations: 9.118 MB / 0.8698 GB, free: 107.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/3.155, allocations: 0 / 0.8698 GB, free: 107.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00919/3.164, allocations: 3.481 MB / 0.8732 GB, free: 106 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007731/3.172, allocations: 0.8192 MB / 0.874 GB, free: 105.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05983/3.232, allocations: 17.68 MB / 0.8913 GB, free: 99.29 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01406/3.246, allocations: 5.606 MB / 0.8968 GB, free: 97.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009846/3.256, allocations: 3.727 MB / 0.9004 GB, free: 94.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.944e-06/3.256, allocations: 3.969 kB / 0.9004 GB, free: 94.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.023/9.279, allocations: 242.6 MB / 1.137 GB, free: 7.492 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat