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.661/1.661, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.336e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2527, allocations: 38.77 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1743/0.427, allocations: 90.34 MB / 348.7 MB, free: 3.539 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.4274, allocations: 87.94 kB / 348.8 MB, free: 3.453 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8093/1.237, allocations: 132.9 MB / 481.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.288e-06/1.237, allocations: 0 / 481.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004912/1.237, allocations: 139.9 kB / 481.8 MB, free: 10.13 MB / 330.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.02951/1.267, allocations: 7.028 MB / 488.8 MB, free: 3.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/1.267, allocations: 8.031 kB / 488.8 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2933/1.56, allocations: 7.565 MB / 496.4 MB, free: 38.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03267/1.593, allocations: 9.671 MB / 0.4942 GB, free: 37.69 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003968/1.593, allocations: 209.6 kB / 0.4944 GB, free: 37.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003205/1.597, allocations: 403.8 kB / 0.4948 GB, free: 37.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02293/1.62, allocations: 9.676 MB / 0.5042 GB, free: 37.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03383/1.653, allocations: 14.23 MB / 0.5181 GB, free: 33.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004165/1.654, allocations: 101.2 kB / 0.5182 GB, free: 33.78 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002092/1.656, allocations: 40.66 kB / 0.5183 GB, free: 33.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003436/1.659, allocations: 1.58 MB / 0.5198 GB, free: 33.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1115/1.771, allocations: 73.67 MB / 0.5918 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/1.782, allocations: 5.233 MB / 0.5969 GB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008121/1.791, allocations: 3.766 MB / 0.6006 GB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004064/1.795, allocations: 2.276 MB / 0.6028 GB, free: 392 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.391e-05/1.795, allocations: 60.56 kB / 0.6028 GB, free: 324 kB / 362.7 MB Notification: Performance of pre-optimization done (n=301): time 7.114e-06/1.795, allocations: 2 kB / 0.6028 GB, free: 324 kB / 362.7 MB Notification: Performance of matching and sorting (n=381): time 0.4234/2.218, allocations: 41.57 MB / 0.6434 GB, free: 77.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/2.218, allocations: 274 kB / 0.6437 GB, free: 77.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01009/2.228, allocations: 4.639 MB / 0.6482 GB, free: 76.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009494/2.229, allocations: 29.48 kB / 0.6483 GB, free: 76.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003762/2.233, allocations: 4.618 MB / 0.6528 GB, free: 74.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00213/2.235, allocations: 1.355 MB / 0.6541 GB, free: 73.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/2.237, allocations: 0 / 0.6541 GB, free: 73.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005879/2.237, allocations: 0.7161 MB / 0.6548 GB, free: 72.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008112/2.245, allocations: 3.642 MB / 0.6583 GB, free: 72.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01199/2.257, allocations: 8.928 MB / 0.6671 GB, free: 66.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/2.269, allocations: 5.572 MB / 0.6725 GB, free: 66.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002037/2.269, allocations: 51.72 kB / 0.6725 GB, free: 66.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.05132/2.321, allocations: 15.37 MB / 0.6876 GB, free: 62.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/2.321, allocations: 83.97 kB / 0.6876 GB, free: 62.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002368/2.321, allocations: 185.6 kB / 0.6878 GB, free: 62.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02134/2.343, allocations: 4.091 MB / 0.6918 GB, free: 62.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01327/2.356, allocations: 2.1 MB / 0.6939 GB, free: 62.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04838/2.404, allocations: 21.02 MB / 0.7144 GB, free: 49.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01124/2.416, allocations: 388.8 kB / 0.7148 GB, free: 49.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002339/2.418, allocations: 0.5453 MB / 0.7153 GB, free: 48.54 MB / 378.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.00247/2.42, allocations: 0.5767 MB / 0.7159 GB, free: 47.96 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03554/2.456, allocations: 9.854 MB / 0.7255 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002133/2.458, allocations: 0.5361 MB / 0.726 GB, free: 39.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03538/2.494, allocations: 9.576 MB / 0.7353 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.111e-05/2.494, allocations: 40.86 kB / 0.7354 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.859e-05/2.494, allocations: 16 kB / 0.7354 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-05/2.494, allocations: 20.55 kB / 0.7354 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06012/2.554, allocations: 18.15 MB / 0.7531 GB, free: 17.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.963e-05/2.554, allocations: 3.812 kB / 0.7532 GB, free: 17.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005251/2.559, allocations: 0.5266 MB / 0.7537 GB, free: 17.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0204/2.58, allocations: 3.519 MB / 0.7571 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009139/2.581, allocations: 15.98 kB / 0.7571 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2987/2.879, allocations: 17.65 MB / 0.7744 GB, free: 67.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/2.88, allocations: 7.234 kB / 0.7744 GB, free: 67.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.042/2.922, allocations: 14.28 MB / 0.7883 GB, free: 66.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004163/2.926, allocations: 1.09 MB / 0.7894 GB, free: 66.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001956/2.928, allocations: 5.469 kB / 0.7894 GB, free: 66.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005894/2.934, allocations: 174.7 kB / 0.7895 GB, free: 66.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001454/2.935, allocations: 239.1 kB / 0.7898 GB, free: 66.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004307/2.936, allocations: 105.4 kB / 0.7899 GB, free: 66.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007473/2.943, allocations: 3.118 MB / 0.7929 GB, free: 66.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.943, allocations: 0 / 0.7929 GB, free: 66.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01209/2.955, allocations: 1.613 MB / 0.7945 GB, free: 66.41 MB / 378.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.04327/2.999, allocations: 15.52 MB / 0.8097 GB, free: 61.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02057/3.019, allocations: 9.226 MB / 0.8187 GB, free: 58.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/3.019, allocations: 3.375 kB / 0.8187 GB, free: 58.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008603/3.028, allocations: 3.666 MB / 0.8223 GB, free: 57.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005802/3.034, allocations: 0.5841 MB / 0.8228 GB, free: 56.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04878/3.083, allocations: 15.75 MB / 0.8382 GB, free: 47.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01098/3.094, allocations: 5.011 MB / 0.8431 GB, free: 43.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007429/3.101, allocations: 3.311 MB / 0.8463 GB, free: 40.91 MB / 378.7 MB Notification: Performance of SimCode: time 1.483e-06/3.101, allocations: 4 kB / 0.8463 GB, free: 40.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.388/8.489, allocations: 183.8 MB / 1.026 GB, free: 2.949 MB / 394.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