Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) 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.882/1.882, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.000392, allocations: 16 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.0802, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.04378/0.124, allocations: 31.42 MB / 339.8 MB, free: 1.527 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02065/0.1447, allocations: 8.283 MB / 348.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005886/0.1506, allocations: 155.6 kB / 348.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004958/0.1556, allocations: 1.571 MB / 349.8 MB, free: 7.488 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01587/0.1715, allocations: 4.738 MB / 354.5 MB, free: 2.738 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002792/0.1744, allocations: 0.6279 MB / 355.2 MB, free: 2.109 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.03682/0.2112, allocations: 17.28 MB / 372.4 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2248/0.4361, allocations: 3.464 MB / 375.9 MB, free: 24.06 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002355/0.4385, allocations: 1.046 MB / 376.9 MB, free: 24.06 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002879/0.4414, allocations: 1.42 MB / 378.4 MB, free: 24.05 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007863/0.4422, allocations: 131 kB / 378.5 MB, free: 24.05 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002569/0.4448, allocations: 0.9516 MB / 379.4 MB, free: 24.05 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002304/0.4471, allocations: 1.535 MB / 381 MB, free: 24.05 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001262/0.4484, allocations: 0.779 MB / 381.8 MB, free: 24.02 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00746/0.4559, allocations: 5.442 MB / 387.2 MB, free: 23.28 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.456, allocations: 0 / 387.2 MB, free: 23.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.456, allocations: 0 / 387.2 MB, free: 23.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001932/0.4562, allocations: 2.312 kB / 387.2 MB, free: 23.28 MB / 314.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.01365/0.4698, allocations: 4.337 MB / 391.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.4699, allocations: 12.12 kB / 391.6 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1756/0.6455, allocations: 14.46 MB / 406 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009145/0.6547, allocations: 3.714 MB / 409.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.655, allocations: 196.9 kB / 409.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/0.6561, allocations: 268.3 kB / 410.2 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/0.6738, allocations: 8.864 MB / 419 MB, free: 3.402 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002041/0.6741, allocations: 47.91 kB / 419.1 MB, free: 3.375 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009413/0.675, allocations: 127.8 kB / 419.2 MB, free: 3.336 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002891/0.678, allocations: 1.658 MB / 420.9 MB, free: 1.973 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0187/0.6967, allocations: 7.599 MB / 428.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06433/0.7611, allocations: 35.55 MB / 464 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/0.7729, allocations: 3.741 MB / 467.8 MB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005905/0.7735, allocations: 346.3 kB / 468.1 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.983e-05/0.7736, allocations: 47.56 kB / 468.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 1.03e-05/0.7736, allocations: 0 / 468.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.08584/0.8595, allocations: 20.87 MB / 489 MB, free: 3.848 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001844/0.8597, allocations: 256.6 kB / 489.3 MB, free: 3.543 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009234/0.869, allocations: 4.176 MB / 493.4 MB, free: 15.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004673/0.8695, allocations: 53.7 kB / 493.5 MB, free: 15.33 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003152/0.8726, allocations: 2.705 MB / 496.2 MB, free: 12.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001354/0.874, allocations: 0.7181 MB / 496.9 MB, free: 11.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000613/0.8747, allocations: 108 kB / 497 MB, free: 11.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000536/0.8752, allocations: 0.5403 MB / 497.6 MB, free: 11.28 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006071/0.8813, allocations: 2.142 MB / 499.7 MB, free: 9.133 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0139/0.8953, allocations: 5.358 MB / 0.4932 GB, free: 2.219 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/0.9081, allocations: 3.329 MB / 0.4965 GB, free: 14.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002092/0.9084, allocations: 32 kB / 0.4965 GB, free: 14.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.0385/0.9469, allocations: 8.446 MB / 0.5048 GB, free: 6.812 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001939/0.9471, allocations: 56.25 kB / 0.5048 GB, free: 6.758 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000298/0.9475, allocations: 112 kB / 0.5049 GB, free: 6.648 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007664/0.9552, allocations: 1.526 MB / 0.5064 GB, free: 5.117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00544/0.9606, allocations: 1.22 MB / 0.5076 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02019/0.9809, allocations: 9.476 MB / 0.5169 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005779/0.9867, allocations: 315.6 kB / 0.5172 GB, free: 9.977 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/0.9879, allocations: 335.5 kB / 0.5175 GB, free: 9.652 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * 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 (647): * Single equations (assignments): 643 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005141/0.9931, allocations: 1.939 MB / 0.5194 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00099/0.9941, allocations: 355.4 kB / 0.5197 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/1.005, allocations: 4.139 MB / 0.5238 GB, free: 3.203 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.606e-05/1.005, allocations: 20 kB / 0.5238 GB, free: 3.184 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.005, allocations: 8 kB / 0.5238 GB, free: 3.176 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.866e-05/1.005, allocations: 11.97 kB / 0.5238 GB, free: 3.164 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2817/1.287, allocations: 9.312 MB / 0.5329 GB, free: 154.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.63e-05/1.287, allocations: 1.5 kB / 0.5329 GB, free: 154.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001769/1.289, allocations: 266.1 kB / 0.5331 GB, free: 154.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005342/1.294, allocations: 1.347 MB / 0.5345 GB, free: 153.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004408/1.295, allocations: 31.05 kB / 0.5345 GB, free: 153.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01559/1.31, allocations: 8.629 MB / 0.5429 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.895e-06/1.31, allocations: 4.625 kB / 0.5429 GB, free: 149.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01457/1.325, allocations: 7.02 MB / 0.5498 GB, free: 147.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00237/1.327, allocations: 0.7106 MB / 0.5505 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008814/1.328, allocations: 32.56 kB / 0.5505 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002442/1.331, allocations: 120.4 kB / 0.5506 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005835/1.331, allocations: 113.5 kB / 0.5507 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002042/1.332, allocations: 52.59 kB / 0.5508 GB, free: 147 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005646/1.337, allocations: 2.686 MB / 0.5534 GB, free: 146.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.69e-07/1.337, allocations: 0 / 0.5534 GB, free: 146.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01078/1.348, allocations: 1.026 MB / 0.5544 GB, free: 146 MB / 426.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 (136): * Single equations (assignments): 132 * 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.00121/1.349, allocations: 190.5 kB / 0.5546 GB, free: 145.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01833/1.368, allocations: 5.324 MB / 0.5598 GB, free: 141.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/1.368, allocations: 0 / 0.5598 GB, free: 141.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007962/1.376, allocations: 2.07 MB / 0.5618 GB, free: 139.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005321/1.381, allocations: 454.3 kB / 0.5622 GB, free: 139.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03658/1.418, allocations: 11.13 MB / 0.5731 GB, free: 129.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009844/1.428, allocations: 3.172 MB / 0.5762 GB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001416/1.429, allocations: 283.4 kB / 0.5765 GB, free: 125.9 MB / 426.7 MB Notification: Performance of SimCode: time 2.22e-06/1.429, allocations: 4 kB / 0.5765 GB, free: 125.9 MB / 426.7 MB Notification: Performance of Templates: time 0.1248/1.554, allocations: 71.36 MB / 0.6461 GB, free: 54.54 MB / 426.7 MB