Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) 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.168/2.168, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004531/0.0004532, allocations: 12 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3441, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.SphericalDoublePendulum): time 0.1453/0.4894, allocations: 84.3 MB / 415.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0583/0.5478, allocations: 19.7 MB / 435.3 MB, free: 6.25 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01892/0.5668, allocations: 446.8 kB / 435.7 MB, free: 5.812 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01626/0.5831, allocations: 4.371 MB / 440.1 MB, free: 1.422 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04635/0.6295, allocations: 12.33 MB / 452.4 MB, free: 5.059 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008525/0.6381, allocations: 1.603 MB / 454 MB, free: 3.453 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.4716/1.11, allocations: 51.48 MB / 0.4936 GB, free: 18.27 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01696/1.127, allocations: 8.975 MB / 0.5024 GB, free: 14.79 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005853/1.133, allocations: 2.418 MB / 0.5048 GB, free: 13.21 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006569/1.139, allocations: 3.226 MB / 0.5079 GB, free: 10.89 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002257/1.142, allocations: 272 kB / 0.5082 GB, free: 10.62 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005468/1.147, allocations: 1.515 MB / 0.5097 GB, free: 9.375 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006/1.153, allocations: 3.875 MB / 0.5134 GB, free: 6.488 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003803/1.157, allocations: 1.718 MB / 0.5151 GB, free: 5.859 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01826/1.175, allocations: 12.21 MB / 0.527 GB, free: 11.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/1.175, allocations: 0 / 0.527 GB, free: 11.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.466e-06/1.175, allocations: 0 / 0.527 GB, free: 11.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005428/1.176, allocations: 0 / 0.527 GB, free: 11.24 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.05619/1.232, allocations: 10.52 MB / 0.5373 GB, free: 1.578 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/1.232, allocations: 8.031 kB / 0.5373 GB, free: 1.57 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00516/1.237, allocations: 1.228 MB / 0.5385 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.113/2.351, allocations: 45.48 MB / 0.5829 GB, free: 5.324 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0471/2.398, allocations: 12.21 MB / 0.5949 GB, free: 12.26 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006083/2.398, allocations: 442.3 kB / 0.5953 GB, free: 12.02 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005828/2.404, allocations: 0.9516 MB / 0.5962 GB, free: 11.36 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06247/2.467, allocations: 19.29 MB / 0.615 GB, free: 12.1 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006493/2.467, allocations: 113.3 kB / 0.6152 GB, free: 12.03 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002983/2.47, allocations: 280.7 kB / 0.6154 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007943/2.478, allocations: 2.914 MB / 0.6183 GB, free: 9.574 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0603/2.539, allocations: 16.89 MB / 0.6348 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.768/3.307, allocations: 79.15 MB / 0.7121 GB, free: 155.3 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04337/3.35, allocations: 9.209 MB / 0.7211 GB, free: 149.8 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00207/3.352, allocations: 1.003 MB / 0.722 GB, free: 148.7 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.824e-05/3.353, allocations: 75.27 kB / 0.7221 GB, free: 148.6 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=322): time 7.143e-06/3.353, allocations: 0 / 0.7221 GB, free: 148.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=397): time 0.3902/3.743, allocations: 71.97 MB / 0.7924 GB, free: 76.89 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004356/3.747, allocations: 5.192 MB / 0.7975 GB, free: 71.14 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02147/3.769, allocations: 10.29 MB / 0.8075 GB, free: 60.89 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001726/3.771, allocations: 89.38 kB / 0.8076 GB, free: 60.8 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005152/3.776, allocations: 5.67 MB / 0.8131 GB, free: 55.16 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.00314/3.779, allocations: 1.544 MB / 0.8146 GB, free: 53.63 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001942/3.781, allocations: 217.6 kB / 0.8148 GB, free: 53.42 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0007024/3.782, allocations: 0.7818 MB / 0.8156 GB, free: 52.63 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01434/3.796, allocations: 6.053 MB / 0.8215 GB, free: 46.57 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.019/3.815, allocations: 12.31 MB / 0.8335 GB, free: 31.21 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01862/3.834, allocations: 8.326 MB / 0.8417 GB, free: 22.88 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001957/3.834, allocations: 64 kB / 0.8417 GB, free: 22.81 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.4496/4.284, allocations: 37.49 MB / 0.8783 GB, free: 182.3 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001933/4.284, allocations: 98.56 kB / 0.8784 GB, free: 182.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1086/4.393, allocations: 25.7 MB / 0.9035 GB, free: 173.3 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1054/4.498, allocations: 19.89 MB / 0.923 GB, free: 159 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01637/4.514, allocations: 2.72 MB / 0.9256 GB, free: 156.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1024/4.617, allocations: 46.28 MB / 0.9708 GB, free: 109.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01941/4.636, allocations: 1.226 MB / 0.972 GB, free: 108.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002901/4.639, allocations: 0.66 MB / 0.9727 GB, free: 107.9 MB / 0.4949 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): 8 * Torn equation systems: 7 * 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: 0 * 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: 4 {3 1,3 1,4 9,4 18} Notification: Performance of prepare postOptimizeDAE: time 0.01135/4.651, allocations: 3.954 MB / 0.9765 GB, free: 104.3 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003288/4.654, allocations: 0.7817 MB / 0.9773 GB, free: 103.9 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05922/4.713, allocations: 15.4 MB / 0.9923 GB, free: 88.53 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0543/4.768, allocations: 13.84 MB / 1.006 GB, free: 74.65 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-05/4.768, allocations: 19.97 kB / 1.006 GB, free: 74.63 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001188/4.768, allocations: 19.92 kB / 1.006 GB, free: 74.61 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1058/4.874, allocations: 32.2 MB / 1.037 GB, free: 42.48 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-05/4.874, allocations: 4 kB / 1.037 GB, free: 42.47 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008728/4.883, allocations: 0.932 MB / 1.038 GB, free: 41.54 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03843/4.921, allocations: 6.758 MB / 1.045 GB, free: 34.84 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001734/4.923, allocations: 119.9 kB / 1.045 GB, free: 34.72 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4703/5.393, allocations: 32.78 MB / 1.077 GB, free: 172.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005835/5.399, allocations: 4.745 MB / 1.082 GB, free: 168.2 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07454/5.474, allocations: 22.31 MB / 1.103 GB, free: 160.7 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003434/5.477, allocations: 0.9514 MB / 1.104 GB, free: 160.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004195/5.481, allocations: 90.5 kB / 1.104 GB, free: 160.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01181/5.493, allocations: 0.5867 MB / 1.105 GB, free: 160.3 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002416/5.496, allocations: 302.3 kB / 1.105 GB, free: 160.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000715/5.496, allocations: 117.4 kB / 1.105 GB, free: 160.2 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01591/5.512, allocations: 6.819 MB / 1.112 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.31e-07/5.512, allocations: 0 / 1.112 GB, free: 156.4 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01677/5.529, allocations: 2.923 MB / 1.115 GB, free: 153.5 MB / 0.4949 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.07057/5.6, allocations: 22.85 MB / 1.137 GB, free: 131.1 MB / 0.4949 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0435/5.643, allocations: 16.93 MB / 1.154 GB, free: 114 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/5.643, allocations: 0 / 1.154 GB, free: 114 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02584/5.669, allocations: 8.079 MB / 1.162 GB, free: 105.8 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01152/5.681, allocations: 1.228 MB / 1.163 GB, free: 104.6 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6599/6.341, allocations: 123.6 MB / 1.284 GB, free: 168.2 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01474/6.356, allocations: 6.333 MB / 1.29 GB, free: 166.3 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01164/6.367, allocations: 4.503 MB / 1.294 GB, free: 162.7 MB / 0.4949 GB Notification: Performance of SimCode: time 1.352e-06/6.367, allocations: 0 / 1.294 GB, free: 162.7 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.006/15.37, allocations: 0.6232 GB / 1.917 GB, free: 55.12 MB / 0.4949 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