Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.596/1.596, allocations: 171.1 MB / 187.3 MB, free: 1.055 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 8 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08177/0.08213, allocations: 38.77 MB / 272.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.358/0.4402, allocations: 81.01 MB / 353.6 MB, free: 9.145 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.4405, allocations: 92.58 kB / 353.7 MB, free: 9.098 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5813/1.022, allocations: 83.28 MB / 436.9 MB, free: 72.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.022, allocations: 0 / 436.9 MB, free: 72.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002982/1.022, allocations: 70.28 kB / 437 MB, free: 72.16 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.01936/1.042, allocations: 4.333 MB / 441.3 MB, free: 70.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/1.042, allocations: 10.09 kB / 441.3 MB, free: 70.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04846/1.09, allocations: 6.608 MB / 447.9 MB, free: 70.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02071/1.111, allocations: 5.845 MB / 453.8 MB, free: 69.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003954/1.111, allocations: 269.3 kB / 454.1 MB, free: 69.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002366/1.114, allocations: 369.4 kB / 454.4 MB, free: 69.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02694/1.141, allocations: 9.107 MB / 463.5 MB, free: 67.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002825/1.141, allocations: 59.62 kB / 463.6 MB, free: 67.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001436/1.142, allocations: 174.3 kB / 463.8 MB, free: 67.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00183/1.144, allocations: 0.8837 MB / 464.6 MB, free: 67.15 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02233/1.167, allocations: 7.594 MB / 472.2 MB, free: 67.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06124/1.228, allocations: 42.18 MB / 0.5024 GB, free: 35.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01355/1.242, allocations: 3.756 MB / 0.506 GB, free: 34.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005845/1.242, allocations: 333.4 kB / 0.5063 GB, free: 33.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/1.242, allocations: 55.38 kB / 0.5064 GB, free: 33.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 5.841e-06/1.242, allocations: 0 / 0.5064 GB, free: 33.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.08787/1.33, allocations: 19.96 MB / 0.5259 GB, free: 17.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.382e-05/1.33, allocations: 248.6 kB / 0.5261 GB, free: 17.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007938/1.338, allocations: 3.888 MB / 0.5299 GB, free: 14.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005748/1.339, allocations: 50.25 kB / 0.53 GB, free: 14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002268/1.341, allocations: 2.728 MB / 0.5326 GB, free: 11.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/1.342, allocations: 0.7194 MB / 0.5333 GB, free: 10.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006093/1.343, allocations: 108 kB / 0.5334 GB, free: 10.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003372/1.343, allocations: 0.5406 MB / 0.534 GB, free: 9.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005179/1.348, allocations: 2.08 MB / 0.536 GB, free: 7.832 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00739/1.356, allocations: 5.321 MB / 0.5412 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008367/1.364, allocations: 3.267 MB / 0.5444 GB, free: 13.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/1.365, allocations: 32 kB / 0.5444 GB, free: 13.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02727/1.392, allocations: 8.227 MB / 0.5524 GB, free: 5.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/1.392, allocations: 52 kB / 0.5525 GB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/1.392, allocations: 116.9 kB / 0.5526 GB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007349/1.4, allocations: 1.366 MB / 0.5539 GB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007934/1.408, allocations: 1.224 MB / 0.5551 GB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2681/1.676, allocations: 8.699 MB / 0.5636 GB, free: 74.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006402/1.682, allocations: 304.4 kB / 0.5639 GB, free: 74.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001527/1.684, allocations: 333.3 kB / 0.5642 GB, free: 74.33 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.005968/1.69, allocations: 1.942 MB / 0.5661 GB, free: 74.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.691, allocations: 352.9 kB / 0.5665 GB, free: 74.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/1.704, allocations: 3.892 MB / 0.5703 GB, free: 74.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.882e-05/1.704, allocations: 20.09 kB / 0.5703 GB, free: 74.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.037e-05/1.704, allocations: 7.891 kB / 0.5703 GB, free: 74.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.494e-05/1.704, allocations: 12.14 kB / 0.5703 GB, free: 74.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02562/1.73, allocations: 8.885 MB / 0.579 GB, free: 73.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.013e-05/1.73, allocations: 3.719 kB / 0.579 GB, free: 73.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002481/1.732, allocations: 259.5 kB / 0.5792 GB, free: 73.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006226/1.739, allocations: 1.202 MB / 0.5804 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004653/1.739, allocations: 42.08 kB / 0.5804 GB, free: 73.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01721/1.756, allocations: 7.849 MB / 0.5881 GB, free: 70.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.757, allocations: 4.656 kB / 0.5881 GB, free: 70.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01724/1.774, allocations: 6.659 MB / 0.5946 GB, free: 68.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002583/1.776, allocations: 0.6791 MB / 0.5953 GB, free: 68.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001366/1.778, allocations: 31.94 kB / 0.5953 GB, free: 68.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/1.781, allocations: 105.4 kB / 0.5954 GB, free: 68.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007694/1.782, allocations: 110.9 kB / 0.5955 GB, free: 68.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002398/1.783, allocations: 54.28 kB / 0.5956 GB, free: 68.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006234/1.789, allocations: 2.454 MB / 0.598 GB, free: 67.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.12e-07/1.789, allocations: 0 / 0.598 GB, free: 67.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00662/1.795, allocations: 0.99 MB / 0.5989 GB, free: 67.18 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.0008083/1.796, allocations: 174.8 kB / 0.5991 GB, free: 67.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0117/1.808, allocations: 5.183 MB / 0.6042 GB, free: 65.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.808, allocations: 0 / 0.6042 GB, free: 65.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005241/1.813, allocations: 1.976 MB / 0.6061 GB, free: 64.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003999/1.817, allocations: 448.7 kB / 0.6065 GB, free: 64.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0251/1.843, allocations: 10.99 MB / 0.6173 GB, free: 59.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006695/1.849, allocations: 3.169 MB / 0.6204 GB, free: 58.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/1.851, allocations: 273.7 kB / 0.6206 GB, free: 58.01 MB / 362.7 MB Notification: Performance of SimCode: time 1.373e-06/1.851, allocations: 3.969 kB / 0.6206 GB, free: 58.01 MB / 362.7 MB Notification: Performance of Templates: time 0.1351/1.986, allocations: 70.27 MB / 0.6892 GB, free: 13.12 MB / 378.7 MB