Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.383/2.383, allocations: 235 MB / 248 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.042e-05/4.069e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4291/0.4292, allocations: 54.85 MB / 364.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.222/0.6513, allocations: 110.8 MB / 475.4 MB, free: 1.664 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.6517, allocations: 75.97 kB / 475.5 MB, free: 1.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.023/1.675, allocations: 171.9 MB / 0.6322 GB, free: 61.15 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.675, allocations: 4 kB / 0.6323 GB, free: 61.15 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004524/1.676, allocations: 147.9 kB / 0.6324 GB, free: 61 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03286/1.709, allocations: 7.694 MB / 0.6399 GB, free: 53.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.43e-05/1.709, allocations: 12.03 kB / 0.6399 GB, free: 53.22 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007733/1.716, allocations: 1.63 MB / 0.6415 GB, free: 51.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0529/1.769, allocations: 6.944 MB / 0.6483 GB, free: 44.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0347/1.804, allocations: 9.843 MB / 0.6579 GB, free: 34.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000751/1.805, allocations: 0.5696 MB / 0.6585 GB, free: 34.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004923/1.81, allocations: 0.7613 MB / 0.6592 GB, free: 33.35 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06551/1.875, allocations: 20.54 MB / 0.6793 GB, free: 11.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004859/1.876, allocations: 95.12 kB / 0.6794 GB, free: 11.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003941/1.88, allocations: 367.7 kB / 0.6797 GB, free: 10.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004457/1.884, allocations: 1.954 MB / 0.6816 GB, free: 8.973 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05933/1.944, allocations: 17.92 MB / 0.6991 GB, free: 7.035 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5037/2.447, allocations: 82.18 MB / 0.7794 GB, free: 33.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02903/2.477, allocations: 7.319 MB / 0.7865 GB, free: 32.25 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008844/2.485, allocations: 3.919 MB / 0.7903 GB, free: 31.83 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05197/2.537, allocations: 18.21 MB / 0.8081 GB, free: 22.61 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.15e-05/2.538, allocations: 67.34 kB / 0.8082 GB, free: 22.54 MB / 474.7 MB Notification: Performance of pre-optimization done (n=332): time 7.744e-06/2.538, allocations: 0 / 0.8082 GB, free: 22.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=413): time 0.1426/2.68, allocations: 26.09 MB / 0.8337 GB, free: 14.43 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/2.68, allocations: 191.6 kB / 0.8338 GB, free: 14.24 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0152/2.696, allocations: 5.677 MB / 0.8394 GB, free: 11.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001034/2.697, allocations: 81.7 kB / 0.8395 GB, free: 11.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004654/2.701, allocations: 5.255 MB / 0.8446 GB, free: 7.125 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00242/2.704, allocations: 1.521 MB / 0.8461 GB, free: 5.781 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001514/2.705, allocations: 208 kB / 0.8463 GB, free: 5.578 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009549/2.706, allocations: 0.7511 MB / 0.847 GB, free: 4.945 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/2.717, allocations: 4.024 MB / 0.8509 GB, free: 1.285 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03289/2.75, allocations: 10.82 MB / 0.8615 GB, free: 7.754 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0162/2.766, allocations: 6.244 MB / 0.8676 GB, free: 2.637 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002374/2.766, allocations: 60 kB / 0.8677 GB, free: 2.578 MB / 490.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.05451/2.821, allocations: 15.44 MB / 0.8827 GB, free: 5.676 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001917/2.821, allocations: 92 kB / 0.8828 GB, free: 5.586 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003841/2.821, allocations: 204 kB / 0.883 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01446/2.836, allocations: 2.342 MB / 0.8853 GB, free: 3.691 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01705/2.853, allocations: 2.435 MB / 0.8877 GB, free: 1.586 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3968/3.25, allocations: 11.63 MB / 0.8991 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01331/3.263, allocations: 0.6899 MB / 0.8997 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002756/3.266, allocations: 0.5834 MB / 0.9003 GB, free: 105 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[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],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1269): * Single equations (assignments): 1262 * Array equations: 6 * 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 prepare postOptimizeDAE: time 0.004211/3.27, allocations: 0.8633 MB / 0.9011 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002108/3.272, allocations: 0.5942 MB / 0.9017 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03326/3.306, allocations: 8.093 MB / 0.9096 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001534/3.306, allocations: 65.55 kB / 0.9097 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-05/3.306, allocations: 11.73 kB / 0.9097 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.543e-05/3.306, allocations: 20.08 kB / 0.9097 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06346/3.37, allocations: 18.74 MB / 0.928 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.206e-05/3.37, allocations: 13.81 kB / 0.928 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006079/3.376, allocations: 0.643 MB / 0.9287 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01241/3.388, allocations: 1.882 MB / 0.9305 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001025/3.389, allocations: 80.64 kB / 0.9306 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02611/3.415, allocations: 9.874 MB / 0.9402 GB, free: 97.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.771e-05/3.416, allocations: 19.91 kB / 0.9402 GB, free: 97.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03738/3.453, allocations: 14.16 MB / 0.9541 GB, free: 90.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004952/3.458, allocations: 1.164 MB / 0.9552 GB, free: 90.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002492/3.461, allocations: 73.36 kB / 0.9553 GB, free: 90.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00669/3.467, allocations: 263.7 kB / 0.9555 GB, free: 90.27 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001459/3.469, allocations: 253 kB / 0.9558 GB, free: 90.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005215/3.469, allocations: 116.2 kB / 0.9559 GB, free: 90.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01065/3.48, allocations: 3.938 MB / 0.9597 GB, free: 88.85 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.102e-06/3.48, allocations: 0 / 0.9597 GB, free: 88.85 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01365/3.494, allocations: 1.929 MB / 0.9616 GB, free: 88.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (324): * Single equations (assignments): 317 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03893/3.533, allocations: 17.11 MB / 0.9783 GB, free: 78.85 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02348/3.556, allocations: 9.633 MB / 0.9877 GB, free: 73.59 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.145e-05/3.556, allocations: 2.906 kB / 0.9877 GB, free: 73.59 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008804/3.565, allocations: 3.276 MB / 0.9909 GB, free: 70.65 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007025/3.572, allocations: 0.7243 MB / 0.9916 GB, free: 70.05 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07637/3.649, allocations: 18.1 MB / 1.009 GB, free: 54.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02158/3.67, allocations: 5.754 MB / 1.015 GB, free: 50.08 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01429/3.685, allocations: 3.761 MB / 1.019 GB, free: 46.58 MB / 0.4948 GB Notification: Performance of SimCode: time 2.364e-06/3.685, allocations: 0 / 1.019 GB, free: 46.58 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.937/9.622, allocations: 183.2 MB / 1.197 GB, free: 57.83 MB / 0.5105 GB