Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.431/2.431, allocations: 235 MB / 247.6 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.199e-05/3.208e-05, allocations: 0 / 305 MB, free: 5.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.396, allocations: 54.86 MB / 359.9 MB, free: 2.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1817/0.5777, allocations: 99.28 MB / 459.1 MB, free: 13.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.578, allocations: 75.95 kB / 459.2 MB, free: 13.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9361/1.514, allocations: 142.6 MB / 0.5877 GB, free: 95 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.514, allocations: 7.188 kB / 0.5877 GB, free: 94.99 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005746/1.515, allocations: 152.2 kB / 0.5878 GB, free: 94.99 MB / 458.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.06279/1.578, allocations: 8.671 MB / 0.5963 GB, free: 89.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/1.578, allocations: 10.03 kB / 0.5963 GB, free: 89.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00652/1.584, allocations: 1.301 MB / 0.5976 GB, free: 89.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0589/1.643, allocations: 7.743 MB / 0.6051 GB, free: 83.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03994/1.683, allocations: 10.96 MB / 0.6158 GB, free: 72.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000735/1.684, allocations: 0.5576 MB / 0.6164 GB, free: 71.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004143/1.688, allocations: 0.7651 MB / 0.6171 GB, free: 71.23 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05542/1.744, allocations: 17.36 MB / 0.6341 GB, free: 52.33 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005799/1.744, allocations: 103 kB / 0.6342 GB, free: 52.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0036/1.748, allocations: 363.8 kB / 0.6345 GB, free: 51.87 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003822/1.752, allocations: 1.604 MB / 0.6361 GB, free: 50.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04683/1.799, allocations: 13.74 MB / 0.6495 GB, free: 36.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.55/2.349, allocations: 79.01 MB / 0.7267 GB, free: 49.27 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0364/2.385, allocations: 6.876 MB / 0.7334 GB, free: 48.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007527/2.393, allocations: 3.197 MB / 0.7365 GB, free: 48.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03465/2.427, allocations: 14.72 MB / 0.7509 GB, free: 45.38 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.254e-05/2.427, allocations: 60.38 kB / 0.7509 GB, free: 45.34 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 6.693e-06/2.428, allocations: 3.781 kB / 0.7509 GB, free: 45.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1067/2.534, allocations: 22.98 MB / 0.7734 GB, free: 38.98 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004815/2.539, allocations: 6.243 MB / 0.7795 GB, free: 32.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01555/2.555, allocations: 5.753 MB / 0.7851 GB, free: 30.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009493/2.556, allocations: 71.59 kB / 0.7852 GB, free: 30.71 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004744/2.561, allocations: 5.061 MB / 0.7901 GB, free: 26.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002217/2.563, allocations: 1.176 MB / 0.7913 GB, free: 25.85 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/2.565, allocations: 191.2 kB / 0.7914 GB, free: 25.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001069/2.566, allocations: 0.7296 MB / 0.7922 GB, free: 25.21 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009966/2.576, allocations: 3.814 MB / 0.7959 GB, free: 23.91 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01445/2.59, allocations: 9.556 MB / 0.8052 GB, free: 14.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01358/2.604, allocations: 5.938 MB / 0.811 GB, free: 12.92 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002632/2.604, allocations: 62.38 kB / 0.8111 GB, free: 12.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.06986/2.674, allocations: 15.34 MB / 0.826 GB, free: 1.629 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002365/2.674, allocations: 92 kB / 0.8261 GB, free: 1.539 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04546/2.72, allocations: 7.811 MB / 0.8338 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03074/2.751, allocations: 3.899 MB / 0.8376 GB, free: 9.332 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01574/2.766, allocations: 2.311 MB / 0.8398 GB, free: 7.348 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02778/2.794, allocations: 13.59 MB / 0.8531 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01589/2.81, allocations: 0.8645 MB / 0.8539 GB, free: 9.156 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00312/2.813, allocations: 0.5975 MB / 0.8545 GB, free: 8.559 MB / 0.4948 GB 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 (1195): * Single equations (assignments): 1170 * Array equations: 11 * 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 {(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: 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 prepare postOptimizeDAE: time 0.004423/2.818, allocations: 0.8499 MB / 0.8554 GB, free: 7.703 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002022/2.82, allocations: 0.5823 MB / 0.8559 GB, free: 7.113 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03001/2.85, allocations: 7.531 MB / 0.8633 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02689/2.877, allocations: 6.7 MB / 0.8698 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-05/2.877, allocations: 11.95 kB / 0.8698 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.372e-05/2.877, allocations: 15.38 kB / 0.8698 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02445/2.902, allocations: 7.422 MB / 0.8771 GB, free: 1.348 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-05/2.902, allocations: 0 / 0.8771 GB, free: 1.348 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006887/2.909, allocations: 0.6006 MB / 0.8777 GB, free: 0.7461 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01867/2.927, allocations: 3.126 MB / 0.8807 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001043/2.928, allocations: 100.9 kB / 0.8808 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02636/2.955, allocations: 13.98 MB / 0.8945 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00654/2.961, allocations: 6.027 MB / 0.9004 GB, free: 8.137 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3973/3.359, allocations: 11.64 MB / 0.9117 GB, free: 160.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/3.361, allocations: 0.6371 MB / 0.9124 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002527/3.364, allocations: 75.56 kB / 0.9124 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007727/3.372, allocations: 374.6 kB / 0.9128 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001538/3.373, allocations: 217.6 kB / 0.913 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000582/3.374, allocations: 92.64 kB / 0.9131 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01298/3.387, allocations: 4.002 MB / 0.917 GB, free: 160.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.32e-07/3.387, allocations: 0.875 kB / 0.917 GB, free: 160.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01535/3.402, allocations: 2.029 MB / 0.919 GB, free: 160.4 MB / 0.5417 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.03685/3.439, allocations: 12.51 MB / 0.9312 GB, free: 159 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0286/3.468, allocations: 10.82 MB / 0.9418 GB, free: 157.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/3.468, allocations: 0 / 0.9418 GB, free: 157.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01642/3.484, allocations: 5.261 MB / 0.9469 GB, free: 155.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007674/3.492, allocations: 0.8202 MB / 0.9477 GB, free: 155.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08434/3.576, allocations: 19.82 MB / 0.967 GB, free: 147.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01906/3.595, allocations: 5.403 MB / 0.9723 GB, free: 146.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01345/3.609, allocations: 3.678 MB / 0.9759 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of SimCode: time 2.104e-06/3.609, allocations: 0 / 0.9759 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.433/12.04, allocations: 0.544 GB / 1.52 GB, free: 160.4 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat