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.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.215/2.215, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.783e-05/2.807e-05, allocations: 4 kB / 309.7 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3271, allocations: 54.85 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.4819, allocations: 102.9 MB / 467.4 MB, free: 9.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.4822, allocations: 75.95 kB / 467.5 MB, free: 9.516 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7232/1.205, allocations: 126.4 MB / 0.58 GB, free: 103.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.541e-06/1.205, allocations: 0 / 0.58 GB, free: 103.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003111/1.206, allocations: 117.8 kB / 0.5801 GB, free: 103.2 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: 2239 * Number of variables: 2239 Notification: Performance of Generate backend data structure: time 0.0195/1.225, allocations: 6.316 MB / 0.5863 GB, free: 100.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/1.225, allocations: 19.47 kB / 0.5863 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04065/1.266, allocations: 8.312 MB / 0.5944 GB, free: 96.31 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02059/1.287, allocations: 7.377 MB / 0.6017 GB, free: 90.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005174/1.287, allocations: 448.6 kB / 0.6021 GB, free: 90.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00296/1.29, allocations: 0.5806 MB / 0.6026 GB, free: 89.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03777/1.328, allocations: 15.6 MB / 0.6179 GB, free: 73.15 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003222/1.328, allocations: 75.23 kB / 0.618 GB, free: 73.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002555/1.331, allocations: 290.2 kB / 0.6182 GB, free: 72.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002613/1.334, allocations: 1.614 MB / 0.6198 GB, free: 71.22 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03185/1.365, allocations: 13.79 MB / 0.6333 GB, free: 57.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08711/1.453, allocations: 63.99 MB / 0.6958 GB, free: 7.914 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01981/1.472, allocations: 6.422 MB / 0.702 GB, free: 1.238 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2836/1.756, allocations: 3.52 MB / 0.7055 GB, free: 110.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02944/1.786, allocations: 14.44 MB / 0.7196 GB, free: 107.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.633e-05/1.786, allocations: 62.75 kB / 0.7196 GB, free: 107.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.57e-06/1.786, allocations: 0 / 0.7196 GB, free: 107.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1069/1.893, allocations: 29.76 MB / 0.7487 GB, free: 101 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/1.893, allocations: 223.1 kB / 0.7489 GB, free: 100.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009245/1.902, allocations: 4.765 MB / 0.7536 GB, free: 99.09 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007401/1.903, allocations: 74.3 kB / 0.7536 GB, free: 99.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003153/1.906, allocations: 4.283 MB / 0.7578 GB, free: 95.65 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001705/1.908, allocations: 1.253 MB / 0.7591 GB, free: 94.73 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009702/1.909, allocations: 169.4 kB / 0.7592 GB, free: 94.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006331/1.909, allocations: 0.694 MB / 0.7599 GB, free: 94.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009967/1.919, allocations: 4.483 MB / 0.7643 GB, free: 92.46 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01855/1.938, allocations: 9.42 MB / 0.7735 GB, free: 84.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01876/1.957, allocations: 6.415 MB / 0.7797 GB, free: 82.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002752/1.957, allocations: 49.22 kB / 0.7798 GB, free: 82.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.08364/2.041, allocations: 18.39 MB / 0.7977 GB, free: 68.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002594/2.041, allocations: 80 kB / 0.7978 GB, free: 68.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000385/2.041, allocations: 172 kB / 0.798 GB, free: 67.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03868/2.08, allocations: 5.635 MB / 0.8035 GB, free: 64.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009224/2.089, allocations: 2.049 MB / 0.8055 GB, free: 62.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0383/2.128, allocations: 23.63 MB / 0.8286 GB, free: 39.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009339/2.137, allocations: 0.5461 MB / 0.8291 GB, free: 39.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001913/2.139, allocations: 0.5037 MB / 0.8296 GB, free: 38.54 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002724/2.142, allocations: 0.7459 MB / 0.8303 GB, free: 37.78 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/2.143, allocations: 0.4935 MB / 0.8308 GB, free: 37.28 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03679/2.18, allocations: 12.35 MB / 0.8429 GB, free: 24.86 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/2.18, allocations: 55.98 kB / 0.8429 GB, free: 24.81 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.09e-05/2.18, allocations: 9.125 kB / 0.8429 GB, free: 24.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.866e-05/2.18, allocations: 24.5 kB / 0.8429 GB, free: 24.78 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06014/2.24, allocations: 23.96 MB / 0.8663 GB, free: 348 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.274e-05/2.241, allocations: 4 kB / 0.8663 GB, free: 344 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003857/2.244, allocations: 0.5706 MB / 0.8669 GB, free: 15.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02432/2.269, allocations: 4.642 MB / 0.8714 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007985/2.27, allocations: 59.98 kB / 0.8715 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3264/2.596, allocations: 18.9 MB / 0.8899 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/2.596, allocations: 5.953 kB / 0.89 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04328/2.639, allocations: 17.39 MB / 0.9069 GB, free: 109.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003641/2.643, allocations: 1.216 MB / 0.9081 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001456/2.645, allocations: 52.11 kB / 0.9082 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004046/2.649, allocations: 257.7 kB / 0.9084 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009264/2.65, allocations: 191.7 kB / 0.9086 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003977/2.65, allocations: 85 kB / 0.9087 GB, free: 108.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006667/2.657, allocations: 3.311 MB / 0.9119 GB, free: 107.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.28e-07/2.657, allocations: 0 / 0.9119 GB, free: 107.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009702/2.666, allocations: 1.71 MB / 0.9136 GB, free: 107.3 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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008678/2.667, allocations: 206.4 kB / 0.9138 GB, free: 107.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01841/2.686, allocations: 10.41 MB / 0.9239 GB, free: 103.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/2.686, allocations: 3.031 kB / 0.9239 GB, free: 103.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007065/2.693, allocations: 3.951 MB / 0.9278 GB, free: 102 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003954/2.697, allocations: 0.5733 MB / 0.9284 GB, free: 101.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03101/2.728, allocations: 14.2 MB / 0.9422 GB, free: 96.41 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009514/2.737, allocations: 4.753 MB / 0.9469 GB, free: 94.83 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002391/2.74, allocations: 417 kB / 0.9473 GB, free: 94.82 MB / 490.7 MB Notification: Performance of SimCode: time 1.891e-06/2.74, allocations: 0 / 0.9473 GB, free: 94.82 MB / 490.7 MB Notification: Performance of Templates: time 0.4838/3.224, allocations: 142.5 MB / 1.086 GB, free: 128.3 MB / 0.4948 GB