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.SphericalSpherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.198/2.198, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004314, allocations: 8 kB / 314.4 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.279, allocations: 54.86 MB / 369.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.435, allocations: 100.3 MB / 469.5 MB, free: 6.285 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.4353, allocations: 79.95 kB / 469.6 MB, free: 6.207 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5683/1.004, allocations: 94.68 MB / 0.5511 GB, free: 20.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.013e-06/1.004, allocations: 11.92 kB / 0.5511 GB, free: 20.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000253/1.004, allocations: 91.98 kB / 0.5511 GB, free: 20.42 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.0147/1.019, allocations: 5.008 MB / 0.556 GB, free: 15.34 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/1.019, allocations: 12.03 kB / 0.5561 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03228/1.051, allocations: 6.722 MB / 0.5626 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01709/1.068, allocations: 6.332 MB / 0.5688 GB, free: 2.191 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/1.068, allocations: 328.6 kB / 0.5691 GB, free: 1.867 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001864/1.07, allocations: 447.6 kB / 0.5695 GB, free: 1.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0297/1.1, allocations: 11.05 MB / 0.5803 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002827/1.1, allocations: 67.3 kB / 0.5804 GB, free: 5.289 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001582/1.102, allocations: 211.9 kB / 0.5806 GB, free: 5.082 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002153/1.104, allocations: 1.015 MB / 0.5816 GB, free: 4.055 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02527/1.129, allocations: 9.291 MB / 0.5907 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07026/1.2, allocations: 47.56 MB / 0.6371 GB, free: 9.645 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01449/1.214, allocations: 4.142 MB / 0.6411 GB, free: 5.359 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2844/1.499, allocations: 7.503 MB / 0.6485 GB, free: 113.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/1.499, allocations: 53.8 kB / 0.6485 GB, free: 113.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=180): time 6.118e-06/1.499, allocations: 1.344 kB / 0.6485 GB, free: 113.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=236): time 0.207/1.706, allocations: 41.03 MB / 0.6886 GB, free: 110.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/1.706, allocations: 211.5 kB / 0.6888 GB, free: 110.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007991/1.714, allocations: 3.789 MB / 0.6925 GB, free: 109.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005435/1.715, allocations: 61.48 kB / 0.6926 GB, free: 109.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00234/1.717, allocations: 3.101 MB / 0.6956 GB, free: 108.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001166/1.718, allocations: 0.8883 MB / 0.6965 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007403/1.719, allocations: 124 kB / 0.6966 GB, free: 107.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004153/1.719, allocations: 0.5682 MB / 0.6971 GB, free: 107.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006778/1.726, allocations: 3.424 MB / 0.7005 GB, free: 107.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008485/1.735, allocations: 7.02 MB / 0.7073 GB, free: 101 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008615/1.743, allocations: 4.773 MB / 0.712 GB, free: 98.22 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/1.743, allocations: 36 kB / 0.712 GB, free: 98.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.04394/1.787, allocations: 15.29 MB / 0.727 GB, free: 86.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.788, allocations: 60 kB / 0.727 GB, free: 86.69 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001399/1.788, allocations: 124 kB / 0.7271 GB, free: 86.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02673/1.814, allocations: 5.939 MB / 0.7329 GB, free: 81.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005897/1.82, allocations: 1.423 MB / 0.7343 GB, free: 80.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04133/1.862, allocations: 25.71 MB / 0.7594 GB, free: 54.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007005/1.869, allocations: 387.4 kB / 0.7598 GB, free: 54.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001354/1.87, allocations: 380.7 kB / 0.7602 GB, free: 53.69 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 738 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005377/1.876, allocations: 2.205 MB / 0.7623 GB, free: 51.47 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/1.877, allocations: 402.7 kB / 0.7627 GB, free: 51.08 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03332/1.91, allocations: 10.82 MB / 0.7733 GB, free: 40.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.014e-05/1.91, allocations: 29.95 kB / 0.7733 GB, free: 40.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.527e-05/1.91, allocations: 15.94 kB / 0.7733 GB, free: 40.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.073e-05/1.91, allocations: 11.97 kB / 0.7733 GB, free: 40.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05113/1.961, allocations: 20.21 MB / 0.7931 GB, free: 19.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.339e-05/1.961, allocations: 4 kB / 0.7931 GB, free: 19.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/1.964, allocations: 375.4 kB / 0.7934 GB, free: 19.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02366/1.988, allocations: 5 MB / 0.7983 GB, free: 14.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005032/1.988, allocations: 40.62 kB / 0.7983 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03662/2.025, allocations: 20.88 MB / 0.8187 GB, free: 8.965 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.324e-05/2.025, allocations: 11.94 kB / 0.8187 GB, free: 8.953 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3531/2.378, allocations: 14.58 MB / 0.833 GB, free: 116.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002791/2.381, allocations: 0.9613 MB / 0.8339 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/2.382, allocations: 41.3 kB / 0.834 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/2.385, allocations: 166.5 kB / 0.8341 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007558/2.386, allocations: 158.1 kB / 0.8343 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003139/2.386, allocations: 69.39 kB / 0.8343 GB, free: 116.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005683/2.392, allocations: 2.674 MB / 0.8369 GB, free: 116.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.72e-07/2.392, allocations: 0 / 0.8369 GB, free: 116.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007743/2.4, allocations: 1.322 MB / 0.8382 GB, free: 116.4 MB / 490.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * 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): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007833/2.401, allocations: 192 kB / 0.8384 GB, free: 116.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01442/2.415, allocations: 7.959 MB / 0.8462 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.733e-06/2.415, allocations: 0 / 0.8462 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006027/2.421, allocations: 3.125 MB / 0.8492 GB, free: 115.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00371/2.425, allocations: 489.6 kB / 0.8497 GB, free: 115.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02516/2.45, allocations: 13.91 MB / 0.8633 GB, free: 110.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006655/2.457, allocations: 3.606 MB / 0.8668 GB, free: 109.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001713/2.459, allocations: 307.5 kB / 0.8671 GB, free: 109.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.748e-06/2.459, allocations: 0 / 0.8671 GB, free: 109.1 MB / 490.7 MB Notification: Performance of Templates: time 0.1424/2.601, allocations: 104.3 MB / 0.969 GB, free: 30.41 MB / 490.7 MB