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.472/2.472, allocations: 234.9 MB / 250.5 MB, free: 9.602 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004449/0.0004454, allocations: 11.98 kB / 314.3 MB, free: 9.664 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2971, allocations: 54.87 MB / 369.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.0517/0.3488, allocations: 38.54 MB / 407.7 MB, free: 6.141 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02464/0.3735, allocations: 9.697 MB / 417.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007394/0.3809, allocations: 187.6 kB / 417.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006187/0.3872, allocations: 1.932 MB / 419.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01931/0.4065, allocations: 5.649 MB / 425.2 MB, free: 4.629 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003324/0.4099, allocations: 0.7605 MB / 425.9 MB, free: 3.867 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.03816/0.4481, allocations: 17.91 MB / 443.9 MB, free: 1.934 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00811/0.4562, allocations: 4.229 MB / 448.1 MB, free: 13.65 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002736/0.459, allocations: 1.191 MB / 449.3 MB, free: 12.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003336/0.4624, allocations: 1.764 MB / 451 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000797/0.4632, allocations: 176 kB / 451.2 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002766/0.466, allocations: 1.104 MB / 452.3 MB, free: 9.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002851/0.4689, allocations: 1.816 MB / 454.1 MB, free: 7.59 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.4704, allocations: 0.8933 MB / 455 MB, free: 6.688 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009373/0.4798, allocations: 6.169 MB / 461.2 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4798, allocations: 0 / 461.2 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.594e-06/0.4798, allocations: 4 kB / 461.2 MB, free: 0.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000159/0.48, allocations: 0 / 461.2 MB, free: 0.5 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.0135/0.4935, allocations: 4.905 MB / 466.1 MB, free: 11.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.4936, allocations: 12.03 kB / 466.1 MB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05291/0.5465, allocations: 7.897 MB / 474 MB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.5572, allocations: 3.845 MB / 477.9 MB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003321/0.5575, allocations: 242 kB / 478.1 MB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001351/0.5589, allocations: 331.7 kB / 478.4 MB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0265/0.5854, allocations: 10.9 MB / 489.3 MB, free: 3.488 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002174/0.5857, allocations: 51.5 kB / 489.4 MB, free: 3.438 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008951/0.5866, allocations: 155.8 kB / 489.5 MB, free: 3.285 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003972/0.5906, allocations: 1.943 MB / 491.5 MB, free: 1.336 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02606/0.6167, allocations: 9.335 MB / 0.4891 GB, free: 7.977 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3196/0.9363, allocations: 41.05 MB / 0.5291 GB, free: 92.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01431/0.9507, allocations: 4.234 MB / 0.5333 GB, free: 90.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01285/0.9636, allocations: 7.591 MB / 0.5407 GB, free: 82.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.9636, allocations: 59.48 kB / 0.5408 GB, free: 82.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=180): time 6.294e-06/0.9637, allocations: 1.969 kB / 0.5408 GB, free: 82.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=236): time 0.1924/1.156, allocations: 41.53 MB / 0.5813 GB, free: 40.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/1.156, allocations: 205.9 kB / 0.5815 GB, free: 40.72 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007719/1.164, allocations: 4.555 MB / 0.586 GB, free: 36.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005374/1.164, allocations: 61.64 kB / 0.586 GB, free: 36.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002119/1.167, allocations: 3.079 MB / 0.589 GB, free: 33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/1.168, allocations: 0.8781 MB / 0.5899 GB, free: 32.13 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006392/1.168, allocations: 124 kB / 0.59 GB, free: 32.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003729/1.169, allocations: 0.5674 MB / 0.5905 GB, free: 31.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006139/1.175, allocations: 3.467 MB / 0.5939 GB, free: 27.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007968/1.183, allocations: 7.061 MB / 0.6008 GB, free: 19.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008027/1.191, allocations: 4.792 MB / 0.6055 GB, free: 14.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.383e-05/1.191, allocations: 43.94 kB / 0.6055 GB, free: 14.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.0441/1.235, allocations: 15.48 MB / 0.6207 GB, free: 14.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/1.236, allocations: 64.25 kB / 0.6207 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002045/1.236, allocations: 127.9 kB / 0.6208 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03015/1.266, allocations: 6.119 MB / 0.6268 GB, free: 8.477 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006547/1.272, allocations: 1.427 MB / 0.6282 GB, free: 7.047 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05551/1.328, allocations: 26.39 MB / 0.654 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006622/1.335, allocations: 395.4 kB / 0.6544 GB, free: 11.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.336, allocations: 379.5 kB / 0.6547 GB, free: 11.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 573 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 733 * 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.005772/1.342, allocations: 2.216 MB / 0.6569 GB, free: 9.395 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/1.343, allocations: 394.8 kB / 0.6573 GB, free: 9.004 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03879/1.382, allocations: 11.06 MB / 0.6681 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.208e-05/1.382, allocations: 24 kB / 0.6681 GB, free: 13.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.882e-05/1.382, allocations: 15.95 kB / 0.6681 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.706e-05/1.382, allocations: 7.969 kB / 0.6681 GB, free: 13.87 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3289/1.711, allocations: 20.6 MB / 0.6882 GB, free: 169.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.008e-05/1.711, allocations: 3.969 kB / 0.6882 GB, free: 169.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002698/1.714, allocations: 387.3 kB / 0.6886 GB, free: 169.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02634/1.74, allocations: 5.179 MB / 0.6937 GB, free: 168.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005339/1.741, allocations: 41.36 kB / 0.6937 GB, free: 168.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0367/1.777, allocations: 21.49 MB / 0.7147 GB, free: 153.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.99e-06/1.777, allocations: 11.94 kB / 0.7147 GB, free: 153.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03559/1.813, allocations: 14.29 MB / 0.7287 GB, free: 139.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002676/1.816, allocations: 0.9855 MB / 0.7296 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/1.817, allocations: 52.72 kB / 0.7297 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00342/1.82, allocations: 179.7 kB / 0.7298 GB, free: 138.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009037/1.821, allocations: 152.2 kB / 0.73 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004279/1.822, allocations: 69.09 kB / 0.7301 GB, free: 138.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005666/1.828, allocations: 2.906 MB / 0.7329 GB, free: 135.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.531e-06/1.828, allocations: 0 / 0.7329 GB, free: 135.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007006/1.835, allocations: 1.346 MB / 0.7342 GB, free: 133.8 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 () * Number of clocked 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.0008296/1.835, allocations: 203.8 kB / 0.7344 GB, free: 133.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01371/1.849, allocations: 8.037 MB / 0.7422 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.849, allocations: 0 / 0.7422 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005626/1.855, allocations: 3.174 MB / 0.7453 GB, free: 122.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003143/1.858, allocations: 484.1 kB / 0.7458 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02411/1.882, allocations: 14 MB / 0.7595 GB, free: 108.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005931/1.888, allocations: 3.608 MB / 0.763 GB, free: 104.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001643/1.89, allocations: 311.4 kB / 0.7633 GB, free: 104.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.816e-06/1.89, allocations: 0 / 0.7633 GB, free: 104.2 MB / 490.7 MB Notification: Performance of Templates: time 0.4098/2.3, allocations: 105.2 MB / 0.866 GB, free: 162 MB / 490.7 MB