Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadModel(ModelicaTest): time 1.839/1.839, allocations: 209.3 MB / 224.8 MB, free: 348 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004752/0.0004752, allocations: 12 kB / 282.6 MB, free: 9.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2893, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.4313, allocations: 94.32 MB / 425.6 MB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.4316, allocations: 75.97 kB / 425.7 MB, free: 0 / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6296/1.061, allocations: 103.1 MB / 0.5164 GB, free: 80.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.962e-06/1.061, allocations: 0 / 0.5164 GB, free: 80.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003062/1.062, allocations: 104 kB / 0.5165 GB, free: 80.8 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: 1723 * Number of variables: 1723 Notification: Performance of Generate backend data structure: time 0.01779/1.079, allocations: 5.686 MB / 0.522 GB, free: 75.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/1.079, allocations: 12.02 kB / 0.522 GB, free: 75.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05969/1.139, allocations: 6.881 MB / 0.5287 GB, free: 68.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0334/1.173, allocations: 7.519 MB / 0.5361 GB, free: 60.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004061/1.173, allocations: 369.8 kB / 0.5364 GB, free: 60.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00198/1.175, allocations: 0.4919 MB / 0.5369 GB, free: 59.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02782/1.203, allocations: 12.32 MB / 0.5489 GB, free: 46.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002581/1.203, allocations: 67.41 kB / 0.549 GB, free: 46.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001366/1.205, allocations: 239.9 kB / 0.5492 GB, free: 45.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001672/1.206, allocations: 1.141 MB / 0.5504 GB, free: 44.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02365/1.23, allocations: 10.27 MB / 0.5604 GB, free: 34.49 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07128/1.301, allocations: 55.57 MB / 0.6147 GB, free: 9.176 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02031/1.322, allocations: 5.711 MB / 0.6202 GB, free: 3.305 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2664/1.588, allocations: 8.793 MB / 0.6288 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.736e-05/1.588, allocations: 55.84 kB / 0.6289 GB, free: 103 MB / 426.7 MB Notification: Performance of pre-optimization done (n=206): time 6.4e-06/1.588, allocations: 2.281 kB / 0.6289 GB, free: 103 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.161/1.749, allocations: 35.98 MB / 0.664 GB, free: 99.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/1.749, allocations: 214.1 kB / 0.6642 GB, free: 99.03 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008169/1.757, allocations: 4.21 MB / 0.6683 GB, free: 97.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005658/1.758, allocations: 66.55 kB / 0.6684 GB, free: 97.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002491/1.761, allocations: 3.424 MB / 0.6717 GB, free: 94.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001252/1.762, allocations: 0.9834 MB / 0.6727 GB, free: 94.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000694/1.763, allocations: 132.8 kB / 0.6728 GB, free: 94.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000428/1.763, allocations: 0.5907 MB / 0.6734 GB, free: 93.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0059/1.769, allocations: 3.005 MB / 0.6763 GB, free: 92.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008159/1.777, allocations: 6.784 MB / 0.683 GB, free: 86.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007655/1.785, allocations: 4.435 MB / 0.6873 GB, free: 82.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.712e-05/1.785, allocations: 40 kB / 0.6873 GB, free: 82.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.03069/1.816, allocations: 12.86 MB / 0.6999 GB, free: 71.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001078/1.816, allocations: 60 kB / 0.6999 GB, free: 71.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001517/1.816, allocations: 132 kB / 0.7001 GB, free: 71.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0142/1.83, allocations: 4.098 MB / 0.7041 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005622/1.836, allocations: 1.412 MB / 0.7055 GB, free: 67.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04376/1.88, allocations: 26.88 MB / 0.7317 GB, free: 41.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006905/1.887, allocations: 395.4 kB / 0.7321 GB, free: 40.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/1.888, allocations: 400 kB / 0.7325 GB, free: 40.25 MB / 426.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.005674/1.894, allocations: 2.473 MB / 0.7349 GB, free: 37.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/1.895, allocations: 446.2 kB / 0.7353 GB, free: 37.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01957/1.914, allocations: 8.115 MB / 0.7432 GB, free: 29.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.288e-05/1.914, allocations: 28 kB / 0.7433 GB, free: 29.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.838e-05/1.914, allocations: 12 kB / 0.7433 GB, free: 29.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-05/1.914, allocations: 15.91 kB / 0.7433 GB, free: 29.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03772/1.952, allocations: 16.69 MB / 0.7596 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.631e-05/1.952, allocations: 4 kB / 0.7596 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001808/1.954, allocations: 295.6 kB / 0.7599 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01333/1.967, allocations: 3.777 MB / 0.7636 GB, free: 8.258 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005179/1.968, allocations: 52 kB / 0.7636 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3081/2.276, allocations: 25.63 MB / 0.7886 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/2.276, allocations: 10.72 kB / 0.7886 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0285/2.305, allocations: 12.63 MB / 0.801 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00304/2.308, allocations: 0.9512 MB / 0.8019 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001456/2.309, allocations: 53.66 kB / 0.802 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003788/2.313, allocations: 166 kB / 0.8021 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001028/2.314, allocations: 195 kB / 0.8023 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003721/2.315, allocations: 74.33 kB / 0.8024 GB, free: 102.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007293/2.322, allocations: 2.988 MB / 0.8053 GB, free: 102.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.482e-06/2.322, allocations: 0 / 0.8053 GB, free: 102.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009341/2.331, allocations: 1.42 MB / 0.8067 GB, free: 102.2 MB / 442.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.0008908/2.332, allocations: 196.8 kB / 0.8069 GB, free: 102.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01675/2.349, allocations: 8.132 MB / 0.8148 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.992e-06/2.349, allocations: 0 / 0.8148 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007296/2.356, allocations: 3.476 MB / 0.8182 GB, free: 99 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003944/2.36, allocations: 0.547 MB / 0.8187 GB, free: 98.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/2.389, allocations: 14.93 MB / 0.8333 GB, free: 91.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008152/2.397, allocations: 4.039 MB / 0.8373 GB, free: 89.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/2.399, allocations: 326.1 kB / 0.8376 GB, free: 89.86 MB / 442.7 MB Notification: Performance of SimCode: time 1.834e-06/2.399, allocations: 0 / 0.8376 GB, free: 89.86 MB / 442.7 MB Notification: Performance of Templates: time 0.4872/2.886, allocations: 134.9 MB / 0.9693 GB, free: 125.8 MB / 458.7 MB