Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") 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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007463/0.0007464, allocations: 88.16 kB / 16.31 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008311/0.0008311, allocations: 183.6 kB / 17.21 MB, free: 5.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.3 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.0002259, allocations: 4 kB / 300.8 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08528/0.08552, allocations: 50.42 MB / 351.3 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1997/0.2852, allocations: 34.73 MB / 386 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01738/0.3027, allocations: 8.189 MB / 394.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005959/0.3086, allocations: 166.4 kB / 394.3 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003902/0.3126, allocations: 1.762 MB / 396.1 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01429/0.3269, allocations: 5.508 MB / 401.6 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002848/0.3297, allocations: 0.6326 MB / 402.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.08123/0.411, allocations: 60.73 MB / 463 MB, free: 4.867 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005687/0.4167, allocations: 3.498 MB / 466.5 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002445/0.4192, allocations: 1.253 MB / 467.7 MB, free: 72 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002949/0.4222, allocations: 1.967 MB / 469.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006329/0.4228, allocations: 132 kB / 469.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002079/0.4249, allocations: 0.9401 MB / 470.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001884/0.4268, allocations: 1.652 MB / 472.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001195/0.428, allocations: 0.7688 MB / 473.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005209/0.4332, allocations: 5.097 MB / 478.3 MB, free: 5.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.4332, allocations: 0 / 478.3 MB, free: 5.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4333, allocations: 0 / 478.3 MB, free: 5.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001053/0.4334, allocations: 0 / 478.3 MB, free: 5.484 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.007684/0.4411, allocations: 3.926 MB / 482.2 MB, free: 1.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.4411, allocations: 8.031 kB / 482.2 MB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02194/0.4631, allocations: 3.166 MB / 485.4 MB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007313/0.4704, allocations: 3.21 MB / 488.6 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.4706, allocations: 197 kB / 488.8 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006789/0.4713, allocations: 275.7 kB / 489 MB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0138/0.4851, allocations: 8.859 MB / 497.9 MB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.4853, allocations: 47.64 kB / 498 MB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003449/0.4856, allocations: 127.9 kB / 498.1 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002882/0.4885, allocations: 1.77 MB / 499.8 MB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01382/0.5023, allocations: 7.776 MB / 0.4957 GB, free: 7.336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03997/0.5423, allocations: 36.03 MB / 0.5309 GB, free: 2.234 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1838/0.7261, allocations: 3.808 MB / 0.5346 GB, free: 155.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002816/0.729, allocations: 2.155 MB / 0.5367 GB, free: 155.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004058/0.7294, allocations: 329 kB / 0.537 GB, free: 155.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.7295, allocations: 59.09 kB / 0.5371 GB, free: 155.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.769e-06/0.7295, allocations: 1.906 kB / 0.5371 GB, free: 155.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04879/0.7783, allocations: 21.38 MB / 0.558 GB, free: 148.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.7784, allocations: 260.5 kB / 0.5582 GB, free: 148.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004034/0.7824, allocations: 3.907 MB / 0.562 GB, free: 144.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.7827, allocations: 54.95 kB / 0.5621 GB, free: 144.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.7838, allocations: 2.782 MB / 0.5648 GB, free: 142.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004935/0.7843, allocations: 0.7207 MB / 0.5655 GB, free: 141.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.7845, allocations: 118 kB / 0.5656 GB, free: 141.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.7848, allocations: 0.5419 MB / 0.5662 GB, free: 140.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00263/0.7874, allocations: 2.361 MB / 0.5685 GB, free: 138.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003929/0.7913, allocations: 5.622 MB / 0.574 GB, free: 131.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003607/0.7949, allocations: 3.561 MB / 0.5774 GB, free: 127.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-05/0.795, allocations: 36 kB / 0.5775 GB, free: 127.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01288/0.8079, allocations: 9.583 MB / 0.5868 GB, free: 118.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.727e-05/0.808, allocations: 52.19 kB / 0.5869 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.306e-05/0.808, allocations: 116 kB / 0.587 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004362/0.8124, allocations: 2.035 MB / 0.589 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003243/0.8157, allocations: 1.283 MB / 0.5902 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/0.8268, allocations: 10.53 MB / 0.6005 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003891/0.8307, allocations: 345 kB / 0.6008 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003916/0.8311, allocations: 337.1 kB / 0.6012 GB, free: 103.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (688): * Single equations (assignments): 684 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002385/0.8335, allocations: 1.934 MB / 0.603 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004318/0.8339, allocations: 355.5 kB / 0.6034 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007566/0.8415, allocations: 4.876 MB / 0.6081 GB, free: 96.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/0.8416, allocations: 28 kB / 0.6082 GB, free: 96.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.8416, allocations: 4 kB / 0.6082 GB, free: 96.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.8416, allocations: 11.97 kB / 0.6082 GB, free: 96.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.8552, allocations: 10.02 MB / 0.618 GB, free: 86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.8552, allocations: 4 kB / 0.618 GB, free: 85.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.8563, allocations: 263.6 kB / 0.6182 GB, free: 85.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004165/0.8605, allocations: 1.847 MB / 0.62 GB, free: 83.88 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.8606, allocations: 32.66 kB / 0.6201 GB, free: 83.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.8709, allocations: 9.705 MB / 0.6295 GB, free: 74.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.8709, allocations: 6.484 kB / 0.6295 GB, free: 74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/0.881, allocations: 7.927 MB / 0.6373 GB, free: 66.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008012/0.8818, allocations: 420.7 kB / 0.6377 GB, free: 65.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003993/0.8822, allocations: 28.62 kB / 0.6377 GB, free: 65.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.8836, allocations: 139.8 kB / 0.6379 GB, free: 65.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002635/0.8839, allocations: 118 kB / 0.638 GB, free: 65.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.884, allocations: 48 kB / 0.638 GB, free: 65.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002774/0.8868, allocations: 2.468 MB / 0.6404 GB, free: 62.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8868, allocations: 0 / 0.6404 GB, free: 62.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003804/0.8906, allocations: 1.069 MB / 0.6415 GB, free: 61.78 MB / 446.1 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 {(2,100.0%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003719/0.891, allocations: 160.3 kB / 0.6416 GB, free: 61.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006786/0.8978, allocations: 5.787 MB / 0.6473 GB, free: 55.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.8978, allocations: 4 kB / 0.6473 GB, free: 55.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002399/0.9002, allocations: 2.085 MB / 0.6493 GB, free: 53.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.9025, allocations: 452.5 kB / 0.6497 GB, free: 53.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/0.9142, allocations: 10.95 MB / 0.6604 GB, free: 42.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002383/0.9166, allocations: 3.089 MB / 0.6635 GB, free: 39.19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003621/0.9202, allocations: 1.815 MB / 0.6652 GB, free: 37.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005799/0.9208, allocations: 239.4 kB / 0.6655 GB, free: 37.13 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.9208, allocations: 0 / 0.6655 GB, free: 37.13 MB / 446.1 MB Notification: Performance of Templates: time 0.2351/1.156, allocations: 41.72 MB / 0.7062 GB, free: 139.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches