Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.097/2.097, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.14e-05/4.146e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5118/0.6251, allocations: 104.2 MB / 426 MB, free: 1.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.6254, allocations: 78.86 kB / 426.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149/1.774, allocations: 229.6 MB / 0.6403 GB, free: 16.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.774, allocations: 0 / 0.6403 GB, free: 16.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000802/1.775, allocations: 280 kB / 0.6406 GB, free: 15.8 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: 4609 * Number of variables: 4609 Notification: Performance of Generate backend data structure: time 0.08373/1.859, allocations: 13.79 MB / 0.6541 GB, free: 1.914 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/1.859, allocations: 8.031 kB / 0.6541 GB, free: 1.906 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3582/2.217, allocations: 2.808 MB / 0.6568 GB, free: 33.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09225/2.309, allocations: 10.88 MB / 0.6674 GB, free: 32.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05888/2.368, allocations: 15.48 MB / 0.6826 GB, free: 32.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001606/2.37, allocations: 1.088 MB / 0.6836 GB, free: 32.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0076/2.378, allocations: 1.452 MB / 0.685 GB, free: 32.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1037/2.481, allocations: 31.84 MB / 0.7161 GB, free: 25.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001188/2.483, allocations: 155.7 kB / 0.7163 GB, free: 25.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006785/2.489, allocations: 0.6607 MB / 0.7169 GB, free: 25.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005439/2.495, allocations: 2.327 MB / 0.7192 GB, free: 25.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08427/2.579, allocations: 25.1 MB / 0.7437 GB, free: 19.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6418/3.221, allocations: 131.3 MB / 0.8719 GB, free: 18.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06526/3.286, allocations: 12.34 MB / 0.884 GB, free: 18.04 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01194/3.298, allocations: 5.751 MB / 0.8896 GB, free: 17.99 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006651/3.305, allocations: 4.848 MB / 0.8943 GB, free: 13.99 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001298/3.305, allocations: 83.2 kB / 0.8944 GB, free: 13.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=435): time 8.485e-06/3.305, allocations: 0 / 0.8944 GB, free: 13.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=569): time 0.6205/3.926, allocations: 111.1 MB / 1.003 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06397/3.99, allocations: 24.77 MB / 1.027 GB, free: 160 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.404/4.394, allocations: 8.32 MB / 1.035 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001819/4.396, allocations: 110 kB / 1.035 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.008694/4.405, allocations: 8.574 MB / 1.044 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004914/4.41, allocations: 2.187 MB / 1.046 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003834/4.413, allocations: 326 kB / 1.046 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.002562/4.416, allocations: 0.9955 MB / 1.047 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02445/4.441, allocations: 9.197 MB / 1.056 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02915/4.47, allocations: 18.31 MB / 1.074 GB, free: 111.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03811/4.508, allocations: 12.74 MB / 1.086 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005745/4.509, allocations: 93.09 kB / 1.086 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.1362/4.645, allocations: 34.74 MB / 1.12 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002866/4.645, allocations: 142.3 kB / 1.121 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08913/4.734, allocations: 22.96 MB / 1.143 GB, free: 95.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06313/4.797, allocations: 10.6 MB / 1.153 GB, free: 93.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02575/4.823, allocations: 3.92 MB / 1.157 GB, free: 92.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4833/5.307, allocations: 49.78 MB / 1.206 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02912/5.336, allocations: 1.806 MB / 1.208 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004645/5.34, allocations: 0.9788 MB / 1.208 GB, free: 109.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1475 * Number of states: 0 () * Number of discrete variables: 75 (freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[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],sphericalSpherical1.massColor[3],sphericalSpherical1.massColor[2],sphericalSpherical1.massColor[1],sphericalSpherical1.sphereColor[3],sphericalSpherical1.sphereColor[2],sphericalSpherical1.sphereColor[1],sphericalSpherical1.rodColor[3],sphericalSpherical1.rodColor[2],sphericalSpherical1.rodColor[1],body.sphereColor[3],body.sphereColor[2],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],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (1937): * Single equations (assignments): 1908 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,82.8%) 32,(1,100.0%) 3,(4,93.8%) 20,(7,63.3%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00686/5.347, allocations: 1.296 MB / 1.21 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003098/5.35, allocations: 0.8807 MB / 1.211 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1244/5.475, allocations: 28.88 MB / 1.239 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1167/5.592, allocations: 27.1 MB / 1.265 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-05/5.592, allocations: 31.06 kB / 1.265 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001558/5.592, allocations: 24.8 kB / 1.265 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2288/5.821, allocations: 63.19 MB / 1.327 GB, free: 86.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.978e-05/5.821, allocations: 6.25 kB / 1.327 GB, free: 86.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009997/5.831, allocations: 1.012 MB / 1.328 GB, free: 86.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0963/5.927, allocations: 15.68 MB / 1.343 GB, free: 74.98 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001962/5.929, allocations: 181.3 kB / 1.344 GB, free: 74.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5241/6.453, allocations: 64.64 MB / 1.407 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05337/6.507, allocations: 24.54 MB / 1.431 GB, free: 93.09 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1427/6.65, allocations: 41.06 MB / 1.471 GB, free: 86.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004024/6.654, allocations: 0.9501 MB / 1.472 GB, free: 86.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004576/6.658, allocations: 129.5 kB / 1.472 GB, free: 86.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01639/6.675, allocations: 0.9057 MB / 1.473 GB, free: 86.53 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003744/6.678, allocations: 451.9 kB / 1.473 GB, free: 86.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00192/6.68, allocations: 180.8 kB / 1.473 GB, free: 86.45 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01617/6.697, allocations: 5.76 MB / 1.479 GB, free: 84.48 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.81e-07/6.697, allocations: 0 / 1.479 GB, free: 84.48 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02691/6.724, allocations: 4.402 MB / 1.483 GB, free: 84.13 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET6.x[2],$STATESET6.x[1],$STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[6],$STATESET4.x[5],$STATESET4.x[4],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$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],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (412): * Single equations (assignments): 397 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * 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: 3 {3,8,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(3,100.0%) 3,(8,82.8%) 29,(7,93.9%) 12,(7,63.3%) 20} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1441/6.868, allocations: 42.36 MB / 1.525 GB, free: 67.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.05448/6.922, allocations: 22.57 MB / 1.547 GB, free: 47.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.421e-05/6.922, allocations: 8 kB / 1.547 GB, free: 47.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03236/6.955, allocations: 11.48 MB / 1.558 GB, free: 37.45 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01303/6.968, allocations: 1.337 MB / 1.559 GB, free: 36.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5096/7.477, allocations: 38.34 MB / 1.597 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02624/7.504, allocations: 9.434 MB / 1.606 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01864/7.523, allocations: 6.551 MB / 1.612 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.333e-06/7.523, allocations: 3.812 kB / 1.612 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.59/19.11, allocations: 0.9295 GB / 2.542 GB, free: 119 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat