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.603/1.603, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.3e-05/2.323e-05, allocations: 0 / 228.8 MB, free: 15.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2094, allocations: 38.77 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.3339, allocations: 80.94 MB / 348.5 MB, free: 8.383 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.3343, allocations: 83.95 kB / 348.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.537/0.8713, allocations: 82.49 MB / 431.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.849e-06/0.8714, allocations: 3.938 kB / 431.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001862/0.8716, allocations: 76 kB / 431.2 MB, free: 15.05 MB / 298.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.01144/0.883, allocations: 3.968 MB / 435.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.8831, allocations: 8.031 kB / 435.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03144/0.9145, allocations: 6.609 MB / 441.8 MB, free: 4.383 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01635/0.9309, allocations: 5.827 MB / 447.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003665/0.9313, allocations: 263 kB / 447.9 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001657/0.933, allocations: 363.7 kB / 448.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0229/0.9559, allocations: 9.027 MB / 457.2 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002362/0.9562, allocations: 59.52 kB / 457.3 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001052/0.9573, allocations: 175.9 kB / 457.5 MB, free: 3.715 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001632/0.9589, allocations: 0.8923 MB / 458.4 MB, free: 2.824 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01951/0.9785, allocations: 7.468 MB / 465.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2732/1.252, allocations: 42.19 MB / 0.4961 GB, free: 45.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/1.263, allocations: 3.726 MB / 0.4997 GB, free: 44.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003049/1.266, allocations: 1.941 MB / 0.5016 GB, free: 44.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004394/1.267, allocations: 335.4 kB / 0.502 GB, free: 44.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/1.267, allocations: 53.16 kB / 0.502 GB, free: 44.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 6.993e-06/1.267, allocations: 3.391 kB / 0.502 GB, free: 44.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.06/1.327, allocations: 17.19 MB / 0.5188 GB, free: 41.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.512e-05/1.327, allocations: 252.8 kB / 0.519 GB, free: 41.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007297/1.334, allocations: 3.419 MB / 0.5224 GB, free: 41.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003936/1.335, allocations: 56.27 kB / 0.5224 GB, free: 40.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/1.337, allocations: 2.727 MB / 0.5251 GB, free: 39.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009022/1.338, allocations: 0.7161 MB / 0.5258 GB, free: 39.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005585/1.338, allocations: 108.3 kB / 0.5259 GB, free: 39.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003896/1.339, allocations: 0.5414 MB / 0.5264 GB, free: 38.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004371/1.343, allocations: 2.039 MB / 0.5284 GB, free: 38.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006123/1.349, allocations: 5.262 MB / 0.5336 GB, free: 34.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006164/1.355, allocations: 3.262 MB / 0.5367 GB, free: 33.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.522e-05/1.355, allocations: 33.84 kB / 0.5368 GB, free: 33.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01983/1.375, allocations: 8.163 MB / 0.5447 GB, free: 30.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/1.375, allocations: 55.72 kB / 0.5448 GB, free: 30.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/1.376, allocations: 123.9 kB / 0.5449 GB, free: 30.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005133/1.381, allocations: 1.389 MB / 0.5463 GB, free: 30.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005387/1.386, allocations: 1.219 MB / 0.5475 GB, free: 30.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01457/1.401, allocations: 8.392 MB / 0.5557 GB, free: 23.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005696/1.407, allocations: 309.8 kB / 0.556 GB, free: 22.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/1.408, allocations: 338.5 kB / 0.5563 GB, free: 22.54 MB / 346.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 () * 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.001104/1.409, allocations: 0.5083 MB / 0.5568 GB, free: 22.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008175/1.41, allocations: 358.7 kB / 0.5571 GB, free: 21.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009227/1.419, allocations: 3.891 MB / 0.5609 GB, free: 18.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.272e-05/1.419, allocations: 20 kB / 0.5609 GB, free: 18.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.796e-05/1.419, allocations: 8 kB / 0.5609 GB, free: 18.56 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.54e-05/1.419, allocations: 15 kB / 0.561 GB, free: 18.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02116/1.44, allocations: 8.869 MB / 0.5696 GB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-05/1.44, allocations: 3 kB / 0.5696 GB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/1.442, allocations: 263.1 kB / 0.5699 GB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004531/1.447, allocations: 1.215 MB / 0.5711 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003962/1.447, allocations: 29.97 kB / 0.5711 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01331/1.46, allocations: 7.555 MB / 0.5785 GB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.53e-06/1.46, allocations: 4 kB / 0.5785 GB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/1.474, allocations: 6.77 MB / 0.5851 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002245/1.477, allocations: 0.6736 MB / 0.5857 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009035/1.477, allocations: 31.38 kB / 0.5858 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/1.48, allocations: 109.2 kB / 0.5859 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005653/1.481, allocations: 113 kB / 0.586 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002144/1.481, allocations: 44 kB / 0.586 GB, free: 12.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005945/1.487, allocations: 2.421 MB / 0.5884 GB, free: 10.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.069e-06/1.487, allocations: 3.828 kB / 0.5884 GB, free: 10.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006756/1.494, allocations: 1.001 MB / 0.5894 GB, free: 9.867 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 () * 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.0006271/1.494, allocations: 176 kB / 0.5895 GB, free: 9.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01144/1.506, allocations: 5.102 MB / 0.5945 GB, free: 5.055 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.79e-06/1.506, allocations: 4 kB / 0.5945 GB, free: 5.051 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004529/1.51, allocations: 1.955 MB / 0.5964 GB, free: 3.301 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002969/1.513, allocations: 460.5 kB / 0.5969 GB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/1.533, allocations: 7.947 MB / 0.6046 GB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006485/1.54, allocations: 3.175 MB / 0.6077 GB, free: 7.727 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/1.541, allocations: 279.4 kB / 0.608 GB, free: 7.453 MB / 378.7 MB Notification: Performance of SimCode: time 1.832e-06/1.541, allocations: 0 / 0.608 GB, free: 7.453 MB / 378.7 MB Notification: Performance of Templates: time 0.3217/1.863, allocations: 70.25 MB / 0.6766 GB, free: 99.19 MB / 394.7 MB