Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.154e-05/4.182e-05, allocations: 4 kB / 225.1 MB, free: 2.73 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2924, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2048/0.4973, allocations: 91 MB / 354.8 MB, free: 14.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003115/0.4977, allocations: 87.94 kB / 354.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7511/1.249, allocations: 135.6 MB / 490.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.249, allocations: 0 / 490.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005276/1.249, allocations: 128 kB / 490.7 MB, free: 14.99 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03172/1.281, allocations: 7.047 MB / 497.7 MB, free: 7.863 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.01e-05/1.281, allocations: 12.03 kB / 497.7 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005351/1.287, allocations: 1.146 MB / 498.9 MB, free: 6.695 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.336/1.623, allocations: 7.559 MB / 0.4945 GB, free: 43.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04216/1.665, allocations: 9.673 MB / 0.504 GB, free: 43.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006365/1.665, allocations: 497.2 kB / 0.5045 GB, free: 43.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003693/1.669, allocations: 0.6531 MB / 0.5051 GB, free: 43.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05184/1.721, allocations: 16.56 MB / 0.5213 GB, free: 39.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005062/1.722, allocations: 96.33 kB / 0.5214 GB, free: 39.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00316/1.725, allocations: 315.6 kB / 0.5217 GB, free: 39.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003684/1.729, allocations: 1.582 MB / 0.5232 GB, free: 39.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04316/1.772, allocations: 13.49 MB / 0.5364 GB, free: 39.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1181/1.89, allocations: 74.37 MB / 0.609 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03962/1.929, allocations: 7.687 MB / 0.6165 GB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009827/1.939, allocations: 3.975 MB / 0.6204 GB, free: 4.906 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05195/1.991, allocations: 18.72 MB / 0.6387 GB, free: 4.406 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.239e-05/1.991, allocations: 70.64 kB / 0.6388 GB, free: 4.336 MB / 394.7 MB Notification: Performance of pre-optimization done (n=286): time 7.013e-06/1.991, allocations: 0 / 0.6388 GB, free: 4.336 MB / 394.7 MB Notification: Performance of matching and sorting (n=367): time 0.505/2.496, allocations: 40.39 MB / 0.6782 GB, free: 84.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/2.497, allocations: 278.3 kB / 0.6785 GB, free: 84.64 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01172/2.508, allocations: 5.291 MB / 0.6836 GB, free: 84.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009654/2.509, allocations: 81.11 kB / 0.6837 GB, free: 84.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003986/2.513, allocations: 4.551 MB / 0.6882 GB, free: 81.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002206/2.516, allocations: 1.354 MB / 0.6895 GB, free: 80.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/2.517, allocations: 180.7 kB / 0.6896 GB, free: 80.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005734/2.517, allocations: 0.6974 MB / 0.6903 GB, free: 80.63 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009351/2.527, allocations: 3.683 MB / 0.6939 GB, free: 80.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01311/2.54, allocations: 8.877 MB / 0.7026 GB, free: 73.97 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/2.553, allocations: 5.602 MB / 0.7081 GB, free: 72.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002685/2.553, allocations: 56.23 kB / 0.7081 GB, free: 72.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05452/2.608, allocations: 16.18 MB / 0.7239 GB, free: 66.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000145/2.608, allocations: 84 kB / 0.724 GB, free: 66.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002638/2.608, allocations: 180 kB / 0.7242 GB, free: 66.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02209/2.63, allocations: 4.075 MB / 0.7281 GB, free: 63.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0129/2.643, allocations: 2.051 MB / 0.7302 GB, free: 61.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07099/2.714, allocations: 21.72 MB / 0.7514 GB, free: 43.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01697/2.731, allocations: 0.5544 MB / 0.7519 GB, free: 42.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002688/2.734, allocations: 0.5342 MB / 0.7524 GB, free: 42.05 MB / 394.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.003218/2.737, allocations: 0.7964 MB / 0.7532 GB, free: 41.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002125/2.74, allocations: 0.578 MB / 0.7538 GB, free: 40.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06178/2.801, allocations: 9.677 MB / 0.7632 GB, free: 33.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.497e-05/2.802, allocations: 36 kB / 0.7633 GB, free: 33.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.148e-05/2.802, allocations: 24 kB / 0.7633 GB, free: 33.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.933e-05/2.802, allocations: 17.39 kB / 0.7633 GB, free: 33.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3923/3.194, allocations: 19.1 MB / 0.7819 GB, free: 73.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.449e-05/3.194, allocations: 0 / 0.7819 GB, free: 73.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005026/3.199, allocations: 0.5106 MB / 0.7824 GB, free: 73.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0205/3.22, allocations: 3.552 MB / 0.7859 GB, free: 73.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008839/3.221, allocations: 62.48 kB / 0.786 GB, free: 73.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04338/3.264, allocations: 18.72 MB / 0.8043 GB, free: 71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/3.264, allocations: 6.875 kB / 0.8043 GB, free: 71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04361/3.308, allocations: 14.13 MB / 0.8181 GB, free: 70.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004457/3.312, allocations: 1.119 MB / 0.8191 GB, free: 70.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001766/3.314, allocations: 63.2 kB / 0.8192 GB, free: 70.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006071/3.32, allocations: 228.2 kB / 0.8194 GB, free: 70.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001366/3.321, allocations: 225.4 kB / 0.8196 GB, free: 70.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004206/3.322, allocations: 93.56 kB / 0.8197 GB, free: 70.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009453/3.331, allocations: 3.702 MB / 0.8233 GB, free: 69.94 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.11e-07/3.331, allocations: 0 / 0.8233 GB, free: 69.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0114/3.343, allocations: 1.849 MB / 0.8252 GB, free: 69.94 MB / 394.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.04503/3.388, allocations: 14.98 MB / 0.8398 GB, free: 65.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02196/3.41, allocations: 9.515 MB / 0.8491 GB, free: 61.92 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/3.41, allocations: 0 / 0.8491 GB, free: 61.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008538/3.418, allocations: 3.726 MB / 0.8527 GB, free: 60.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00555/3.424, allocations: 0.7175 MB / 0.8534 GB, free: 60.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04528/3.469, allocations: 16.05 MB / 0.8691 GB, free: 49.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009005/3.478, allocations: 5.008 MB / 0.874 GB, free: 45.58 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00729/3.486, allocations: 3.326 MB / 0.8772 GB, free: 42.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/3.486, allocations: 0 / 0.8772 GB, free: 42.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.53/9.016, allocations: 186.9 MB / 1.06 GB, free: 11.4 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat