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/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.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.319/2.319, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004369/0.000437, allocations: 12 kB / 314.4 MB, free: 9.484 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2797, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1514/0.4311, allocations: 101.2 MB / 470.4 MB, free: 5.383 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.4314, allocations: 79.95 kB / 470.5 MB, free: 5.305 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.603/1.034, allocations: 103.2 MB / 0.5603 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.458e-06/1.034, allocations: 4 kB / 0.5603 GB, free: 11.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000335/1.035, allocations: 104 kB / 0.5604 GB, free: 11.08 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.01825/1.053, allocations: 5.678 MB / 0.5659 GB, free: 5.309 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/1.053, allocations: 12.03 kB / 0.5659 GB, free: 5.297 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03521/1.088, allocations: 6.885 MB / 0.5727 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02403/1.112, allocations: 7.524 MB / 0.58 GB, free: 6.785 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005744/1.113, allocations: 373.8 kB / 0.5804 GB, free: 6.418 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002342/1.115, allocations: 0.4957 MB / 0.5808 GB, free: 5.922 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03434/1.15, allocations: 12.33 MB / 0.5929 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003525/1.15, allocations: 71.31 kB / 0.593 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001983/1.152, allocations: 247.9 kB / 0.5932 GB, free: 8.156 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002288/1.154, allocations: 1.144 MB / 0.5943 GB, free: 7.012 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02831/1.183, allocations: 10.27 MB / 0.6043 GB, free: 12.72 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3831/1.566, allocations: 55.59 MB / 0.6586 GB, free: 69.64 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01855/1.585, allocations: 5.71 MB / 0.6642 GB, free: 68.98 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01733/1.602, allocations: 8.801 MB / 0.6728 GB, free: 67.61 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/1.602, allocations: 58.03 kB / 0.6729 GB, free: 67.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=206): time 5.928e-06/1.602, allocations: 3.75 kB / 0.6729 GB, free: 67.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=265): time 0.1597/1.762, allocations: 35.97 MB / 0.708 GB, free: 63.92 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/1.762, allocations: 213.6 kB / 0.7082 GB, free: 63.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008843/1.771, allocations: 4.203 MB / 0.7123 GB, free: 63.33 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005758/1.771, allocations: 65.31 kB / 0.7124 GB, free: 63.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002609/1.774, allocations: 3.432 MB / 0.7157 GB, free: 61.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/1.775, allocations: 0.9767 MB / 0.7167 GB, free: 60.33 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007251/1.776, allocations: 133.5 kB / 0.7168 GB, free: 60.22 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004355/1.776, allocations: 0.5927 MB / 0.7174 GB, free: 59.79 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006081/1.783, allocations: 2.998 MB / 0.7203 GB, free: 58.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008247/1.791, allocations: 6.796 MB / 0.7269 GB, free: 52.57 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008542/1.799, allocations: 4.423 MB / 0.7312 GB, free: 50.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/1.8, allocations: 37.44 kB / 0.7313 GB, free: 50.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.03154/1.831, allocations: 12.88 MB / 0.7439 GB, free: 41.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.831, allocations: 64 kB / 0.7439 GB, free: 41.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/1.831, allocations: 132.8 kB / 0.744 GB, free: 41.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01422/1.846, allocations: 4.085 MB / 0.748 GB, free: 38.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005934/1.852, allocations: 1.425 MB / 0.7494 GB, free: 36.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0447/1.896, allocations: 26.89 MB / 0.7757 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00747/1.904, allocations: 391.4 kB / 0.7761 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001574/1.906, allocations: 400 kB / 0.7764 GB, free: 11.99 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.006431/1.912, allocations: 2.473 MB / 0.7789 GB, free: 9.504 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.913, allocations: 446.2 kB / 0.7793 GB, free: 9.062 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0211/1.934, allocations: 8.108 MB / 0.7872 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.556e-05/1.934, allocations: 31.98 kB / 0.7872 GB, free: 0.8945 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.914e-05/1.934, allocations: 16 kB / 0.7872 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.737e-05/1.934, allocations: 11.95 kB / 0.7873 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04613/1.981, allocations: 16.7 MB / 0.8036 GB, free: 80 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-05/1.981, allocations: 11.98 kB / 0.8036 GB, free: 68 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/1.983, allocations: 295.6 kB / 0.8039 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01488/1.998, allocations: 3.776 MB / 0.8075 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005808/1.998, allocations: 48 kB / 0.8076 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05105/2.049, allocations: 25.64 MB / 0.8326 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.477e-05/2.049, allocations: 11.94 kB / 0.8326 GB, free: 1.922 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03121/2.081, allocations: 12.64 MB / 0.845 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003385/2.084, allocations: 0.9482 MB / 0.8459 GB, free: 4.016 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/2.085, allocations: 44 kB / 0.8459 GB, free: 3.973 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003488/2.089, allocations: 167.8 kB / 0.8461 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/2.09, allocations: 190.1 kB / 0.8463 GB, free: 3.621 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003317/2.09, allocations: 75.39 kB / 0.8464 GB, free: 3.551 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00775/2.098, allocations: 2.984 MB / 0.8493 GB, free: 0.5742 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.47e-07/2.098, allocations: 4 kB / 0.8493 GB, free: 0.5703 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.2976/2.396, allocations: 1.422 MB / 0.8507 GB, free: 156.4 MB / 0.5261 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 () * 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.0008569/2.397, allocations: 189.5 kB / 0.8508 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01708/2.414, allocations: 8.125 MB / 0.8588 GB, free: 155.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.71e-06/2.414, allocations: 1.094 kB / 0.8588 GB, free: 155.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007505/2.421, allocations: 3.479 MB / 0.8622 GB, free: 155.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/2.425, allocations: 0.5487 MB / 0.8627 GB, free: 155.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02713/2.452, allocations: 14.93 MB / 0.8773 GB, free: 150.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007717/2.46, allocations: 4.037 MB / 0.8812 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/2.461, allocations: 327.4 kB / 0.8816 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.973e-06/2.461, allocations: 2.844 kB / 0.8816 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.1877/2.649, allocations: 135 MB / 1.013 GB, free: 53.68 MB / 0.5261 GB