Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009311/0.0009311, allocations: 95.17 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 201.5 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002335, allocations: 8 kB / 308.4 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09417, allocations: 51.52 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.207/0.3012, allocations: 37.07 MB / 397 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02113/0.3224, allocations: 8.513 MB / 405.5 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00721/0.3297, allocations: 166.8 kB / 405.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.3311, allocations: 386.5 kB / 406 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004953/0.3361, allocations: 1.724 MB / 407.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.3378, allocations: 0.684 MB / 408.4 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008126/0.346, allocations: 7.289 MB / 415.7 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005069/0.3511, allocations: 3.874 MB / 419.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001956/0.353, allocations: 1.124 MB / 420.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00249/0.3555, allocations: 1.978 MB / 422.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003934/0.3559, allocations: 132 kB / 422.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001952/0.3579, allocations: 1.065 MB / 423.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001595/0.3595, allocations: 1.683 MB / 425.6 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001903/0.3614, allocations: 1.857 MB / 427.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005512/0.367, allocations: 5.062 MB / 432.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.367, allocations: 0 / 432.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.367, allocations: 0 / 432.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001528/0.3672, allocations: 4 kB / 432.5 MB, free: 2.234 MB / 334.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.00907/0.3762, allocations: 3.867 MB / 436.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/0.3763, allocations: 8.031 kB / 436.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02705/0.4034, allocations: 3.155 MB / 439.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007257/0.4107, allocations: 3.222 MB / 442.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.4109, allocations: 197 kB / 443 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007535/0.4116, allocations: 275.6 kB / 443.2 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/0.4254, allocations: 8.874 MB / 452.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001227/0.4255, allocations: 51.58 kB / 452.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003526/0.4259, allocations: 131.9 kB / 452.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002957/0.4289, allocations: 1.77 MB / 454 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.4427, allocations: 7.804 MB / 461.9 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04073/0.4835, allocations: 36.03 MB / 497.9 MB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007937/0.4915, allocations: 3.829 MB / 0.49 GB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002669/0.4942, allocations: 2.166 MB / 0.4921 GB, free: 8.832 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000409/0.4946, allocations: 324.1 kB / 0.4924 GB, free: 8.461 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.4947, allocations: 59.48 kB / 0.4924 GB, free: 8.391 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 5.039e-06/0.4947, allocations: 0 / 0.4924 GB, free: 8.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05382/0.5485, allocations: 21.38 MB / 0.5133 GB, free: 2.895 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.5487, allocations: 252.6 kB / 0.5136 GB, free: 2.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004963/0.5537, allocations: 3.926 MB / 0.5174 GB, free: 14.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000236/0.5539, allocations: 57.7 kB / 0.5174 GB, free: 14.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001845/0.5558, allocations: 2.779 MB / 0.5202 GB, free: 11.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007103/0.5565, allocations: 0.725 MB / 0.5209 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006091/0.5571, allocations: 498.6 kB / 0.5213 GB, free: 10.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.5572, allocations: 313 kB / 0.5216 GB, free: 10.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003171/0.5604, allocations: 2.377 MB / 0.524 GB, free: 7.879 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005188/0.5656, allocations: 5.644 MB / 0.5295 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2057/0.7713, allocations: 8.568 MB / 0.5378 GB, free: 134.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-05/0.7715, allocations: 32.12 kB / 0.5379 GB, free: 134.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01857/0.7901, allocations: 9.622 MB / 0.5473 GB, free: 131.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.967e-05/0.7902, allocations: 53.62 kB / 0.5473 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001652/0.7904, allocations: 113.6 kB / 0.5474 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005747/0.7961, allocations: 2.022 MB / 0.5494 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004108/0.8002, allocations: 1.278 MB / 0.5506 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.8122, allocations: 10.6 MB / 0.561 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004145/0.8164, allocations: 350.9 kB / 0.5613 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006364/0.8171, allocations: 342.6 kB / 0.5617 GB, free: 126.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002651/0.8197, allocations: 1.937 MB / 0.5636 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005612/0.8203, allocations: 345.3 kB / 0.5639 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008403/0.8287, allocations: 4.885 MB / 0.5687 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.802e-05/0.8288, allocations: 20.55 kB / 0.5687 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.8288, allocations: 8 kB / 0.5687 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/0.8288, allocations: 11.97 kB / 0.5687 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/0.8437, allocations: 10.02 MB / 0.5785 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.8438, allocations: 4 kB / 0.5785 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.845, allocations: 275.5 kB / 0.5787 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004622/0.8496, allocations: 1.846 MB / 0.5806 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002235/0.8498, allocations: 37.8 kB / 0.5806 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.8602, allocations: 9.71 MB / 0.5901 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.8602, allocations: 7.969 kB / 0.5901 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/0.8708, allocations: 7.946 MB / 0.5978 GB, free: 92.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009152/0.8718, allocations: 416.4 kB / 0.5982 GB, free: 91.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003674/0.8721, allocations: 33.25 kB / 0.5983 GB, free: 91.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.8737, allocations: 140.5 kB / 0.5984 GB, free: 91.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003248/0.874, allocations: 109.1 kB / 0.5985 GB, free: 91.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.8741, allocations: 53.47 kB / 0.5986 GB, free: 91.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002707/0.8768, allocations: 2.48 MB / 0.601 GB, free: 88.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.8769, allocations: 0 / 0.601 GB, free: 88.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003724/0.8806, allocations: 1.049 MB / 0.602 GB, free: 87.88 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003943/0.881, allocations: 171 kB / 0.6022 GB, free: 87.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006898/0.8879, allocations: 5.803 MB / 0.6078 GB, free: 81.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.8879, allocations: 4 kB / 0.6078 GB, free: 81.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002301/0.8902, allocations: 2.096 MB / 0.6099 GB, free: 79.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/0.8932, allocations: 441.3 kB / 0.6103 GB, free: 79.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.9062, allocations: 11.71 MB / 0.6217 GB, free: 67.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.9087, allocations: 3.063 MB / 0.6247 GB, free: 64.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009931/0.9097, allocations: 275.4 kB / 0.625 GB, free: 64.29 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.9097, allocations: 0 / 0.625 GB, free: 64.29 MB / 446.1 MB Notification: Performance of Templates: time 0.2741/1.184, allocations: 72.98 MB / 0.6963 GB, free: 146.8 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches