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.814/1.814, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.89e-05/2.913e-05, allocations: 7.984 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08611/0.08617, allocations: 48.71 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3671/0.4534, allocations: 94.24 MB / 420.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.4536, allocations: 72.16 kB / 420.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3955/0.8492, allocations: 103.1 MB / 0.5117 GB, free: 13.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.698e-06/0.8492, allocations: 0 / 0.5117 GB, free: 13.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003726/0.8496, allocations: 104 kB / 0.5118 GB, free: 13.2 MB / 426.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.01853/0.8682, allocations: 5.202 MB / 0.5169 GB, free: 7.926 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.8682, allocations: 12.03 kB / 0.5169 GB, free: 7.914 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03743/0.9057, allocations: 6.881 MB / 0.5236 GB, free: 1.016 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2639/1.17, allocations: 7.468 MB / 0.5309 GB, free: 83.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004233/1.17, allocations: 375.5 kB / 0.5313 GB, free: 83.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002095/1.172, allocations: 0.4921 MB / 0.5317 GB, free: 83.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03048/1.203, allocations: 12.22 MB / 0.5437 GB, free: 80.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003227/1.203, allocations: 68.5 kB / 0.5437 GB, free: 80.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001703/1.205, allocations: 242.4 kB / 0.544 GB, free: 80.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002209/1.207, allocations: 1.135 MB / 0.5451 GB, free: 80.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02596/1.233, allocations: 10.12 MB / 0.555 GB, free: 80.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06825/1.301, allocations: 55.58 MB / 0.6092 GB, free: 42.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01892/1.32, allocations: 5.685 MB / 0.6148 GB, free: 40.44 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00456/1.325, allocations: 2.82 MB / 0.6176 GB, free: 39.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01699/1.342, allocations: 8.795 MB / 0.6261 GB, free: 34.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/1.342, allocations: 60.58 kB / 0.6262 GB, free: 34.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=206): time 6.196e-06/1.342, allocations: 3.625 kB / 0.6262 GB, free: 34.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.12/1.462, allocations: 29.42 MB / 0.6549 GB, free: 16.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.966e-05/1.462, allocations: 205.9 kB / 0.6551 GB, free: 15.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00791/1.47, allocations: 4.172 MB / 0.6592 GB, free: 12.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005417/1.471, allocations: 65.7 kB / 0.6593 GB, free: 12.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002344/1.473, allocations: 3.427 MB / 0.6626 GB, free: 9.039 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/1.474, allocations: 0.9775 MB / 0.6636 GB, free: 8.176 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000645/1.475, allocations: 128 kB / 0.6637 GB, free: 8.051 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004026/1.475, allocations: 0.5978 MB / 0.6643 GB, free: 7.527 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005612/1.481, allocations: 2.945 MB / 0.6671 GB, free: 4.867 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008759/1.49, allocations: 6.74 MB / 0.6737 GB, free: 12.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009081/1.499, allocations: 4.42 MB / 0.678 GB, free: 8.832 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001165/1.499, allocations: 36 kB / 0.6781 GB, free: 8.797 MB / 442.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.2865/1.785, allocations: 12.75 MB / 0.6905 GB, free: 85.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/1.786, allocations: 65.05 kB / 0.6906 GB, free: 85.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001642/1.786, allocations: 135 kB / 0.6907 GB, free: 85.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01588/1.802, allocations: 4.074 MB / 0.6947 GB, free: 85.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00663/1.808, allocations: 1.414 MB / 0.6961 GB, free: 85.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04745/1.856, allocations: 25.8 MB / 0.7213 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007348/1.863, allocations: 398.7 kB / 0.7217 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/1.865, allocations: 409.9 kB / 0.722 GB, free: 81.23 MB / 442.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 () * 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.001855/1.867, allocations: 0.598 MB / 0.7226 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.868, allocations: 446.2 kB / 0.7231 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02194/1.89, allocations: 8.062 MB / 0.7309 GB, free: 79.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.249e-05/1.89, allocations: 28.97 kB / 0.731 GB, free: 79.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/1.89, allocations: 14.41 kB / 0.731 GB, free: 79.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.011e-05/1.89, allocations: 11.39 kB / 0.731 GB, free: 79.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04168/1.932, allocations: 16.65 MB / 0.7472 GB, free: 73.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.922e-05/1.932, allocations: 4.969 kB / 0.7472 GB, free: 73.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/1.934, allocations: 302.5 kB / 0.7475 GB, free: 73.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01497/1.949, allocations: 3.764 MB / 0.7512 GB, free: 72.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006025/1.949, allocations: 48.72 kB / 0.7513 GB, free: 72.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04284/1.992, allocations: 24.56 MB / 0.7752 GB, free: 60.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/1.992, allocations: 10.88 kB / 0.7753 GB, free: 60.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02592/2.018, allocations: 12.55 MB / 0.7875 GB, free: 52.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002763/2.021, allocations: 0.9487 MB / 0.7884 GB, free: 51.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/2.022, allocations: 48.95 kB / 0.7885 GB, free: 51.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003357/2.026, allocations: 168.6 kB / 0.7886 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009158/2.027, allocations: 192.9 kB / 0.7888 GB, free: 51.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002957/2.027, allocations: 75.61 kB / 0.7889 GB, free: 51.26 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005921/2.033, allocations: 2.941 MB / 0.7918 GB, free: 48.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.257e-06/2.033, allocations: 0 / 0.7918 GB, free: 48.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00827/2.041, allocations: 1.421 MB / 0.7932 GB, free: 47.25 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 (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.0007328/2.042, allocations: 204.5 kB / 0.7934 GB, free: 47.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01517/2.057, allocations: 8.01 MB / 0.8012 GB, free: 40.24 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1e-05/2.057, allocations: 4 kB / 0.8012 GB, free: 40.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006623/2.064, allocations: 3.42 MB / 0.8045 GB, free: 37.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003604/2.068, allocations: 0.5538 MB / 0.8051 GB, free: 36.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02291/2.09, allocations: 10.93 MB / 0.8157 GB, free: 26.95 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006997/2.098, allocations: 4.037 MB / 0.8197 GB, free: 23.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001394/2.099, allocations: 330.6 kB / 0.82 GB, free: 23.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.963e-06/2.099, allocations: 0 / 0.82 GB, free: 23.64 MB / 442.7 MB Notification: Performance of Templates: time 0.452/2.551, allocations: 134.9 MB / 0.9517 GB, free: 49.93 MB / 458.7 MB