Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.904/1.904, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.789e-05/4.81e-05, allocations: 8 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.457/0.5616, allocations: 108.3 MB / 430.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.5619, allocations: 71.97 kB / 430.2 MB, free: 13.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.195/1.757, allocations: 229.8 MB / 0.6445 GB, free: 12.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.757, allocations: 0 / 0.6445 GB, free: 12.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008464/1.758, allocations: 280 kB / 0.6447 GB, free: 12.05 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: 4696 * Number of variables: 4696 Notification: Performance of Generate backend data structure: time 0.7476/2.505, allocations: 14.48 MB / 0.6589 GB, free: 28.95 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.971e-05/2.506, allocations: 9.625 kB / 0.6589 GB, free: 28.95 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02006/2.526, allocations: 2.847 MB / 0.6617 GB, free: 28.77 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1189/2.645, allocations: 10.47 MB / 0.6719 GB, free: 27.9 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07835/2.723, allocations: 13.97 MB / 0.6855 GB, free: 27.39 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002/2.725, allocations: 1.092 MB / 0.6866 GB, free: 27.36 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007639/2.733, allocations: 1.44 MB / 0.688 GB, free: 27.34 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1268/2.86, allocations: 32.72 MB / 0.72 GB, free: 21.28 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001053/2.861, allocations: 142.8 kB / 0.7201 GB, free: 21.27 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006819/2.868, allocations: 0.6533 MB / 0.7207 GB, free: 21.27 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00558/2.873, allocations: 2.545 MB / 0.7232 GB, free: 21.25 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08635/2.96, allocations: 26.91 MB / 0.7495 GB, free: 13.16 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6959/3.656, allocations: 131.3 MB / 0.8778 GB, free: 37.22 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06073/3.716, allocations: 12.89 MB / 0.8904 GB, free: 36.54 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01316/3.73, allocations: 6.789 MB / 0.897 GB, free: 36.48 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07364/3.803, allocations: 31.01 MB / 0.9273 GB, free: 29.08 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001004/3.803, allocations: 86.95 kB / 0.9274 GB, free: 29.04 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=424): time 8.506e-06/3.804, allocations: 0 / 0.9274 GB, free: 29.04 MB / 0.4949 GB Notification: Performance of matching and sorting (n=554): time 0.543/4.347, allocations: 106.5 MB / 1.031 GB, free: 5.074 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4254/4.772, allocations: 23.08 MB / 1.054 GB, free: 123.5 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02999/4.802, allocations: 8.258 MB / 1.062 GB, free: 123.1 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.002048/4.804, allocations: 110.9 kB / 1.062 GB, free: 123 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.01002/4.814, allocations: 8.664 MB / 1.071 GB, free: 119 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.005086/4.819, allocations: 2.144 MB / 1.073 GB, free: 117.8 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003623/4.823, allocations: 317 kB / 1.073 GB, free: 117.8 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.002597/4.826, allocations: 0.9903 MB / 1.074 GB, free: 117.4 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03039/4.856, allocations: 9.223 MB / 1.083 GB, free: 117.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0313/4.887, allocations: 18.48 MB / 1.101 GB, free: 105.5 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02866/4.916, allocations: 12.8 MB / 1.113 GB, free: 102.4 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004173/4.917, allocations: 94.16 kB / 1.114 GB, free: 102.4 MB / 0.5262 GB Notification: Performance of matching and sorting (n=2093) (initialization): time 0.115/5.032, allocations: 34.36 MB / 1.147 GB, free: 91.54 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003/5.032, allocations: 146.1 kB / 1.147 GB, free: 91.54 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07915/5.111, allocations: 21.65 MB / 1.168 GB, free: 84.63 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05272/5.164, allocations: 9.05 MB / 1.177 GB, free: 80.54 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02586/5.19, allocations: 3.987 MB / 1.181 GB, free: 77.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4578/5.648, allocations: 45.77 MB / 1.226 GB, free: 105.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02896/5.677, allocations: 1.701 MB / 1.227 GB, free: 105.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005347/5.682, allocations: 0.9769 MB / 1.228 GB, free: 105.5 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1485 * Number of states: 0 () * Number of discrete variables: 69 (init2.arrowColor[3],init2.arrowColor[2],init2.arrowColor[1],init.arrowColor[3],init.arrowColor[2],init.arrowColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],universalSpherical1.cylinderColor[3],universalSpherical1.cylinderColor[2],universalSpherical1.cylinderColor[1],universalSpherical1.sphereColor[3],universalSpherical1.sphereColor[2],universalSpherical1.sphereColor[1],universalSpherical1.rodColor[3],universalSpherical1.rodColor[2],universalSpherical1.rodColor[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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 (1967): * Single equations (assignments): 1940 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 8,(8,76.6%) 20,(1,100.0%) 3,(1,100.0%) 9,(4,87.5%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008155/5.69, allocations: 1.304 MB / 1.23 GB, free: 105.4 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003624/5.694, allocations: 0.8697 MB / 1.231 GB, free: 105.4 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1168/5.811, allocations: 27.45 MB / 1.257 GB, free: 105 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1064/5.917, allocations: 25.62 MB / 1.282 GB, free: 104.7 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001146/5.918, allocations: 19.59 kB / 1.282 GB, free: 104.7 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001728/5.918, allocations: 32.91 kB / 1.282 GB, free: 104.7 MB / 0.5262 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1971/6.115, allocations: 58.43 MB / 1.339 GB, free: 85.18 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001059/6.115, allocations: 10.72 kB / 1.339 GB, free: 85.18 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0108/6.126, allocations: 1.079 MB / 1.341 GB, free: 85.15 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08493/6.211, allocations: 14 MB / 1.354 GB, free: 79.26 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002041/6.213, allocations: 163.1 kB / 1.354 GB, free: 79.14 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5024/6.715, allocations: 59.16 MB / 1.412 GB, free: 102 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05399/6.769, allocations: 22.84 MB / 1.434 GB, free: 95.18 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.131/6.9, allocations: 39.19 MB / 1.473 GB, free: 93.68 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01011/6.911, allocations: 2.473 MB / 1.475 GB, free: 93.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004117/6.915, allocations: 128.5 kB / 1.475 GB, free: 93.12 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01548/6.93, allocations: 0.8615 MB / 1.476 GB, free: 93.05 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003402/6.934, allocations: 416 kB / 1.476 GB, free: 93 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001735/6.936, allocations: 173.7 kB / 1.477 GB, free: 92.97 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0155/6.951, allocations: 5.689 MB / 1.482 GB, free: 91.01 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.183e-06/6.951, allocations: 0 / 1.482 GB, free: 91.01 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0248/6.976, allocations: 4.279 MB / 1.486 GB, free: 90.67 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 30 ($STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (435): * Single equations (assignments): 420 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {3,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(4,87.5%) 6,(1,100.0%) 4,(4,93.8%) 8,(8,76.6%) 20,(7,93.9%) 12} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1338/7.11, allocations: 40.27 MB / 1.526 GB, free: 76.24 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.05155/7.161, allocations: 22.82 MB / 1.548 GB, free: 59.3 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/7.162, allocations: 0 / 1.548 GB, free: 59.3 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02947/7.191, allocations: 11.1 MB / 1.559 GB, free: 49.4 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01197/7.203, allocations: 1.264 MB / 1.56 GB, free: 48.39 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5627/7.766, allocations: 37.36 MB / 1.597 GB, free: 108.9 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.028/7.794, allocations: 9.462 MB / 1.606 GB, free: 107.8 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01932/7.813, allocations: 6.725 MB / 1.612 GB, free: 107.8 MB / 0.5262 GB Notification: Performance of SimCode: time 1.834e-06/7.813, allocations: 1.125 kB / 1.612 GB, free: 107.8 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.72/19.53, allocations: 0.9433 GB / 2.556 GB, free: 120 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat