Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.081/2.081, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.876e-05/3.883e-05, allocations: 4 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 50.41 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4937/0.5995, allocations: 105.1 MB / 447.8 MB, free: 5.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.5998, allocations: 87.02 kB / 447.8 MB, free: 5.289 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.933/1.533, allocations: 137.9 MB / 0.572 GB, free: 95.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.533, allocations: 0 / 0.572 GB, free: 95.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005015/1.533, allocations: 142.8 kB / 0.5721 GB, free: 95.16 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.03003/1.564, allocations: 7.035 MB / 0.579 GB, free: 92.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.564, allocations: 9.406 kB / 0.579 GB, free: 92.54 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005343/1.569, allocations: 1.144 MB / 0.5801 GB, free: 92.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05736/1.626, allocations: 7.56 MB / 0.5875 GB, free: 91.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03352/1.66, allocations: 9.104 MB / 0.5964 GB, free: 89.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006614/1.661, allocations: 487.7 kB / 0.5969 GB, free: 89.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003821/1.664, allocations: 0.6527 MB / 0.5975 GB, free: 89.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05129/1.716, allocations: 16.51 MB / 0.6136 GB, free: 74.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005237/1.716, allocations: 95.09 kB / 0.6137 GB, free: 74.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00319/1.72, allocations: 314.3 kB / 0.614 GB, free: 74.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003669/1.723, allocations: 1.591 MB / 0.6156 GB, free: 72.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04367/1.767, allocations: 13.24 MB / 0.6285 GB, free: 59.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5031/2.27, allocations: 74.31 MB / 0.7011 GB, free: 40.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04194/2.312, allocations: 7.663 MB / 0.7085 GB, free: 40.17 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008169/2.32, allocations: 3.983 MB / 0.7124 GB, free: 40.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04494/2.365, allocations: 18.66 MB / 0.7307 GB, free: 35.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.328e-05/2.366, allocations: 62.03 kB / 0.7307 GB, free: 35.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 7.174e-06/2.366, allocations: 0 / 0.7307 GB, free: 35.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=370): time 0.2198/2.585, allocations: 38.72 MB / 0.7685 GB, free: 25.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/2.585, allocations: 274.5 kB / 0.7688 GB, free: 25.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01212/2.598, allocations: 5.269 MB / 0.7739 GB, free: 23.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009853/2.599, allocations: 83.27 kB / 0.774 GB, free: 23.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004017/2.603, allocations: 4.547 MB / 0.7785 GB, free: 19.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002177/2.605, allocations: 1.36 MB / 0.7798 GB, free: 18.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001215/2.606, allocations: 183.9 kB / 0.78 GB, free: 18.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005819/2.607, allocations: 0.7028 MB / 0.7806 GB, free: 18.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008871/2.616, allocations: 3.668 MB / 0.7842 GB, free: 15.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0123/2.628, allocations: 8.821 MB / 0.7928 GB, free: 4.383 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01284/2.641, allocations: 5.616 MB / 0.7983 GB, free: 15.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002085/2.641, allocations: 52 kB / 0.7984 GB, free: 15.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05583/2.697, allocations: 15.14 MB / 0.8132 GB, free: 3.898 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001636/2.697, allocations: 84 kB / 0.8132 GB, free: 3.816 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003082/2.698, allocations: 186.5 kB / 0.8134 GB, free: 3.641 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02327/2.721, allocations: 4.019 MB / 0.8173 GB, free: 0.8477 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01436/2.735, allocations: 2.048 MB / 0.8193 GB, free: 15.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05604/2.791, allocations: 20.79 MB / 0.8396 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01153/2.803, allocations: 0.55 MB / 0.8402 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002344/2.805, allocations: 0.5262 MB / 0.8407 GB, free: 9.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.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 (1088): * Single equations (assignments): 1083 * 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%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004071/2.809, allocations: 0.8082 MB / 0.8415 GB, free: 9.008 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001884/2.811, allocations: 0.5708 MB / 0.842 GB, free: 8.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04001/2.851, allocations: 9.45 MB / 0.8513 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.913e-05/2.851, allocations: 43.09 kB / 0.8513 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.11e-05/2.852, allocations: 16 kB / 0.8513 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.583e-05/2.852, allocations: 15.94 kB / 0.8513 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07729/2.929, allocations: 18.93 MB / 0.8698 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.902e-05/2.929, allocations: 3.984 kB / 0.8698 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005462/2.935, allocations: 0.5032 MB / 0.8703 GB, free: 11.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02275/2.957, allocations: 3.567 MB / 0.8738 GB, free: 7.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001059/2.958, allocations: 59.98 kB / 0.8739 GB, free: 7.672 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4061/3.365, allocations: 18.71 MB / 0.8921 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/3.365, allocations: 2.578 kB / 0.8921 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04543/3.41, allocations: 13.95 MB / 0.9058 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001984/3.412, allocations: 0.5783 MB / 0.9063 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002273/3.414, allocations: 63.34 kB / 0.9064 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006268/3.421, allocations: 224 kB / 0.9066 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001449/3.422, allocations: 221.1 kB / 0.9068 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004317/3.423, allocations: 101.3 kB / 0.9069 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009168/3.432, allocations: 3.67 MB / 0.9105 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.21e-07/3.432, allocations: 3.938 kB / 0.9105 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01207/3.444, allocations: 1.845 MB / 0.9123 GB, free: 151.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (270): * Single equations (assignments): 265 * 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%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04533/3.489, allocations: 14.83 MB / 0.9268 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02215/3.512, allocations: 9.185 MB / 0.9358 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/3.512, allocations: 0 / 0.9358 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009193/3.521, allocations: 3.673 MB / 0.9393 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006406/3.527, allocations: 0.7189 MB / 0.94 GB, free: 141.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05205/3.579, allocations: 16.04 MB / 0.9557 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01166/3.591, allocations: 5.01 MB / 0.9606 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007674/3.599, allocations: 3.324 MB / 0.9638 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.463e-06/3.599, allocations: 0 / 0.9638 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.788/9.387, allocations: 185.2 MB / 1.145 GB, free: 125.6 MB / 0.5105 GB