Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.043/2.043, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.725e-05/2.732e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4965/0.6053, allocations: 88.14 MB / 404.4 MB, free: 4.348 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.6056, allocations: 64.84 kB / 404.5 MB, free: 4.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.018/1.624, allocations: 168.6 MB / 0.5597 GB, free: 70.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.624, allocations: 0 / 0.5597 GB, free: 70.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008412/1.625, allocations: 174.8 kB / 0.5598 GB, free: 70.25 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: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.06618/1.691, allocations: 10.03 MB / 0.5696 GB, free: 60.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/1.691, allocations: 8.031 kB / 0.5696 GB, free: 60.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1493/1.841, allocations: 21.9 MB / 0.591 GB, free: 38.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06646/1.907, allocations: 19.82 MB / 0.6104 GB, free: 18.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004751/1.908, allocations: 244.7 kB / 0.6106 GB, free: 18.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004328/1.912, allocations: 475.6 kB / 0.6111 GB, free: 17.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02761/1.94, allocations: 10.39 MB / 0.6212 GB, free: 7.387 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04565/1.985, allocations: 16.22 MB / 0.637 GB, free: 5.398 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008443/1.986, allocations: 130.8 kB / 0.6372 GB, free: 5.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003626/1.99, allocations: 59.98 kB / 0.6372 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004805/1.995, allocations: 1.644 MB / 0.6388 GB, free: 3.566 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5211/2.516, allocations: 87.67 MB / 0.7244 GB, free: 24.53 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/2.528, allocations: 6.062 MB / 0.7304 GB, free: 21.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009196/2.537, allocations: 4.71 MB / 0.735 GB, free: 19.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002089/2.539, allocations: 1.011 MB / 0.736 GB, free: 18.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.944e-05/2.54, allocations: 65.16 kB / 0.736 GB, free: 18.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=322): time 7.514e-06/2.54, allocations: 0 / 0.736 GB, free: 18.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=396): time 0.2421/2.782, allocations: 54.85 MB / 0.7896 GB, free: 4.594 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002799/2.782, allocations: 478.7 kB / 0.79 GB, free: 4.023 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02202/2.804, allocations: 6.964 MB / 0.7968 GB, free: 14.67 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001535/2.806, allocations: 30.64 kB / 0.7969 GB, free: 14.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007205/2.813, allocations: 5.771 MB / 0.8025 GB, free: 9.297 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003419/2.816, allocations: 1.497 MB / 0.804 GB, free: 7.949 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001582/2.818, allocations: 4 kB / 0.804 GB, free: 7.945 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008273/2.819, allocations: 0.795 MB / 0.8047 GB, free: 7.277 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01383/2.833, allocations: 5.484 MB / 0.8101 GB, free: 2.383 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3501/3.183, allocations: 12.58 MB / 0.8224 GB, free: 98.49 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02137/3.204, allocations: 7.836 MB / 0.83 GB, free: 98.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004779/3.205, allocations: 63.66 kB / 0.8301 GB, free: 98.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=1475) (initialization): time 0.1457/3.35, allocations: 34.31 MB / 0.8636 GB, free: 97.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002211/3.351, allocations: 109 kB / 0.8637 GB, free: 97.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1263/3.477, allocations: 23.68 MB / 0.8868 GB, free: 95.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.101/3.578, allocations: 18.3 MB / 0.9047 GB, free: 83.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01847/3.597, allocations: 2.811 MB / 0.9074 GB, free: 80.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07742/3.674, allocations: 35.7 MB / 0.9423 GB, free: 44.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01935/3.694, allocations: 0.9458 MB / 0.9432 GB, free: 43.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003439/3.697, allocations: 0.6843 MB / 0.9439 GB, free: 42.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1020 * Number of states: 0 () * Number of discrete variables: 63 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[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 (1333): * Single equations (assignments): 1309 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,54.7%) 13,(8,54.7%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.005201/3.702, allocations: 0.6806 MB / 0.9446 GB, free: 42.27 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04993/3.752, allocations: 13.27 MB / 0.9575 GB, free: 29.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003245/3.756, allocations: 0.7496 MB / 0.9582 GB, free: 29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05058/3.806, allocations: 13.44 MB / 0.9714 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3743/4.18, allocations: 12.02 MB / 0.9831 GB, free: 89.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.955e-05/4.181, allocations: 19.52 kB / 0.9831 GB, free: 89.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001391/4.181, allocations: 19.73 kB / 0.9832 GB, free: 89.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09734/4.278, allocations: 28.02 MB / 1.011 GB, free: 87.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.682e-05/4.278, allocations: 0 / 1.011 GB, free: 87.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008818/4.287, allocations: 0.8949 MB / 1.011 GB, free: 87.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03194/4.319, allocations: 5.487 MB / 1.017 GB, free: 87.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001469/4.321, allocations: 53.41 kB / 1.017 GB, free: 87.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05648/4.377, allocations: 26.84 MB / 1.043 GB, free: 75.43 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003667/4.381, allocations: 4.496 MB / 1.047 GB, free: 71.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05907/4.44, allocations: 20.12 MB / 1.067 GB, free: 64.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003034/4.443, allocations: 0.7906 MB / 1.068 GB, free: 63.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003936/4.447, allocations: 29.92 kB / 1.068 GB, free: 63.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01101/4.458, allocations: 458.9 kB / 1.068 GB, free: 63.94 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002497/4.461, allocations: 305 kB / 1.069 GB, free: 63.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001152/4.462, allocations: 117.4 kB / 1.069 GB, free: 63.88 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01312/4.475, allocations: 4.671 MB / 1.073 GB, free: 62.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.143e-06/4.475, allocations: 0 / 1.073 GB, free: 62.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01828/4.493, allocations: 2.616 MB / 1.076 GB, free: 62.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET5445542282.x[3],$STATESET5445542282.x[2],$STATESET5445542282.x[1],$STATESET5445542281.x[6],$STATESET5445542281.x[5],$STATESET5445542281.x[4],$STATESET5445542281.x[3],$STATESET5445542281.x[2],$STATESET5445542281.x[1],$STATESET5445542280.x[3],$STATESET5445542280.x[2],$STATESET5445542280.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (295): * Single equations (assignments): 280 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {8,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,54.7%) 13,(8,59.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06143/4.555, allocations: 21.12 MB / 1.096 GB, free: 45.38 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.04089/4.596, allocations: 15.19 MB / 1.111 GB, free: 32.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/4.596, allocations: 4 kB / 1.111 GB, free: 32.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02191/4.618, allocations: 7.274 MB / 1.118 GB, free: 24.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01073/4.628, allocations: 1.083 MB / 1.119 GB, free: 23.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07893/4.707, allocations: 23.94 MB / 1.143 GB, free: 15.85 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.346/5.054, allocations: 6.309 MB / 1.149 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01221/5.066, allocations: 4.451 MB / 1.153 GB, free: 101.5 MB / 474.7 MB Notification: Performance of SimCode: time 2.224e-06/5.066, allocations: 0 / 1.153 GB, free: 101.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.26/14.33, allocations: 0.616 GB / 1.769 GB, free: 88.73 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat