Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.497/2.497, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.051e-05/2.06e-05, allocations: 0 / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3689, allocations: 54.87 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1837/0.5527, allocations: 94.63 MB / 449.1 MB, free: 416 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.553, allocations: 67.97 kB / 449.1 MB, free: 348 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.037/1.59, allocations: 168.8 MB / 0.6034 GB, free: 6.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.924e-06/1.59, allocations: 0 / 0.6034 GB, free: 6.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009487/1.591, allocations: 172 kB / 0.6036 GB, free: 6.812 MB / 442.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.0749/1.666, allocations: 10.03 MB / 0.6134 GB, free: 12.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.341e-05/1.666, allocations: 12.03 kB / 0.6134 GB, free: 12.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.9107/2.577, allocations: 21.91 MB / 0.6348 GB, free: 61.89 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07014/2.647, allocations: 19.86 MB / 0.6542 GB, free: 61.27 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004741/2.647, allocations: 241.9 kB / 0.6544 GB, free: 61.27 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003875/2.651, allocations: 476 kB / 0.6549 GB, free: 61.25 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02683/2.678, allocations: 10.38 MB / 0.665 GB, free: 61.21 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04116/2.719, allocations: 16.21 MB / 0.6809 GB, free: 56.48 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007043/2.72, allocations: 138.1 kB / 0.681 GB, free: 56.46 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003304/2.723, allocations: 54.81 kB / 0.681 GB, free: 56.46 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004346/2.728, allocations: 1.645 MB / 0.6826 GB, free: 56.45 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1435/2.871, allocations: 87.68 MB / 0.7683 GB, free: 6.293 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01513/2.886, allocations: 6.058 MB / 0.7742 GB, free: 0.582 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03414/2.921, allocations: 5.959 MB / 0.78 GB, free: 15.56 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002515/2.923, allocations: 1.001 MB / 0.781 GB, free: 14.47 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.499e-05/2.923, allocations: 76.69 kB / 0.7811 GB, free: 14.39 MB / 490.8 MB Notification: Performance of pre-optimization done (n=322): time 7.815e-06/2.923, allocations: 0 / 0.7811 GB, free: 14.39 MB / 490.8 MB Notification: Performance of matching and sorting (n=396): time 0.6427/3.566, allocations: 54.85 MB / 0.8346 GB, free: 98.59 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001649/3.566, allocations: 486.2 kB / 0.8351 GB, free: 98.06 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01612/3.582, allocations: 6.751 MB / 0.8417 GB, free: 97.48 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001481/3.584, allocations: 29.2 kB / 0.8417 GB, free: 97.45 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006647/3.591, allocations: 6.125 MB / 0.8477 GB, free: 94.66 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003103/3.594, allocations: 1.496 MB / 0.8491 GB, free: 93.78 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001575/3.595, allocations: 0 / 0.8491 GB, free: 93.78 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0007805/3.596, allocations: 0.7905 MB / 0.8499 GB, free: 93.45 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01318/3.609, allocations: 5.499 MB / 0.8553 GB, free: 93.42 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01807/3.627, allocations: 11.86 MB / 0.8669 GB, free: 85.23 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01844/3.646, allocations: 7.851 MB / 0.8745 GB, free: 85.17 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002584/3.646, allocations: 67.62 kB / 0.8746 GB, free: 85.17 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1475) (initialization): time 0.1611/3.807, allocations: 34.84 MB / 0.9086 GB, free: 80.55 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001954/3.808, allocations: 104.2 kB / 0.9087 GB, free: 80.55 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1181/3.926, allocations: 23.83 MB / 0.932 GB, free: 71.29 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1145/4.04, allocations: 18.46 MB / 0.95 GB, free: 54.73 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01926/4.06, allocations: 2.776 MB / 0.9527 GB, free: 51.95 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08849/4.148, allocations: 36.42 MB / 0.9883 GB, free: 14.82 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02066/4.169, allocations: 0.9511 MB / 0.9892 GB, free: 13.86 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003333/4.172, allocations: 0.6795 MB / 0.9899 GB, free: 13.18 MB / 0.4949 GB 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 (1327): * Single equations (assignments): 1303 * 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 {4,4} * 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.005064/4.177, allocations: 0.6667 MB / 0.9905 GB, free: 12.51 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4552/4.633, allocations: 13.27 MB / 1.004 GB, free: 87.18 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003339/4.636, allocations: 0.7499 MB / 1.004 GB, free: 87.18 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05626/4.692, allocations: 13.46 MB / 1.017 GB, free: 86.8 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0484/4.741, allocations: 12.02 MB / 1.029 GB, free: 86.52 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-05/4.741, allocations: 18 kB / 1.029 GB, free: 86.52 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001299/4.741, allocations: 20.81 kB / 1.029 GB, free: 86.52 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09608/4.837, allocations: 28.02 MB / 1.057 GB, free: 85.12 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.396e-05/4.837, allocations: 0 / 1.057 GB, free: 85.12 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00963/4.847, allocations: 0.8975 MB / 1.057 GB, free: 85.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03583/4.883, allocations: 5.473 MB / 1.063 GB, free: 84.16 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001433/4.884, allocations: 54.52 kB / 1.063 GB, free: 84.15 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06336/4.948, allocations: 26.83 MB / 1.089 GB, free: 70.65 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004351/4.952, allocations: 4.49 MB / 1.093 GB, free: 66.51 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06491/5.017, allocations: 20.13 MB / 1.113 GB, free: 57.45 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002935/5.02, allocations: 0.7904 MB / 1.114 GB, free: 56.81 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003772/5.024, allocations: 27.03 kB / 1.114 GB, free: 56.79 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0112/5.035, allocations: 462.4 kB / 1.114 GB, free: 56.56 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002415/5.037, allocations: 303.6 kB / 1.115 GB, free: 56.39 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001011/5.038, allocations: 119.9 kB / 1.115 GB, free: 56.3 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01243/5.051, allocations: 4.667 MB / 1.119 GB, free: 52.28 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.62e-07/5.051, allocations: 0 / 1.119 GB, free: 52.28 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01912/5.07, allocations: 2.626 MB / 1.122 GB, free: 49.66 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET4513419658.x[3],$STATESET4513419658.x[2],$STATESET4513419658.x[1],$STATESET4513419657.x[6],$STATESET4513419657.x[5],$STATESET4513419657.x[4],$STATESET4513419657.x[3],$STATESET4513419657.x[2],$STATESET4513419657.x[1],$STATESET4513419656.x[3],$STATESET4513419656.x[2],$STATESET4513419656.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.06592/5.136, allocations: 21.11 MB / 1.142 GB, free: 31.93 MB / 0.4949 GB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.04217/5.178, allocations: 15.43 MB / 1.158 GB, free: 17.37 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/5.178, allocations: 4 kB / 1.158 GB, free: 17.36 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02353/5.202, allocations: 7.269 MB / 1.165 GB, free: 9.992 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01099/5.213, allocations: 1.078 MB / 1.166 GB, free: 8.957 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4646/5.678, allocations: 22.98 MB / 1.188 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01689/5.695, allocations: 6.317 MB / 1.194 GB, free: 99.79 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01993/5.714, allocations: 3.753 MB / 1.198 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01265/5.727, allocations: 4.373 MB / 1.202 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.794e-06/5.727, allocations: 1.062 kB / 1.202 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8906/6.618, allocations: 206.7 MB / 1.404 GB, free: 92.64 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002803/6.618, allocations: 142.9 kB / 1.404 GB, free: 92.46 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.26/16.88, allocations: 3.531 kB / 1.404 GB, free: 92.46 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat