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.SphericalAndUniversal.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: 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.321/2.321, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004323/0.0004324, allocations: 12 kB / 314.9 MB, free: 9.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3784, allocations: 54.85 MB / 369.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1837/0.5622, allocations: 101.1 MB / 470.9 MB, free: 7.504 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.5626, allocations: 83.89 kB / 471 MB, free: 7.422 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7769/1.339, allocations: 104 MB / 0.5616 GB, free: 72.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.29e-06/1.34, allocations: 0 / 0.5616 GB, free: 72.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005535/1.34, allocations: 107.9 kB / 0.5617 GB, free: 72.54 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: 1726 * Number of variables: 1726 Notification: Performance of Generate backend data structure: time 0.03006/1.37, allocations: 5.689 MB / 0.5672 GB, free: 66.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.37, allocations: 8.031 kB / 0.5673 GB, free: 66.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04892/1.419, allocations: 6.881 MB / 0.574 GB, free: 59.87 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03006/1.449, allocations: 7.524 MB / 0.5813 GB, free: 52.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004479/1.45, allocations: 370.2 kB / 0.5817 GB, free: 51.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002781/1.453, allocations: 0.4996 MB / 0.5822 GB, free: 51.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03649/1.489, allocations: 12.37 MB / 0.5942 GB, free: 37.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003081/1.49, allocations: 79.39 kB / 0.5943 GB, free: 37.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001552/1.491, allocations: 235.9 kB / 0.5945 GB, free: 37.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002356/1.493, allocations: 1.141 MB / 0.5956 GB, free: 36.45 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03041/1.524, allocations: 10.27 MB / 0.6057 GB, free: 26.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09317/1.617, allocations: 55.6 MB / 0.66 GB, free: 0.8164 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02676/1.644, allocations: 5.699 MB / 0.6655 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0317/1.676, allocations: 8.803 MB / 0.6741 GB, free: 2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.255e-05/1.676, allocations: 59.81 kB / 0.6742 GB, free: 1.934 MB / 474.7 MB Notification: Performance of pre-optimization done (n=206): time 8.646e-06/1.676, allocations: 0 / 0.6742 GB, free: 1.934 MB / 474.7 MB Notification: Performance of matching and sorting (n=265): time 0.6406/2.317, allocations: 36.61 MB / 0.7099 GB, free: 116.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/2.317, allocations: 209.5 kB / 0.7101 GB, free: 116.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01321/2.33, allocations: 4.727 MB / 0.7148 GB, free: 116 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008637/2.331, allocations: 66.95 kB / 0.7148 GB, free: 116 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003373/2.334, allocations: 3.433 MB / 0.7182 GB, free: 114.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001718/2.336, allocations: 0.9776 MB / 0.7191 GB, free: 113.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001166/2.337, allocations: 135.6 kB / 0.7193 GB, free: 113.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006064/2.338, allocations: 0.5902 MB / 0.7198 GB, free: 112.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007733/2.346, allocations: 2.999 MB / 0.7228 GB, free: 111.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01066/2.356, allocations: 6.82 MB / 0.7294 GB, free: 105.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/2.367, allocations: 4.426 MB / 0.7337 GB, free: 103.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001755/2.367, allocations: 41.97 kB / 0.7338 GB, free: 103.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.04315/2.41, allocations: 12.84 MB / 0.7463 GB, free: 93.65 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/2.41, allocations: 61 kB / 0.7464 GB, free: 93.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002224/2.41, allocations: 135.8 kB / 0.7465 GB, free: 93.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02092/2.431, allocations: 4.064 MB / 0.7505 GB, free: 90.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008582/2.44, allocations: 1.418 MB / 0.7519 GB, free: 89.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06517/2.505, allocations: 26.9 MB / 0.7781 GB, free: 64.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008423/2.514, allocations: 400.4 kB / 0.7785 GB, free: 64.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001688/2.515, allocations: 400 kB / 0.7789 GB, free: 64.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 754 * 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.007552/2.523, allocations: 2.463 MB / 0.7813 GB, free: 61.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001524/2.525, allocations: 442.3 kB / 0.7817 GB, free: 61.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02999/2.555, allocations: 8.094 MB / 0.7896 GB, free: 53.14 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.363e-05/2.555, allocations: 28 kB / 0.7897 GB, free: 53.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-05/2.555, allocations: 12 kB / 0.7897 GB, free: 53.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.36e-05/2.555, allocations: 23.91 kB / 0.7897 GB, free: 53.08 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05596/2.611, allocations: 16.65 MB / 0.806 GB, free: 36.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.239e-05/2.611, allocations: 4 kB / 0.806 GB, free: 36.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0045/2.615, allocations: 303.6 kB / 0.8063 GB, free: 36.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02093/2.636, allocations: 3.761 MB / 0.8099 GB, free: 32.28 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007483/2.637, allocations: 44 kB / 0.81 GB, free: 32.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05572/2.693, allocations: 25.63 MB / 0.835 GB, free: 6.215 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.998e-06/2.693, allocations: 15.94 kB / 0.835 GB, free: 6.199 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0382/2.731, allocations: 11.95 MB / 0.8467 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003889/2.735, allocations: 0.952 MB / 0.8476 GB, free: 9.141 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001929/2.737, allocations: 44 kB / 0.8476 GB, free: 9.098 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005154/2.742, allocations: 165.3 kB / 0.8478 GB, free: 8.941 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/2.744, allocations: 198.1 kB / 0.848 GB, free: 8.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005173/2.744, allocations: 68 kB / 0.8481 GB, free: 8.684 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009358/2.754, allocations: 2.988 MB / 0.851 GB, free: 5.703 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.62e-07/2.754, allocations: 0 / 0.851 GB, free: 5.703 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01015/2.764, allocations: 1.421 MB / 0.8524 GB, free: 4.289 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 (161): * Single equations (assignments): 155 * 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.001178/2.765, allocations: 199.1 kB / 0.8525 GB, free: 4.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.4203/3.186, allocations: 8.12 MB / 0.8605 GB, free: 124.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/3.186, allocations: 0 / 0.8605 GB, free: 124.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009156/3.195, allocations: 3.474 MB / 0.8639 GB, free: 124.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004815/3.2, allocations: 0.5455 MB / 0.8644 GB, free: 124.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03519/3.235, allocations: 14.97 MB / 0.879 GB, free: 119.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008991/3.244, allocations: 4.043 MB / 0.883 GB, free: 118.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/3.246, allocations: 328.2 kB / 0.8833 GB, free: 118.4 MB / 490.7 MB Notification: Performance of SimCode: time 2.445e-06/3.246, allocations: 0 / 0.8833 GB, free: 118.4 MB / 490.7 MB Notification: Performance of Templates: time 0.2415/3.487, allocations: 135 MB / 1.015 GB, free: 12.24 MB / 490.7 MB