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.78/1.78, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.0003601, allocations: 12 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0838/0.08418, allocations: 44.51 MB / 308.5 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3572/0.4414, allocations: 86.76 MB / 395.2 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4417, allocations: 90.27 kB / 395.3 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3018/0.7435, allocations: 82.51 MB / 477.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.237e-06/0.7435, allocations: 0 / 477.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002879/0.7438, allocations: 71.94 kB / 477.9 MB, free: 12.03 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.01586/0.7597, allocations: 4.34 MB / 482.2 MB, free: 7.617 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.7598, allocations: 8.031 kB / 482.2 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03599/0.7958, allocations: 6.609 MB / 488.8 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01907/0.8149, allocations: 5.85 MB / 494.7 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004225/0.8154, allocations: 271 kB / 495 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001781/0.8172, allocations: 359.7 kB / 495.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02645/0.8437, allocations: 9.094 MB / 0.4926 GB, free: 460 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003167/0.844, allocations: 55.47 kB / 0.4926 GB, free: 404 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001428/0.8455, allocations: 179.9 kB / 0.4928 GB, free: 224 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002/0.8475, allocations: 0.8885 MB / 0.4937 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02173/0.8693, allocations: 7.58 MB / 0.5011 GB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.332/1.201, allocations: 42.2 MB / 0.5423 GB, free: 66.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01335/1.215, allocations: 3.753 MB / 0.5459 GB, free: 65.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004513/1.215, allocations: 329.2 kB / 0.5463 GB, free: 65.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/1.215, allocations: 48.84 kB / 0.5463 GB, free: 65.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 6.946e-06/1.215, allocations: 1.812 kB / 0.5463 GB, free: 65.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.06794/1.283, allocations: 19.49 MB / 0.5653 GB, free: 62.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/1.283, allocations: 259.3 kB / 0.5656 GB, free: 62.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007204/1.291, allocations: 3.462 MB / 0.569 GB, free: 61.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004123/1.291, allocations: 54.64 kB / 0.569 GB, free: 61.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002122/1.293, allocations: 2.725 MB / 0.5717 GB, free: 60.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009326/1.294, allocations: 0.7168 MB / 0.5724 GB, free: 60.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005399/1.295, allocations: 106.8 kB / 0.5725 GB, free: 60.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003562/1.295, allocations: 0.5386 MB / 0.573 GB, free: 59.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004374/1.299, allocations: 2.086 MB / 0.5751 GB, free: 59.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006466/1.306, allocations: 5.298 MB / 0.5802 GB, free: 55.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006079/1.312, allocations: 3.264 MB / 0.5834 GB, free: 55.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.995e-05/1.312, allocations: 33.28 kB / 0.5834 GB, free: 55.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02009/1.332, allocations: 8.249 MB / 0.5915 GB, free: 53.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/1.332, allocations: 58.5 kB / 0.5916 GB, free: 53.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001409/1.333, allocations: 112.9 kB / 0.5917 GB, free: 53.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005139/1.338, allocations: 1.379 MB / 0.593 GB, free: 52.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005323/1.343, allocations: 1.225 MB / 0.5942 GB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/1.359, allocations: 8.715 MB / 0.6027 GB, free: 48.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005746/1.365, allocations: 317.6 kB / 0.603 GB, free: 48.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001184/1.366, allocations: 331.2 kB / 0.6033 GB, free: 48.36 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.004961/1.371, allocations: 1.933 MB / 0.6052 GB, free: 47.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008985/1.372, allocations: 359.9 kB / 0.6056 GB, free: 47.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009884/1.382, allocations: 3.918 MB / 0.6094 GB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-05/1.382, allocations: 20.89 kB / 0.6094 GB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-05/1.382, allocations: 7.125 kB / 0.6094 GB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.845e-05/1.382, allocations: 6.188 kB / 0.6094 GB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02122/1.403, allocations: 8.913 MB / 0.6181 GB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-05/1.403, allocations: 0 / 0.6181 GB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/1.405, allocations: 255.9 kB / 0.6184 GB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004509/1.409, allocations: 1.222 MB / 0.6196 GB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004042/1.41, allocations: 28 kB / 0.6196 GB, free: 39.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/1.424, allocations: 7.867 MB / 0.6273 GB, free: 32.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.201e-06/1.424, allocations: 3.391 kB / 0.6273 GB, free: 32.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01301/1.437, allocations: 6.822 MB / 0.6339 GB, free: 26.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/1.439, allocations: 0.6755 MB / 0.6346 GB, free: 26.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009503/1.44, allocations: 31.44 kB / 0.6346 GB, free: 26.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002532/1.442, allocations: 117.6 kB / 0.6347 GB, free: 26.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005893/1.443, allocations: 103.4 kB / 0.6348 GB, free: 26.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/1.443, allocations: 53.45 kB / 0.6349 GB, free: 26.01 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00565/1.449, allocations: 2.456 MB / 0.6373 GB, free: 24.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.266e-06/1.449, allocations: 0 / 0.6373 GB, free: 24.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00668/1.456, allocations: 0.9885 MB / 0.6383 GB, free: 23.02 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.0006892/1.456, allocations: 173.9 kB / 0.6384 GB, free: 22.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009815/1.466, allocations: 5.171 MB / 0.6435 GB, free: 18.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.938e-06/1.466, allocations: 0 / 0.6435 GB, free: 18.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004277/1.47, allocations: 1.976 MB / 0.6454 GB, free: 16.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003274/1.474, allocations: 457.8 kB / 0.6458 GB, free: 16.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02205/1.496, allocations: 10.95 MB / 0.6565 GB, free: 6.273 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006424/1.502, allocations: 3.177 MB / 0.6596 GB, free: 3.852 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/1.504, allocations: 274.7 kB / 0.6599 GB, free: 3.594 MB / 410.7 MB Notification: Performance of SimCode: time 2.175e-06/1.504, allocations: 0 / 0.6599 GB, free: 3.594 MB / 410.7 MB Notification: Performance of Templates: time 0.3535/1.857, allocations: 70.29 MB / 0.7285 GB, free: 91.58 MB / 426.7 MB