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.077/2.077, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.969e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4623/0.5693, allocations: 103.7 MB / 420 MB, free: 4.914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.5696, allocations: 77.08 kB / 420.1 MB, free: 4.875 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.271/1.841, allocations: 223.2 MB / 0.6282 GB, free: 2.082 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.833e-06/1.841, allocations: 4 kB / 0.6282 GB, free: 2.078 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008401/1.842, allocations: 275.9 kB / 0.6285 GB, free: 1.809 MB / 410.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.09018/1.932, allocations: 13.77 MB / 0.6419 GB, free: 3.934 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/1.932, allocations: 12.03 kB / 0.642 GB, free: 3.922 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4469/2.379, allocations: 10.87 MB / 0.6526 GB, free: 35.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05931/2.438, allocations: 15.47 MB / 0.6677 GB, free: 35.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001065/2.439, allocations: 475.3 kB / 0.6681 GB, free: 35.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007204/2.447, allocations: 0.8608 MB / 0.669 GB, free: 35.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04849/2.495, allocations: 18.11 MB / 0.6866 GB, free: 35.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07475/2.57, allocations: 26.81 MB / 0.7128 GB, free: 28.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001511/2.572, allocations: 152.9 kB / 0.713 GB, free: 28.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006881/2.579, allocations: 72.47 kB / 0.713 GB, free: 28.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005709/2.584, allocations: 2.324 MB / 0.7153 GB, free: 27.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7155/3.3, allocations: 125 MB / 0.8374 GB, free: 29.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01561/3.316, allocations: 7.263 MB / 0.8445 GB, free: 28.37 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01301/3.329, allocations: 5.625 MB / 0.85 GB, free: 28.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009384/3.338, allocations: 4.839 MB / 0.8547 GB, free: 24.33 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/3.338, allocations: 83.31 kB / 0.8548 GB, free: 24.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=435): time 1.808e-05/3.338, allocations: 0 / 0.8548 GB, free: 24.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=569): time 0.5098/3.848, allocations: 98.68 MB / 0.9511 GB, free: 2.277 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002391/3.848, allocations: 346.1 kB / 0.9515 GB, free: 1.875 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03506/3.883, allocations: 8.397 MB / 0.9597 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001778/3.885, allocations: 29.7 kB / 0.9597 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01011/3.895, allocations: 8.698 MB / 0.9682 GB, free: 5.758 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004782/3.9, allocations: 2.131 MB / 0.9703 GB, free: 3.84 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002453/3.903, allocations: 4 kB / 0.9703 GB, free: 3.836 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001566/3.904, allocations: 1.007 MB / 0.9713 GB, free: 3.02 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03867/3.943, allocations: 9.979 MB / 0.981 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03785/3.981, allocations: 18.33 MB / 0.9989 GB, free: 7.512 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03476/4.016, allocations: 12.5 MB / 1.011 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003609/4.016, allocations: 96 kB / 1.011 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2145) (initialization): time 0.6612/4.677, allocations: 33.74 MB / 1.044 GB, free: 133.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005494/4.678, allocations: 151.2 kB / 1.044 GB, free: 133.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1213/4.799, allocations: 22.62 MB / 1.066 GB, free: 132.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08907/4.888, allocations: 10.52 MB / 1.077 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03898/4.927, allocations: 4 MB / 1.081 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.128/5.056, allocations: 45.61 MB / 1.125 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04183/5.097, allocations: 1.497 MB / 1.127 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006394/5.104, allocations: 0.9964 MB / 1.128 GB, free: 114.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1520 * 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 (1981): * Single equations (assignments): 1952 * 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.007244/5.111, allocations: 0.935 MB / 1.128 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1167/5.228, allocations: 27.63 MB / 1.155 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003753/5.232, allocations: 0.8462 MB / 1.156 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1201/5.352, allocations: 28.39 MB / 1.184 GB, free: 81.36 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1097/5.462, allocations: 26.75 MB / 1.21 GB, free: 54.55 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001052/5.462, allocations: 24 kB / 1.21 GB, free: 54.52 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002162/5.462, allocations: 31.89 kB / 1.21 GB, free: 54.49 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5893/6.051, allocations: 60.27 MB / 1.269 GB, free: 127.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.49e-05/6.051, allocations: 6.125 kB / 1.269 GB, free: 127.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009997/6.061, allocations: 1.013 MB / 1.27 GB, free: 127.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09497/6.156, allocations: 15.59 MB / 1.285 GB, free: 127.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001971/6.159, allocations: 105.5 kB / 1.285 GB, free: 127.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1289/6.287, allocations: 61.49 MB / 1.345 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05033/6.338, allocations: 23.45 MB / 1.368 GB, free: 83.73 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1361/6.474, allocations: 40.51 MB / 1.408 GB, free: 45.92 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003626/6.478, allocations: 0.8911 MB / 1.409 GB, free: 45.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005026/6.483, allocations: 43.97 kB / 1.409 GB, free: 45.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0157/6.499, allocations: 0.8189 MB / 1.41 GB, free: 44.58 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003891/6.502, allocations: 458.6 kB / 1.41 GB, free: 44.14 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001671/6.504, allocations: 180.9 kB / 1.41 GB, free: 43.96 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.4194/6.924, allocations: 4.987 MB / 1.415 GB, free: 131 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.62e-07/6.924, allocations: 1.062 kB / 1.415 GB, free: 131 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.03009/6.954, allocations: 4.25 MB / 1.419 GB, free: 131 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET140015224463757.x[2],$STATESET140015224463757.x[1],$STATESET140015224463756.x[5],$STATESET140015224463756.x[4],$STATESET140015224463756.x[3],$STATESET140015224463756.x[2],$STATESET140015224463756.x[1],$STATESET140015224463755.x[6],$STATESET140015224463755.x[5],$STATESET140015224463755.x[4],$STATESET140015224463755.x[3],$STATESET140015224463755.x[2],$STATESET140015224463755.x[1],$STATESET140015224463754.x[3],$STATESET140015224463754.x[2],$STATESET140015224463754.x[1],$STATESET140015224463753.x[2],$STATESET140015224463753.x[1],$STATESET140015224463752.x[5],$STATESET140015224463752.x[4],$STATESET140015224463752.x[3],$STATESET140015224463752.x[2],$STATESET140015224463752.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.1436/7.097, allocations: 41.79 MB / 1.46 GB, free: 127.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.05181/7.149, allocations: 22.32 MB / 1.482 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/7.149, allocations: 0 / 1.482 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.03103/7.18, allocations: 11.38 MB / 1.493 GB, free: 124 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01206/7.193, allocations: 1.117 MB / 1.494 GB, free: 123.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1348/7.327, allocations: 37.11 MB / 1.53 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02564/7.353, allocations: 9.417 MB / 1.539 GB, free: 101.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01781/7.371, allocations: 6.515 MB / 1.546 GB, free: 95.51 MB / 0.5417 GB Notification: Performance of SimCode: time 2.044e-06/7.371, allocations: 0 / 1.546 GB, free: 95.51 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.78/19.15, allocations: 0.9259 GB / 2.472 GB, free: 78.11 MB / 0.5417 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