Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 235 MB / 247.6 MB, free: 14.31 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.709e-05/3.713e-05, allocations: 4 kB / 305 MB, free: 5.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4135/0.4136, allocations: 54.85 MB / 359.9 MB, free: 2.711 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2142/0.6278, allocations: 115.1 MB / 475 MB, free: 13.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.6282, allocations: 75.95 kB / 475.1 MB, free: 13.72 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.274/1.902, allocations: 230.1 MB / 0.6886 GB, free: 15.15 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.902, allocations: 0 / 0.6886 GB, free: 15.15 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001/1.903, allocations: 283.9 kB / 0.6889 GB, free: 14.87 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4698 * Number of variables: 4698 Notification: Performance of Generate backend data structure: time 0.09233/1.996, allocations: 14.5 MB / 0.703 GB, free: 276 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.807e-05/1.996, allocations: 12.03 kB / 0.703 GB, free: 264 kB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.4332/2.429, allocations: 2.839 MB / 0.7058 GB, free: 41.45 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09386/2.523, allocations: 10.52 MB / 0.7161 GB, free: 40.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05426/2.577, allocations: 14 MB / 0.7298 GB, free: 40.07 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001371/2.579, allocations: 1.087 MB / 0.7308 GB, free: 40.04 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007171/2.586, allocations: 1.445 MB / 0.7322 GB, free: 40.03 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1084/2.694, allocations: 32.54 MB / 0.764 GB, free: 34.03 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001178/2.696, allocations: 148.8 kB / 0.7641 GB, free: 34.02 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007194/2.703, allocations: 0.658 MB / 0.7648 GB, free: 34.02 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005754/2.709, allocations: 2.545 MB / 0.7673 GB, free: 33.99 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09003/2.799, allocations: 26.46 MB / 0.7931 GB, free: 28.19 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7869/3.586, allocations: 131.4 MB / 0.9215 GB, free: 30.89 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06684/3.653, allocations: 12.85 MB / 0.934 GB, free: 30.22 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01405/3.667, allocations: 6.784 MB / 0.9406 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07425/3.741, allocations: 31.04 MB / 0.9709 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.109e-05/3.741, allocations: 83.53 kB / 0.971 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=424): time 8.737e-06/3.741, allocations: 0 / 0.971 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of matching and sorting (n=554): time 0.5582/4.299, allocations: 106.5 MB / 1.075 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06029/4.36, allocations: 23.09 MB / 1.098 GB, free: 5.758 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02599/4.386, allocations: 8.262 MB / 1.106 GB, free: 13.55 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001885/4.388, allocations: 107.2 kB / 1.106 GB, free: 13.44 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.01037/4.398, allocations: 8.666 MB / 1.114 GB, free: 4.773 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.005009/4.403, allocations: 2.141 MB / 1.116 GB, free: 2.652 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003415/4.407, allocations: 324 kB / 1.117 GB, free: 2.336 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.002329/4.409, allocations: 0.9849 MB / 1.118 GB, free: 1.34 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02639/4.436, allocations: 9.235 MB / 1.127 GB, free: 8.098 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4391/4.875, allocations: 18.4 MB / 1.145 GB, free: 150.8 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03371/4.909, allocations: 12.8 MB / 1.157 GB, free: 150.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007349/4.909, allocations: 92.72 kB / 1.157 GB, free: 150.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2093) (initialization): time 0.1222/5.032, allocations: 33.77 MB / 1.19 GB, free: 149.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003506/5.032, allocations: 146.8 kB / 1.19 GB, free: 149.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08366/5.116, allocations: 21.89 MB / 1.212 GB, free: 148.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09013/5.206, allocations: 9.317 MB / 1.221 GB, free: 146.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04296/5.249, allocations: 3.942 MB / 1.225 GB, free: 146.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08541/5.334, allocations: 47.04 MB / 1.271 GB, free: 119.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02835/5.363, allocations: 1.7 MB / 1.272 GB, free: 119.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004674/5.367, allocations: 0.9812 MB / 1.273 GB, free: 119.1 MB / 0.6042 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 (1958): * Single equations (assignments): 1931 * 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,4,4,4} * 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.007728/5.375, allocations: 1.303 MB / 1.274 GB, free: 118.3 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003443/5.379, allocations: 0.8665 MB / 1.275 GB, free: 118.3 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1146/5.493, allocations: 27.46 MB / 1.302 GB, free: 103 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1082/5.602, allocations: 25.62 MB / 1.327 GB, free: 83.11 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.265e-05/5.602, allocations: 20.62 kB / 1.327 GB, free: 83.09 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001592/5.602, allocations: 27.89 kB / 1.327 GB, free: 83.06 MB / 0.6042 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.6278/6.23, allocations: 58.44 MB / 1.384 GB, free: 145 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.551e-05/6.23, allocations: 0 / 1.384 GB, free: 145 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01089/6.241, allocations: 1.09 MB / 1.385 GB, free: 145 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08588/6.327, allocations: 14 MB / 1.399 GB, free: 144.9 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001993/6.329, allocations: 166.5 kB / 1.399 GB, free: 144.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1211/6.45, allocations: 59.13 MB / 1.457 GB, free: 129.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05209/6.502, allocations: 22.81 MB / 1.479 GB, free: 117.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1347/6.637, allocations: 39.21 MB / 1.517 GB, free: 102.2 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009856/6.647, allocations: 2.475 MB / 1.52 GB, free: 100.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004492/6.651, allocations: 129.2 kB / 1.52 GB, free: 100.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01603/6.667, allocations: 0.8542 MB / 1.521 GB, free: 99.79 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003481/6.671, allocations: 415.5 kB / 1.521 GB, free: 99.58 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001926/6.673, allocations: 178 kB / 1.521 GB, free: 99.45 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01635/6.689, allocations: 5.696 MB / 1.527 GB, free: 94.46 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.505e-06/6.689, allocations: 0 / 1.527 GB, free: 94.46 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02697/6.716, allocations: 4.29 MB / 1.531 GB, free: 90.18 MB / 0.6042 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.1351/6.852, allocations: 40.27 MB / 1.57 GB, free: 51.89 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.4643/7.316, allocations: 22.66 MB / 1.593 GB, free: 159.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/7.316, allocations: 6.094 kB / 1.593 GB, free: 159.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.03368/7.35, allocations: 10.97 MB / 1.603 GB, free: 158 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01216/7.362, allocations: 1.281 MB / 1.605 GB, free: 158 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1433/7.505, allocations: 37.31 MB / 1.641 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03715/7.543, allocations: 9.468 MB / 1.65 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02657/7.569, allocations: 6.731 MB / 1.657 GB, free: 149 MB / 0.6042 GB Notification: Performance of SimCode: time 2.865e-06/7.569, allocations: 2.531 kB / 1.657 GB, free: 149 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.51/19.08, allocations: 0.9418 GB / 2.599 GB, free: 53.87 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat