Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.951/1.951, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.034e-05/3.049e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09092, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4296/0.5206, allocations: 96.76 MB / 396.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.5209, allocations: 88.05 kB / 396.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.027/1.548, allocations: 135.7 MB / 0.52 GB, free: 65.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.165e-06/1.548, allocations: 0 / 0.52 GB, free: 65.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006678/1.549, allocations: 130.5 kB / 0.5202 GB, free: 65.72 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.03417/1.583, allocations: 7.042 MB / 0.527 GB, free: 64.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/1.583, allocations: 10.81 kB / 0.527 GB, free: 64.8 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006521/1.59, allocations: 1.145 MB / 0.5282 GB, free: 64.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05907/1.649, allocations: 7.564 MB / 0.5355 GB, free: 64.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0354/1.684, allocations: 9.689 MB / 0.545 GB, free: 63.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007274/1.685, allocations: 493.5 kB / 0.5455 GB, free: 63.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003797/1.689, allocations: 0.6539 MB / 0.5461 GB, free: 63.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0651/1.754, allocations: 16.48 MB / 0.5622 GB, free: 59.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005991/1.755, allocations: 96.77 kB / 0.5623 GB, free: 59.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003172/1.758, allocations: 319 kB / 0.5626 GB, free: 59.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004742/1.763, allocations: 1.583 MB / 0.5642 GB, free: 59.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04968/1.812, allocations: 13.24 MB / 0.5771 GB, free: 59.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1221/1.935, allocations: 74.33 MB / 0.6497 GB, free: 22.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03866/1.973, allocations: 7.664 MB / 0.6572 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008389/1.982, allocations: 3.979 MB / 0.661 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.345/2.327, allocations: 18.71 MB / 0.6793 GB, free: 77.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.425e-05/2.327, allocations: 64.45 kB / 0.6794 GB, free: 77.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.823e-06/2.327, allocations: 1.312 kB / 0.6794 GB, free: 77.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.2265/2.553, allocations: 40.3 MB / 0.7187 GB, free: 73.47 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/2.554, allocations: 274.7 kB / 0.719 GB, free: 73.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01226/2.566, allocations: 5.296 MB / 0.7242 GB, free: 72.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000993/2.567, allocations: 83.02 kB / 0.7242 GB, free: 72.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004041/2.571, allocations: 4.552 MB / 0.7287 GB, free: 70.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002258/2.573, allocations: 1.35 MB / 0.73 GB, free: 69.26 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001193/2.574, allocations: 184.7 kB / 0.7302 GB, free: 69.26 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00059/2.575, allocations: 0.7049 MB / 0.7309 GB, free: 68.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00919/2.584, allocations: 3.692 MB / 0.7345 GB, free: 68.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01305/2.597, allocations: 8.812 MB / 0.7431 GB, free: 62.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/2.61, allocations: 5.61 MB / 0.7486 GB, free: 61.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000189/2.61, allocations: 49.41 kB / 0.7486 GB, free: 61.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05435/2.665, allocations: 15.66 MB / 0.7639 GB, free: 57.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001518/2.665, allocations: 87.39 kB / 0.764 GB, free: 57.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002607/2.665, allocations: 183.9 kB / 0.7642 GB, free: 56.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02218/2.687, allocations: 4.079 MB / 0.7681 GB, free: 54.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01341/2.701, allocations: 2.039 MB / 0.7701 GB, free: 52.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0511/2.752, allocations: 21.74 MB / 0.7914 GB, free: 33.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/2.764, allocations: 0.5524 MB / 0.7919 GB, free: 33.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002373/2.766, allocations: 0.5296 MB / 0.7924 GB, free: 32.72 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1083): * Single equations (assignments): 1078 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002306/2.769, allocations: 0.8123 MB / 0.7932 GB, free: 31.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001653/2.77, allocations: 0.5708 MB / 0.7938 GB, free: 31.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0358/2.806, allocations: 9.673 MB / 0.8032 GB, free: 23.89 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-05/2.806, allocations: 36 kB / 0.8033 GB, free: 23.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-05/2.806, allocations: 20 kB / 0.8033 GB, free: 23.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.409e-05/2.807, allocations: 21.72 kB / 0.8033 GB, free: 23.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06404/2.871, allocations: 19.09 MB / 0.8219 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.15e-05/2.871, allocations: 0 / 0.8219 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005297/2.876, allocations: 0.5102 MB / 0.8224 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3734/3.249, allocations: 3.557 MB / 0.8259 GB, free: 66.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009922/3.25, allocations: 64.14 kB / 0.826 GB, free: 66.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04714/3.298, allocations: 18.72 MB / 0.8442 GB, free: 64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/3.298, allocations: 1.969 kB / 0.8443 GB, free: 64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04484/3.343, allocations: 14.13 MB / 0.8581 GB, free: 63.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004761/3.347, allocations: 1.115 MB / 0.8591 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002167/3.35, allocations: 59.98 kB / 0.8592 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006581/3.356, allocations: 230.6 kB / 0.8594 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001528/3.358, allocations: 228.7 kB / 0.8596 GB, free: 63.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004904/3.358, allocations: 90.73 kB / 0.8597 GB, free: 63.22 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01181/3.37, allocations: 3.702 MB / 0.8633 GB, free: 62.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.112e-06/3.37, allocations: 2 kB / 0.8633 GB, free: 62.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01746/3.388, allocations: 1.84 MB / 0.8651 GB, free: 62.98 MB / 426.7 MB 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%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06278/3.45, allocations: 14.99 MB / 0.8798 GB, free: 60.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02302/3.474, allocations: 9.22 MB / 0.8888 GB, free: 57.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/3.474, allocations: 2.672 kB / 0.8888 GB, free: 57.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0093/3.483, allocations: 3.665 MB / 0.8924 GB, free: 56.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006381/3.489, allocations: 0.7206 MB / 0.8931 GB, free: 56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04875/3.538, allocations: 16.04 MB / 0.9087 GB, free: 50.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01017/3.548, allocations: 5.009 MB / 0.9136 GB, free: 48.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007489/3.556, allocations: 3.334 MB / 0.9169 GB, free: 46.07 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/3.556, allocations: 0 / 0.9169 GB, free: 46.07 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.81/9.365, allocations: 185.6 MB / 1.098 GB, free: 21.57 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat