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 2.085/2.085, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.81e-05, allocations: 4 kB / 267.6 MB, free: 5.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 48.71 MB / 316.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.472/0.5782, allocations: 107.8 MB / 424.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5785, allocations: 70.59 kB / 424.2 MB, free: 1.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.119/1.698, allocations: 223.2 MB / 0.6323 GB, free: 14.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.698, allocations: 0 / 0.6323 GB, free: 14.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009252/1.699, allocations: 287.9 kB / 0.6325 GB, free: 13.93 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.7777/2.476, allocations: 14.48 MB / 0.6467 GB, free: 31.2 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.671e-05/2.476, allocations: 8.812 kB / 0.6467 GB, free: 31.2 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08037/2.557, allocations: 10.47 MB / 0.6569 GB, free: 30.34 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06549/2.622, allocations: 13.96 MB / 0.6706 GB, free: 29.83 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009058/2.623, allocations: 471.4 kB / 0.671 GB, free: 29.83 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007346/2.631, allocations: 0.8525 MB / 0.6718 GB, free: 29.81 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04952/2.68, allocations: 19.35 MB / 0.6907 GB, free: 29.74 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09037/2.771, allocations: 27.86 MB / 0.7179 GB, free: 22.91 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001125/2.772, allocations: 136.2 kB / 0.7181 GB, free: 22.9 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01513/2.787, allocations: 67.22 kB / 0.7181 GB, free: 22.9 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01233/2.799, allocations: 2.55 MB / 0.7206 GB, free: 22.46 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.125/3.925, allocations: 126.4 MB / 0.844 GB, free: 30.71 MB / 490.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01783/3.943, allocations: 8.521 MB / 0.8524 GB, free: 30.05 MB / 490.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01286/3.955, allocations: 6.654 MB / 0.8589 GB, free: 30 MB / 490.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0716/4.027, allocations: 30.75 MB / 0.8889 GB, free: 22.75 MB / 490.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.692e-05/4.027, allocations: 75.31 kB / 0.889 GB, free: 22.7 MB / 490.9 MB Notification: Performance of pre-optimization done (n=424): time 7.764e-06/4.027, allocations: 1.25 kB / 0.889 GB, free: 22.7 MB / 490.9 MB Notification: Performance of matching and sorting (n=554): time 0.4103/4.438, allocations: 95.31 MB / 0.982 GB, free: 14.43 MB / 0.5106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002306/4.438, allocations: 346.5 kB / 0.9824 GB, free: 14.03 MB / 0.5106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02189/4.46, allocations: 7.399 MB / 0.9896 GB, free: 7.559 MB / 0.5106 GB Notification: Performance of collectPreVariables (initialization): time 0.001816/4.462, allocations: 25.7 kB / 0.9896 GB, free: 7.527 MB / 0.5106 GB Notification: Performance of collectInitialEqns (initialization): time 0.01058/4.472, allocations: 8.797 MB / 0.9982 GB, free: 15.53 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004988/4.477, allocations: 2.083 MB / 1 GB, free: 13.66 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003294/4.481, allocations: 4 kB / 1 GB, free: 13.65 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.00251/4.483, allocations: 1.003 MB / 1.001 GB, free: 12.84 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02322/4.506, allocations: 8.973 MB / 1.01 GB, free: 4.758 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04114/4.548, allocations: 18.82 MB / 1.028 GB, free: 15.65 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03129/4.579, allocations: 12.54 MB / 1.041 GB, free: 3.348 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003792/4.579, allocations: 99.94 kB / 1.041 GB, free: 3.25 MB / 0.5575 GB Notification: Performance of matching and sorting (n=2136) (initialization): time 0.5205/5.1, allocations: 32.47 MB / 1.072 GB, free: 150.1 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 0.000231/5.1, allocations: 145.9 kB / 1.073 GB, free: 150.1 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07443/5.175, allocations: 21.32 MB / 1.093 GB, free: 149.7 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05237/5.227, allocations: 9.017 MB / 1.102 GB, free: 149.6 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02627/5.253, allocations: 4.056 MB / 1.106 GB, free: 149.3 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07135/5.325, allocations: 41.92 MB / 1.147 GB, free: 129.2 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02751/5.352, allocations: 1.394 MB / 1.148 GB, free: 129.2 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004938/5.357, allocations: 1.003 MB / 1.149 GB, free: 129 MB / 0.5575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1530 * 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 (2010): * Single equations (assignments): 1983 * 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.00707/5.364, allocations: 0.9301 MB / 1.15 GB, free: 128.5 MB / 0.5575 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1084/5.473, allocations: 26.19 MB / 1.176 GB, free: 118.3 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003605/5.477, allocations: 0.8249 MB / 1.177 GB, free: 117.9 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.112/5.589, allocations: 26.97 MB / 1.203 GB, free: 96.73 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1009/5.69, allocations: 25.29 MB / 1.228 GB, free: 71.46 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.684e-05/5.69, allocations: 20 kB / 1.228 GB, free: 71.45 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002051/5.69, allocations: 23.91 kB / 1.228 GB, free: 71.42 MB / 0.5575 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.5762/6.266, allocations: 55.5 MB / 1.282 GB, free: 143.5 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.366e-05/6.266, allocations: 3.281 kB / 1.282 GB, free: 143.5 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01083/6.277, allocations: 1.08 MB / 1.283 GB, free: 143.5 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08556/6.363, allocations: 13.93 MB / 1.297 GB, free: 143.4 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002363/6.365, allocations: 90.05 kB / 1.297 GB, free: 143.4 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1335/6.499, allocations: 56.09 MB / 1.352 GB, free: 126.6 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04781/6.546, allocations: 21.78 MB / 1.373 GB, free: 114.9 MB / 0.5575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1261/6.673, allocations: 38.67 MB / 1.411 GB, free: 93.29 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009402/6.682, allocations: 2.415 MB / 1.413 GB, free: 91.54 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00436/6.687, allocations: 39.69 kB / 1.413 GB, free: 91.5 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01475/6.701, allocations: 0.7699 MB / 1.414 GB, free: 90.97 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003524/6.705, allocations: 421.4 kB / 1.414 GB, free: 90.57 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001662/6.707, allocations: 176.5 kB / 1.414 GB, free: 90.39 MB / 0.5575 GB Notification: Performance of sorting global known variables: time 0.01324/6.72, allocations: 4.915 MB / 1.419 GB, free: 85.52 MB / 0.5575 GB Notification: Performance of sort global known variables: time 8.01e-07/6.72, allocations: 0 / 1.419 GB, free: 85.52 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.03168/6.752, allocations: 4.103 MB / 1.423 GB, free: 81.43 MB / 0.5575 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.1269/6.879, allocations: 39.69 MB / 1.462 GB, free: 41.82 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.4264/7.305, allocations: 22.09 MB / 1.483 GB, free: 154 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/7.305, allocations: 5.5 kB / 1.483 GB, free: 154 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.02842/7.334, allocations: 10.86 MB / 1.494 GB, free: 152.6 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01092/7.345, allocations: 1.064 MB / 1.495 GB, free: 152.6 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1295/7.474, allocations: 36.55 MB / 1.531 GB, free: 147 MB / 0.5575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02661/7.501, allocations: 9.451 MB / 1.54 GB, free: 146 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01932/7.52, allocations: 6.707 MB / 1.547 GB, free: 141.9 MB / 0.5575 GB Notification: Performance of SimCode: time 1.803e-06/7.52, allocations: 0 / 1.547 GB, free: 141.9 MB / 0.5575 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.59/19.11, allocations: 0.9371 GB / 2.484 GB, free: 139.8 MB / 0.5575 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