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.952/1.952, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.89e-05/3.909e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4272/0.5349, allocations: 92.57 MB / 414.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.5352, allocations: 78.98 kB / 414.5 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9898/1.525, allocations: 142.4 MB / 0.5438 GB, free: 87.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.525, allocations: 0 / 0.5438 GB, free: 87.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005679/1.526, allocations: 159.5 kB / 0.544 GB, free: 87.31 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.08048/1.606, allocations: 8.67 MB / 0.5524 GB, free: 84.49 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.417e-05/1.606, allocations: 10.59 kB / 0.5524 GB, free: 84.49 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007572/1.614, allocations: 1.3 MB / 0.5537 GB, free: 84.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05928/1.673, allocations: 7.697 MB / 0.5612 GB, free: 83.87 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04008/1.713, allocations: 10.92 MB / 0.5719 GB, free: 80.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007507/1.714, allocations: 0.5611 MB / 0.5724 GB, free: 80.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004164/1.718, allocations: 0.7617 MB / 0.5732 GB, free: 79.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05551/1.774, allocations: 17.44 MB / 0.5902 GB, free: 63.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005549/1.774, allocations: 111 kB / 0.5903 GB, free: 63.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003324/1.778, allocations: 359.1 kB / 0.5907 GB, free: 62.83 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003663/1.782, allocations: 1.598 MB / 0.5922 GB, free: 61.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0468/1.828, allocations: 14.04 MB / 0.6059 GB, free: 47.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5295/2.358, allocations: 79 MB / 0.6831 GB, free: 43.44 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03691/2.395, allocations: 6.896 MB / 0.6898 GB, free: 42.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007762/2.403, allocations: 3.223 MB / 0.6929 GB, free: 42.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03847/2.441, allocations: 14.67 MB / 0.7073 GB, free: 39.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.513e-05/2.441, allocations: 64.19 kB / 0.7073 GB, free: 39.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=259): time 6.893e-06/2.441, allocations: 0 / 0.7073 GB, free: 39.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=287): time 0.1079/2.549, allocations: 22.99 MB / 0.7298 GB, free: 34.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004954/2.554, allocations: 6.248 MB / 0.7359 GB, free: 28.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01534/2.57, allocations: 5.756 MB / 0.7415 GB, free: 26.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009966/2.571, allocations: 70.17 kB / 0.7416 GB, free: 26.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004857/2.576, allocations: 5.071 MB / 0.7465 GB, free: 22.46 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002219/2.578, allocations: 1.177 MB / 0.7477 GB, free: 21.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001565/2.58, allocations: 196.4 kB / 0.7479 GB, free: 21.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008456/2.58, allocations: 0.7215 MB / 0.7486 GB, free: 20.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009976/2.59, allocations: 3.796 MB / 0.7523 GB, free: 19.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01399/2.604, allocations: 9.577 MB / 0.7616 GB, free: 10.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01388/2.618, allocations: 5.906 MB / 0.7674 GB, free: 8.844 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002435/2.619, allocations: 59.31 kB / 0.7675 GB, free: 8.844 MB / 442.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.04546/2.664, allocations: 14.91 MB / 0.782 GB, free: 1.688 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001538/2.664, allocations: 99.69 kB / 0.7821 GB, free: 1.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02673/2.691, allocations: 6.837 MB / 0.7888 GB, free: 12.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02215/2.713, allocations: 2.84 MB / 0.7916 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02175/2.735, allocations: 2.352 MB / 0.7939 GB, free: 8.371 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02361/2.759, allocations: 11.27 MB / 0.8049 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01927/2.778, allocations: 0.8702 MB / 0.8057 GB, free: 12.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002835/2.781, allocations: 0.5868 MB / 0.8063 GB, free: 12.02 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.00462/2.786, allocations: 0.8577 MB / 0.8071 GB, free: 11.17 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002349/2.788, allocations: 0.5823 MB / 0.8077 GB, free: 10.58 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03073/2.819, allocations: 7.539 MB / 0.8151 GB, free: 4.656 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02689/2.846, allocations: 6.7 MB / 0.8216 GB, free: 14.99 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.165e-05/2.846, allocations: 11.95 kB / 0.8216 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.753e-05/2.846, allocations: 15.94 kB / 0.8216 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0248/2.871, allocations: 7.43 MB / 0.8289 GB, free: 7.547 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.243e-05/2.871, allocations: 4 kB / 0.8289 GB, free: 7.543 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006817/2.878, allocations: 0.5963 MB / 0.8295 GB, free: 6.949 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01841/2.896, allocations: 3.132 MB / 0.8325 GB, free: 3.773 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001038/2.897, allocations: 95.91 kB / 0.8326 GB, free: 3.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02682/2.924, allocations: 14 MB / 0.8463 GB, free: 4.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3432/3.268, allocations: 6.009 MB / 0.8522 GB, free: 140.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03838/3.306, allocations: 11.65 MB / 0.8635 GB, free: 140 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005009/3.311, allocations: 1.127 MB / 0.8646 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002298/3.313, allocations: 77.69 kB / 0.8647 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00792/3.321, allocations: 374.1 kB / 0.8651 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001537/3.323, allocations: 218.1 kB / 0.8653 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000586/3.324, allocations: 94.88 kB / 0.8654 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01276/3.336, allocations: 3.999 MB / 0.8693 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.61e-07/3.336, allocations: 0 / 0.8693 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01362/3.35, allocations: 2.008 MB / 0.8712 GB, free: 139.6 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.03529/3.385, allocations: 12.5 MB / 0.8834 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02943/3.415, allocations: 10.73 MB / 0.8939 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/3.415, allocations: 0 / 0.8939 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01683/3.432, allocations: 5.309 MB / 0.8991 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00838/3.44, allocations: 0.8255 MB / 0.8999 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06448/3.505, allocations: 19.84 MB / 0.9193 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/3.519, allocations: 5.405 MB / 0.9246 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009791/3.529, allocations: 3.674 MB / 0.9281 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.583e-06/3.529, allocations: 0 / 0.9281 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.134/11.66, allocations: 0.5443 GB / 1.472 GB, free: 112.8 MB / 0.5105 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