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.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.826/1.826, allocations: 209.3 MB / 224.8 MB, free: 0.6016 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005167/0.0005169, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3115, allocations: 48.71 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.05349/0.365, allocations: 39.01 MB / 370.3 MB, free: 7.398 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02236/0.3875, allocations: 8.692 MB / 379 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007143/0.3947, allocations: 183.6 kB / 379.2 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006562/0.4013, allocations: 1.933 MB / 381.1 MB, free: 12.56 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01857/0.4199, allocations: 5.131 MB / 386.2 MB, free: 7.418 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003302/0.4232, allocations: 0.5264 MB / 386.8 MB, free: 6.891 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003054/0.4263, allocations: 1.367 MB / 388.1 MB, free: 5.52 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009474/0.4358, allocations: 5.152 MB / 393.3 MB, free: 292 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.4372, allocations: 0.7513 MB / 394 MB, free: 15.53 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001611/0.4388, allocations: 0.9692 MB / 395 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003968/0.4392, allocations: 128 kB / 395.1 MB, free: 14.43 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001355/0.4406, allocations: 0.5421 MB / 395.7 MB, free: 13.89 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001484/0.4421, allocations: 1.259 MB / 396.9 MB, free: 12.63 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008141/0.4429, allocations: 0.6987 MB / 397.6 MB, free: 11.92 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006611/0.4496, allocations: 4.909 MB / 402.5 MB, free: 7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.4496, allocations: 3.938 kB / 402.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4496, allocations: 4 kB / 402.5 MB, free: 6.992 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000106/0.4497, allocations: 0 / 402.5 MB, free: 6.992 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.009953/0.4597, allocations: 3.56 MB / 406.1 MB, free: 3.367 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.4598, allocations: 8.031 kB / 406.1 MB, free: 3.359 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001314/0.4611, allocations: 0.6279 MB / 406.7 MB, free: 2.723 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003524/0.4646, allocations: 0.5841 MB / 407.3 MB, free: 2.133 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004557/0.4692, allocations: 1.766 MB / 409.1 MB, free: 328 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002306/0.4695, allocations: 238.1 kB / 409.3 MB, free: 88 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007279/0.4702, allocations: 311.9 kB / 409.6 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02362/0.4938, allocations: 8.815 MB / 418.4 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.282e-05/0.494, allocations: 15.86 kB / 418.4 MB, free: 6.598 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004524/0.4944, allocations: 143.8 kB / 418.6 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004262/0.4987, allocations: 1.561 MB / 420.1 MB, free: 4.895 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02247/0.5212, allocations: 6.823 MB / 427 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04741/0.5687, allocations: 26.34 MB / 453.3 MB, free: 3.012 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009678/0.5784, allocations: 1.956 MB / 455.3 MB, free: 1.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01154/0.59, allocations: 6.364 MB / 461.6 MB, free: 10.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.5901, allocations: 51.16 kB / 461.7 MB, free: 10.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 3.326e-06/0.5901, allocations: 0 / 461.7 MB, free: 10.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.02476/0.6148, allocations: 6.229 MB / 467.9 MB, free: 3.781 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.615, allocations: 137.5 kB / 468 MB, free: 3.613 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00445/0.6194, allocations: 2.461 MB / 470.5 MB, free: 1.129 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.6196, allocations: 41.7 kB / 470.5 MB, free: 1.082 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00207/0.6217, allocations: 2.378 MB / 472.9 MB, free: 14.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004621/0.6222, allocations: 395.2 kB / 473.3 MB, free: 14.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.6224, allocations: 76 kB / 473.4 MB, free: 14.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003222/0.6227, allocations: 462.8 kB / 473.8 MB, free: 13.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002313/0.625, allocations: 0.9404 MB / 474.8 MB, free: 12.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00413/0.6292, allocations: 3.235 MB / 478 MB, free: 8.426 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003737/0.6329, allocations: 1.689 MB / 479.7 MB, free: 6.738 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.276e-05/0.633, allocations: 20 kB / 479.7 MB, free: 6.719 MB / 410.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.008868/0.6419, allocations: 3.993 MB / 483.7 MB, free: 2.719 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.536e-05/0.642, allocations: 41 kB / 483.8 MB, free: 2.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001012/0.6421, allocations: 80 kB / 483.8 MB, free: 2.602 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.6423, allocations: 124 kB / 484 MB, free: 2.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004505/0.6468, allocations: 0.889 MB / 484.8 MB, free: 1.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001723/0.647, allocations: 159.4 kB / 485 MB, free: 1.434 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002651/0.6496, allocations: 163.9 kB / 485.2 MB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003451/0.65, allocations: 220 kB / 485.4 MB, free: 1.059 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (480): * Single equations (assignments): 480 * 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.2588/0.9088, allocations: 1.575 MB / 486.9 MB, free: 129.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004843/0.9093, allocations: 224.2 kB / 487.2 MB, free: 129.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002894/0.9122, allocations: 1.128 MB / 488.3 MB, free: 129.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.9123, allocations: 16.48 kB / 488.3 MB, free: 129.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.9123, allocations: 1.406 kB / 488.3 MB, free: 129.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.9123, allocations: 4.406 kB / 488.3 MB, free: 129.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.9247, allocations: 5.957 MB / 494.3 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/0.9248, allocations: 21.69 kB / 494.3 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/0.9262, allocations: 221.3 kB / 494.5 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.729e-05/0.9262, allocations: 29.5 kB / 494.5 MB, free: 126.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.42e-05/0.9263, allocations: 41.72 kB / 494.6 MB, free: 126.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.262e-05/0.9263, allocations: 37.7 kB / 494.6 MB, free: 126.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.258e-05/0.9264, allocations: 27.11 kB / 494.6 MB, free: 126.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.9291, allocations: 1.729 MB / 496.4 MB, free: 125.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006267/0.9298, allocations: 320.7 kB / 496.7 MB, free: 125 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005031/0.9303, allocations: 45.45 kB / 496.7 MB, free: 125 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.9317, allocations: 42.7 kB / 496.8 MB, free: 124.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.9319, allocations: 130.2 kB / 496.9 MB, free: 124.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.43e-05/0.932, allocations: 54.28 kB / 497 MB, free: 124.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003172/0.9352, allocations: 1.605 MB / 498.6 MB, free: 124.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.774e-06/0.9352, allocations: 0 / 498.6 MB, free: 124.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004027/0.9393, allocations: 0.6342 MB / 499.2 MB, free: 124.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 76 * 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 (120): * Single equations (assignments): 120 * 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.003138/0.9424, allocations: 2.363 MB / 0.4898 GB, free: 122.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005043/0.9475, allocations: 2.26 MB / 0.492 GB, free: 121.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/0.9476, allocations: 0 / 0.492 GB, free: 121.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.9487, allocations: 0.5236 MB / 0.4925 GB, free: 121.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001756/0.9505, allocations: 298.1 kB / 0.4928 GB, free: 121.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02088/0.9714, allocations: 13.33 MB / 0.5058 GB, free: 110.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00354/0.975, allocations: 2.806 MB / 0.5086 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002464/0.9775, allocations: 1.483 MB / 0.51 GB, free: 107.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.373e-06/0.9775, allocations: 0 / 0.51 GB, free: 107.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.121/4.098, allocations: 55.79 MB / 0.5645 GB, free: 51.6 MB / 410.7 MB