Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.000339, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09071, allocations: 44.51 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.04964/0.1404, allocations: 31.42 MB / 340.5 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02098/0.1615, allocations: 8.279 MB / 348.8 MB, free: 8.539 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005335/0.1669, allocations: 159.6 kB / 348.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005298/0.1722, allocations: 1.567 MB / 350.5 MB, free: 6.809 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0169/0.1892, allocations: 4.742 MB / 355.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003234/0.1924, allocations: 0.6357 MB / 355.9 MB, free: 1.418 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.05037/0.2428, allocations: 17.26 MB / 373.1 MB, free: 144 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2649/0.5078, allocations: 3.457 MB / 376.6 MB, free: 24.65 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002723/0.5105, allocations: 1.045 MB / 377.6 MB, free: 24.65 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/0.5141, allocations: 1.415 MB / 379 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009871/0.5151, allocations: 131.9 kB / 379.2 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00297/0.5181, allocations: 0.9547 MB / 380.1 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00272/0.5208, allocations: 1.535 MB / 381.7 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.5224, allocations: 0.7816 MB / 382.4 MB, free: 24.61 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00828/0.5307, allocations: 5.438 MB / 387.9 MB, free: 23.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.5307, allocations: 2.531 kB / 387.9 MB, free: 23.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5307, allocations: 0 / 387.9 MB, free: 23.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002073/0.531, allocations: 0 / 387.9 MB, free: 23.71 MB / 314.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.01875/0.5497, allocations: 4.345 MB / 392.2 MB, free: 21.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.5498, allocations: 8.25 kB / 392.2 MB, free: 21.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3261/0.8759, allocations: 14.46 MB / 406.7 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01148/0.8874, allocations: 3.715 MB / 410.4 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.8876, allocations: 200.2 kB / 410.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008501/0.8885, allocations: 266.2 kB / 410.9 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02057/0.9091, allocations: 8.841 MB / 419.7 MB, free: 3.453 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000186/0.9093, allocations: 54.08 kB / 419.8 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006757/0.91, allocations: 129.7 kB / 419.9 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003705/0.9137, allocations: 1.653 MB / 421.5 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02275/0.9365, allocations: 7.614 MB / 429.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0635/1, allocations: 35.54 MB / 464.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01414/1.014, allocations: 3.755 MB / 468.4 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006217/1.015, allocations: 330.7 kB / 468.8 MB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/1.015, allocations: 54.08 kB / 468.8 MB, free: 8.512 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 5.831e-06/1.015, allocations: 3.938 kB / 468.8 MB, free: 8.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.09764/1.113, allocations: 20.88 MB / 489.7 MB, free: 3.523 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/1.113, allocations: 248.6 kB / 489.9 MB, free: 3.227 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008411/1.121, allocations: 4.18 MB / 494.1 MB, free: 15.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005629/1.122, allocations: 53.7 kB / 494.2 MB, free: 15.01 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002904/1.125, allocations: 2.809 MB / 497 MB, free: 12.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001265/1.126, allocations: 0.7151 MB / 497.7 MB, free: 11.51 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004541/1.127, allocations: 108 kB / 497.8 MB, free: 11.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000421/1.127, allocations: 0.5389 MB / 498.3 MB, free: 10.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005407/1.132, allocations: 2.134 MB / 0.4888 GB, free: 8.719 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008134/1.141, allocations: 5.339 MB / 0.494 GB, free: 1.824 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007925/1.149, allocations: 3.327 MB / 0.4972 GB, free: 14.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.54e-05/1.149, allocations: 32 kB / 0.4972 GB, free: 14.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02505/1.174, allocations: 8.582 MB / 0.5056 GB, free: 6.227 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.8e-05/1.174, allocations: 55.98 kB / 0.5057 GB, free: 6.172 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001646/1.174, allocations: 112 kB / 0.5058 GB, free: 6.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007359/1.181, allocations: 1.523 MB / 0.5073 GB, free: 4.535 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007364/1.189, allocations: 1.22 MB / 0.5085 GB, free: 3.312 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02217/1.211, allocations: 9.48 MB / 0.5177 GB, free: 9.699 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006041/1.217, allocations: 319.5 kB / 0.518 GB, free: 9.387 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008023/1.218, allocations: 332 kB / 0.5183 GB, free: 9.062 MB / 426.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.004611/1.222, allocations: 1.934 MB / 0.5202 GB, free: 7.117 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009744/1.223, allocations: 359.4 kB / 0.5206 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/1.237, allocations: 4.139 MB / 0.5246 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-05/1.237, allocations: 11.97 kB / 0.5246 GB, free: 2.602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/1.237, allocations: 0 / 0.5246 GB, free: 2.602 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002527/1.239, allocations: 0.711 MB / 0.5253 GB, free: 1.867 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008326/1.24, allocations: 39.94 kB / 0.5254 GB, free: 1.828 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002605/1.243, allocations: 115.8 kB / 0.5255 GB, free: 1.715 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004776/1.243, allocations: 133.1 kB / 0.5256 GB, free: 1.586 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.2681/1.512, allocations: 4.646 MB / 0.5301 GB, free: 153.5 MB / 426.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0125/1.524, allocations: 5.796 MB / 0.5358 GB, free: 151.7 MB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003275/1.527, allocations: 1.526 MB / 0.5373 GB, free: 151.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005727/1.533, allocations: 2.687 MB / 0.5399 GB, free: 150.2 MB / 426.7 MB Notification: Performance of Backend: time 6.01e-07/1.533, allocations: 0 / 0.5399 GB, free: 150.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01146/1.545, allocations: 4.137 MB / 0.544 GB, free: 148.7 MB / 426.7 MB Notification: Performance of SimCode: time 0.02111/1.566, allocations: 10.45 MB / 0.5542 GB, free: 143.4 MB / 426.7 MB Notification: Performance of Templates: time 0.1238/1.69, allocations: 48.68 MB / 0.6017 GB, free: 99.85 MB / 426.7 MB