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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 2.014/2.014, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.709e-05/1.716e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2627, allocations: 48.68 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.4056, allocations: 92.69 MB / 412.7 MB, free: 3.727 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4058, allocations: 75.95 kB / 412.8 MB, free: 3.652 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5866/0.9925, allocations: 92.87 MB / 0.4938 GB, free: 67.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.995e-06/0.9925, allocations: 4 kB / 0.4938 GB, free: 67.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002455/0.9928, allocations: 87.28 kB / 0.4939 GB, free: 66.93 MB / 378.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.01313/1.006, allocations: 4.611 MB / 0.4984 GB, free: 62.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/1.006, allocations: 12.03 kB / 0.4984 GB, free: 62.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03288/1.039, allocations: 6.734 MB / 0.505 GB, free: 55.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01774/1.057, allocations: 6.289 MB / 0.5111 GB, free: 49.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/1.057, allocations: 140 kB / 0.5112 GB, free: 49.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001786/1.059, allocations: 259.9 kB / 0.5115 GB, free: 48.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01347/1.072, allocations: 6.584 MB / 0.5179 GB, free: 42.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01977/1.092, allocations: 9.55 MB / 0.5272 GB, free: 31.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002511/1.092, allocations: 67.38 kB / 0.5273 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001232/1.094, allocations: 32 kB / 0.5273 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001591/1.095, allocations: 1.014 MB / 0.5283 GB, free: 30.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05672/1.152, allocations: 45.91 MB / 0.5732 GB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005474/1.157, allocations: 3.065 MB / 0.5762 GB, free: 12.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003089/1.161, allocations: 1.726 MB / 0.5779 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002465/1.163, allocations: 1.935 MB / 0.5797 GB, free: 8.234 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.119e-05/1.163, allocations: 55.86 kB / 0.5798 GB, free: 8.168 MB / 410.7 MB Notification: Performance of pre-optimization done (n=186): time 6.229e-06/1.163, allocations: 0 / 0.5798 GB, free: 8.168 MB / 410.7 MB Notification: Performance of matching and sorting (n=242): time 0.3284/1.492, allocations: 26.24 MB / 0.6054 GB, free: 93.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/1.492, allocations: 211.4 kB / 0.6056 GB, free: 93.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006233/1.498, allocations: 3.271 MB / 0.6088 GB, free: 93.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005366/1.499, allocations: 25.7 kB / 0.6088 GB, free: 93.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002153/1.501, allocations: 3.204 MB / 0.612 GB, free: 91.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001079/1.502, allocations: 0.8694 MB / 0.6128 GB, free: 90.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005514/1.502, allocations: 0 / 0.6128 GB, free: 90.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004021/1.503, allocations: 0.5835 MB / 0.6134 GB, free: 90.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005562/1.508, allocations: 3.309 MB / 0.6166 GB, free: 90.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007626/1.516, allocations: 7.031 MB / 0.6235 GB, free: 84.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008173/1.524, allocations: 4.716 MB / 0.6281 GB, free: 82.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/1.524, allocations: 38.03 kB / 0.6281 GB, free: 82.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=852) (initialization): time 0.04326/1.568, allocations: 14.56 MB / 0.6423 GB, free: 78.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/1.568, allocations: 61.62 kB / 0.6424 GB, free: 78.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/1.568, allocations: 132.9 kB / 0.6425 GB, free: 78.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02812/1.596, allocations: 5.919 MB / 0.6483 GB, free: 77.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006001/1.602, allocations: 1.486 MB / 0.6498 GB, free: 75.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0359/1.638, allocations: 22.88 MB / 0.6721 GB, free: 55.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006766/1.645, allocations: 275.4 kB / 0.6724 GB, free: 55.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.646, allocations: 396.8 kB / 0.6727 GB, free: 54.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * 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 (775): * Single equations (assignments): 770 * 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.001258/1.647, allocations: 453.2 kB / 0.6732 GB, free: 54.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009509/1.648, allocations: 376.6 kB / 0.6735 GB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03149/1.68, allocations: 10.57 MB / 0.6839 GB, free: 43.49 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.759e-05/1.68, allocations: 24.7 kB / 0.6839 GB, free: 43.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.117e-05/1.68, allocations: 8 kB / 0.6839 GB, free: 43.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.283e-05/1.68, allocations: 15.95 kB / 0.6839 GB, free: 43.44 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04735/1.727, allocations: 19.45 MB / 0.7029 GB, free: 23.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.663e-05/1.728, allocations: 7.938 kB / 0.7029 GB, free: 23.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/1.73, allocations: 392 kB / 0.7033 GB, free: 23.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02354/1.754, allocations: 4.977 MB / 0.7081 GB, free: 18.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004687/1.754, allocations: 8 kB / 0.7081 GB, free: 18.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03006/1.784, allocations: 18.45 MB / 0.7262 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.658e-05/1.784, allocations: 11.94 kB / 0.7262 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04107/1.825, allocations: 14.36 MB / 0.7402 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00296/1.828, allocations: 0.9276 MB / 0.7411 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009322/1.829, allocations: 15.98 kB / 0.7411 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003074/1.832, allocations: 137.6 kB / 0.7412 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007799/1.833, allocations: 153 kB / 0.7414 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003314/1.833, allocations: 67.94 kB / 0.7415 GB, free: 15.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005187/1.839, allocations: 2.214 MB / 0.7436 GB, free: 13.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.877e-06/1.839, allocations: 0 / 0.7436 GB, free: 13.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.2559/2.095, allocations: 1.162 MB / 0.7448 GB, free: 118 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 (173): * Single equations (assignments): 168 * 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.0007665/2.095, allocations: 152.8 kB / 0.7449 GB, free: 117.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/2.109, allocations: 7.637 MB / 0.7524 GB, free: 117.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.921e-06/2.109, allocations: 3.688 kB / 0.7524 GB, free: 117.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005366/2.114, allocations: 3.031 MB / 0.7553 GB, free: 117.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0028/2.117, allocations: 402.3 kB / 0.7557 GB, free: 117.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/2.138, allocations: 10.35 MB / 0.7658 GB, free: 115.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006713/2.145, allocations: 3.605 MB / 0.7693 GB, free: 115 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/2.147, allocations: 301.3 kB / 0.7696 GB, free: 115 MB / 442.7 MB Notification: Performance of SimCode: time 1.661e-06/2.147, allocations: 0 / 0.7696 GB, free: 115 MB / 442.7 MB Notification: Performance of Templates: time 0.1351/2.282, allocations: 102.3 MB / 0.8695 GB, free: 38.28 MB / 442.7 MB