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.653/1.653, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007325/0.0007327, allocations: 8 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07749/0.07827, allocations: 38.78 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2264/0.3047, allocations: 31.4 MB / 303.3 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01886/0.3236, allocations: 8.246 MB / 311.6 MB, free: 7.367 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007264/0.3309, allocations: 160 kB / 311.7 MB, free: 7.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005171/0.3361, allocations: 1.568 MB / 313.3 MB, free: 7.051 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01625/0.3524, allocations: 4.738 MB / 318 MB, free: 5.875 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002804/0.3552, allocations: 0.639 MB / 318.7 MB, free: 5.695 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.03294/0.3882, allocations: 17.28 MB / 336 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006686/0.395, allocations: 3.473 MB / 339.4 MB, free: 9.449 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002453/0.3975, allocations: 1.05 MB / 340.5 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.4003, allocations: 1.416 MB / 341.9 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006818/0.4011, allocations: 128 kB / 342 MB, free: 7.195 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002718/0.4038, allocations: 0.9644 MB / 343 MB, free: 6.305 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002563/0.4064, allocations: 1.524 MB / 344.5 MB, free: 4.777 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.408, allocations: 0.7805 MB / 345.3 MB, free: 3.988 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008688/0.4167, allocations: 5.427 MB / 350.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4168, allocations: 0 / 350.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.92e-06/0.4168, allocations: 3.938 kB / 350.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001391/0.4169, allocations: 0 / 350.7 MB, free: 14.54 MB / 282.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.01403/0.431, allocations: 4.331 MB / 355.1 MB, free: 10.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.431, allocations: 8.031 kB / 355.1 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.185/0.6161, allocations: 14.46 MB / 369.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.6265, allocations: 3.711 MB / 373.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002564/0.6268, allocations: 197 kB / 373.4 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.6278, allocations: 271.7 kB / 373.7 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02003/0.6478, allocations: 8.862 MB / 382.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001761/0.6481, allocations: 47.59 kB / 382.6 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005856/0.6487, allocations: 127.8 kB / 382.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003405/0.6521, allocations: 1.661 MB / 384.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01988/0.672, allocations: 7.597 MB / 392 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05899/0.731, allocations: 35.55 MB / 427.5 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01154/0.7426, allocations: 3.75 MB / 431.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005872/0.7432, allocations: 340.2 kB / 431.6 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.737e-05/0.7433, allocations: 51.59 kB / 431.7 MB, free: 11.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 5.287e-06/0.7433, allocations: 4 kB / 431.7 MB, free: 11.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.2599/1.003, allocations: 20.85 MB / 452.5 MB, free: 125.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.113e-05/1.003, allocations: 257.7 kB / 452.8 MB, free: 125 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007834/1.011, allocations: 4.184 MB / 456.9 MB, free: 123.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000418/1.012, allocations: 49.64 kB / 457 MB, free: 123.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00201/1.014, allocations: 2.707 MB / 459.7 MB, free: 121.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009746/1.015, allocations: 0.7135 MB / 460.4 MB, free: 120.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004219/1.015, allocations: 110.2 kB / 460.5 MB, free: 120.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003267/1.015, allocations: 0.5458 MB / 461.1 MB, free: 120.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004216/1.02, allocations: 2.14 MB / 463.2 MB, free: 119.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005815/1.026, allocations: 5.363 MB / 468.6 MB, free: 114.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006146/1.032, allocations: 3.324 MB / 471.9 MB, free: 113.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-05/1.032, allocations: 34.53 kB / 471.9 MB, free: 113.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.01916/1.051, allocations: 8.433 MB / 480.4 MB, free: 107.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.633e-05/1.051, allocations: 56 kB / 480.4 MB, free: 107.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/1.051, allocations: 112 kB / 480.5 MB, free: 107.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005353/1.057, allocations: 1.525 MB / 482.1 MB, free: 105.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005118/1.062, allocations: 1.22 MB / 483.3 MB, free: 104.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01586/1.078, allocations: 9.488 MB / 492.8 MB, free: 94.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005309/1.083, allocations: 323.5 kB / 493.1 MB, free: 94.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009209/1.084, allocations: 324.7 kB / 493.4 MB, free: 94.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * 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 (647): * Single equations (assignments): 643 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003955/1.088, allocations: 1.935 MB / 495.3 MB, free: 92.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008585/1.089, allocations: 347.5 kB / 495.7 MB, free: 92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00949/1.098, allocations: 4.147 MB / 499.8 MB, free: 87.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.138e-05/1.099, allocations: 20.94 kB / 499.8 MB, free: 87.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-05/1.099, allocations: 8 kB / 499.8 MB, free: 87.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.4e-05/1.099, allocations: 7.969 kB / 499.9 MB, free: 87.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02087/1.119, allocations: 9.315 MB / 0.4972 GB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.398e-05/1.12, allocations: 3.953 kB / 0.4972 GB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/1.121, allocations: 267.6 kB / 0.4975 GB, free: 78.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005033/1.126, allocations: 1.345 MB / 0.4988 GB, free: 76.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003948/1.127, allocations: 36.62 kB / 0.4988 GB, free: 76.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/1.141, allocations: 8.633 MB / 0.5073 GB, free: 68.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.336e-06/1.141, allocations: 8 kB / 0.5073 GB, free: 68.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01356/1.155, allocations: 7.019 MB / 0.5141 GB, free: 60.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002062/1.157, allocations: 0.7112 MB / 0.5148 GB, free: 60.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009559/1.158, allocations: 28 kB / 0.5149 GB, free: 60.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0025/1.16, allocations: 119.8 kB / 0.515 GB, free: 60.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006044/1.161, allocations: 113.2 kB / 0.5151 GB, free: 60 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002269/1.161, allocations: 44 kB / 0.5151 GB, free: 59.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005087/1.166, allocations: 2.693 MB / 0.5178 GB, free: 57.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.027e-06/1.167, allocations: 0 / 0.5178 GB, free: 57.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006093/1.173, allocations: 1.027 MB / 0.5188 GB, free: 56.27 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 (136): * Single equations (assignments): 132 * 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.0007729/1.173, allocations: 183.8 kB / 0.5189 GB, free: 56.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009993/1.183, allocations: 5.333 MB / 0.5241 GB, free: 50.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.463e-06/1.183, allocations: 0 / 0.5241 GB, free: 50.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004312/1.188, allocations: 2.067 MB / 0.5262 GB, free: 48.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003178/1.191, allocations: 452.2 kB / 0.5266 GB, free: 48.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02057/1.212, allocations: 11.12 MB / 0.5374 GB, free: 37.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005227/1.217, allocations: 3.176 MB / 0.5405 GB, free: 33.87 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/1.218, allocations: 279.4 kB / 0.5408 GB, free: 33.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.845e-06/1.218, allocations: 3.938 kB / 0.5408 GB, free: 33.59 MB / 362.7 MB Notification: Performance of Templates: time 0.2995/1.518, allocations: 71.34 MB / 0.6105 GB, free: 81.94 MB / 362.7 MB