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.043/2.043, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.201e-05/4.211e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1152, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/0.5907, allocations: 104.1 MB / 426 MB, free: 1.742 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.591, allocations: 83.08 kB / 426.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.142/1.733, allocations: 229.6 MB / 0.6403 GB, free: 16.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.733, allocations: 0 / 0.6403 GB, free: 16.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007781/1.734, allocations: 279.9 kB / 0.6406 GB, free: 16.03 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.08131/1.816, allocations: 13.79 MB / 0.654 GB, free: 2.141 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/1.816, allocations: 12.03 kB / 0.654 GB, free: 2.129 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.7166/2.532, allocations: 2.804 MB / 0.6568 GB, free: 31.3 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1073/2.64, allocations: 10.87 MB / 0.6674 GB, free: 30.45 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05796/2.698, allocations: 15.48 MB / 0.6825 GB, free: 29.93 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001442/2.699, allocations: 1.085 MB / 0.6836 GB, free: 29.89 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007443/2.707, allocations: 1.453 MB / 0.685 GB, free: 29.88 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1047/2.811, allocations: 32.02 MB / 0.7163 GB, free: 23.39 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001264/2.813, allocations: 155.4 kB / 0.7164 GB, free: 23.38 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00662/2.819, allocations: 0.6636 MB / 0.7171 GB, free: 23.38 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005299/2.825, allocations: 2.326 MB / 0.7193 GB, free: 23.36 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08555/2.91, allocations: 25.56 MB / 0.7443 GB, free: 16.95 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.029/3.939, allocations: 130.8 MB / 0.8721 GB, free: 30.6 MB / 0.495 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06402/4.003, allocations: 12.38 MB / 0.8842 GB, free: 29.91 MB / 0.495 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01189/4.015, allocations: 5.752 MB / 0.8898 GB, free: 29.86 MB / 0.495 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006458/4.022, allocations: 4.845 MB / 0.8945 GB, free: 25.86 MB / 0.495 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001279/4.022, allocations: 84.67 kB / 0.8946 GB, free: 25.82 MB / 0.495 GB Notification: Performance of pre-optimization done (n=435): time 8.446e-06/4.022, allocations: 0 / 0.8946 GB, free: 25.82 MB / 0.495 GB Notification: Performance of matching and sorting (n=569): time 0.6072/4.629, allocations: 110.7 MB / 1.003 GB, free: 8.656 MB / 0.5107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0612/4.691, allocations: 24.78 MB / 1.027 GB, free: 15.05 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02495/4.716, allocations: 8.336 MB / 1.035 GB, free: 6.836 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.00192/4.718, allocations: 113.8 kB / 1.035 GB, free: 6.723 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.3638/5.081, allocations: 8.559 MB / 1.044 GB, free: 139.9 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.004806/5.086, allocations: 2.193 MB / 1.046 GB, free: 139.1 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003379/5.09, allocations: 324.2 kB / 1.046 GB, free: 139.1 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.001954/5.092, allocations: 0.994 MB / 1.047 GB, free: 138.7 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02482/5.116, allocations: 9.2 MB / 1.056 GB, free: 138.7 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03145/5.148, allocations: 18.4 MB / 1.074 GB, free: 126.9 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02821/5.176, allocations: 12.74 MB / 1.086 GB, free: 126.8 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003979/5.177, allocations: 92.97 kB / 1.086 GB, free: 126.8 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.1231/5.3, allocations: 35.64 MB / 1.121 GB, free: 121.4 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003126/5.3, allocations: 144.9 kB / 1.121 GB, free: 121.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08937/5.389, allocations: 22.97 MB / 1.144 GB, free: 114.5 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06339/5.453, allocations: 10.6 MB / 1.154 GB, free: 112.7 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02587/5.479, allocations: 3.923 MB / 1.158 GB, free: 112.2 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09249/5.571, allocations: 49.55 MB / 1.206 GB, free: 72.92 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02864/5.6, allocations: 1.807 MB / 1.208 GB, free: 71.68 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004558/5.605, allocations: 0.9775 MB / 1.209 GB, free: 70.77 MB / 0.5419 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.007211/5.612, allocations: 1.294 MB / 1.21 GB, free: 69.48 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003382/5.615, allocations: 0.8793 MB / 1.211 GB, free: 68.59 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5261/6.142, allocations: 28.88 MB / 1.239 GB, free: 121.4 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.12/6.262, allocations: 27.09 MB / 1.266 GB, free: 120.9 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001148/6.262, allocations: 29.36 kB / 1.266 GB, free: 120.9 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001678/6.262, allocations: 30.88 kB / 1.266 GB, free: 120.9 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2119/6.474, allocations: 63.21 MB / 1.328 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.962e-05/6.474, allocations: 3.094 kB / 1.328 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01005/6.484, allocations: 1.017 MB / 1.329 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09654/6.581, allocations: 15.67 MB / 1.344 GB, free: 103.8 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002/6.583, allocations: 181.8 kB / 1.344 GB, free: 103.7 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1363/6.719, allocations: 64.66 MB / 1.407 GB, free: 48.97 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.44/7.159, allocations: 24.54 MB / 1.431 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1464/7.306, allocations: 41.04 MB / 1.471 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003596/7.309, allocations: 0.9541 MB / 1.472 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004276/7.314, allocations: 133.5 kB / 1.472 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01625/7.33, allocations: 0.9018 MB / 1.473 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00384/7.334, allocations: 448.7 kB / 1.474 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00163/7.335, allocations: 191.7 kB / 1.474 GB, free: 107.3 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.01626/7.352, allocations: 5.753 MB / 1.48 GB, free: 107 MB / 0.5419 GB Notification: Performance of sort global known variables: time 9.22e-07/7.352, allocations: 0 / 1.48 GB, free: 107 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0254/7.377, allocations: 4.408 MB / 1.484 GB, free: 107 MB / 0.5419 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.1432/7.52, allocations: 42.36 MB / 1.525 GB, free: 93.59 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.05535/7.576, allocations: 23.1 MB / 1.548 GB, free: 81.3 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/7.576, allocations: 0 / 1.548 GB, free: 81.3 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.03244/7.608, allocations: 11.59 MB / 1.559 GB, free: 71.08 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01262/7.621, allocations: 1.343 MB / 1.56 GB, free: 70.02 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5086/8.13, allocations: 38.2 MB / 1.598 GB, free: 121.1 MB / 0.5419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02758/8.157, allocations: 9.426 MB / 1.607 GB, free: 120.1 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01873/8.176, allocations: 6.556 MB / 1.613 GB, free: 120.1 MB / 0.5419 GB Notification: Performance of SimCode: time 1.773e-06/8.176, allocations: 0 / 1.613 GB, free: 120.1 MB / 0.5419 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.87/20.05, allocations: 0.932 GB / 2.545 GB, free: 66.96 MB / 0.5419 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