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.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.33/2.33, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.714e-05/2.736e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.321, allocations: 54.85 MB / 364.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1526/0.4736, allocations: 100.2 MB / 464.7 MB, free: 12.15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.4738, allocations: 71.97 kB / 464.8 MB, free: 12.08 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6207/1.095, allocations: 94.73 MB / 0.5464 GB, free: 105.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.042e-06/1.095, allocations: 1.031 kB / 0.5464 GB, free: 105.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002896/1.095, allocations: 86.84 kB / 0.5465 GB, free: 105.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01472/1.11, allocations: 4.617 MB / 0.551 GB, free: 103.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/1.11, allocations: 11.72 kB / 0.551 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03738/1.147, allocations: 6.739 MB / 0.5576 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01868/1.166, allocations: 6.293 MB / 0.5637 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000374/1.166, allocations: 330.5 kB / 0.564 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001989/1.168, allocations: 437.4 kB / 0.5645 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02742/1.196, allocations: 10.97 MB / 0.5752 GB, free: 99.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002694/1.196, allocations: 74.58 kB / 0.5752 GB, free: 99.04 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001502/1.197, allocations: 205.6 kB / 0.5754 GB, free: 98.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001721/1.199, allocations: 1.02 MB / 0.5764 GB, free: 98.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0235/1.223, allocations: 9.155 MB / 0.5854 GB, free: 95.94 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05488/1.278, allocations: 47.55 MB / 0.6318 GB, free: 55.49 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01374/1.291, allocations: 4.11 MB / 0.6358 GB, free: 51.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002931/1.294, allocations: 1.783 MB / 0.6376 GB, free: 49.58 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0131/1.308, allocations: 7.515 MB / 0.6449 GB, free: 41.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/1.308, allocations: 55.55 kB / 0.645 GB, free: 41.67 MB / 458.7 MB Notification: Performance of pre-optimization done (n=180): time 6.509e-06/1.308, allocations: 0 / 0.645 GB, free: 41.67 MB / 458.7 MB Notification: Performance of matching and sorting (n=236): time 0.1061/1.414, allocations: 25.68 MB / 0.67 GB, free: 15.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.438e-05/1.414, allocations: 209.9 kB / 0.6702 GB, free: 15.73 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007295/1.421, allocations: 3.748 MB / 0.6739 GB, free: 11.96 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005263/1.422, allocations: 57.7 kB / 0.674 GB, free: 11.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002193/1.424, allocations: 3.113 MB / 0.677 GB, free: 8.793 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001135/1.425, allocations: 0.8781 MB / 0.6778 GB, free: 7.922 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006831/1.426, allocations: 120 kB / 0.678 GB, free: 7.805 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003978/1.426, allocations: 0.5752 MB / 0.6785 GB, free: 7.219 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006083/1.432, allocations: 3.367 MB / 0.6818 GB, free: 3.848 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009465/1.442, allocations: 6.972 MB / 0.6886 GB, free: 11.08 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009927/1.452, allocations: 4.736 MB / 0.6932 GB, free: 6.348 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001158/1.452, allocations: 36 kB / 0.6933 GB, free: 6.312 MB / 474.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.04921/1.501, allocations: 15.17 MB / 0.7081 GB, free: 7.129 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000124/1.501, allocations: 63.12 kB / 0.7082 GB, free: 7.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001827/1.502, allocations: 132.2 kB / 0.7083 GB, free: 6.941 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0292/1.531, allocations: 5.925 MB / 0.7141 GB, free: 1.008 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.284/1.815, allocations: 1.424 MB / 0.7155 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04669/1.862, allocations: 24.95 MB / 0.7398 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007149/1.869, allocations: 387 kB / 0.7402 GB, free: 116.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001393/1.87, allocations: 378.8 kB / 0.7406 GB, free: 116 MB / 490.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.001981/1.872, allocations: 0.5785 MB / 0.7411 GB, free: 115.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/1.873, allocations: 397.6 kB / 0.7415 GB, free: 115.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03635/1.91, allocations: 10.77 MB / 0.752 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.196e-05/1.91, allocations: 25.67 kB / 0.752 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-05/1.91, allocations: 12.38 kB / 0.7521 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.139e-05/1.91, allocations: 11.34 kB / 0.7521 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05563/1.965, allocations: 20.15 MB / 0.7717 GB, free: 104.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.38e-05/1.965, allocations: 4.281 kB / 0.7717 GB, free: 104.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002764/1.968, allocations: 381.8 kB / 0.7721 GB, free: 104.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02601/1.994, allocations: 4.991 MB / 0.777 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005267/1.995, allocations: 47.72 kB / 0.777 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03497/2.03, allocations: 20.14 MB / 0.7967 GB, free: 94.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.726e-06/2.03, allocations: 10.91 kB / 0.7967 GB, free: 94.39 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03528/2.065, allocations: 14.5 MB / 0.8109 GB, free: 82.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002648/2.068, allocations: 0.959 MB / 0.8118 GB, free: 81.77 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008953/2.069, allocations: 39.67 kB / 0.8118 GB, free: 81.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003026/2.072, allocations: 173.5 kB / 0.812 GB, free: 81.57 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007046/2.073, allocations: 154.6 kB / 0.8121 GB, free: 81.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003004/2.073, allocations: 66.42 kB / 0.8122 GB, free: 81.37 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005015/2.078, allocations: 2.639 MB / 0.8148 GB, free: 78.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.119e-06/2.078, allocations: 0 / 0.8148 GB, free: 78.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007501/2.085, allocations: 1.321 MB / 0.8161 GB, free: 77.41 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 () * 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.0008822/2.086, allocations: 190.9 kB / 0.8163 GB, free: 77.24 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0142/2.101, allocations: 7.866 MB / 0.8239 GB, free: 69.76 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.279e-06/2.101, allocations: 0 / 0.8239 GB, free: 69.76 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005796/2.106, allocations: 3.085 MB / 0.8269 GB, free: 66.67 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/2.11, allocations: 0.4909 MB / 0.8274 GB, free: 66.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02176/2.132, allocations: 10.4 MB / 0.8376 GB, free: 55.79 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006503/2.138, allocations: 3.611 MB / 0.8411 GB, free: 52.18 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/2.14, allocations: 303.4 kB / 0.8414 GB, free: 51.88 MB / 490.7 MB Notification: Performance of SimCode: time 2.021e-06/2.14, allocations: 0 / 0.8414 GB, free: 51.88 MB / 490.7 MB Notification: Performance of Templates: time 0.4331/2.573, allocations: 104.3 MB / 0.9433 GB, free: 111.1 MB / 0.4948 GB