Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.476/2.476, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.167e-05/5.182e-05, allocations: 8 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4143, allocations: 54.85 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2152/0.6295, allocations: 110.9 MB / 470.8 MB, free: 1.922 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/0.6299, allocations: 80.73 kB / 470.8 MB, free: 1.844 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.23/1.86, allocations: 229.8 MB / 0.6842 GB, free: 3.844 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.86, allocations: 0 / 0.6842 GB, free: 3.844 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007818/1.861, allocations: 276 kB / 0.6845 GB, free: 3.574 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.08582/1.947, allocations: 13.78 MB / 0.6979 GB, free: 5.688 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/1.947, allocations: 15.97 kB / 0.698 GB, free: 5.672 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01407/1.961, allocations: 2.81 MB / 0.7007 GB, free: 2.848 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4923/2.454, allocations: 10.92 MB / 0.7114 GB, free: 42.52 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06228/2.516, allocations: 15.52 MB / 0.7265 GB, free: 41.99 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001958/2.518, allocations: 1.084 MB / 0.7276 GB, free: 41.96 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009581/2.528, allocations: 1.453 MB / 0.729 GB, free: 41.94 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.118/2.646, allocations: 31.84 MB / 0.7601 GB, free: 35.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00121/2.647, allocations: 158.2 kB / 0.7603 GB, free: 35.51 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006892/2.654, allocations: 0.6606 MB / 0.7609 GB, free: 35.51 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005383/2.659, allocations: 2.332 MB / 0.7632 GB, free: 35.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08533/2.745, allocations: 25.09 MB / 0.7877 GB, free: 30.86 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7712/3.516, allocations: 130.6 MB / 0.9152 GB, free: 30.72 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06542/3.581, allocations: 12.33 MB / 0.9273 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01167/3.593, allocations: 5.755 MB / 0.9329 GB, free: 30 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006206/3.599, allocations: 4.845 MB / 0.9376 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001218/3.6, allocations: 77.64 kB / 0.9377 GB, free: 25.97 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=435): time 9.478e-06/3.6, allocations: 0 / 0.9377 GB, free: 25.97 MB / 0.5261 GB Notification: Performance of matching and sorting (n=569): time 0.5661/4.166, allocations: 110.7 MB / 1.046 GB, free: 2.082 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06045/4.226, allocations: 24.77 MB / 1.07 GB, free: 9.711 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02536/4.252, allocations: 8.328 MB / 1.078 GB, free: 1.578 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001885/4.254, allocations: 109.9 kB / 1.078 GB, free: 1.469 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.01078/4.264, allocations: 8.57 MB / 1.087 GB, free: 8.906 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005071/4.269, allocations: 2.19 MB / 1.089 GB, free: 6.734 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003271/4.273, allocations: 321.6 kB / 1.089 GB, free: 6.422 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002359/4.275, allocations: 0.9967 MB / 1.09 GB, free: 5.414 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0257/4.301, allocations: 9.216 MB / 1.099 GB, free: 12.19 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0352/4.336, allocations: 18.33 MB / 1.117 GB, free: 5.469 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03351/4.37, allocations: 12.76 MB / 1.129 GB, free: 8.938 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003462/4.37, allocations: 92 kB / 1.129 GB, free: 8.848 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.5655/4.936, allocations: 35.14 MB / 1.164 GB, free: 168.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002411/4.936, allocations: 146.7 kB / 1.164 GB, free: 168.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0913/5.027, allocations: 23.29 MB / 1.187 GB, free: 167.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06588/5.093, allocations: 10.93 MB / 1.197 GB, free: 167.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02511/5.118, allocations: 3.856 MB / 1.201 GB, free: 167.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09895/5.217, allocations: 51.25 MB / 1.251 GB, free: 145.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02955/5.247, allocations: 1.803 MB / 1.253 GB, free: 145.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004748/5.252, allocations: 0.9794 MB / 1.254 GB, free: 145.3 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.007287/5.259, allocations: 1.299 MB / 1.255 GB, free: 144.4 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003568/5.263, allocations: 0.8817 MB / 1.256 GB, free: 144.4 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1227/5.386, allocations: 28.87 MB / 1.284 GB, free: 134.9 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1147/5.5, allocations: 27.09 MB / 1.311 GB, free: 111.5 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001032/5.5, allocations: 30.47 kB / 1.311 GB, free: 111.5 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001542/5.501, allocations: 27.89 kB / 1.311 GB, free: 111.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6882/6.189, allocations: 63.18 MB / 1.372 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.756e-05/6.189, allocations: 5.062 kB / 1.372 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01035/6.199, allocations: 1.016 MB / 1.373 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1017/6.301, allocations: 15.68 MB / 1.389 GB, free: 156 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002709/6.304, allocations: 181 kB / 1.389 GB, free: 156 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1373/6.441, allocations: 64.64 MB / 1.452 GB, free: 144.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05194/6.493, allocations: 24.55 MB / 1.476 GB, free: 130.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1406/6.634, allocations: 41.05 MB / 1.516 GB, free: 116.8 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003773/6.638, allocations: 0.9499 MB / 1.517 GB, free: 116.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004686/6.642, allocations: 135.6 kB / 1.517 GB, free: 116.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01655/6.659, allocations: 0.8952 MB / 1.518 GB, free: 116.5 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003713/6.663, allocations: 456.5 kB / 1.518 GB, free: 116.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00199/6.665, allocations: 183.9 kB / 1.519 GB, free: 116.4 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0161/6.681, allocations: 5.749 MB / 1.524 GB, free: 114.4 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.12e-07/6.681, allocations: 0 / 1.524 GB, free: 114.4 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02738/6.708, allocations: 4.433 MB / 1.529 GB, free: 113.4 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.2037/6.912, allocations: 42.37 MB / 1.57 GB, free: 75.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.08409/6.996, allocations: 23.06 MB / 1.592 GB, free: 53.02 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.697e-05/6.996, allocations: 1.344 kB / 1.592 GB, free: 53.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.4671/7.463, allocations: 11.46 MB / 1.604 GB, free: 175.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01366/7.477, allocations: 1.339 MB / 1.605 GB, free: 175.4 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1437/7.621, allocations: 37.94 MB / 1.642 GB, free: 169.8 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02608/7.647, allocations: 9.437 MB / 1.651 GB, free: 168.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01836/7.665, allocations: 6.55 MB / 1.658 GB, free: 168.8 MB / 0.6198 GB Notification: Performance of SimCode: time 2.835e-06/7.666, allocations: 0 / 1.658 GB, free: 168.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.51/19.18, allocations: 0.9303 GB / 2.588 GB, free: 111.2 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat