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 2.036/2.036, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.327e-05/3.352e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4656/0.5664, allocations: 96.76 MB / 396.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003616/0.5668, allocations: 89.5 kB / 396.8 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8955/1.462, allocations: 135.7 MB / 0.52 GB, free: 66.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.462, allocations: 0 / 0.52 GB, free: 66.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007443/1.463, allocations: 133.6 kB / 0.5201 GB, free: 66.2 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.03455/1.498, allocations: 7.043 MB / 0.527 GB, free: 65.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/1.498, allocations: 10.09 kB / 0.527 GB, free: 65.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006708/1.505, allocations: 1.143 MB / 0.5281 GB, free: 65.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07961/1.584, allocations: 7.566 MB / 0.5355 GB, free: 64.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03758/1.622, allocations: 9.683 MB / 0.545 GB, free: 63.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007481/1.623, allocations: 492.7 kB / 0.5454 GB, free: 63.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003906/1.627, allocations: 0.6567 MB / 0.5461 GB, free: 63.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05372/1.68, allocations: 16.56 MB / 0.5623 GB, free: 59.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005605/1.681, allocations: 100.2 kB / 0.5624 GB, free: 59.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0035/1.684, allocations: 314.5 kB / 0.5627 GB, free: 59.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003757/1.688, allocations: 1.579 MB / 0.5642 GB, free: 59.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04465/1.733, allocations: 13.51 MB / 0.5774 GB, free: 59.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1236/1.857, allocations: 74.33 MB / 0.65 GB, free: 21.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03752/1.894, allocations: 7.693 MB / 0.6575 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008356/1.903, allocations: 3.978 MB / 0.6614 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3801/2.283, allocations: 18.83 MB / 0.6798 GB, free: 78.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.921e-05/2.283, allocations: 63.44 kB / 0.6798 GB, free: 78.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 8.806e-06/2.283, allocations: 1.688 kB / 0.6798 GB, free: 78.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.2313/2.514, allocations: 40.3 MB / 0.7192 GB, free: 74.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/2.514, allocations: 266.7 kB / 0.7194 GB, free: 73.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01396/2.528, allocations: 5.303 MB / 0.7246 GB, free: 73.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001067/2.53, allocations: 79.48 kB / 0.7247 GB, free: 73.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004402/2.534, allocations: 4.554 MB / 0.7291 GB, free: 70.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002415/2.536, allocations: 1.352 MB / 0.7305 GB, free: 70.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/2.538, allocations: 183.4 kB / 0.7306 GB, free: 70.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008979/2.539, allocations: 0.6999 MB / 0.7313 GB, free: 69.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01019/2.549, allocations: 3.689 MB / 0.7349 GB, free: 69.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01365/2.563, allocations: 8.874 MB / 0.7436 GB, free: 63.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01327/2.576, allocations: 5.607 MB / 0.7491 GB, free: 61.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002325/2.577, allocations: 51.38 kB / 0.7491 GB, free: 61.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.0563/2.633, allocations: 16.17 MB / 0.7649 GB, free: 56.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000168/2.633, allocations: 87.95 kB / 0.765 GB, free: 56.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003025/2.633, allocations: 183.9 kB / 0.7652 GB, free: 56.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02243/2.656, allocations: 4.079 MB / 0.7691 GB, free: 53.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01347/2.669, allocations: 2.038 MB / 0.7711 GB, free: 51.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05181/2.721, allocations: 21.73 MB / 0.7924 GB, free: 33.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01218/2.734, allocations: 0.5503 MB / 0.7929 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002653/2.736, allocations: 0.5366 MB / 0.7934 GB, free: 32.25 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.003993/2.74, allocations: 0.806 MB / 0.7942 GB, free: 31.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00169/2.742, allocations: 0.5708 MB / 0.7948 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03754/2.78, allocations: 9.687 MB / 0.8042 GB, free: 23.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.101e-05/2.78, allocations: 36 kB / 0.8043 GB, free: 23.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.753e-05/2.78, allocations: 16 kB / 0.8043 GB, free: 23.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.998e-05/2.78, allocations: 20.22 kB / 0.8043 GB, free: 23.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0667/2.847, allocations: 19.08 MB / 0.8229 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.578e-05/2.847, allocations: 3.938 kB / 0.8229 GB, free: 8.188 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005316/2.852, allocations: 0.5143 MB / 0.8234 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3375/3.19, allocations: 3.548 MB / 0.8269 GB, free: 67.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009779/3.191, allocations: 60.75 kB / 0.827 GB, free: 67.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0478/3.238, allocations: 18.71 MB / 0.8452 GB, free: 64.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/3.238, allocations: 7.25 kB / 0.8452 GB, free: 64.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04584/3.284, allocations: 14.13 MB / 0.859 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004964/3.289, allocations: 1.118 MB / 0.8601 GB, free: 63.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002433/3.292, allocations: 61.52 kB / 0.8602 GB, free: 63.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006626/3.299, allocations: 229.7 kB / 0.8604 GB, free: 63.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001594/3.3, allocations: 217.9 kB / 0.8606 GB, free: 63.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005527/3.301, allocations: 96.5 kB / 0.8607 GB, free: 63.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01019/3.311, allocations: 3.701 MB / 0.8643 GB, free: 63.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.383e-06/3.311, allocations: 1.875 kB / 0.8643 GB, free: 63.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01258/3.324, allocations: 1.85 MB / 0.8661 GB, free: 63.53 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.04779/3.371, allocations: 14.99 MB / 0.8808 GB, free: 61.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02446/3.396, allocations: 9.519 MB / 0.8901 GB, free: 58.08 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/3.396, allocations: 4.469 kB / 0.8901 GB, free: 58.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009818/3.406, allocations: 3.713 MB / 0.8937 GB, free: 56.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006859/3.413, allocations: 0.7204 MB / 0.8944 GB, free: 56.21 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05624/3.469, allocations: 16.06 MB / 0.9101 GB, free: 50.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01223/3.481, allocations: 5.011 MB / 0.915 GB, free: 48.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008435/3.49, allocations: 3.328 MB / 0.9182 GB, free: 46.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/3.49, allocations: 0 / 0.9182 GB, free: 46.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.024/9.514, allocations: 187 MB / 1.101 GB, free: 19.8 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