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.872/1.872, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.668e-05/4.685e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 48.71 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3542/0.4591, allocations: 93.35 MB / 419.9 MB, free: 14.49 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.4594, allocations: 72.58 kB / 420 MB, free: 14.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4679/0.9273, allocations: 94.69 MB / 0.5026 GB, free: 6.582 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.171e-06/0.9273, allocations: 0 / 0.5026 GB, free: 6.582 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002947/0.9277, allocations: 88 kB / 0.5027 GB, free: 6.496 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.01545/0.9431, allocations: 4.611 MB / 0.5072 GB, free: 1.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.9432, allocations: 8.031 kB / 0.5072 GB, free: 1.812 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03678/0.98, allocations: 6.737 MB / 0.5138 GB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02226/1.002, allocations: 6.305 MB / 0.5199 GB, free: 4.691 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005193/1.003, allocations: 324.6 kB / 0.5202 GB, free: 4.371 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002156/1.005, allocations: 439.8 kB / 0.5207 GB, free: 3.941 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2715/1.277, allocations: 10.96 MB / 0.5314 GB, free: 85.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002655/1.277, allocations: 64.53 kB / 0.5314 GB, free: 85.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001525/1.278, allocations: 206.1 kB / 0.5316 GB, free: 85.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001883/1.28, allocations: 1.016 MB / 0.5326 GB, free: 85.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/1.305, allocations: 9.155 MB / 0.5415 GB, free: 85.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05851/1.363, allocations: 47.56 MB / 0.588 GB, free: 55.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01399/1.377, allocations: 4.098 MB / 0.592 GB, free: 54.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003196/1.38, allocations: 1.789 MB / 0.5937 GB, free: 53.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/1.394, allocations: 7.512 MB / 0.6011 GB, free: 49.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/1.395, allocations: 56.59 kB / 0.6011 GB, free: 49.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=180): time 6.884e-06/1.395, allocations: 0 / 0.6011 GB, free: 49.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=236): time 0.1056/1.5, allocations: 25.68 MB / 0.6262 GB, free: 42.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/1.5, allocations: 206.8 kB / 0.6264 GB, free: 42.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00767/1.508, allocations: 3.756 MB / 0.6301 GB, free: 39.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005394/1.509, allocations: 57.7 kB / 0.6301 GB, free: 39.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002289/1.511, allocations: 3.109 MB / 0.6332 GB, free: 37.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/1.512, allocations: 0.8879 MB / 0.634 GB, free: 36.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007388/1.513, allocations: 120 kB / 0.6341 GB, free: 36.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004379/1.513, allocations: 0.5791 MB / 0.6347 GB, free: 35.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006185/1.52, allocations: 3.363 MB / 0.638 GB, free: 32.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00804/1.528, allocations: 6.972 MB / 0.6448 GB, free: 24.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008199/1.536, allocations: 4.736 MB / 0.6494 GB, free: 20.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/1.536, allocations: 36 kB / 0.6495 GB, free: 20.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.04362/1.58, allocations: 15.17 MB / 0.6643 GB, free: 8.055 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.58, allocations: 60 kB / 0.6643 GB, free: 7.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001409/1.58, allocations: 128 kB / 0.6645 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02717/1.607, allocations: 5.925 MB / 0.6702 GB, free: 1.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006451/1.614, allocations: 1.434 MB / 0.6716 GB, free: 0.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3025/1.916, allocations: 24.95 MB / 0.696 GB, free: 90.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007032/1.923, allocations: 392.7 kB / 0.6964 GB, free: 90.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001366/1.925, allocations: 375.2 kB / 0.6967 GB, free: 90.38 MB / 442.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 () * 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.001395/1.926, allocations: 0.5739 MB / 0.6973 GB, free: 90.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/1.927, allocations: 396.7 kB / 0.6977 GB, free: 90.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03639/1.963, allocations: 10.76 MB / 0.7082 GB, free: 90.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.326e-05/1.964, allocations: 26.03 kB / 0.7082 GB, free: 90.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.918e-05/1.964, allocations: 10.88 kB / 0.7082 GB, free: 90.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.023e-05/1.964, allocations: 10.17 kB / 0.7082 GB, free: 90.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05407/2.018, allocations: 20.15 MB / 0.7279 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.625e-05/2.018, allocations: 11.02 kB / 0.7279 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00269/2.021, allocations: 376.3 kB / 0.7283 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02447/2.045, allocations: 4.997 MB / 0.7332 GB, free: 85.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005339/2.046, allocations: 43.73 kB / 0.7332 GB, free: 85.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03504/2.081, allocations: 20.15 MB / 0.7529 GB, free: 76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/2.081, allocations: 7.219 kB / 0.7529 GB, free: 76 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0371/2.118, allocations: 14.5 MB / 0.767 GB, free: 70.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002864/2.121, allocations: 0.957 MB / 0.768 GB, free: 70.04 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001249/2.122, allocations: 45.72 kB / 0.768 GB, free: 70.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003674/2.126, allocations: 170 kB / 0.7682 GB, free: 69.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009238/2.127, allocations: 150.6 kB / 0.7683 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003774/2.127, allocations: 71.17 kB / 0.7684 GB, free: 69.94 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006112/2.133, allocations: 2.639 MB / 0.771 GB, free: 69.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.492e-06/2.133, allocations: 0 / 0.771 GB, free: 69.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007828/2.141, allocations: 1.325 MB / 0.7723 GB, free: 68.87 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 () * 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.0008481/2.142, allocations: 179.2 kB / 0.7724 GB, free: 68.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01455/2.157, allocations: 7.865 MB / 0.7801 GB, free: 63.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.313e-06/2.157, allocations: 0 / 0.7801 GB, free: 63.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005803/2.162, allocations: 3.086 MB / 0.7831 GB, free: 60.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003521/2.166, allocations: 0.4909 MB / 0.7836 GB, free: 60.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/2.188, allocations: 10.4 MB / 0.7938 GB, free: 51.12 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006717/2.195, allocations: 3.604 MB / 0.7973 GB, free: 48.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001596/2.197, allocations: 309.1 kB / 0.7976 GB, free: 48.12 MB / 442.7 MB Notification: Performance of SimCode: time 2.833e-06/2.197, allocations: 4 kB / 0.7976 GB, free: 48.12 MB / 442.7 MB Notification: Performance of Templates: time 0.4745/2.671, allocations: 104.3 MB / 0.8994 GB, free: 83.64 MB / 458.7 MB