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.107/2.107, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.825e-05/2.826e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.314, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1797/0.4937, allocations: 96.1 MB / 390.3 MB, free: 1.758 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003314/0.4941, allocations: 83.95 kB / 390.4 MB, free: 1.676 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8122/1.306, allocations: 133 MB / 0.5111 GB, free: 26.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.306, allocations: 0 / 0.5111 GB, free: 26.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004962/1.307, allocations: 136 kB / 0.5113 GB, free: 26.29 MB / 362.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.02934/1.336, allocations: 7.043 MB / 0.5181 GB, free: 19.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/1.336, allocations: 8.031 kB / 0.5181 GB, free: 19.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05581/1.392, allocations: 7.561 MB / 0.5255 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03415/1.426, allocations: 9.671 MB / 0.535 GB, free: 1.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004281/1.427, allocations: 208 kB / 0.5352 GB, free: 1.617 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003441/1.43, allocations: 403.7 kB / 0.5356 GB, free: 1.223 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02775/1.458, allocations: 9.679 MB / 0.545 GB, free: 7.535 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3289/1.787, allocations: 14.24 MB / 0.5589 GB, free: 48.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006783/1.788, allocations: 98.34 kB / 0.559 GB, free: 48.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003196/1.791, allocations: 44.5 kB / 0.559 GB, free: 48.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004231/1.795, allocations: 1.578 MB / 0.5606 GB, free: 48.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/1.911, allocations: 73.69 MB / 0.6326 GB, free: 20.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01039/1.921, allocations: 5.231 MB / 0.6377 GB, free: 17.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007186/1.928, allocations: 3.767 MB / 0.6413 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003485/1.932, allocations: 2.271 MB / 0.6436 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.736e-05/1.932, allocations: 62.62 kB / 0.6436 GB, free: 13.81 MB / 394.7 MB Notification: Performance of pre-optimization done (n=301): time 6.632e-06/1.932, allocations: 0 / 0.6436 GB, free: 13.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=381): time 0.1749/2.107, allocations: 40.66 MB / 0.6833 GB, free: 11.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001846/2.107, allocations: 269.9 kB / 0.6836 GB, free: 10.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.013/2.12, allocations: 4.643 MB / 0.6881 GB, free: 6.773 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001077/2.121, allocations: 29.7 kB / 0.6881 GB, free: 6.738 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005504/2.127, allocations: 4.622 MB / 0.6927 GB, free: 2.496 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002809/2.13, allocations: 1.352 MB / 0.694 GB, free: 1.273 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/2.131, allocations: 0 / 0.694 GB, free: 1.273 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009808/2.132, allocations: 0.7061 MB / 0.6947 GB, free: 0.668 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02707/2.159, allocations: 4.683 MB / 0.6992 GB, free: 0 / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01591/2.175, allocations: 8.926 MB / 0.708 GB, free: 4.984 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01423/2.19, allocations: 5.576 MB / 0.7134 GB, free: 224 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002009/2.19, allocations: 56 kB / 0.7135 GB, free: 168 kB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.3749/2.565, allocations: 15.36 MB / 0.7285 GB, free: 92.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001576/2.565, allocations: 85.72 kB / 0.7285 GB, free: 92.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003008/2.565, allocations: 184.8 kB / 0.7287 GB, free: 92.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02199/2.587, allocations: 4.086 MB / 0.7327 GB, free: 92.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01357/2.601, allocations: 2.106 MB / 0.7348 GB, free: 92.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05118/2.652, allocations: 21.02 MB / 0.7553 GB, free: 89.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01143/2.664, allocations: 380.5 kB / 0.7557 GB, free: 89.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002456/2.666, allocations: 0.5475 MB / 0.7562 GB, free: 89.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * 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 (1121): * Single equations (assignments): 1116 * 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.003764/2.67, allocations: 0.589 MB / 0.7568 GB, free: 89.63 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0376/2.708, allocations: 9.841 MB / 0.7664 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001979/2.71, allocations: 0.5404 MB / 0.7669 GB, free: 87.21 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03725/2.747, allocations: 9.577 MB / 0.7763 GB, free: 84.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.551e-05/2.747, allocations: 38.05 kB / 0.7763 GB, free: 84.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.081e-05/2.747, allocations: 16.75 kB / 0.7763 GB, free: 84.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.962e-05/2.747, allocations: 20.86 kB / 0.7763 GB, free: 84.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06391/2.811, allocations: 18.14 MB / 0.794 GB, free: 72.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.025e-05/2.811, allocations: 6.906 kB / 0.794 GB, free: 72.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005244/2.817, allocations: 0.5299 MB / 0.7946 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02025/2.837, allocations: 3.514 MB / 0.798 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009645/2.838, allocations: 11.28 kB / 0.798 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04218/2.88, allocations: 17.68 MB / 0.8153 GB, free: 54.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/2.88, allocations: 4 kB / 0.8153 GB, free: 54.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04261/2.923, allocations: 14.29 MB / 0.8292 GB, free: 41.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004326/2.927, allocations: 1.084 MB / 0.8303 GB, free: 40.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002277/2.929, allocations: 6.438 kB / 0.8303 GB, free: 40.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006111/2.936, allocations: 174.3 kB / 0.8305 GB, free: 40.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001567/2.937, allocations: 241.4 kB / 0.8307 GB, free: 39.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005487/2.938, allocations: 95.98 kB / 0.8308 GB, free: 39.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007985/2.946, allocations: 3.12 MB / 0.8338 GB, free: 36.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.41e-07/2.946, allocations: 0 / 0.8338 GB, free: 36.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01243/2.958, allocations: 1.61 MB / 0.8354 GB, free: 35.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (284): * Single equations (assignments): 279 * 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.04492/3.003, allocations: 15.52 MB / 0.8506 GB, free: 19.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03018/3.033, allocations: 9.224 MB / 0.8596 GB, free: 10.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-05/3.034, allocations: 4 kB / 0.8596 GB, free: 10.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01312/3.047, allocations: 3.669 MB / 0.8632 GB, free: 6.508 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008054/3.055, allocations: 0.5846 MB / 0.8637 GB, free: 5.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3935/3.448, allocations: 15.75 MB / 0.8791 GB, free: 89.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01286/3.461, allocations: 5.012 MB / 0.884 GB, free: 88.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008525/3.47, allocations: 3.321 MB / 0.8872 GB, free: 88.67 MB / 426.7 MB Notification: Performance of SimCode: time 1.784e-06/3.47, allocations: 0 / 0.8872 GB, free: 88.67 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.888/9.358, allocations: 183.8 MB / 1.067 GB, free: 102.3 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