Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadModel(ModelicaTest): time 2.285/2.285, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.503e-05/1.515e-05, allocations: 0 / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2735, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1519/0.4255, allocations: 100.4 MB / 458.4 MB, free: 10.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.4258, allocations: 71.97 kB / 458.5 MB, free: 10.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5782/1.004, allocations: 101 MB / 0.5464 GB, free: 21.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.004, allocations: 0 / 0.5464 GB, free: 21.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003075/1.004, allocations: 112 kB / 0.5465 GB, free: 21.62 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: 1726 * Number of variables: 1726 Notification: Performance of Generate backend data structure: time 0.0158/1.02, allocations: 5.202 MB / 0.5516 GB, free: 16.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/1.02, allocations: 8.031 kB / 0.5516 GB, free: 16.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03359/1.054, allocations: 6.885 MB / 0.5583 GB, free: 9.441 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01973/1.074, allocations: 7.473 MB / 0.5656 GB, free: 1.883 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002565/1.074, allocations: 156 kB / 0.5658 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/1.076, allocations: 299.9 kB / 0.566 GB, free: 1.438 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01618/1.092, allocations: 7.04 MB / 0.5729 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02563/1.118, allocations: 10.79 MB / 0.5834 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002986/1.118, allocations: 75.3 kB / 0.5835 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001339/1.119, allocations: 32 kB / 0.5835 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002112/1.122, allocations: 1.152 MB / 0.5847 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3736/1.495, allocations: 53.95 MB / 0.6374 GB, free: 65.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006242/1.501, allocations: 4.323 MB / 0.6416 GB, free: 65.14 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004052/1.506, allocations: 2.743 MB / 0.6443 GB, free: 65.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007105/1.506, allocations: 0.5654 MB / 0.6448 GB, free: 64.63 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/1.506, allocations: 58.09 kB / 0.6449 GB, free: 64.59 MB / 458.7 MB Notification: Performance of pre-optimization done (n=213): time 6.852e-06/1.506, allocations: 0 / 0.6449 GB, free: 64.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=272): time 0.08541/1.592, allocations: 27.01 MB / 0.6712 GB, free: 61.78 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/1.592, allocations: 209 kB / 0.6714 GB, free: 61.56 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006695/1.599, allocations: 3.587 MB / 0.6749 GB, free: 61.19 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005455/1.599, allocations: 36.42 kB / 0.675 GB, free: 61.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002394/1.602, allocations: 3.525 MB / 0.6784 GB, free: 58.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001185/1.603, allocations: 0.9699 MB / 0.6794 GB, free: 58.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006446/1.604, allocations: 3.938 kB / 0.6794 GB, free: 58.06 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004255/1.604, allocations: 0.6067 MB / 0.68 GB, free: 57.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005298/1.609, allocations: 2.873 MB / 0.6828 GB, free: 56.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007532/1.617, allocations: 6.781 MB / 0.6894 GB, free: 50.19 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/1.625, allocations: 4.374 MB / 0.6937 GB, free: 48.78 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.625, allocations: 38.5 kB / 0.6937 GB, free: 48.78 MB / 458.7 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.03073/1.656, allocations: 11.99 MB / 0.7054 GB, free: 43.24 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/1.656, allocations: 67.95 kB / 0.7055 GB, free: 43.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/1.656, allocations: 136 kB / 0.7056 GB, free: 43.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0164/1.672, allocations: 3.964 MB / 0.7095 GB, free: 40.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006398/1.679, allocations: 1.466 MB / 0.7109 GB, free: 38.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03963/1.718, allocations: 24.35 MB / 0.7347 GB, free: 17.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006622/1.725, allocations: 268.7 kB / 0.7349 GB, free: 17.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00149/1.727, allocations: 411.4 kB / 0.7353 GB, free: 17.01 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (791): * Single equations (assignments): 785 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.001527/1.728, allocations: 468.5 kB / 0.7358 GB, free: 16.55 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009416/1.729, allocations: 414.6 kB / 0.7362 GB, free: 16.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01807/1.747, allocations: 7.74 MB / 0.7437 GB, free: 10.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.815e-05/1.747, allocations: 28 kB / 0.7438 GB, free: 10.15 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-05/1.747, allocations: 12 kB / 0.7438 GB, free: 10.14 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.75e-05/1.747, allocations: 14.25 kB / 0.7438 GB, free: 10.14 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03933/1.787, allocations: 15.92 MB / 0.7593 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.012e-05/1.787, allocations: 4.594 kB / 0.7593 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001928/1.789, allocations: 311.5 kB / 0.7596 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01415/1.803, allocations: 3.66 MB / 0.7632 GB, free: 9.539 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005605/1.803, allocations: 15.98 kB / 0.7632 GB, free: 9.523 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04557/1.849, allocations: 23.09 MB / 0.7858 GB, free: 2.098 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-05/1.849, allocations: 11.94 kB / 0.7858 GB, free: 2.086 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02881/1.878, allocations: 12.28 MB / 0.7978 GB, free: 5.453 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003014/1.881, allocations: 0.9134 MB / 0.7987 GB, free: 4.516 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/1.882, allocations: 11.98 kB / 0.7987 GB, free: 4.504 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003179/1.885, allocations: 131.8 kB / 0.7988 GB, free: 4.375 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009366/1.886, allocations: 194 kB / 0.799 GB, free: 4.188 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004578/1.887, allocations: 75.98 kB / 0.7991 GB, free: 4.113 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006213/1.893, allocations: 2.443 MB / 0.8015 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.152e-06/1.893, allocations: 0 / 0.8015 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008968/1.902, allocations: 1.23 MB / 0.8027 GB, free: 456 kB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 162 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008766/1.903, allocations: 157.2 kB / 0.8028 GB, free: 296 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01771/1.921, allocations: 7.759 MB / 0.8104 GB, free: 8.523 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/1.921, allocations: 7.844 kB / 0.8104 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007842/1.929, allocations: 3.362 MB / 0.8137 GB, free: 5.125 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003391/1.932, allocations: 464.5 kB / 0.8141 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2993/2.231, allocations: 10.82 MB / 0.8247 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007068/2.239, allocations: 4.043 MB / 0.8286 GB, free: 148 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001353/2.24, allocations: 317.8 kB / 0.8289 GB, free: 148 MB / 0.5105 GB Notification: Performance of SimCode: time 1.923e-06/2.24, allocations: 0 / 0.8289 GB, free: 148 MB / 0.5105 GB Notification: Performance of Templates: time 0.1774/2.417, allocations: 132.6 MB / 0.9584 GB, free: 60.6 MB / 0.5105 GB