Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.309/2.309, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004415/0.0004416, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3416, allocations: 54.86 MB / 369.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.SphericalDoublePendulum): time 0.1272/0.4689, allocations: 84.31 MB / 453.6 MB, free: 6.207 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05568/0.5246, allocations: 19.72 MB / 473.3 MB, free: 2.426 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0175/0.5422, allocations: 446.8 kB / 473.7 MB, free: 1.988 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3603/0.9026, allocations: 4.366 MB / 478.1 MB, free: 2.219 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04354/0.9462, allocations: 12.34 MB / 490.4 MB, free: 2.02 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008259/0.9545, allocations: 1.587 MB / 492 MB, free: 1.727 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.1452/1.1, allocations: 51.49 MB / 0.5308 GB, free: 3.801 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01816/1.118, allocations: 8.97 MB / 0.5395 GB, free: 13.41 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006122/1.124, allocations: 2.411 MB / 0.5419 GB, free: 11.84 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007084/1.131, allocations: 3.234 MB / 0.545 GB, free: 9.516 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002067/1.133, allocations: 272 kB / 0.5453 GB, free: 9.25 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006062/1.14, allocations: 1.524 MB / 0.5468 GB, free: 7.992 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006838/1.146, allocations: 3.875 MB / 0.5506 GB, free: 5.105 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003574/1.15, allocations: 1.718 MB / 0.5523 GB, free: 4.477 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02003/1.17, allocations: 12.21 MB / 0.5642 GB, free: 9.848 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/1.17, allocations: 0 / 0.5642 GB, free: 9.848 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.17, allocations: 4 kB / 0.5642 GB, free: 9.844 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004964/1.171, allocations: 0 / 0.5642 GB, free: 9.844 MB / 458.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.05438/1.225, allocations: 10.51 MB / 0.5745 GB, free: 184 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/1.225, allocations: 8.031 kB / 0.5745 GB, free: 176 kB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004592/1.23, allocations: 1.215 MB / 0.5756 GB, free: 15.45 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.07/2.3, allocations: 45.53 MB / 0.6201 GB, free: 3.887 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04336/2.344, allocations: 12.22 MB / 0.632 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005604/2.344, allocations: 450.9 kB / 0.6325 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005386/2.35, allocations: 0.9499 MB / 0.6334 GB, free: 9.898 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05779/2.407, allocations: 19.28 MB / 0.6522 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004789/2.408, allocations: 109.5 kB / 0.6523 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002368/2.41, allocations: 283.3 kB / 0.6526 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007668/2.418, allocations: 2.908 MB / 0.6555 GB, free: 8.137 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6502/3.068, allocations: 16.89 MB / 0.6719 GB, free: 208.9 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1387/3.207, allocations: 79.2 MB / 0.7493 GB, free: 146.1 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04265/3.25, allocations: 9.217 MB / 0.7583 GB, free: 136.8 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001946/3.252, allocations: 1.008 MB / 0.7593 GB, free: 135.6 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.57e-05/3.252, allocations: 72.5 kB / 0.7593 GB, free: 135.6 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=322): time 7.584e-06/3.252, allocations: 2.938 kB / 0.7593 GB, free: 135.6 MB / 0.5262 GB Notification: Performance of matching and sorting (n=397): time 0.384/3.636, allocations: 71.97 MB / 0.8296 GB, free: 63.42 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004327/3.64, allocations: 5.195 MB / 0.8347 GB, free: 57.69 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02079/3.661, allocations: 10.3 MB / 0.8448 GB, free: 47.42 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001591/3.663, allocations: 93.61 kB / 0.8448 GB, free: 47.33 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.005021/3.668, allocations: 5.668 MB / 0.8504 GB, free: 41.67 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003066/3.671, allocations: 1.541 MB / 0.8519 GB, free: 40.14 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001813/3.673, allocations: 220 kB / 0.8521 GB, free: 39.93 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0007069/3.673, allocations: 0.7817 MB / 0.8529 GB, free: 39.14 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01409/3.687, allocations: 6.1 MB / 0.8588 GB, free: 33.03 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01794/3.705, allocations: 12.36 MB / 0.8709 GB, free: 17.62 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01859/3.724, allocations: 8.374 MB / 0.8791 GB, free: 9.234 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001923/3.724, allocations: 60 kB / 0.8791 GB, free: 9.176 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.4976/4.222, allocations: 39.3 MB / 0.9175 GB, free: 184.9 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/4.222, allocations: 101.3 kB / 0.9176 GB, free: 184.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1309/4.353, allocations: 27.53 MB / 0.9445 GB, free: 162.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1323/4.485, allocations: 21.86 MB / 0.9658 GB, free: 141 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01636/4.502, allocations: 2.718 MB / 0.9685 GB, free: 138.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1146/4.616, allocations: 49.76 MB / 1.017 GB, free: 88.12 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0194/4.636, allocations: 1.234 MB / 1.018 GB, free: 86.93 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002699/4.639, allocations: 0.6575 MB / 1.019 GB, free: 86.27 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 984 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1283): * Single equations (assignments): 1259 * 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 18} Notification: Performance of prepare postOptimizeDAE: time 0.01068/4.649, allocations: 3.945 MB / 1.023 GB, free: 82.46 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002636/4.652, allocations: 0.7882 MB / 1.024 GB, free: 82.09 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05749/4.71, allocations: 15.4 MB / 1.039 GB, free: 66.68 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05177/4.761, allocations: 13.84 MB / 1.052 GB, free: 52.8 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.556e-05/4.762, allocations: 19.98 kB / 1.052 GB, free: 52.78 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001075/4.762, allocations: 19.92 kB / 1.052 GB, free: 52.76 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4311/5.193, allocations: 32.2 MB / 1.084 GB, free: 179.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.433e-05/5.193, allocations: 2.312 kB / 1.084 GB, free: 179.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008619/5.201, allocations: 0.9298 MB / 1.084 GB, free: 179.2 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03824/5.24, allocations: 6.767 MB / 1.091 GB, free: 179.1 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001489/5.241, allocations: 116.3 kB / 1.091 GB, free: 179.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07087/5.312, allocations: 32.79 MB / 1.123 GB, free: 164.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004195/5.316, allocations: 4.738 MB / 1.128 GB, free: 160.1 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06758/5.384, allocations: 22.32 MB / 1.15 GB, free: 141.8 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003151/5.387, allocations: 0.9509 MB / 1.151 GB, free: 141.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003998/5.391, allocations: 87.97 kB / 1.151 GB, free: 141.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01164/5.403, allocations: 0.5809 MB / 1.151 GB, free: 140.6 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002199/5.405, allocations: 306.7 kB / 1.152 GB, free: 140.3 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007593/5.406, allocations: 116.8 kB / 1.152 GB, free: 140.2 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01457/5.421, allocations: 6.822 MB / 1.158 GB, free: 133.4 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.042e-06/5.421, allocations: 0 / 1.158 GB, free: 133.4 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01594/5.437, allocations: 2.955 MB / 1.161 GB, free: 130.4 MB / 0.5262 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 () * Number of clocked 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,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.06839/5.505, allocations: 22.84 MB / 1.183 GB, free: 107.6 MB / 0.5262 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0427/5.548, allocations: 17.03 MB / 1.2 GB, free: 90.39 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/5.548, allocations: 0 / 1.2 GB, free: 90.39 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02503/5.573, allocations: 8.075 MB / 1.208 GB, free: 82.14 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01088/5.584, allocations: 1.233 MB / 1.209 GB, free: 80.92 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6885/6.272, allocations: 125.6 MB / 1.332 GB, free: 164.4 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01317/6.286, allocations: 6.328 MB / 1.338 GB, free: 158.1 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01107/6.297, allocations: 4.507 MB / 1.342 GB, free: 153.6 MB / 0.5262 GB Notification: Performance of SimCode: time 1.262e-06/6.297, allocations: 0 / 1.342 GB, free: 153.6 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.64/14.94, allocations: 0.6248 GB / 1.967 GB, free: 81.93 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat