Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.685/2.685, allocations: 270.1 MB / 283.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.231e-05/4.235e-05, allocations: 5.281 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1722, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5692/0.7415, allocations: 103.3 MB / 0.5016 GB, free: 0.625 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.7418, allocations: 71.91 kB / 0.5017 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.162/1.904, allocations: 175.1 MB / 0.6726 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.605e-06/1.904, allocations: 0 / 0.6726 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0008911/1.905, allocations: 174.3 kB / 0.6728 GB, free: 106.6 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.06776/1.973, allocations: 10.01 MB / 0.6826 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/1.973, allocations: 10.91 kB / 0.6826 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006796/1.98, allocations: 1.312 MB / 0.6839 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1759/2.155, allocations: 21.92 MB / 0.7053 GB, free: 95.66 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06674/2.222, allocations: 18.94 MB / 0.7238 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007305/2.223, allocations: 0.5601 MB / 0.7243 GB, free: 76.61 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004805/2.228, allocations: 0.7778 MB / 0.7251 GB, free: 75.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06001/2.288, allocations: 19.06 MB / 0.7437 GB, free: 55.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007859/2.289, allocations: 150.3 kB / 0.7438 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003768/2.293, allocations: 364.5 kB / 0.7442 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004126/2.297, allocations: 1.646 MB / 0.7458 GB, free: 53.05 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05293/2.35, allocations: 15.59 MB / 0.761 GB, free: 37.45 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5708/2.921, allocations: 90.01 MB / 0.8489 GB, free: 54.07 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04715/2.968, allocations: 8.716 MB / 0.8574 GB, free: 53.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01026/2.978, allocations: 4.803 MB / 0.8621 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001996/2.98, allocations: 1.004 MB / 0.8631 GB, free: 52.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.692e-05/2.98, allocations: 68.75 kB / 0.8632 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=322): time 7.985e-06/2.98, allocations: 0 / 0.8632 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=397): time 0.3433/3.324, allocations: 57.27 MB / 0.9191 GB, free: 43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004322/3.328, allocations: 5.127 MB / 0.9241 GB, free: 38.06 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01935/3.347, allocations: 7.423 MB / 0.9314 GB, free: 35.61 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001556/3.349, allocations: 84.53 kB / 0.9314 GB, free: 35.53 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006255/3.355, allocations: 6.11 MB / 0.9374 GB, free: 31.06 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003062/3.358, allocations: 1.55 MB / 0.9389 GB, free: 29.93 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001686/3.36, allocations: 221.5 kB / 0.9391 GB, free: 29.76 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007074/3.361, allocations: 0.7756 MB / 0.9399 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01352/3.374, allocations: 5.642 MB / 0.9454 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01846/3.393, allocations: 11.87 MB / 0.957 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01857/3.412, allocations: 8.006 MB / 0.9648 GB, free: 4.473 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002071/3.412, allocations: 67.95 kB / 0.9649 GB, free: 4.406 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.2135/3.625, allocations: 36.03 MB / 1 GB, free: 5.391 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000354/3.626, allocations: 108.2 kB / 1 GB, free: 5.285 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1495/3.775, allocations: 23.9 MB / 1.023 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6756/4.451, allocations: 18.4 MB / 1.041 GB, free: 157 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01935/4.47, allocations: 2.729 MB / 1.044 GB, free: 157 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09087/4.561, allocations: 38.85 MB / 1.082 GB, free: 147.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02038/4.582, allocations: 1.145 MB / 1.083 GB, free: 147.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003422/4.585, allocations: 0.6657 MB / 1.084 GB, free: 147.2 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.005531/4.591, allocations: 0.9513 MB / 1.085 GB, free: 146.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002835/4.594, allocations: 0.7884 MB / 1.086 GB, free: 146.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05324/4.647, allocations: 13.64 MB / 1.099 GB, free: 142.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.048/4.695, allocations: 12.16 MB / 1.111 GB, free: 138.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.979e-05/4.695, allocations: 17.78 kB / 1.111 GB, free: 138.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001167/4.695, allocations: 19.47 kB / 1.111 GB, free: 138.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1116/4.807, allocations: 29.16 MB / 1.139 GB, free: 129 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-05/4.807, allocations: 6.875 kB / 1.139 GB, free: 129 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01185/4.819, allocations: 0.894 MB / 1.14 GB, free: 129 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03908/4.858, allocations: 5.51 MB / 1.146 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001548/4.86, allocations: 115.4 kB / 1.146 GB, free: 126 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07507/4.935, allocations: 28.17 MB / 1.173 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003976/4.939, allocations: 4.685 MB / 1.178 GB, free: 96.88 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06099/5, allocations: 20.36 MB / 1.198 GB, free: 76.95 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003146/5.003, allocations: 0.8307 MB / 1.198 GB, free: 76.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003407/5.006, allocations: 91.94 kB / 1.198 GB, free: 76.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0107/5.017, allocations: 0.502 MB / 1.199 GB, free: 75.52 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002005/5.019, allocations: 300.5 kB / 1.199 GB, free: 75.22 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006504/5.02, allocations: 117.9 kB / 1.199 GB, free: 75.11 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01334/5.033, allocations: 5.283 MB / 1.205 GB, free: 69.86 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.82e-07/5.033, allocations: 3.938 kB / 1.205 GB, free: 69.86 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01736/5.051, allocations: 2.782 MB / 1.207 GB, free: 67.08 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.06372/5.114, allocations: 21.38 MB / 1.228 GB, free: 45.6 MB / 0.5886 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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 trunk/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 trunk/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 trunk/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.03983/5.154, allocations: 15.44 MB / 1.243 GB, free: 30.02 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/5.154, allocations: 0 / 1.243 GB, free: 30.02 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.4997/5.654, allocations: 7.255 MB / 1.25 GB, free: 158.3 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0169/5.671, allocations: 1.217 MB / 1.251 GB, free: 158.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.109/5.78, allocations: 23.4 MB / 1.274 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0167/5.797, allocations: 6.304 MB / 1.28 GB, free: 153.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02083/5.818, allocations: 3.723 MB / 1.284 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01572/5.834, allocations: 4.406 MB / 1.288 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of SimCode: time 2.475e-06/5.834, allocations: 0 / 1.288 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9366/6.77, allocations: 214.6 MB / 1.498 GB, free: 143.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002304/6.77, allocations: 181.3 kB / 1.498 GB, free: 143.4 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/17.57, allocations: 4 kB / 1.498 GB, free: 143.4 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat