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.157/2.157, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.261e-05/5.272e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1197, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4656/0.5854, allocations: 108.3 MB / 430.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.5858, allocations: 74.88 kB / 430.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.144/1.73, allocations: 229.8 MB / 0.6445 GB, free: 12.51 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.73, allocations: 0 / 0.6445 GB, free: 12.51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008642/1.731, allocations: 280 kB / 0.6448 GB, free: 12.23 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.7349/2.466, allocations: 14.48 MB / 0.6589 GB, free: 28.97 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/2.466, allocations: 8.562 kB / 0.6589 GB, free: 28.97 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01474/2.481, allocations: 2.84 MB / 0.6617 GB, free: 28.78 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0818/2.562, allocations: 10.47 MB / 0.6719 GB, free: 27.92 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05329/2.616, allocations: 13.98 MB / 0.6856 GB, free: 27.4 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001466/2.617, allocations: 1.086 MB / 0.6866 GB, free: 27.37 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007578/2.625, allocations: 1.447 MB / 0.688 GB, free: 27.36 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1061/2.731, allocations: 32.54 MB / 0.7198 GB, free: 21.36 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00113/2.732, allocations: 141.6 kB / 0.72 GB, free: 21.35 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007301/2.74, allocations: 0.6597 MB / 0.7206 GB, free: 21.35 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005867/2.746, allocations: 2.543 MB / 0.7231 GB, free: 21.32 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08729/2.833, allocations: 26.46 MB / 0.7489 GB, free: 13.42 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.049/3.881, allocations: 131.3 MB / 0.8772 GB, free: 20.1 MB / 490.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06256/3.944, allocations: 12.85 MB / 0.8897 GB, free: 19.43 MB / 490.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01338/3.958, allocations: 6.79 MB / 0.8964 GB, free: 19.38 MB / 490.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07001/4.028, allocations: 31.02 MB / 0.9267 GB, free: 27.99 MB / 0.495 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.559e-05/4.028, allocations: 85.67 kB / 0.9267 GB, free: 27.95 MB / 0.495 GB Notification: Performance of pre-optimization done (n=424): time 8.425e-06/4.028, allocations: 0 / 0.9267 GB, free: 27.95 MB / 0.495 GB Notification: Performance of matching and sorting (n=554): time 0.5738/4.602, allocations: 106.8 MB / 1.031 GB, free: 3.965 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4281/5.03, allocations: 23.09 MB / 1.054 GB, free: 121.5 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02276/5.053, allocations: 8.254 MB / 1.062 GB, free: 121 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.001763/5.054, allocations: 108.9 kB / 1.062 GB, free: 121 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.00734/5.062, allocations: 8.663 MB / 1.07 GB, free: 117 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004036/5.066, allocations: 2.146 MB / 1.072 GB, free: 115.7 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002846/5.069, allocations: 318.2 kB / 1.073 GB, free: 115.7 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001388/5.07, allocations: 0.9877 MB / 1.074 GB, free: 115.4 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02173/5.092, allocations: 9.223 MB / 1.083 GB, free: 115.4 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02774/5.12, allocations: 18.38 MB / 1.101 GB, free: 103.5 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02711/5.147, allocations: 12.79 MB / 1.113 GB, free: 99.99 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004416/5.147, allocations: 93.97 kB / 1.113 GB, free: 99.99 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2093) (initialization): time 0.1369/5.284, allocations: 33.46 MB / 1.146 GB, free: 89.76 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002932/5.285, allocations: 147.5 kB / 1.146 GB, free: 89.75 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07888/5.364, allocations: 21.65 MB / 1.167 GB, free: 82.85 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05415/5.418, allocations: 9.048 MB / 1.176 GB, free: 78.61 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0271/5.445, allocations: 3.991 MB / 1.18 GB, free: 75.26 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4647/5.91, allocations: 45.76 MB / 1.225 GB, free: 103.5 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02971/5.939, allocations: 1.7 MB / 1.226 GB, free: 103.5 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005289/5.945, allocations: 0.9773 MB / 1.227 GB, free: 103.5 MB / 0.5263 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.007935/5.953, allocations: 1.303 MB / 1.228 GB, free: 103.4 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003864/5.957, allocations: 0.8657 MB / 1.229 GB, free: 103.4 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1165/6.073, allocations: 27.45 MB / 1.256 GB, free: 103 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1068/6.18, allocations: 25.62 MB / 1.281 GB, free: 102.7 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.795e-05/6.18, allocations: 22.25 kB / 1.281 GB, free: 102.7 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001771/6.18, allocations: 26.34 kB / 1.281 GB, free: 102.7 MB / 0.5263 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.1958/6.376, allocations: 58.43 MB / 1.338 GB, free: 82.32 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001067/6.376, allocations: 3.188 kB / 1.338 GB, free: 82.32 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01116/6.388, allocations: 1.084 MB / 1.339 GB, free: 82.3 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08682/6.474, allocations: 14 MB / 1.353 GB, free: 76.06 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002021/6.477, allocations: 167.8 kB / 1.353 GB, free: 75.89 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5103/6.987, allocations: 59.14 MB / 1.411 GB, free: 100.1 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0551/7.042, allocations: 22.82 MB / 1.433 GB, free: 93.36 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1336/7.176, allocations: 39.2 MB / 1.471 GB, free: 91.57 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009949/7.186, allocations: 2.476 MB / 1.474 GB, free: 90.79 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004475/7.19, allocations: 125.5 kB / 1.474 GB, free: 90.7 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01754/7.208, allocations: 0.8544 MB / 1.475 GB, free: 90.64 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003813/7.212, allocations: 422.1 kB / 1.475 GB, free: 90.59 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002058/7.214, allocations: 180.7 kB / 1.475 GB, free: 90.55 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.0167/7.231, allocations: 5.693 MB / 1.481 GB, free: 88.59 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.312e-06/7.231, allocations: 0 / 1.481 GB, free: 88.59 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.02712/7.258, allocations: 4.273 MB / 1.485 GB, free: 88.25 MB / 0.5263 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.1707/7.429, allocations: 40.26 MB / 1.524 GB, free: 73.76 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.05105/7.48, allocations: 22.3 MB / 1.546 GB, free: 56.92 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/7.48, allocations: 1.562 kB / 1.546 GB, free: 56.92 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.02901/7.509, allocations: 10.97 MB / 1.557 GB, free: 47.2 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01209/7.521, allocations: 1.275 MB / 1.558 GB, free: 46.18 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5391/8.06, allocations: 37.29 MB / 1.595 GB, free: 105.6 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02961/8.09, allocations: 9.465 MB / 1.604 GB, free: 104.5 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02524/8.115, allocations: 6.726 MB / 1.61 GB, free: 104.5 MB / 0.5263 GB Notification: Performance of SimCode: time 2.024e-06/8.115, allocations: 0 / 1.61 GB, free: 104.5 MB / 0.5263 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.86/19.98, allocations: 0.9408 GB / 2.551 GB, free: 104.7 MB / 0.5732 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