Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.87/1.87, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003606, allocations: 8 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09127/0.09165, allocations: 44.51 MB / 309 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5222/0.614, allocations: 86.77 MB / 395.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.6143, allocations: 90.3 kB / 395.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3474/0.9617, allocations: 83.32 MB / 479.2 MB, free: 8.207 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.679e-06/0.9618, allocations: 4 kB / 479.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003125/0.9621, allocations: 75.94 kB / 479.3 MB, free: 8.129 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01754/0.9797, allocations: 4.331 MB / 483.6 MB, free: 3.754 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.9797, allocations: 8.031 kB / 483.6 MB, free: 3.746 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04928/1.029, allocations: 6.617 MB / 490.3 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02245/1.052, allocations: 5.841 MB / 496.1 MB, free: 7.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003933/1.052, allocations: 271 kB / 496.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002157/1.054, allocations: 371.6 kB / 496.7 MB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02622/1.08, allocations: 9.086 MB / 0.494 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002394/1.081, allocations: 51.53 kB / 0.494 GB, free: 12.74 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008454/1.082, allocations: 178.4 kB / 0.4942 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001916/1.083, allocations: 0.8921 MB / 0.495 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02335/1.107, allocations: 7.584 MB / 0.5025 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3686/1.476, allocations: 42.21 MB / 0.5437 GB, free: 66.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02115/1.497, allocations: 3.748 MB / 0.5473 GB, free: 65.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009228/1.498, allocations: 328 kB / 0.5476 GB, free: 65.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.732e-05/1.498, allocations: 58.75 kB / 0.5477 GB, free: 65.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 8.175e-06/1.498, allocations: 0 / 0.5477 GB, free: 65.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.09264/1.591, allocations: 19.96 MB / 0.5672 GB, free: 62.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/1.591, allocations: 251.3 kB / 0.5674 GB, free: 61.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008824/1.6, allocations: 3.886 MB / 0.5712 GB, free: 61.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000507/1.6, allocations: 53.86 kB / 0.5713 GB, free: 61.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00268/1.603, allocations: 2.822 MB / 0.574 GB, free: 60.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001135/1.604, allocations: 0.7163 MB / 0.5747 GB, free: 60 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007528/1.605, allocations: 107 kB / 0.5748 GB, free: 60 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000414/1.605, allocations: 0.5388 MB / 0.5754 GB, free: 59.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004897/1.61, allocations: 2.078 MB / 0.5774 GB, free: 59.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00715/1.617, allocations: 5.299 MB / 0.5826 GB, free: 55.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007256/1.625, allocations: 3.275 MB / 0.5858 GB, free: 54.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001265/1.625, allocations: 29.81 kB / 0.5858 GB, free: 54.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.024/1.649, allocations: 8.367 MB / 0.594 GB, free: 52.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.7e-05/1.649, allocations: 54.22 kB / 0.594 GB, free: 52.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/1.649, allocations: 112.4 kB / 0.5941 GB, free: 52.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006609/1.656, allocations: 1.369 MB / 0.5955 GB, free: 51.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0073/1.663, allocations: 1.22 MB / 0.5966 GB, free: 51.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01887/1.682, allocations: 8.703 MB / 0.6051 GB, free: 47.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006342/1.688, allocations: 314.7 kB / 0.6054 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.69, allocations: 332.7 kB / 0.6058 GB, free: 47.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 27 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005174/1.695, allocations: 1.941 MB / 0.6077 GB, free: 46.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009395/1.696, allocations: 348.5 kB / 0.608 GB, free: 46.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01259/1.709, allocations: 3.891 MB / 0.6118 GB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.517e-05/1.709, allocations: 24.03 kB / 0.6118 GB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.917e-05/1.709, allocations: 6.812 kB / 0.6118 GB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.605e-05/1.709, allocations: 15 kB / 0.6118 GB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02737/1.736, allocations: 8.9 MB / 0.6205 GB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.21e-05/1.736, allocations: 4 kB / 0.6205 GB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002445/1.739, allocations: 261.1 kB / 0.6208 GB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006219/1.745, allocations: 1.193 MB / 0.6219 GB, free: 37.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004655/1.745, allocations: 32 kB / 0.622 GB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0168/1.762, allocations: 7.857 MB / 0.6296 GB, free: 30.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/1.762, allocations: 4 kB / 0.6297 GB, free: 30.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01827/1.781, allocations: 6.658 MB / 0.6362 GB, free: 24.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003275/1.784, allocations: 0.6852 MB / 0.6368 GB, free: 24.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001496/1.785, allocations: 28 kB / 0.6369 GB, free: 24.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004433/1.79, allocations: 115.7 kB / 0.637 GB, free: 24.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009042/1.791, allocations: 106.6 kB / 0.6371 GB, free: 23.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000318/1.791, allocations: 52.64 kB / 0.6371 GB, free: 23.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00787/1.799, allocations: 2.451 MB / 0.6395 GB, free: 21.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.799, allocations: 0 / 0.6395 GB, free: 21.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009611/1.809, allocations: 0.9983 MB / 0.6405 GB, free: 20.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (135): * Single equations (assignments): 131 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008489/1.81, allocations: 166.9 kB / 0.6406 GB, free: 20.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01541/1.825, allocations: 5.173 MB / 0.6457 GB, free: 16.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.825, allocations: 3.609 kB / 0.6457 GB, free: 16.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006723/1.832, allocations: 1.984 MB / 0.6476 GB, free: 14.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004724/1.837, allocations: 460 kB / 0.6481 GB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02715/1.864, allocations: 10.54 MB / 0.6584 GB, free: 4.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006638/1.871, allocations: 3.171 MB / 0.6615 GB, free: 2.066 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.008113/1.879, allocations: 1.82 MB / 0.6632 GB, free: 344 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.88, allocations: 235.4 kB / 0.6635 GB, free: 108 kB / 410.7 MB Notification: Performance of SimCode: time 1.352e-06/1.88, allocations: 4 kB / 0.6635 GB, free: 104 kB / 410.7 MB Notification: Performance of Templates: time 0.4255/2.306, allocations: 38.65 MB / 0.7012 GB, free: 99 MB / 426.7 MB