Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.567/2.567, allocations: 235 MB / 247.2 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.64e-05/3.654e-05, allocations: 4 kB / 305 MB, free: 5.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4018/0.4019, allocations: 54.85 MB / 359.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2533/0.6552, allocations: 110.9 MB / 470.8 MB, free: 1.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.6556, allocations: 76.73 kB / 470.9 MB, free: 1.855 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.206/1.861, allocations: 229.8 MB / 0.6842 GB, free: 3.879 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.861, allocations: 0 / 0.6842 GB, free: 3.879 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001028/1.862, allocations: 283.9 kB / 0.6845 GB, free: 3.602 MB / 458.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.09697/1.959, allocations: 13.78 MB / 0.698 GB, free: 5.715 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/1.959, allocations: 15.97 kB / 0.698 GB, free: 5.699 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01531/1.975, allocations: 2.807 MB / 0.7007 GB, free: 2.879 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.464/2.439, allocations: 10.93 MB / 0.7114 GB, free: 42.88 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0812/2.52, allocations: 15.51 MB / 0.7266 GB, free: 42.36 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001536/2.522, allocations: 1.086 MB / 0.7276 GB, free: 42.32 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008166/2.53, allocations: 1.452 MB / 0.729 GB, free: 42.31 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1085/2.638, allocations: 31.85 MB / 0.7601 GB, free: 35.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001299/2.64, allocations: 151.4 kB / 0.7603 GB, free: 35.88 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007127/2.647, allocations: 0.6635 MB / 0.7609 GB, free: 35.88 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00544/2.652, allocations: 2.33 MB / 0.7632 GB, free: 35.85 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08475/2.737, allocations: 25.09 MB / 0.7877 GB, free: 31.08 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7572/3.494, allocations: 130.6 MB / 0.9153 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06756/3.562, allocations: 12.33 MB / 0.9273 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01187/3.574, allocations: 5.745 MB / 0.9329 GB, free: 30.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006184/3.58, allocations: 4.845 MB / 0.9377 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001204/3.58, allocations: 84.5 kB / 0.9377 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=435): time 9.267e-06/3.58, allocations: 0 / 0.9377 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=569): time 0.6087/4.189, allocations: 110.7 MB / 1.046 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06162/4.251, allocations: 24.76 MB / 1.07 GB, free: 9.934 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02653/4.277, allocations: 8.334 MB / 1.078 GB, free: 1.789 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001952/4.279, allocations: 108.6 kB / 1.078 GB, free: 1.68 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.01148/4.291, allocations: 8.857 MB / 1.087 GB, free: 8.824 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005131/4.296, allocations: 2.193 MB / 1.089 GB, free: 6.648 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003606/4.3, allocations: 319 kB / 1.089 GB, free: 6.34 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002645/4.303, allocations: 0.9881 MB / 1.09 GB, free: 5.344 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02601/4.329, allocations: 9.215 MB / 1.099 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03654/4.365, allocations: 18.33 MB / 1.117 GB, free: 5.398 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03357/4.399, allocations: 12.76 MB / 1.13 GB, free: 8.867 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003645/4.399, allocations: 94.25 kB / 1.13 GB, free: 8.777 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.559/4.958, allocations: 35.44 MB / 1.164 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003001/4.959, allocations: 146 kB / 1.165 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09122/5.05, allocations: 23.28 MB / 1.187 GB, free: 167.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0658/5.116, allocations: 10.93 MB / 1.198 GB, free: 167.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02462/5.14, allocations: 3.859 MB / 1.202 GB, free: 167.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09705/5.237, allocations: 51.24 MB / 1.252 GB, free: 146 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02958/5.267, allocations: 1.809 MB / 1.254 GB, free: 145.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004674/5.272, allocations: 0.9772 MB / 1.254 GB, free: 145.6 MB / 0.6198 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 (1925): * Single equations (assignments): 1896 * 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,4,4,4,4} * 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.0078/5.28, allocations: 1.306 MB / 1.256 GB, free: 144.6 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00372/5.283, allocations: 0.8845 MB / 1.257 GB, free: 144.6 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1269/5.41, allocations: 28.87 MB / 1.285 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1143/5.525, allocations: 27.1 MB / 1.311 GB, free: 111.2 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.554e-05/5.525, allocations: 24 kB / 1.311 GB, free: 111.2 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001622/5.525, allocations: 29.94 kB / 1.311 GB, free: 111.2 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7978/6.323, allocations: 63.17 MB / 1.373 GB, free: 156.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001062/6.323, allocations: 5.281 kB / 1.373 GB, free: 156.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0165/6.34, allocations: 1.016 MB / 1.374 GB, free: 156.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1148/6.454, allocations: 15.67 MB / 1.389 GB, free: 156.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002062/6.456, allocations: 174.4 kB / 1.389 GB, free: 156.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1349/6.591, allocations: 64.65 MB / 1.453 GB, free: 144.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05276/6.644, allocations: 24.54 MB / 1.477 GB, free: 130.9 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1381/6.782, allocations: 41.06 MB / 1.517 GB, free: 117.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003676/6.786, allocations: 0.9452 MB / 1.518 GB, free: 116.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004433/6.791, allocations: 135 kB / 1.518 GB, free: 116.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0163/6.807, allocations: 0.8994 MB / 1.519 GB, free: 116.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003502/6.811, allocations: 449.4 kB / 1.519 GB, free: 116.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001758/6.812, allocations: 185.7 kB / 1.519 GB, free: 116.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.01552/6.828, allocations: 5.752 MB / 1.525 GB, free: 114.7 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.303e-06/6.828, allocations: 0 / 1.525 GB, free: 114.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02604/6.854, allocations: 4.436 MB / 1.529 GB, free: 113.2 MB / 0.6198 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.1409/6.995, allocations: 42.37 MB / 1.571 GB, free: 75.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.05543/7.05, allocations: 23.03 MB / 1.593 GB, free: 52.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/7.05, allocations: 1.75 kB / 1.593 GB, free: 52.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.4603/7.511, allocations: 11.46 MB / 1.604 GB, free: 175.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01339/7.524, allocations: 1.344 MB / 1.606 GB, free: 175.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1426/7.667, allocations: 36.32 MB / 1.641 GB, free: 169.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02831/7.695, allocations: 9.435 MB / 1.65 GB, free: 168.7 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.02737/7.723, allocations: 5.066 MB / 1.655 GB, free: 168.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02313/7.746, allocations: 6.44 MB / 1.661 GB, free: 168.6 MB / 0.6198 GB Notification: Performance of SimCode: time 2.134e-06/7.746, allocations: 1.75 kB / 1.661 GB, free: 168.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.113/8.859, allocations: 292.9 MB / 1.948 GB, free: 131.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002796/8.859, allocations: 189.4 kB / 1.948 GB, free: 131.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/21.69, allocations: 0 / 1.948 GB, free: 131.6 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat