Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.748/1.748, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003374, allocations: 8 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09422, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2631/0.3574, allocations: 31.41 MB / 304 MB, free: 8.391 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02003/0.3775, allocations: 8.246 MB / 312.3 MB, free: 7.949 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006707/0.3843, allocations: 159.1 kB / 312.4 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005558/0.3899, allocations: 1.565 MB / 314 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01747/0.4074, allocations: 4.746 MB / 318.8 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003182/0.4107, allocations: 0.6385 MB / 319.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.04643/0.4571, allocations: 17.26 MB / 336.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006954/0.4641, allocations: 3.483 MB / 340.1 MB, free: 9.473 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002226/0.4664, allocations: 1.039 MB / 341.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.4691, allocations: 1.414 MB / 342.6 MB, free: 7.012 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005575/0.4697, allocations: 132 kB / 342.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002572/0.4723, allocations: 0.9519 MB / 343.7 MB, free: 5.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002117/0.4744, allocations: 1.539 MB / 345.2 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001151/0.4756, allocations: 0.7727 MB / 346 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008675/0.4843, allocations: 5.433 MB / 351.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4843, allocations: 0 / 351.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4843, allocations: 0 / 351.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001396/0.4845, allocations: 4 kB / 351.4 MB, free: 14.16 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.0188/0.5033, allocations: 4.335 MB / 355.8 MB, free: 9.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.5034, allocations: 8.031 kB / 355.8 MB, free: 9.742 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3517/0.8551, allocations: 14.46 MB / 370.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01238/0.8675, allocations: 3.715 MB / 373.9 MB, free: 7.488 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002248/0.8678, allocations: 197 kB / 374.1 MB, free: 7.293 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000878/0.8687, allocations: 271.7 kB / 374.4 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02182/0.8905, allocations: 8.838 MB / 383.2 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001757/0.8907, allocations: 43.59 kB / 383.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005767/0.8913, allocations: 127.9 kB / 383.4 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00423/0.8955, allocations: 1.653 MB / 385.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02265/0.9182, allocations: 7.604 MB / 392.7 MB, free: 4.109 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06326/0.9815, allocations: 35.55 MB / 428.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01427/0.9958, allocations: 3.759 MB / 432 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006192/0.9965, allocations: 336.2 kB / 432.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.9966, allocations: 55.5 kB / 432.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 5.26e-06/0.9966, allocations: 0 / 432.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.3151/1.312, allocations: 20.86 MB / 453.2 MB, free: 125.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.992e-05/1.312, allocations: 254.5 kB / 453.5 MB, free: 125.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00873/1.321, allocations: 4.18 MB / 457.6 MB, free: 123.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000513/1.321, allocations: 53.11 kB / 457.7 MB, free: 123.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00236/1.324, allocations: 2.81 MB / 460.5 MB, free: 121.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001065/1.325, allocations: 0.7182 MB / 461.2 MB, free: 121.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004618/1.325, allocations: 107.6 kB / 461.3 MB, free: 121.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000294/1.325, allocations: 0.5387 MB / 461.9 MB, free: 120.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004659/1.33, allocations: 2.14 MB / 464 MB, free: 120 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00639/1.337, allocations: 5.339 MB / 469.3 MB, free: 114.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006878/1.343, allocations: 3.329 MB / 472.7 MB, free: 113.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.099e-05/1.344, allocations: 31.09 kB / 472.7 MB, free: 113.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02217/1.366, allocations: 8.574 MB / 481.3 MB, free: 107.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/1.366, allocations: 59.44 kB / 481.3 MB, free: 107.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/1.366, allocations: 112 kB / 481.4 MB, free: 107.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006716/1.373, allocations: 1.521 MB / 483 MB, free: 105.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007024/1.38, allocations: 1.224 MB / 484.2 MB, free: 104.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01926/1.399, allocations: 9.486 MB / 493.7 MB, free: 94.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006263/1.405, allocations: 323.4 kB / 494 MB, free: 94.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009602/1.406, allocations: 329.2 kB / 494.3 MB, free: 94.1 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.00418/1.411, allocations: 1.936 MB / 496.2 MB, free: 92.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/1.412, allocations: 355.4 kB / 496.6 MB, free: 91.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/1.424, allocations: 4.139 MB / 0.489 GB, free: 87.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-05/1.424, allocations: 11.95 kB / 0.489 GB, free: 87.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/1.424, allocations: 4.875 kB / 0.489 GB, free: 87.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002504/1.426, allocations: 0.7072 MB / 0.4897 GB, free: 86.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/1.427, allocations: 29.33 kB / 0.4897 GB, free: 86.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.43, allocations: 119.8 kB / 0.4898 GB, free: 86.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005049/1.431, allocations: 129.1 kB / 0.49 GB, free: 86.63 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01412/1.445, allocations: 4.667 MB / 0.4945 GB, free: 81.99 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01119/1.456, allocations: 5.781 MB / 0.5002 GB, free: 76.18 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002896/1.459, allocations: 1.527 MB / 0.5017 GB, free: 74.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005064/1.464, allocations: 2.689 MB / 0.5043 GB, free: 71.99 MB / 362.7 MB Notification: Performance of Backend: time 8.82e-07/1.464, allocations: 0 / 0.5043 GB, free: 71.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01113/1.475, allocations: 4.141 MB / 0.5083 GB, free: 67.88 MB / 362.7 MB Notification: Performance of SimCode: time 0.02021/1.496, allocations: 10.45 MB / 0.5185 GB, free: 57.39 MB / 362.7 MB Notification: Performance of Templates: time 0.3486/1.844, allocations: 48.66 MB / 0.5661 GB, free: 119.3 MB / 362.7 MB