Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSR.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.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.868/1.868, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004165/0.0004165, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3165, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.05536/0.372, allocations: 39.04 MB / 370.3 MB, free: 7.379 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0237/0.3957, allocations: 8.87 MB / 379.2 MB, free: 14.49 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007461/0.4032, allocations: 179.7 kB / 379.4 MB, free: 14.31 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006753/0.41, allocations: 1.936 MB / 381.3 MB, free: 12.37 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01877/0.4289, allocations: 5.119 MB / 386.4 MB, free: 7.234 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003742/0.4326, allocations: 0.6629 MB / 387.1 MB, free: 6.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003211/0.4359, allocations: 1.401 MB / 388.5 MB, free: 5.164 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009524/0.4454, allocations: 5.161 MB / 393.6 MB, free: 15.92 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.4469, allocations: 0.7901 MB / 394.4 MB, free: 15.13 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.4486, allocations: 1.008 MB / 395.4 MB, free: 14.12 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003981/0.449, allocations: 132 kB / 395.6 MB, free: 13.99 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001806/0.4508, allocations: 0.6944 MB / 396.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001539/0.4524, allocations: 1.274 MB / 397.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008235/0.4532, allocations: 0.6948 MB / 398.2 MB, free: 11.31 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006835/0.4601, allocations: 5.026 MB / 403.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.4601, allocations: 4 kB / 403.3 MB, free: 6.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4601, allocations: 0 / 403.3 MB, free: 6.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.864e-05/0.4602, allocations: 0 / 403.3 MB, free: 6.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01209/0.4723, allocations: 3.798 MB / 407.1 MB, free: 2.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.4724, allocations: 8.031 kB / 407.1 MB, free: 2.402 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001372/0.4738, allocations: 0.6359 MB / 407.7 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003792/0.4776, allocations: 0.588 MB / 408.3 MB, free: 1.164 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005128/0.4827, allocations: 1.813 MB / 410.1 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002439/0.483, allocations: 246 kB / 410.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007635/0.4838, allocations: 311.8 kB / 410.6 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02612/0.5099, allocations: 9.399 MB / 420 MB, free: 5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.974e-05/0.5101, allocations: 15.81 kB / 420.1 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004971/0.5106, allocations: 147.8 kB / 420.2 MB, free: 4.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004432/0.515, allocations: 1.58 MB / 421.8 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02588/0.5409, allocations: 7.639 MB / 429.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05131/0.5923, allocations: 27.95 MB / 457.4 MB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01258/0.6049, allocations: 2.353 MB / 459.7 MB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01468/0.6196, allocations: 7.673 MB / 467.4 MB, free: 4.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.6197, allocations: 55.09 kB / 467.4 MB, free: 4.227 MB / 394.7 MB Notification: Performance of pre-optimization done (n=81): time 7.033e-06/0.6198, allocations: 0 / 467.4 MB, free: 4.227 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.03081/0.6506, allocations: 7.152 MB / 474.6 MB, free: 13.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.793e-05/0.6507, allocations: 149.5 kB / 474.7 MB, free: 12.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/0.6555, allocations: 2.615 MB / 477.4 MB, free: 10.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001497/0.6557, allocations: 41.7 kB / 477.4 MB, free: 10.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001966/0.6576, allocations: 2.385 MB / 479.8 MB, free: 7.746 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004899/0.6581, allocations: 399.1 kB / 480.2 MB, free: 7.352 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.6584, allocations: 80 kB / 480.3 MB, free: 7.273 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003116/0.6587, allocations: 467.2 kB / 480.7 MB, free: 6.809 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002566/0.6613, allocations: 1.077 MB / 481.8 MB, free: 5.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004319/0.6656, allocations: 3.456 MB / 485.2 MB, free: 1.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2577/0.9234, allocations: 1.835 MB / 487.1 MB, free: 129.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.78e-05/0.9235, allocations: 25.34 kB / 487.1 MB, free: 129.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=496) (initialization): time 0.01002/0.9335, allocations: 4.322 MB / 491.4 MB, free: 127.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.009e-05/0.9337, allocations: 41.5 kB / 491.5 MB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/0.9338, allocations: 85.34 kB / 491.6 MB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.934, allocations: 124.6 kB / 491.7 MB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005221/0.9392, allocations: 0.9433 MB / 492.6 MB, free: 127.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001833/0.9395, allocations: 173.7 kB / 492.8 MB, free: 127.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003222/0.9427, allocations: 198.9 kB / 493 MB, free: 127.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003732/0.9431, allocations: 231.2 kB / 493.2 MB, free: 127.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 387 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 496 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00318/0.9463, allocations: 1.591 MB / 494.8 MB, free: 126.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004861/0.9468, allocations: 228.3 kB / 495 MB, free: 126.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/0.9499, allocations: 1.381 MB / 496.4 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.795e-05/0.95, allocations: 13.75 kB / 496.4 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.95, allocations: 1.188 kB / 496.4 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.95, allocations: 8.031 kB / 496.4 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.962, allocations: 6.023 MB / 0.4907 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-05/0.9621, allocations: 19.56 kB / 0.4907 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/0.9634, allocations: 221.7 kB / 0.4909 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-05/0.9635, allocations: 23.28 kB / 0.4909 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.061e-05/0.9636, allocations: 39.11 kB / 0.491 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.332e-05/0.9636, allocations: 24.34 kB / 0.491 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.769e-05/0.9636, allocations: 27.22 kB / 0.491 GB, free: 123.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.9662, allocations: 1.794 MB / 0.4928 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005967/0.9668, allocations: 320.9 kB / 0.4931 GB, free: 122 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004177/0.9672, allocations: 42.11 kB / 0.4931 GB, free: 122 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/0.9686, allocations: 47.89 kB / 0.4932 GB, free: 122 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.9687, allocations: 118.8 kB / 0.4933 GB, free: 122 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.738e-05/0.9688, allocations: 50.44 kB / 0.4933 GB, free: 122 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002961/0.9718, allocations: 1.664 MB / 0.4949 GB, free: 121.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.9718, allocations: 1.156 kB / 0.4949 GB, free: 121.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003774/0.9756, allocations: 0.6638 MB / 0.4956 GB, free: 121.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 0 () * 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 (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00296/0.9786, allocations: 2.425 MB / 0.498 GB, free: 119.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004902/0.9835, allocations: 2.488 MB / 0.5004 GB, free: 118.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.9835, allocations: 3 kB / 0.5004 GB, free: 118.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.9847, allocations: 0.5737 MB / 0.5009 GB, free: 118.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.9863, allocations: 298.2 kB / 0.5012 GB, free: 117.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/1.006, allocations: 13.61 MB / 0.5145 GB, free: 102.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003225/1.01, allocations: 2.796 MB / 0.5173 GB, free: 99.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002358/1.012, allocations: 1.483 MB / 0.5187 GB, free: 98.22 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/1.012, allocations: 0 / 0.5187 GB, free: 98.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.041/4.054, allocations: 57.51 MB / 0.5749 GB, free: 40.66 MB / 410.7 MB