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.JointUSP2.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.JointUSP2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.305/2.305, allocations: 209.2 MB / 224.8 MB, free: 0.6055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004493/0.0004494, allocations: 15.98 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.364, allocations: 48.7 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1855/0.5496, allocations: 101.6 MB / 433 MB, free: 8.629 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.5499, allocations: 75.97 kB / 433 MB, free: 8.555 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7853/1.335, allocations: 123.1 MB / 0.5431 GB, free: 53.81 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.335, allocations: 0 / 0.5431 GB, free: 53.81 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003699/1.336, allocations: 112 kB / 0.5432 GB, free: 53.7 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1928 * Number of variables: 1928 Notification: Performance of Generate backend data structure: time 0.02556/1.361, allocations: 6.033 MB / 0.5491 GB, free: 47.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/1.361, allocations: 12.02 kB / 0.5491 GB, free: 47.58 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004641/1.366, allocations: 0.9683 MB / 0.5501 GB, free: 46.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03535/1.401, allocations: 4.719 MB / 0.5547 GB, free: 41.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02379/1.425, allocations: 6.653 MB / 0.5612 GB, free: 35.15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006142/1.426, allocations: 440.6 kB / 0.5616 GB, free: 34.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00314/1.429, allocations: 0.5349 MB / 0.5621 GB, free: 34.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04492/1.474, allocations: 14.19 MB / 0.576 GB, free: 18.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003519/1.474, allocations: 75.33 kB / 0.5761 GB, free: 18.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00293/1.477, allocations: 255.9 kB / 0.5763 GB, free: 18.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002967/1.48, allocations: 1.294 MB / 0.5776 GB, free: 17.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03954/1.52, allocations: 11.89 MB / 0.5892 GB, free: 5.332 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4333/1.953, allocations: 59.22 MB / 0.647 GB, free: 50.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02131/1.975, allocations: 4.674 MB / 0.6516 GB, free: 49.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02743/2.002, allocations: 12.59 MB / 0.6639 GB, free: 45.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.703e-05/2.002, allocations: 60.81 kB / 0.6639 GB, free: 45.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 6.282e-06/2.002, allocations: 3.781 kB / 0.6639 GB, free: 45.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=242): time 0.2374/2.24, allocations: 39.79 MB / 0.7028 GB, free: 39.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.879e-05/2.24, allocations: 233.3 kB / 0.703 GB, free: 38.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/2.25, allocations: 4.253 MB / 0.7072 GB, free: 37.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007384/2.251, allocations: 63.86 kB / 0.7072 GB, free: 37.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003505/2.255, allocations: 3.784 MB / 0.7109 GB, free: 34.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001626/2.256, allocations: 0.9113 MB / 0.7118 GB, free: 33.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/2.258, allocations: 140.4 kB / 0.7119 GB, free: 33.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005777/2.258, allocations: 0.6152 MB / 0.7125 GB, free: 33.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008652/2.267, allocations: 3.25 MB / 0.7157 GB, free: 32.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01144/2.278, allocations: 7.504 MB / 0.723 GB, free: 24.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01297/2.291, allocations: 4.793 MB / 0.7277 GB, free: 20.26 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001879/2.292, allocations: 48 kB / 0.7278 GB, free: 20.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.0625/2.354, allocations: 13.69 MB / 0.7411 GB, free: 9.547 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001599/2.354, allocations: 68.94 kB / 0.7412 GB, free: 9.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003196/2.355, allocations: 148 kB / 0.7413 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02394/2.379, allocations: 3.82 MB / 0.7451 GB, free: 6.715 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009591/2.388, allocations: 1.609 MB / 0.7466 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05127/2.44, allocations: 18.85 MB / 0.765 GB, free: 3.965 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009953/2.45, allocations: 486.7 kB / 0.7655 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002251/2.452, allocations: 432 kB / 0.7659 GB, free: 3.07 MB / 442.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.009013/2.461, allocations: 2.653 MB / 0.7685 GB, free: 416 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001457/2.462, allocations: 430.5 kB / 0.7689 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03476/2.497, allocations: 8.142 MB / 0.7769 GB, free: 7.816 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.032e-05/2.497, allocations: 31.78 kB / 0.7769 GB, free: 7.789 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.42e-05/2.497, allocations: 12 kB / 0.7769 GB, free: 7.777 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-05/2.498, allocations: 11.95 kB / 0.7769 GB, free: 7.766 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06219/2.56, allocations: 17.45 MB / 0.794 GB, free: 6.309 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.082e-05/2.56, allocations: 3.469 kB / 0.794 GB, free: 6.309 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003835/2.564, allocations: 391.4 kB / 0.7943 GB, free: 5.926 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02225/2.586, allocations: 3.853 MB / 0.7981 GB, free: 2.062 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006708/2.587, allocations: 43.98 kB / 0.7981 GB, free: 2.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3641/2.951, allocations: 17.08 MB / 0.8148 GB, free: 125.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/2.951, allocations: 1.406 kB / 0.8148 GB, free: 125.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04079/2.992, allocations: 12.65 MB / 0.8272 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003698/2.995, allocations: 0.9278 MB / 0.8281 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001563/2.997, allocations: 44.88 kB / 0.8281 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005025/3.002, allocations: 217.6 kB / 0.8283 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001175/3.003, allocations: 143.4 kB / 0.8285 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000336/3.004, allocations: 61.06 kB / 0.8285 GB, free: 124.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008164/3.012, allocations: 2.983 MB / 0.8314 GB, free: 124.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.933e-06/3.012, allocations: 0 / 0.8314 GB, free: 124.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009533/3.021, allocations: 1.452 MB / 0.8329 GB, free: 124 MB / 474.7 MB 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.04171/3.063, allocations: 13.55 MB / 0.8461 GB, free: 118.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01857/3.082, allocations: 7.871 MB / 0.8538 GB, free: 116.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/3.082, allocations: 0 / 0.8538 GB, free: 116.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007259/3.089, allocations: 2.956 MB / 0.8567 GB, free: 114.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004436/3.094, allocations: 498.8 kB / 0.8572 GB, free: 114.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4307/3.524, allocations: 128.1 MB / 0.9823 GB, free: 115.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01082/3.535, allocations: 4.21 MB / 0.9864 GB, free: 115.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006377/3.542, allocations: 2.529 MB / 0.9889 GB, free: 115.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.633e-06/3.542, allocations: 1.438 kB / 0.9889 GB, free: 115.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.935/8.477, allocations: 128.2 MB / 1.114 GB, free: 33.93 MB / 474.7 MB