Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.953/1.953, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.007e-05/4.016e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4551/0.5592, allocations: 92.58 MB / 414.4 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/0.5595, allocations: 74.69 kB / 414.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.034/1.593, allocations: 142.4 MB / 0.5438 GB, free: 87.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.593, allocations: 0 / 0.5438 GB, free: 87.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007005/1.594, allocations: 158 kB / 0.544 GB, free: 87.24 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.06192/1.656, allocations: 8.671 MB / 0.5524 GB, free: 84.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/1.656, allocations: 10.44 kB / 0.5525 GB, free: 84.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006201/1.662, allocations: 1.296 MB / 0.5537 GB, free: 84.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05825/1.721, allocations: 7.697 MB / 0.5612 GB, free: 83.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03897/1.76, allocations: 10.93 MB / 0.5719 GB, free: 80.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007824/1.761, allocations: 0.558 MB / 0.5725 GB, free: 79.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004324/1.765, allocations: 0.7547 MB / 0.5732 GB, free: 79.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0573/1.822, allocations: 17.36 MB / 0.5902 GB, free: 63.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007208/1.823, allocations: 107 kB / 0.5903 GB, free: 63.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004156/1.827, allocations: 359.6 kB / 0.5906 GB, free: 62.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004425/1.832, allocations: 1.612 MB / 0.5922 GB, free: 61.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05035/1.882, allocations: 13.75 MB / 0.6056 GB, free: 47.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5173/2.399, allocations: 78.99 MB / 0.6827 GB, free: 44.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03723/2.437, allocations: 6.878 MB / 0.6894 GB, free: 43.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007723/2.444, allocations: 3.215 MB / 0.6926 GB, free: 43.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0361/2.481, allocations: 14.68 MB / 0.7069 GB, free: 40.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.902e-05/2.481, allocations: 62.66 kB / 0.707 GB, free: 40.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=259): time 7.043e-06/2.481, allocations: 2.062 kB / 0.707 GB, free: 40.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=287): time 0.1109/2.592, allocations: 22.98 MB / 0.7294 GB, free: 34.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004693/2.596, allocations: 6.242 MB / 0.7355 GB, free: 28.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.015/2.612, allocations: 5.759 MB / 0.7411 GB, free: 26.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009641/2.613, allocations: 65.84 kB / 0.7412 GB, free: 26.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004795/2.617, allocations: 5.064 MB / 0.7462 GB, free: 22.74 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002233/2.62, allocations: 1.186 MB / 0.7473 GB, free: 21.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001381/2.621, allocations: 190 kB / 0.7475 GB, free: 21.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007352/2.622, allocations: 0.7226 MB / 0.7482 GB, free: 21.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00999/2.632, allocations: 3.792 MB / 0.7519 GB, free: 19.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01392/2.646, allocations: 9.532 MB / 0.7612 GB, free: 10.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01681/2.663, allocations: 5.898 MB / 0.767 GB, free: 9.148 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003255/2.663, allocations: 59.12 kB / 0.767 GB, free: 9.148 MB / 442.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.08126/2.744, allocations: 14.35 MB / 0.781 GB, free: 2.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002624/2.745, allocations: 92 kB / 0.7811 GB, free: 2.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04347/2.788, allocations: 7.306 MB / 0.7883 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01668/2.805, allocations: 2.843 MB / 0.791 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01606/2.821, allocations: 2.353 MB / 0.7933 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01785/2.839, allocations: 11.27 MB / 0.8043 GB, free: 15.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0209/2.86, allocations: 0.8719 MB / 0.8052 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003119/2.863, allocations: 0.5842 MB / 0.8058 GB, free: 14.19 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 933 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (1204): * Single equations (assignments): 1179 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 11 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.004121/2.867, allocations: 0.8578 MB / 0.8066 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002512/2.87, allocations: 0.5823 MB / 0.8072 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03904/2.909, allocations: 7.528 MB / 0.8145 GB, free: 6.773 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02982/2.939, allocations: 6.702 MB / 0.8211 GB, free: 20 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.757e-05/2.939, allocations: 8 kB / 0.8211 GB, free: 12 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.501e-05/2.939, allocations: 12.33 kB / 0.8211 GB, free: 0 / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02434/2.963, allocations: 7.434 MB / 0.8283 GB, free: 8.582 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.262e-05/2.963, allocations: 7.984 kB / 0.8284 GB, free: 8.574 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006837/2.97, allocations: 0.5929 MB / 0.8289 GB, free: 7.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01872/2.989, allocations: 3.132 MB / 0.832 GB, free: 4.805 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001061/2.99, allocations: 103.8 kB / 0.8321 GB, free: 4.707 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02676/3.017, allocations: 13.99 MB / 0.8457 GB, free: 5.953 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3446/3.361, allocations: 6.002 MB / 0.8516 GB, free: 141 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03928/3.401, allocations: 11.65 MB / 0.863 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00516/3.406, allocations: 1.133 MB / 0.8641 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002908/3.409, allocations: 75.39 kB / 0.8642 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008185/3.417, allocations: 373.2 kB / 0.8645 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001541/3.419, allocations: 214.4 kB / 0.8647 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006106/3.419, allocations: 88.89 kB / 0.8648 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01324/3.433, allocations: 4.005 MB / 0.8687 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.504e-06/3.433, allocations: 0 / 0.8687 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01475/3.448, allocations: 2.009 MB / 0.8707 GB, free: 139.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 216 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03635/3.484, allocations: 12.5 MB / 0.8829 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03075/3.515, allocations: 10.42 MB / 0.8931 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/3.515, allocations: 0 / 0.8931 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01753/3.532, allocations: 5.253 MB / 0.8982 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008697/3.541, allocations: 0.8286 MB / 0.899 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06774/3.609, allocations: 19.81 MB / 0.9184 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01365/3.623, allocations: 5.396 MB / 0.9236 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009596/3.632, allocations: 3.684 MB / 0.9272 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.693e-06/3.632, allocations: 0 / 0.9272 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.022/11.65, allocations: 0.5428 GB / 1.47 GB, free: 91.93 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat