Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.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.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.361/2.361, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006397/0.0006396, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3607, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.541/0.9018, allocations: 108.4 MB / 477.8 MB, free: 40.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003463/0.9022, allocations: 83.33 kB / 477.9 MB, free: 40.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4835/1.386, allocations: 123.2 MB / 0.587 GB, free: 5.172 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.386, allocations: 0 / 0.587 GB, free: 5.172 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004215/1.386, allocations: 104 kB / 0.5871 GB, free: 5.066 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1929 * Number of variables: 1929 Notification: Performance of Generate backend data structure: time 0.02769/1.414, allocations: 6.025 MB / 0.593 GB, free: 14.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.684e-05/1.414, allocations: 8.031 kB / 0.593 GB, free: 14.96 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005146/1.419, allocations: 0.9722 MB / 0.5939 GB, free: 13.97 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03761/1.457, allocations: 4.719 MB / 0.5985 GB, free: 9.238 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02693/1.484, allocations: 6.665 MB / 0.605 GB, free: 2.512 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008422/1.485, allocations: 444.6 kB / 0.6054 GB, free: 2.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003622/1.488, allocations: 0.5388 MB / 0.606 GB, free: 1.531 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05243/1.541, allocations: 14.2 MB / 0.6198 GB, free: 2.199 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000377/1.541, allocations: 67.41 kB / 0.6199 GB, free: 2.133 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002847/1.544, allocations: 259.9 kB / 0.6202 GB, free: 1.879 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004408/1.549, allocations: 1.29 MB / 0.6214 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05739/1.606, allocations: 11.89 MB / 0.633 GB, free: 4.684 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4638/2.07, allocations: 59.22 MB / 0.6909 GB, free: 70.33 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02077/2.091, allocations: 4.677 MB / 0.6954 GB, free: 69.64 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02858/2.12, allocations: 12.6 MB / 0.7077 GB, free: 65.86 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/2.12, allocations: 51.81 kB / 0.7078 GB, free: 65.82 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 7.043e-06/2.12, allocations: 3.375 kB / 0.7078 GB, free: 65.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.2423/2.362, allocations: 39.79 MB / 0.7466 GB, free: 60.91 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/2.362, allocations: 237.8 kB / 0.7469 GB, free: 60.66 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01106/2.373, allocations: 4.25 MB / 0.751 GB, free: 59.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007205/2.374, allocations: 61.2 kB / 0.7511 GB, free: 59.35 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003565/2.378, allocations: 3.782 MB / 0.7548 GB, free: 56.64 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001661/2.379, allocations: 0.9107 MB / 0.7557 GB, free: 55.98 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001106/2.38, allocations: 143.8 kB / 0.7558 GB, free: 55.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005493/2.381, allocations: 0.6112 MB / 0.7564 GB, free: 55.43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008491/2.39, allocations: 3.249 MB / 0.7596 GB, free: 54.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01145/2.401, allocations: 7.509 MB / 0.7669 GB, free: 47.39 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/2.413, allocations: 4.793 MB / 0.7716 GB, free: 45.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/2.413, allocations: 46.72 kB / 0.7716 GB, free: 45.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.047/2.46, allocations: 13.69 MB / 0.785 GB, free: 35.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/2.46, allocations: 71.09 kB / 0.7851 GB, free: 35.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000232/2.461, allocations: 152.9 kB / 0.7852 GB, free: 34.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02049/2.481, allocations: 3.812 MB / 0.7889 GB, free: 32.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009615/2.491, allocations: 1.616 MB / 0.7905 GB, free: 30.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04403/2.535, allocations: 18.65 MB / 0.8087 GB, free: 15.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01338/2.548, allocations: 492.6 kB / 0.8092 GB, free: 14.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009632/2.558, allocations: 428.3 kB / 0.8096 GB, free: 14.33 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 34 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],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 (856): * Single equations (assignments): 852 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009853/2.568, allocations: 2.662 MB / 0.8122 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001674/2.57, allocations: 430.4 kB / 0.8126 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05531/2.625, allocations: 8.136 MB / 0.8206 GB, free: 4.656 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.455e-05/2.625, allocations: 28 kB / 0.8206 GB, free: 4.629 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.329e-05/2.625, allocations: 12 kB / 0.8206 GB, free: 4.617 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.565e-05/2.625, allocations: 11.95 kB / 0.8206 GB, free: 4.605 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07593/2.701, allocations: 17.45 MB / 0.8376 GB, free: 3.148 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.751e-05/2.701, allocations: 4 kB / 0.8376 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004063/2.705, allocations: 391.4 kB / 0.838 GB, free: 2.762 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4237/3.129, allocations: 3.85 MB / 0.8418 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008304/3.13, allocations: 41 kB / 0.8418 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05457/3.184, allocations: 17.09 MB / 0.8585 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/3.185, allocations: 0 / 0.8585 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04134/3.226, allocations: 12.65 MB / 0.8709 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/3.229, allocations: 0.9359 MB / 0.8718 GB, free: 113 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001727/3.231, allocations: 38.8 kB / 0.8718 GB, free: 113 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005228/3.236, allocations: 214.1 kB / 0.872 GB, free: 113 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001206/3.238, allocations: 152.2 kB / 0.8722 GB, free: 113 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003627/3.238, allocations: 68.67 kB / 0.8722 GB, free: 113 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00875/3.247, allocations: 2.978 MB / 0.8751 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.82e-07/3.247, allocations: 0 / 0.8751 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0107/3.258, allocations: 1.456 MB / 0.8766 GB, free: 112.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * 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 (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04106/3.299, allocations: 13.55 MB / 0.8898 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01878/3.318, allocations: 7.876 MB / 0.8975 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/3.318, allocations: 0 / 0.8975 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007141/3.325, allocations: 2.958 MB / 0.9004 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004607/3.329, allocations: 499.1 kB / 0.9008 GB, free: 105 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08003/3.41, allocations: 128.2 MB / 1.026 GB, free: 30.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01015/3.42, allocations: 4.206 MB / 1.03 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006363/3.426, allocations: 2.529 MB / 1.033 GB, free: 27.35 MB / 0.5417 GB Notification: Performance of SimCode: time 1.483e-06/3.426, allocations: 0 / 1.033 GB, free: 27.35 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.148/8.574, allocations: 128.2 MB / 1.158 GB, free: 133.1 MB / 0.5417 GB