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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.663/1.663, allocations: 171.3 MB / 179.2 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.068e-05, allocations: 4 kB / 222.5 MB, free: 4.746 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.207, allocations: 38.77 MB / 261.3 MB, free: 13 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.3286, allocations: 80.27 MB / 341.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.3289, allocations: 83.95 kB / 341.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5262/0.8552, allocations: 81.03 MB / 422.7 MB, free: 54.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.967e-06/0.8553, allocations: 0 / 422.7 MB, free: 54.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002091/0.8555, allocations: 72 kB / 422.7 MB, free: 54.86 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: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.01157/0.8671, allocations: 3.947 MB / 426.7 MB, free: 50.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.8671, allocations: 11.97 kB / 426.7 MB, free: 50.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03318/0.9003, allocations: 6.621 MB / 433.3 MB, free: 44.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01547/0.9158, allocations: 5.806 MB / 439.1 MB, free: 38.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.916, allocations: 123.9 kB / 439.3 MB, free: 38.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001267/0.9173, allocations: 211.9 kB / 439.5 MB, free: 38.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01017/0.9275, allocations: 5.245 MB / 444.7 MB, free: 32.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01562/0.9432, allocations: 8.174 MB / 452.9 MB, free: 23.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000202/0.9434, allocations: 71.36 kB / 452.9 MB, free: 23.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007984/0.9442, allocations: 28 kB / 453 MB, free: 23.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001277/0.9455, allocations: 0.8876 MB / 453.9 MB, free: 22.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05062/0.9962, allocations: 40.59 MB / 494.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00532/1.002, allocations: 3.033 MB / 497.5 MB, free: 9.906 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003316/1.005, allocations: 1.905 MB / 499.4 MB, free: 7.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005631/1.005, allocations: 328.5 kB / 499.7 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/1.006, allocations: 51.81 kB / 499.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 6.107e-06/1.006, allocations: 0 / 499.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.2678/1.273, allocations: 16.79 MB / 0.5045 GB, free: 83.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/1.274, allocations: 249.9 kB / 0.5047 GB, free: 83.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009395/1.283, allocations: 3.005 MB / 0.5076 GB, free: 83.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004774/1.283, allocations: 26.64 kB / 0.5077 GB, free: 83.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003609/1.287, allocations: 2.813 MB / 0.5104 GB, free: 81.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001858/1.289, allocations: 0.6986 MB / 0.5111 GB, free: 81.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/1.29, allocations: 0 / 0.5111 GB, free: 81.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.001191/1.291, allocations: 0.5513 MB / 0.5116 GB, free: 80.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005562/1.297, allocations: 1.973 MB / 0.5135 GB, free: 80.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006458/1.304, allocations: 5.303 MB / 0.5187 GB, free: 76.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00627/1.31, allocations: 3.214 MB / 0.5219 GB, free: 76.24 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001594/1.31, allocations: 37.94 kB / 0.5219 GB, free: 76.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.02056/1.331, allocations: 7.602 MB / 0.5293 GB, free: 74.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/1.331, allocations: 57.69 kB / 0.5294 GB, free: 74.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002068/1.331, allocations: 119.1 kB / 0.5295 GB, free: 74.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00507/1.336, allocations: 1.376 MB / 0.5308 GB, free: 73.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005369/1.342, allocations: 1.265 MB / 0.5321 GB, free: 73.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/1.356, allocations: 7.848 MB / 0.5397 GB, free: 69.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005604/1.361, allocations: 209.5 kB / 0.5399 GB, free: 69.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/1.363, allocations: 342.6 kB / 0.5403 GB, free: 69.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (674): * Single equations (assignments): 670 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001654/1.364, allocations: 401.9 kB / 0.5406 GB, free: 69.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008052/1.365, allocations: 329.1 kB / 0.541 GB, free: 69.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008942/1.374, allocations: 3.742 MB / 0.5446 GB, free: 68.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.543e-05/1.374, allocations: 26.17 kB / 0.5446 GB, free: 68.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/1.374, allocations: 10.22 kB / 0.5446 GB, free: 68.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.673e-05/1.374, allocations: 10.92 kB / 0.5447 GB, free: 68.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02029/1.394, allocations: 8.149 MB / 0.5526 GB, free: 61.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/1.395, allocations: 4 kB / 0.5526 GB, free: 61.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/1.396, allocations: 261 kB / 0.5529 GB, free: 61.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004432/1.401, allocations: 1.193 MB / 0.554 GB, free: 60.67 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003626/1.401, allocations: 4 kB / 0.554 GB, free: 60.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/1.413, allocations: 7.035 MB / 0.5609 GB, free: 54.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.195e-06/1.413, allocations: 7.188 kB / 0.5609 GB, free: 54.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01198/1.425, allocations: 6.606 MB / 0.5674 GB, free: 48.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001772/1.427, allocations: 0.6416 MB / 0.568 GB, free: 48.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005192/1.427, allocations: 7.844 kB / 0.568 GB, free: 48.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001795/1.429, allocations: 84.31 kB / 0.5681 GB, free: 48.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000393/1.429, allocations: 115.7 kB / 0.5682 GB, free: 48.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/1.43, allocations: 50.25 kB / 0.5682 GB, free: 48.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003827/1.433, allocations: 2.04 MB / 0.5702 GB, free: 46.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.117e-06/1.433, allocations: 1.875 kB / 0.5702 GB, free: 46.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00627/1.44, allocations: 0.8538 MB / 0.5711 GB, free: 45.41 MB / 346.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 () * 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.000608/1.44, allocations: 150.9 kB / 0.5712 GB, free: 45.26 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009202/1.45, allocations: 4.998 MB / 0.5761 GB, free: 40.76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.598e-06/1.45, allocations: 0 / 0.5761 GB, free: 40.76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003706/1.453, allocations: 1.899 MB / 0.5779 GB, free: 39.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/1.456, allocations: 378.6 kB / 0.5783 GB, free: 38.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/1.474, allocations: 7.845 MB / 0.586 GB, free: 31.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006056/1.48, allocations: 3.177 MB / 0.5891 GB, free: 29.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/1.481, allocations: 266.9 kB / 0.5893 GB, free: 29.13 MB / 346.7 MB Notification: Performance of SimCode: time 1.883e-06/1.481, allocations: 4 kB / 0.5893 GB, free: 29.13 MB / 346.7 MB Notification: Performance of Templates: time 0.3024/1.784, allocations: 68.44 MB / 0.6562 GB, free: 86.98 MB / 362.7 MB