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.Joints.Spherical.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.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 1.936/1.936, allocations: 209.2 MB / 224.8 MB, free: 1.141 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004414/0.0004416, allocations: 20 kB / 282.5 MB, free: 9.758 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.08781, allocations: 48.7 MB / 331.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.2373/0.3252, allocations: 21.15 MB / 352.3 MB, free: 5.328 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01415/0.3394, allocations: 5.937 MB / 358.3 MB, free: 1.363 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004855/0.3442, allocations: 99.44 kB / 358.4 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003602/0.3479, allocations: 1.102 MB / 359.5 MB, free: 1.008 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.3596, allocations: 3.329 MB / 362.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002192/0.3619, allocations: 478.8 kB / 363.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004956/0.3669, allocations: 2.146 MB / 365.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004142/0.371, allocations: 2.134 MB / 367.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00173/0.3728, allocations: 0.8485 MB / 368.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002148/0.375, allocations: 1.186 MB / 369.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005406/0.3756, allocations: 128.4 kB / 369.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002912/0.3785, allocations: 1.043 MB / 370.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002168/0.3807, allocations: 1.367 MB / 372.1 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.3818, allocations: 0.7302 MB / 372.9 MB, free: 9.973 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007594/0.3894, allocations: 4.716 MB / 377.6 MB, free: 6.508 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.296e-06/0.3895, allocations: 4 kB / 377.6 MB, free: 6.504 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.89e-06/0.3895, allocations: 0 / 377.6 MB, free: 6.504 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000186/0.3897, allocations: 0 / 377.6 MB, free: 6.504 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.008574/0.3983, allocations: 3.452 MB / 381 MB, free: 2.984 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3983, allocations: 12.03 kB / 381 MB, free: 2.973 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02689/0.4253, allocations: 6.417 MB / 387.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006714/0.432, allocations: 2.501 MB / 390 MB, free: 9.992 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002359/0.4323, allocations: 188.3 kB / 390.1 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001432/0.4337, allocations: 311.6 kB / 390.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02475/0.4585, allocations: 10.79 MB / 401.2 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.4587, allocations: 35.64 kB / 401.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006556/0.4593, allocations: 115.8 kB / 401.4 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005217/0.4646, allocations: 2.451 MB / 403.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/0.4916, allocations: 10.23 MB / 414.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06725/0.5589, allocations: 35.72 MB / 449.8 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01556/0.5745, allocations: 5.584 MB / 455.4 MB, free: 7.012 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00243/0.5769, allocations: 1.88 MB / 457.2 MB, free: 4.797 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.643e-05/0.577, allocations: 52.56 kB / 457.3 MB, free: 4.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=224): time 7.195e-06/0.5771, allocations: 0 / 457.3 MB, free: 4.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=231): time 0.04893/0.626, allocations: 15.54 MB / 472.8 MB, free: 4.973 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001722/0.6278, allocations: 1.527 MB / 474.4 MB, free: 3.289 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005712/0.6335, allocations: 2.99 MB / 477.4 MB, free: 292 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004788/0.634, allocations: 61.69 kB / 477.4 MB, free: 224 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002851/0.6369, allocations: 2.668 MB / 480.1 MB, free: 13.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001383/0.6383, allocations: 0.848 MB / 480.9 MB, free: 12.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005376/0.6388, allocations: 112.1 kB / 481 MB, free: 12.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005318/0.6394, allocations: 0.5501 MB / 481.6 MB, free: 11.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005895/0.6453, allocations: 2.603 MB / 484.2 MB, free: 9.375 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009045/0.6544, allocations: 5.589 MB / 489.8 MB, free: 2.324 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008059/0.6625, allocations: 3.79 MB / 493.6 MB, free: 14.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.738e-05/0.6626, allocations: 31.95 kB / 493.6 MB, free: 14.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.3054/0.968, allocations: 18.88 MB / 0.5005 GB, free: 131.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.9682, allocations: 50.09 kB / 0.5005 GB, free: 131.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05174/1.02, allocations: 12 MB / 0.5122 GB, free: 131.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05507/1.075, allocations: 10.29 MB / 0.5223 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005638/1.081, allocations: 1.297 MB / 0.5236 GB, free: 126.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03438/1.115, allocations: 17.28 MB / 0.5404 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005252/1.12, allocations: 437 kB / 0.5409 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/1.122, allocations: 316.4 kB / 0.5412 GB, free: 113.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (650): * Single equations (assignments): 639 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.00441/1.126, allocations: 2.014 MB / 0.5431 GB, free: 111.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005534/1.127, allocations: 267.8 kB / 0.5434 GB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/1.137, allocations: 5.111 MB / 0.5484 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009309/1.146, allocations: 4.391 MB / 0.5527 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/1.146, allocations: 7.516 kB / 0.5527 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.952e-05/1.146, allocations: 7.969 kB / 0.5527 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02651/1.173, allocations: 12.92 MB / 0.5653 GB, free: 88.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-05/1.173, allocations: 8 kB / 0.5653 GB, free: 88.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002616/1.176, allocations: 467.1 kB / 0.5657 GB, free: 88.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003506/1.179, allocations: 0.9379 MB / 0.5667 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004849/1.18, allocations: 49.16 kB / 0.5667 GB, free: 87.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007757/1.188, allocations: 5.579 MB / 0.5721 GB, free: 81.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001025/1.189, allocations: 1.473 MB / 0.5736 GB, free: 79.85 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/1.203, allocations: 7.708 MB / 0.5811 GB, free: 72.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007345/1.203, allocations: 341.6 kB / 0.5814 GB, free: 71.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000673/1.204, allocations: 40.92 kB / 0.5815 GB, free: 71.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/1.206, allocations: 204.6 kB / 0.5817 GB, free: 71.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004581/1.207, allocations: 141 kB / 0.5818 GB, free: 71.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/1.207, allocations: 64.84 kB / 0.5819 GB, free: 71.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003159/1.21, allocations: 1.873 MB / 0.5837 GB, free: 69.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.164e-06/1.21, allocations: 1.312 kB / 0.5837 GB, free: 69.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005881/1.216, allocations: 1.118 MB / 0.5848 GB, free: 68.47 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007464/1.217, allocations: 198.1 kB / 0.585 GB, free: 68.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01262/1.229, allocations: 6.55 MB / 0.5914 GB, free: 61.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.229, allocations: 3.281 kB / 0.5914 GB, free: 61.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004667/1.234, allocations: 2.519 MB / 0.5938 GB, free: 59.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002128/1.236, allocations: 355.1 kB / 0.5942 GB, free: 58.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01949/1.256, allocations: 12.01 MB / 0.6059 GB, free: 46.64 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004773/1.261, allocations: 3.246 MB / 0.6091 GB, free: 43.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/1.262, allocations: 263.4 kB / 0.6093 GB, free: 43.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.777e-06/1.262, allocations: 0 / 0.6093 GB, free: 43.11 MB / 426.7 MB Notification: Performance of Templates: time 0.3737/1.636, allocations: 107.1 MB / 0.714 GB, free: 106.7 MB / 442.7 MB