Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.496/2.496, allocations: 270 MB / 282.6 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.62e-05/3.64e-05, allocations: 4 kB / 347 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.419/0.4191, allocations: 61.89 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.246/0.6652, allocations: 106.8 MB / 0.5036 GB, free: 15.71 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.6655, allocations: 79.95 kB / 0.5037 GB, free: 15.63 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9812/1.647, allocations: 155.9 MB / 0.656 GB, free: 14.71 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.225e-06/1.647, allocations: 0 / 0.656 GB, free: 14.71 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008188/1.648, allocations: 155.9 kB / 0.6562 GB, free: 14.56 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2601 * Number of variables: 2601 Notification: Performance of Generate backend data structure: time 0.03763/1.685, allocations: 7.616 MB / 0.6636 GB, free: 6.863 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/1.685, allocations: 8.031 kB / 0.6636 GB, free: 6.855 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007326/1.693, allocations: 1.309 MB / 0.6649 GB, free: 5.535 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09008/1.783, allocations: 11.92 MB / 0.6765 GB, free: 9.582 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03867/1.822, allocations: 9.972 MB / 0.6863 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009229/1.823, allocations: 0.5658 MB / 0.6868 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004449/1.827, allocations: 0.7691 MB / 0.6876 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07711/1.904, allocations: 17.86 MB / 0.705 GB, free: 10.87 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008822/1.905, allocations: 111 kB / 0.7051 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004822/1.91, allocations: 367.8 kB / 0.7055 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005661/1.916, allocations: 1.571 MB / 0.707 GB, free: 8.824 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5147/2.43, allocations: 14.08 MB / 0.7207 GB, free: 86.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1366/2.567, allocations: 75.41 MB / 0.7944 GB, free: 44.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03325/2.6, allocations: 7.42 MB / 0.8016 GB, free: 43.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007213/2.608, allocations: 3.552 MB / 0.8051 GB, free: 41.75 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009189/2.609, allocations: 0.6564 MB / 0.8057 GB, free: 41.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/2.609, allocations: 62.84 kB / 0.8058 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=239): time 7.654e-06/2.609, allocations: 1.031 kB / 0.8058 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263): time 0.1088/2.718, allocations: 23.01 MB / 0.8283 GB, free: 32.67 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/2.718, allocations: 286.3 kB / 0.8285 GB, free: 32.36 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01616/2.734, allocations: 6.421 MB / 0.8348 GB, free: 30.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007058/2.735, allocations: 62.8 kB / 0.8349 GB, free: 30.14 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004856/2.74, allocations: 5.034 MB / 0.8398 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001577/2.741, allocations: 1.018 MB / 0.8408 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/2.742, allocations: 173.3 kB / 0.841 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005598/2.743, allocations: 0.6715 MB / 0.8416 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00684/2.75, allocations: 2.844 MB / 0.8444 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01045/2.76, allocations: 8.022 MB / 0.8522 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/2.77, allocations: 4.748 MB / 0.8569 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002007/2.771, allocations: 56 kB / 0.8569 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1116) (initialization): time 0.02867/2.799, allocations: 10.64 MB / 0.8673 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001283/2.8, allocations: 84 kB / 0.8674 GB, free: 2.438 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002399/2.8, allocations: 184 kB / 0.8676 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003877/2.804, allocations: 0.9946 MB / 0.8685 GB, free: 1.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01184/2.816, allocations: 1.932 MB / 0.8704 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01975/2.835, allocations: 10.98 MB / 0.8811 GB, free: 5.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01051/2.846, allocations: 454.1 kB / 0.8816 GB, free: 4.863 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002173/2.848, allocations: 0.5089 MB / 0.8821 GB, free: 4.363 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * Number of states: 0 () * Number of discrete variables: 74 (frameForce4.arrow.arrowLine.twoHeadedArrow,frameForce4.arrow.headAtOrigin,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.arrow.arrowLine.twoHeadedArrow,frameForce3.arrow.headAtOrigin,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.arrow.arrowLine.twoHeadedArrow,frameForce2.arrow.headAtOrigin,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.arrow.arrowLine.twoHeadedArrow,frameForce1.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1040): * Single equations (assignments): 1033 * 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.003034/2.851, allocations: 0.7867 MB / 0.8828 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001853/2.853, allocations: 0.6208 MB / 0.8834 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0182/2.871, allocations: 4.774 MB / 0.8881 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.796e-05/2.871, allocations: 28 kB / 0.8881 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-05/2.871, allocations: 14.62 kB / 0.8881 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.624e-05/2.872, allocations: 14.45 kB / 0.8882 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04266/2.914, allocations: 12.4 MB / 0.9003 GB, free: 5.609 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.663e-05/2.914, allocations: 4 kB / 0.9003 GB, free: 5.605 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004074/2.918, allocations: 387.3 kB / 0.9006 GB, free: 5.293 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003579/2.922, allocations: 0.6629 MB / 0.9013 GB, free: 4.785 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006538/2.923, allocations: 44 kB / 0.9013 GB, free: 4.742 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0179/2.941, allocations: 9.877 MB / 0.911 GB, free: 11.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/2.941, allocations: 32 / 0.911 GB, free: 11.23 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02159/2.962, allocations: 7.904 MB / 0.9187 GB, free: 4.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002853/2.965, allocations: 0.6712 MB / 0.9194 GB, free: 3.492 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002464/2.968, allocations: 51.3 kB / 0.9194 GB, free: 3.445 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00559/2.973, allocations: 151.9 kB / 0.9195 GB, free: 3.34 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000932/2.974, allocations: 148 kB / 0.9197 GB, free: 3.246 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003283/2.975, allocations: 64 kB / 0.9197 GB, free: 3.184 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.4257/3.4, allocations: 4.568 MB / 0.9242 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.152e-06/3.4, allocations: 0 / 0.9242 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01295/3.413, allocations: 1.642 MB / 0.9258 GB, free: 123.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (207): * Single equations (assignments): 200 * 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.0202/3.434, allocations: 8.746 MB / 0.9344 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01653/3.45, allocations: 7.108 MB / 0.9413 GB, free: 121.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/3.45, allocations: 1.172 kB / 0.9413 GB, free: 121.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005631/3.456, allocations: 2.525 MB / 0.9438 GB, free: 121 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008064/3.464, allocations: 0.9113 MB / 0.9447 GB, free: 121 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06499/3.529, allocations: 16.41 MB / 0.9607 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01877/3.548, allocations: 5.551 MB / 0.9661 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01178/3.56, allocations: 3.698 MB / 0.9697 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of SimCode: time 1.553e-06/3.56, allocations: 0 / 0.9697 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.237/9.797, allocations: 263.2 MB / 1.227 GB, free: 111.5 MB / 0.573 GB