Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.533/2.533, allocations: 235 MB / 247.6 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.364e-05/4.377e-05, allocations: 4 kB / 305 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.4339, allocations: 54.85 MB / 359.9 MB, free: 2.605 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1893/0.6232, allocations: 100.6 MB / 460.4 MB, free: 12.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.6236, allocations: 81.17 kB / 460.5 MB, free: 12.33 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8087/1.432, allocations: 110.8 MB / 0.5579 GB, free: 100.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.375e-06/1.432, allocations: 3.5 kB / 0.5579 GB, free: 100.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004002/1.433, allocations: 103.8 kB / 0.558 GB, free: 100.9 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1885 * Number of variables: 1885 Notification: Performance of Generate backend data structure: time 0.02206/1.455, allocations: 5.34 MB / 0.5632 GB, free: 98.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/1.455, allocations: 11.62 kB / 0.5632 GB, free: 98.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004669/1.46, allocations: 0.9452 MB / 0.5642 GB, free: 98.61 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05116/1.511, allocations: 6.93 MB / 0.5709 GB, free: 98.22 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02537/1.536, allocations: 6.789 MB / 0.5776 GB, free: 96.81 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005862/1.537, allocations: 400.5 kB / 0.5779 GB, free: 96.66 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003209/1.54, allocations: 0.5296 MB / 0.5785 GB, free: 96.51 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03911/1.579, allocations: 12.82 MB / 0.591 GB, free: 89.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003872/1.58, allocations: 79.25 kB / 0.5911 GB, free: 89.66 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002735/1.582, allocations: 262.1 kB / 0.5913 GB, free: 89.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002921/1.585, allocations: 1.209 MB / 0.5925 GB, free: 89.29 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03241/1.618, allocations: 10 MB / 0.6023 GB, free: 83.72 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08689/1.705, allocations: 58.37 MB / 0.6593 GB, free: 23.99 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01883/1.724, allocations: 4.625 MB / 0.6638 GB, free: 19.22 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004518/1.728, allocations: 2.202 MB / 0.6659 GB, free: 17.01 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01857/1.747, allocations: 6.868 MB / 0.6726 GB, free: 10.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/1.747, allocations: 59 kB / 0.6727 GB, free: 10.03 MB / 458.7 MB Notification: Performance of pre-optimization done (n=181): time 7.615e-06/1.747, allocations: 3.938 kB / 0.6727 GB, free: 10.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=193): time 0.06313/1.81, allocations: 13.34 MB / 0.6857 GB, free: 12.59 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/1.81, allocations: 197.2 kB / 0.6859 GB, free: 12.36 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0193/1.83, allocations: 5.085 MB / 0.6909 GB, free: 7.297 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007932/1.831, allocations: 53.7 kB / 0.6909 GB, free: 7.238 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00618/1.837, allocations: 3.822 MB / 0.6947 GB, free: 3.422 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001826/1.839, allocations: 0.7626 MB / 0.6954 GB, free: 2.668 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/1.84, allocations: 144 kB / 0.6955 GB, free: 2.527 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008647/1.841, allocations: 0.6044 MB / 0.6961 GB, free: 1.914 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4159/2.257, allocations: 2.21 MB / 0.6983 GB, free: 106 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01014/2.267, allocations: 6.57 MB / 0.7047 GB, free: 100.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/2.277, allocations: 3.803 MB / 0.7084 GB, free: 100.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002888/2.278, allocations: 43.66 kB / 0.7085 GB, free: 100.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=918) (initialization): time 0.02714/2.305, allocations: 8.337 MB / 0.7166 GB, free: 99.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002257/2.305, allocations: 72.22 kB / 0.7167 GB, free: 99.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003552/2.305, allocations: 157.1 kB / 0.7168 GB, free: 99.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002897/2.308, allocations: 0.5837 MB / 0.7174 GB, free: 99.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01098/2.319, allocations: 1.615 MB / 0.719 GB, free: 99.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009652/2.329, allocations: 5.59 MB / 0.7244 GB, free: 96.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008952/2.338, allocations: 382 kB / 0.7248 GB, free: 96.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001881/2.34, allocations: 435.2 kB / 0.7252 GB, free: 96.86 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 714 * Number of states: 0 () * Number of discrete variables: 42 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[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 (868): * Single equations (assignments): 863 * 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 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003032/2.343, allocations: 0.6551 MB / 0.7258 GB, free: 96.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/2.344, allocations: 484.3 kB / 0.7263 GB, free: 96.59 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008637/2.353, allocations: 2.971 MB / 0.7292 GB, free: 96.38 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.773e-05/2.353, allocations: 21.06 kB / 0.7292 GB, free: 96.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/2.353, allocations: 13.23 kB / 0.7292 GB, free: 96.37 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.335e-05/2.353, allocations: 7.5 kB / 0.7292 GB, free: 96.37 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02473/2.378, allocations: 8.118 MB / 0.7372 GB, free: 93.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.099e-05/2.378, allocations: 3.125 kB / 0.7372 GB, free: 93.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002739/2.381, allocations: 288.2 kB / 0.7375 GB, free: 93.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001636/2.382, allocations: 344.7 kB / 0.7378 GB, free: 93.28 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002166/2.383, allocations: 33.48 kB / 0.7378 GB, free: 93.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007147/2.39, allocations: 4.939 MB / 0.7426 GB, free: 89.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/2.39, allocations: 7.531 kB / 0.7426 GB, free: 89.63 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/2.401, allocations: 5.917 MB / 0.7484 GB, free: 86.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002858/2.404, allocations: 0.788 MB / 0.7492 GB, free: 86.42 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/2.405, allocations: 34.56 kB / 0.7492 GB, free: 86.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003032/2.408, allocations: 90.34 kB / 0.7493 GB, free: 86.38 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003663/2.409, allocations: 120.7 kB / 0.7494 GB, free: 86.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/2.409, allocations: 53.2 kB / 0.7495 GB, free: 86.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009228/2.418, allocations: 3.623 MB / 0.753 GB, free: 85.11 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.302e-06/2.418, allocations: 4 kB / 0.753 GB, free: 85.11 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009202/2.427, allocations: 1.199 MB / 0.7542 GB, free: 84.97 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (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 (154): * Single equations (assignments): 149 * 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 {(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.01244/2.44, allocations: 7.083 MB / 0.7611 GB, free: 81.04 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01234/2.452, allocations: 5.306 MB / 0.7663 GB, free: 79.11 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/2.452, allocations: 0 / 0.7663 GB, free: 79.11 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003242/2.456, allocations: 1.631 MB / 0.7679 GB, free: 78.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004573/2.46, allocations: 0.5885 MB / 0.7685 GB, free: 78.12 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03729/2.497, allocations: 11.7 MB / 0.7799 GB, free: 73.13 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009241/2.507, allocations: 4.135 MB / 0.7839 GB, free: 70.05 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005714/2.513, allocations: 2.566 MB / 0.7864 GB, free: 67.68 MB / 474.7 MB Notification: Performance of SimCode: time 1.753e-06/2.513, allocations: 4 kB / 0.7864 GB, free: 67.67 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.066/7.579, allocations: 147.1 MB / 0.9301 GB, free: 120.2 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForces_res.mat does not exist to compare? outputFormat=mat