Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.987/1.987, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09836, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4263/0.5248, allocations: 86.76 MB / 395.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.5251, allocations: 98.09 kB / 395.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3503/0.8755, allocations: 83.31 MB / 479.1 MB, free: 8.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 5e-06/0.8755, allocations: 0 / 479.1 MB, free: 8.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003515/0.8759, allocations: 75.94 kB / 479.2 MB, free: 8.582 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.01931/0.8952, allocations: 4.346 MB / 483.6 MB, free: 4.195 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.8953, allocations: 8.031 kB / 483.6 MB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0496/0.9449, allocations: 6.613 MB / 490.2 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02323/0.9682, allocations: 5.838 MB / 496 MB, free: 7.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000419/0.9687, allocations: 269.5 kB / 496.3 MB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002309/0.971, allocations: 364.3 kB / 496.6 MB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0296/1.001, allocations: 9.115 MB / 0.4939 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003011/1.001, allocations: 59.47 kB / 0.494 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00174/1.003, allocations: 176.1 kB / 0.4941 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002261/1.005, allocations: 0.8845 MB / 0.495 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02492/1.03, allocations: 7.591 MB / 0.5024 GB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3453/1.375, allocations: 42.2 MB / 0.5436 GB, free: 65.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/1.389, allocations: 3.751 MB / 0.5473 GB, free: 64.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005285/1.39, allocations: 322.4 kB / 0.5476 GB, free: 64.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/1.39, allocations: 52.41 kB / 0.5476 GB, free: 64.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 5.24e-06/1.39, allocations: 0 / 0.5476 GB, free: 64.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.08359/1.473, allocations: 19.96 MB / 0.5671 GB, free: 61.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.928e-05/1.473, allocations: 252.6 kB / 0.5674 GB, free: 61.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006935/1.48, allocations: 3.884 MB / 0.5712 GB, free: 60.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004915/1.481, allocations: 54.89 kB / 0.5712 GB, free: 60.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001966/1.483, allocations: 2.721 MB / 0.5739 GB, free: 59.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009933/1.484, allocations: 0.7183 MB / 0.5746 GB, free: 58.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004149/1.484, allocations: 108.5 kB / 0.5747 GB, free: 58.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003047/1.485, allocations: 0.5414 MB / 0.5752 GB, free: 58.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004317/1.489, allocations: 2.076 MB / 0.5772 GB, free: 58.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006033/1.495, allocations: 5.323 MB / 0.5824 GB, free: 54.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006715/1.502, allocations: 3.268 MB / 0.5856 GB, free: 53.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.135e-05/1.502, allocations: 30.44 kB / 0.5857 GB, free: 53.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0214/1.523, allocations: 8.23 MB / 0.5937 GB, free: 51.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.116e-05/1.523, allocations: 51.47 kB / 0.5937 GB, free: 51.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/1.524, allocations: 113.1 kB / 0.5938 GB, free: 51.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006306/1.53, allocations: 1.368 MB / 0.5952 GB, free: 51.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006827/1.537, allocations: 1.224 MB / 0.5964 GB, free: 50.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/1.555, allocations: 8.715 MB / 0.6049 GB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006056/1.561, allocations: 304.4 kB / 0.6052 GB, free: 46.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007105/1.562, allocations: 332.3 kB / 0.6055 GB, free: 46.64 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.004303/1.566, allocations: 1.939 MB / 0.6074 GB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008908/1.567, allocations: 353.5 kB / 0.6077 GB, free: 45.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/1.578, allocations: 3.894 MB / 0.6115 GB, free: 44.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.897e-05/1.579, allocations: 22.36 kB / 0.6116 GB, free: 44.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/1.579, allocations: 9.781 kB / 0.6116 GB, free: 44.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-05/1.579, allocations: 7.219 kB / 0.6116 GB, free: 44.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02297/1.602, allocations: 8.899 MB / 0.6203 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/1.602, allocations: 4 kB / 0.6203 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002309/1.604, allocations: 256.4 kB / 0.6205 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006001/1.61, allocations: 1.202 MB / 0.6217 GB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002322/1.61, allocations: 39.89 kB / 0.6217 GB, free: 36.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01959/1.63, allocations: 7.854 MB / 0.6294 GB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.63, allocations: 0 / 0.6294 GB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01928/1.649, allocations: 6.663 MB / 0.6359 GB, free: 24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002142/1.651, allocations: 0.6776 MB / 0.6366 GB, free: 23.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007664/1.652, allocations: 28.94 kB / 0.6366 GB, free: 23.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002482/1.655, allocations: 111.1 kB / 0.6367 GB, free: 23.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004242/1.655, allocations: 112.9 kB / 0.6368 GB, free: 23.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/1.655, allocations: 51.95 kB / 0.6368 GB, free: 23.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004854/1.66, allocations: 2.454 MB / 0.6392 GB, free: 21.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.66, allocations: 0 / 0.6392 GB, free: 21.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005975/1.666, allocations: 0.9983 MB / 0.6402 GB, free: 20.14 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.0005581/1.667, allocations: 174.4 kB / 0.6404 GB, free: 19.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01076/1.678, allocations: 5.165 MB / 0.6454 GB, free: 15.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/1.678, allocations: 4 kB / 0.6454 GB, free: 15.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005066/1.683, allocations: 1.985 MB / 0.6474 GB, free: 13.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003474/1.686, allocations: 445.8 kB / 0.6478 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02309/1.709, allocations: 10.98 MB / 0.6585 GB, free: 3.355 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004965/1.714, allocations: 3.18 MB / 0.6616 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/1.716, allocations: 278.2 kB / 0.6619 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/1.716, allocations: 0 / 0.6619 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of Templates: time 0.4158/2.132, allocations: 70.28 MB / 0.7305 GB, free: 89.4 MB / 426.7 MB