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.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 1.838/1.838, allocations: 209.2 MB / 224.8 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00045/0.0004502, allocations: 12 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.08786, allocations: 48.71 MB / 331.3 MB, free: 8.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4412, allocations: 93.44 MB / 424.7 MB, free: 7.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.4415, allocations: 79.95 kB / 424.8 MB, free: 7.609 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6291/1.071, allocations: 94.63 MB / 0.5072 GB, free: 89.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.182e-06/1.071, allocations: 0 / 0.5072 GB, free: 89.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003154/1.071, allocations: 90.84 kB / 0.5073 GB, free: 89.03 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1534 * Number of variables: 1534 Notification: Performance of Generate backend data structure: time 0.01627/1.087, allocations: 5.024 MB / 0.5122 GB, free: 86.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/1.087, allocations: 10.94 kB / 0.5122 GB, free: 86.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03441/1.122, allocations: 6.729 MB / 0.5188 GB, free: 86.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01854/1.14, allocations: 6.336 MB / 0.525 GB, free: 85.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003718/1.141, allocations: 321.9 kB / 0.5253 GB, free: 85.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001855/1.143, allocations: 442.3 kB / 0.5257 GB, free: 85.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02752/1.17, allocations: 11.04 MB / 0.5365 GB, free: 81.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002798/1.17, allocations: 64.56 kB / 0.5366 GB, free: 81.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001606/1.172, allocations: 210.9 kB / 0.5368 GB, free: 81.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001779/1.174, allocations: 1.014 MB / 0.5378 GB, free: 81.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02406/1.198, allocations: 9.299 MB / 0.5469 GB, free: 78.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05698/1.255, allocations: 47.55 MB / 0.5933 GB, free: 34.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01281/1.268, allocations: 4.127 MB / 0.5973 GB, free: 29.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/1.281, allocations: 7.511 MB / 0.6047 GB, free: 22.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/1.281, allocations: 51.52 kB / 0.6047 GB, free: 21.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=180): time 5.674e-06/1.281, allocations: 4 kB / 0.6047 GB, free: 21.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=236): time 0.4798/1.761, allocations: 41.03 MB / 0.6448 GB, free: 96.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.667e-05/1.761, allocations: 204.5 kB / 0.645 GB, free: 96.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008813/1.77, allocations: 3.808 MB / 0.6487 GB, free: 96.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005541/1.771, allocations: 61.36 kB / 0.6487 GB, free: 96.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002508/1.773, allocations: 3.102 MB / 0.6518 GB, free: 95.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/1.775, allocations: 0.8745 MB / 0.6526 GB, free: 94.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006882/1.775, allocations: 126.8 kB / 0.6528 GB, free: 94.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004389/1.776, allocations: 0.5709 MB / 0.6533 GB, free: 94.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00697/1.783, allocations: 3.423 MB / 0.6566 GB, free: 94.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009206/1.792, allocations: 7.031 MB / 0.6635 GB, free: 89.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00913/1.801, allocations: 4.76 MB / 0.6682 GB, free: 89.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002076/1.801, allocations: 36.75 kB / 0.6682 GB, free: 89.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.04687/1.848, allocations: 15.28 MB / 0.6831 GB, free: 84.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/1.848, allocations: 56.66 kB / 0.6832 GB, free: 84.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000172/1.849, allocations: 131 kB / 0.6833 GB, free: 84.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02907/1.878, allocations: 5.933 MB / 0.6891 GB, free: 83.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006311/1.884, allocations: 1.437 MB / 0.6905 GB, free: 83.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04392/1.928, allocations: 25.71 MB / 0.7156 GB, free: 71.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007128/1.935, allocations: 401.8 kB / 0.716 GB, free: 71.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/1.937, allocations: 372.2 kB / 0.7163 GB, free: 71.64 MB / 426.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.005735/1.942, allocations: 2.208 MB / 0.7185 GB, free: 70.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.944, allocations: 394.3 kB / 0.7189 GB, free: 70.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03435/1.978, allocations: 10.83 MB / 0.7294 GB, free: 64.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-05/1.978, allocations: 30.12 kB / 0.7295 GB, free: 64.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.351e-05/1.978, allocations: 8 kB / 0.7295 GB, free: 64.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.052e-05/1.978, allocations: 15.91 kB / 0.7295 GB, free: 64.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05182/2.03, allocations: 20.19 MB / 0.7492 GB, free: 43.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.388e-05/2.03, allocations: 7.938 kB / 0.7492 GB, free: 43.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002429/2.032, allocations: 383.4 kB / 0.7496 GB, free: 43.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02401/2.056, allocations: 4.996 MB / 0.7545 GB, free: 38.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005148/2.057, allocations: 47.83 kB / 0.7545 GB, free: 38.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03391/2.091, allocations: 20.89 MB / 0.7749 GB, free: 17.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/2.091, allocations: 8 kB / 0.7749 GB, free: 17.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03673/2.128, allocations: 14.59 MB / 0.7892 GB, free: 2.352 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002898/2.131, allocations: 0.9604 MB / 0.7901 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001171/2.132, allocations: 48.58 kB / 0.7902 GB, free: 1.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003283/2.135, allocations: 163.8 kB / 0.7903 GB, free: 1.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000758/2.136, allocations: 157.8 kB / 0.7905 GB, free: 1.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003374/2.136, allocations: 64.7 kB / 0.7905 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00602/2.142, allocations: 2.676 MB / 0.7931 GB, free: 14.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.13e-07/2.142, allocations: 0 / 0.7931 GB, free: 14.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008283/2.151, allocations: 1.327 MB / 0.7944 GB, free: 12.95 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 (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.0008297/2.152, allocations: 192 kB / 0.7946 GB, free: 12.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2611/2.413, allocations: 7.954 MB / 0.8024 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.535e-06/2.413, allocations: 1.094 kB / 0.8024 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006437/2.419, allocations: 3.124 MB / 0.8054 GB, free: 105.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/2.423, allocations: 495.5 kB / 0.8059 GB, free: 105.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02824/2.451, allocations: 13.91 MB / 0.8195 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007247/2.458, allocations: 3.603 MB / 0.823 GB, free: 99.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001704/2.46, allocations: 311.8 kB / 0.8233 GB, free: 99.96 MB / 442.7 MB Notification: Performance of SimCode: time 1.72e-06/2.46, allocations: 0 / 0.8233 GB, free: 99.96 MB / 442.7 MB Notification: Performance of Templates: time 0.1477/2.608, allocations: 104.3 MB / 0.9252 GB, free: 36 MB / 442.7 MB