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.922/1.922, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.255e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4574/0.5592, allocations: 92.16 MB / 408.5 MB, free: 428 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.5595, allocations: 70.59 kB / 408.5 MB, free: 392 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8929/1.452, allocations: 138.9 MB / 0.5346 GB, free: 80.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.206e-06/1.452, allocations: 11.19 kB / 0.5346 GB, free: 80.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007493/1.453, allocations: 148 kB / 0.5348 GB, free: 80.6 MB / 410.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.08769/1.541, allocations: 8.68 MB / 0.5433 GB, free: 77.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.734e-05/1.541, allocations: 7.125 kB / 0.5433 GB, free: 77.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08532/1.626, allocations: 7.696 MB / 0.5508 GB, free: 74.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04629/1.673, allocations: 10.9 MB / 0.5614 GB, free: 67.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005096/1.673, allocations: 248 kB / 0.5617 GB, free: 67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004416/1.678, allocations: 447.8 kB / 0.5621 GB, free: 66.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0262/1.704, allocations: 10.04 MB / 0.5719 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04089/1.745, allocations: 15.14 MB / 0.5867 GB, free: 39.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006189/1.746, allocations: 103.1 kB / 0.5868 GB, free: 39.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003599/1.749, allocations: 47.94 kB / 0.5868 GB, free: 39.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003858/1.753, allocations: 1.6 MB / 0.5884 GB, free: 38.13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.528/2.281, allocations: 77.59 MB / 0.6642 GB, free: 45.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009745/2.291, allocations: 4.348 MB / 0.6684 GB, free: 45.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006597/2.298, allocations: 3.039 MB / 0.6714 GB, free: 45.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003701/2.298, allocations: 45.77 kB / 0.6714 GB, free: 45.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.908e-05/2.298, allocations: 73.28 kB / 0.6715 GB, free: 45.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=265): time 7.264e-06/2.298, allocations: 0 / 0.6715 GB, free: 45.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=293): time 0.08678/2.385, allocations: 21.59 MB / 0.6926 GB, free: 40.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.5e-05/2.385, allocations: 239.4 kB / 0.6928 GB, free: 40.31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01928/2.404, allocations: 5.145 MB / 0.6978 GB, free: 38.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001116/2.406, allocations: 32.58 kB / 0.6979 GB, free: 38.44 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006637/2.412, allocations: 5.119 MB / 0.7029 GB, free: 34.42 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/2.415, allocations: 1.176 MB / 0.704 GB, free: 33.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/2.416, allocations: 3.031 kB / 0.704 GB, free: 33.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009118/2.417, allocations: 0.7357 MB / 0.7047 GB, free: 33.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009295/2.426, allocations: 3.663 MB / 0.7083 GB, free: 31.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01299/2.439, allocations: 9.549 MB / 0.7176 GB, free: 22.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/2.452, allocations: 5.784 MB / 0.7233 GB, free: 20.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002753/2.453, allocations: 59.94 kB / 0.7233 GB, free: 20.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.06164/2.514, allocations: 13.81 MB / 0.7368 GB, free: 15.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002265/2.515, allocations: 96 kB / 0.7369 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02997/2.545, allocations: 6.552 MB / 0.7433 GB, free: 9.887 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01503/2.56, allocations: 2.792 MB / 0.746 GB, free: 7.879 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01511/2.575, allocations: 2.407 MB / 0.7484 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0152/2.59, allocations: 10.87 MB / 0.759 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01489/2.605, allocations: 0.6839 MB / 0.7597 GB, free: 10.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003069/2.608, allocations: 0.6009 MB / 0.7603 GB, free: 10.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * 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 (1234): * Single equations (assignments): 1209 * 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.004421/2.613, allocations: 0.645 MB / 0.7609 GB, free: 9.469 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02932/2.642, allocations: 7.441 MB / 0.7682 GB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00247/2.645, allocations: 0.5669 MB / 0.7687 GB, free: 2.863 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03666/2.681, allocations: 7.767 MB / 0.7763 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02745/2.709, allocations: 6.551 MB / 0.7827 GB, free: 8.586 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-05/2.709, allocations: 8 kB / 0.7827 GB, free: 8.578 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001178/2.709, allocations: 11.95 kB / 0.7827 GB, free: 8.566 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0836/2.793, allocations: 11.01 MB / 0.7935 GB, free: 13.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.514e-05/2.793, allocations: 3.984 kB / 0.7935 GB, free: 13.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02455/2.817, allocations: 0.6084 MB / 0.7941 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02835/2.846, allocations: 3.07 MB / 0.7971 GB, free: 9.82 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001326/2.847, allocations: 59.91 kB / 0.7971 GB, free: 9.762 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04009/2.887, allocations: 13.75 MB / 0.8106 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009181/2.896, allocations: 5.78 MB / 0.8162 GB, free: 5.082 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3866/3.283, allocations: 11.51 MB / 0.8274 GB, free: 134.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004754/3.288, allocations: 1.097 MB / 0.8285 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002595/3.291, allocations: 32.62 kB / 0.8285 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007801/3.298, allocations: 334.5 kB / 0.8289 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001681/3.3, allocations: 219.3 kB / 0.8291 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000906/3.301, allocations: 90.27 kB / 0.8291 GB, free: 134.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01071/3.312, allocations: 3.448 MB / 0.8325 GB, free: 134.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.22e-07/3.312, allocations: 0 / 0.8325 GB, free: 134.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01555/3.327, allocations: 1.861 MB / 0.8343 GB, free: 134.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET140572389147019.x[3],$STATESET140572389147019.x[2],$STATESET140572389147019.x[1],$STATESET140572389147018.x[3],$STATESET140572389147018.x[2],$STATESET140572389147018.x[1],$STATESET140572389147017.x[3],$STATESET140572389147017.x[2],$STATESET140572389147017.x[1],$STATESET140572389147016.x[3],$STATESET140572389147016.x[2],$STATESET140572389147016.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 (239): * Single equations (assignments): 222 * 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.03476/3.362, allocations: 12.33 MB / 0.8464 GB, free: 132.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0278/3.39, allocations: 10.33 MB / 0.8565 GB, free: 131.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/3.39, allocations: 0 / 0.8565 GB, free: 131.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0166/3.407, allocations: 5.248 MB / 0.8616 GB, free: 128.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007952/3.415, allocations: 0.6989 MB / 0.8623 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07957/3.494, allocations: 19.48 MB / 0.8813 GB, free: 120.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0179/3.512, allocations: 5.408 MB / 0.8866 GB, free: 119 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01053/3.523, allocations: 3.651 MB / 0.8901 GB, free: 116 MB / 490.7 MB Notification: Performance of SimCode: time 1.623e-06/3.523, allocations: 0 / 0.8901 GB, free: 116 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.177/11.7, allocations: 0.5411 GB / 1.431 GB, free: 82.62 MB / 490.7 MB 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