Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.536/2.536, allocations: 270 MB / 283.6 MB, free: 3.141 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.257e-05/4.268e-05, allocations: 7.234 kB / 348.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1527, allocations: 61.88 MB / 410.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5808/0.7335, allocations: 103.3 MB / 0.5016 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.7339, allocations: 67.97 kB / 0.5017 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.215/1.949, allocations: 175.1 MB / 0.6726 GB, free: 107 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.374e-06/1.949, allocations: 0 / 0.6726 GB, free: 107 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0008773/1.949, allocations: 172 kB / 0.6728 GB, free: 107 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2557 * Number of variables: 2557 Notification: Performance of Generate backend data structure: time 0.07228/2.022, allocations: 10.01 MB / 0.6826 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/2.022, allocations: 7.594 kB / 0.6826 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00682/2.029, allocations: 1.312 MB / 0.6839 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1623/2.191, allocations: 21.92 MB / 0.7053 GB, free: 96.01 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06495/2.256, allocations: 18.95 MB / 0.7238 GB, free: 77.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006834/2.257, allocations: 0.5566 MB / 0.7243 GB, free: 76.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004313/2.261, allocations: 0.7841 MB / 0.7251 GB, free: 76.23 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06415/2.325, allocations: 19.06 MB / 0.7437 GB, free: 55.51 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006906/2.326, allocations: 138.7 kB / 0.7438 GB, free: 55.38 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003806/2.33, allocations: 366.7 kB / 0.7442 GB, free: 55.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004081/2.334, allocations: 1.651 MB / 0.7458 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05181/2.386, allocations: 15.59 MB / 0.761 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5889/2.975, allocations: 90.01 MB / 0.8489 GB, free: 54.42 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04668/3.021, allocations: 8.718 MB / 0.8574 GB, free: 53.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0102/3.032, allocations: 4.802 MB / 0.8621 GB, free: 53.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00189/3.034, allocations: 1.004 MB / 0.8631 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.664e-05/3.034, allocations: 67.62 kB / 0.8632 GB, free: 52.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=322): time 8.065e-06/3.034, allocations: 7.359 kB / 0.8632 GB, free: 52.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=397): time 0.3276/3.361, allocations: 57.26 MB / 0.9191 GB, free: 43.12 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004177/3.366, allocations: 5.115 MB / 0.9241 GB, free: 38.18 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01983/3.386, allocations: 7.425 MB / 0.9313 GB, free: 35.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001515/3.387, allocations: 88.5 kB / 0.9314 GB, free: 35.65 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006669/3.394, allocations: 6.115 MB / 0.9374 GB, free: 31.18 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003371/3.397, allocations: 1.546 MB / 0.9389 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00227/3.4, allocations: 220.9 kB / 0.9391 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0009697/3.401, allocations: 0.781 MB / 0.9399 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01407/3.415, allocations: 5.631 MB / 0.9454 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01879/3.434, allocations: 11.87 MB / 0.957 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01897/3.453, allocations: 8.017 MB / 0.9648 GB, free: 4.758 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002672/3.453, allocations: 64 kB / 0.9649 GB, free: 4.695 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.1933/3.646, allocations: 35.95 MB / 1 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002089/3.646, allocations: 100 kB / 1 GB, free: 5.504 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1198/3.766, allocations: 23.9 MB / 1.023 GB, free: 13.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5437/4.31, allocations: 18.41 MB / 1.041 GB, free: 157.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02676/4.337, allocations: 2.722 MB / 1.044 GB, free: 157.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1301/4.467, allocations: 38.85 MB / 1.082 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01978/4.487, allocations: 1.151 MB / 1.083 GB, free: 147.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003435/4.49, allocations: 0.6642 MB / 1.084 GB, free: 147.5 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 999 * Number of states: 0 () * Number of discrete variables: 66 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1307): * Single equations (assignments): 1283 * 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,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.005426/4.496, allocations: 0.9371 MB / 1.085 GB, free: 147.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002913/4.499, allocations: 0.7923 MB / 1.085 GB, free: 147.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05375/4.553, allocations: 13.64 MB / 1.099 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04814/4.601, allocations: 12.17 MB / 1.111 GB, free: 139.2 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001175/4.601, allocations: 14.44 kB / 1.111 GB, free: 139.2 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001491/4.601, allocations: 17.39 kB / 1.111 GB, free: 139.2 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1011/4.702, allocations: 29.16 MB / 1.139 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.555e-05/4.702, allocations: 0 / 1.139 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008972/4.711, allocations: 0.8977 MB / 1.14 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03337/4.745, allocations: 5.517 MB / 1.145 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001518/4.746, allocations: 107 kB / 1.146 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06525/4.812, allocations: 28.17 MB / 1.173 GB, free: 102.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004213/4.816, allocations: 4.673 MB / 1.178 GB, free: 97.26 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1074/4.923, allocations: 20.36 MB / 1.197 GB, free: 77.29 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004275/4.928, allocations: 0.8298 MB / 1.198 GB, free: 76.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00443/4.932, allocations: 87.94 kB / 1.198 GB, free: 76.36 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01176/4.944, allocations: 0.504 MB / 1.199 GB, free: 75.86 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002468/4.946, allocations: 301.1 kB / 1.199 GB, free: 75.56 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001288/4.948, allocations: 123.4 kB / 1.199 GB, free: 75.45 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01483/4.963, allocations: 5.283 MB / 1.204 GB, free: 70.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.806e-06/4.963, allocations: 0 / 1.204 GB, free: 70.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01862/4.981, allocations: 2.784 MB / 1.207 GB, free: 67.42 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[6],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (296): * Single equations (assignments): 281 * 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,54.7%) 13,(8,59.4%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06604/5.047, allocations: 21.39 MB / 1.228 GB, free: 45.93 MB / 0.5886 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17: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.04064/5.088, allocations: 15.43 MB / 1.243 GB, free: 30.35 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/5.088, allocations: 4 kB / 1.243 GB, free: 30.35 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.4175/5.506, allocations: 7.254 MB / 1.25 GB, free: 158.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01273/5.518, allocations: 1.211 MB / 1.251 GB, free: 158.8 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09925/5.618, allocations: 23.41 MB / 1.274 GB, free: 154.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02396/5.642, allocations: 6.303 MB / 1.28 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02813/5.67, allocations: 3.728 MB / 1.284 GB, free: 153.6 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01736/5.687, allocations: 4.399 MB / 1.288 GB, free: 153.6 MB / 0.5886 GB Notification: Performance of SimCode: time 1.763e-06/5.688, allocations: 0 / 1.288 GB, free: 153.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9111/6.599, allocations: 214.6 MB / 1.498 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/6.599, allocations: 189.5 kB / 1.498 GB, free: 143.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/17.92, allocations: 0.6562 kB / 1.498 GB, free: 143.7 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat