Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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) 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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.736/1.736, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003562, allocations: 8 kB / 233.2 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07036/0.07074, allocations: 38.78 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3055/0.3763, allocations: 81.01 MB / 353 MB, free: 9.078 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.3767, allocations: 85.2 kB / 353.1 MB, free: 9.031 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5222/0.8989, allocations: 82.47 MB / 435.6 MB, free: 71.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.463e-06/0.8989, allocations: 3.031 kB / 435.6 MB, free: 71.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002718/0.8992, allocations: 73.53 kB / 435.7 MB, free: 71.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.01547/0.9147, allocations: 4.331 MB / 440 MB, free: 69.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.9148, allocations: 9.391 kB / 440 MB, free: 69.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03447/0.9493, allocations: 6.607 MB / 446.6 MB, free: 69.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01737/0.9667, allocations: 5.844 MB / 452.5 MB, free: 68.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/0.967, allocations: 262.4 kB / 452.7 MB, free: 68.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001676/0.9687, allocations: 370.4 kB / 453.1 MB, free: 68.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02197/0.9907, allocations: 9.088 MB / 462.2 MB, free: 66.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002543/0.991, allocations: 59.73 kB / 462.2 MB, free: 66.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001228/0.9923, allocations: 175.4 kB / 462.4 MB, free: 66.47 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001512/0.9938, allocations: 0.8855 MB / 463.3 MB, free: 66.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01797/1.012, allocations: 7.586 MB / 470.9 MB, free: 66.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04869/1.061, allocations: 42.19 MB / 0.501 GB, free: 35.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/1.071, allocations: 3.754 MB / 0.5047 GB, free: 33.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004266/1.071, allocations: 339.1 kB / 0.505 GB, free: 33.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/1.071, allocations: 47.38 kB / 0.5051 GB, free: 33.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 6.116e-06/1.071, allocations: 3.344 kB / 0.5051 GB, free: 33.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.06302/1.134, allocations: 19.49 MB / 0.5241 GB, free: 18.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/1.135, allocations: 256.6 kB / 0.5243 GB, free: 17.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00663/1.141, allocations: 3.456 MB / 0.5277 GB, free: 14.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003883/1.142, allocations: 50.88 kB / 0.5278 GB, free: 14.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001989/1.144, allocations: 2.725 MB / 0.5304 GB, free: 12.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009106/1.145, allocations: 0.7171 MB / 0.5311 GB, free: 11.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004854/1.145, allocations: 114.8 kB / 0.5312 GB, free: 11.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003379/1.145, allocations: 0.5425 MB / 0.5318 GB, free: 11.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004019/1.149, allocations: 2.076 MB / 0.5338 GB, free: 9.246 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005828/1.155, allocations: 5.298 MB / 0.539 GB, free: 2.324 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006082/1.161, allocations: 3.265 MB / 0.5422 GB, free: 15.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.614e-05/1.162, allocations: 35.94 kB / 0.5422 GB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02192/1.184, allocations: 8.244 MB / 0.5502 GB, free: 6.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/1.184, allocations: 56 kB / 0.5503 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001615/1.184, allocations: 112 kB / 0.5504 GB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0054/1.189, allocations: 1.382 MB / 0.5518 GB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005425/1.195, allocations: 1.224 MB / 0.5529 GB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2244/1.419, allocations: 8.705 MB / 0.5614 GB, free: 73.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005535/1.425, allocations: 314.4 kB / 0.5617 GB, free: 73.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001191/1.426, allocations: 333.1 kB / 0.5621 GB, free: 73.7 MB / 362.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.004848/1.431, allocations: 1.941 MB / 0.564 GB, free: 73.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008171/1.432, allocations: 352 kB / 0.5643 GB, free: 73.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009671/1.441, allocations: 3.918 MB / 0.5681 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.986e-05/1.441, allocations: 21.84 kB / 0.5681 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.246e-05/1.442, allocations: 7.562 kB / 0.5682 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.621e-05/1.442, allocations: 12.06 kB / 0.5682 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.021/1.463, allocations: 8.906 MB / 0.5769 GB, free: 72.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/1.463, allocations: 3.781 kB / 0.5769 GB, free: 72.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/1.464, allocations: 262 kB / 0.5771 GB, free: 72.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004832/1.469, allocations: 1.215 MB / 0.5783 GB, free: 72.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003965/1.47, allocations: 32.41 kB / 0.5783 GB, free: 72.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01394/1.484, allocations: 7.863 MB / 0.586 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.934e-06/1.484, allocations: 3.938 kB / 0.586 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/1.497, allocations: 6.807 MB / 0.5927 GB, free: 68.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002045/1.499, allocations: 0.6797 MB / 0.5933 GB, free: 68.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008129/1.5, allocations: 27.19 kB / 0.5934 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0022/1.502, allocations: 112.3 kB / 0.5935 GB, free: 68.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000461/1.503, allocations: 113.8 kB / 0.5936 GB, free: 68.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/1.503, allocations: 46 kB / 0.5936 GB, free: 68.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00526/1.508, allocations: 2.461 MB / 0.596 GB, free: 67.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.203e-06/1.508, allocations: 0 / 0.596 GB, free: 67.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006314/1.515, allocations: 0.9959 MB / 0.597 GB, free: 67.35 MB / 362.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.0005762/1.515, allocations: 172 kB / 0.5972 GB, free: 67.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009653/1.525, allocations: 5.182 MB / 0.6022 GB, free: 65.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.525, allocations: 0 / 0.6022 GB, free: 65.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00395/1.529, allocations: 1.976 MB / 0.6041 GB, free: 64.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003098/1.532, allocations: 452.2 kB / 0.6046 GB, free: 64.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02045/1.552, allocations: 10.95 MB / 0.6153 GB, free: 59.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005813/1.558, allocations: 3.173 MB / 0.6184 GB, free: 58.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/1.56, allocations: 274.8 kB / 0.6186 GB, free: 58.18 MB / 362.7 MB Notification: Performance of SimCode: time 1.796e-06/1.56, allocations: 0 / 0.6186 GB, free: 58.18 MB / 362.7 MB Notification: Performance of Templates: time 0.09974/1.659, allocations: 70.27 MB / 0.6872 GB, free: 14.28 MB / 378.7 MB