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.001269/0.001269, allocations: 114.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.84 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2111, allocations: 50.55 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01026/0.2214, allocations: 10.39 MB / 420.3 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006043/0.2275, allocations: 3.96 MB / 424.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005967/0.2281, allocations: 67.75 kB / 424.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003615/0.2317, allocations: 2.204 MB / 426.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002968/0.2347, allocations: 1.821 MB / 428.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2359, allocations: 0.7486 MB / 429.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005427/0.2413, allocations: 5.253 MB / 434.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002718/0.2441, allocations: 2.879 MB / 437.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.2455, allocations: 1.476 MB / 438.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002082/0.2476, allocations: 2.033 MB / 440.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004398/0.2481, allocations: 300 kB / 441.1 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.2498, allocations: 1.182 MB / 442.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001442/0.2513, allocations: 1.859 MB / 444.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.2529, allocations: 2.047 MB / 446.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005405/0.2583, allocations: 6.63 MB / 452.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2583, allocations: 3.984 kB / 452.8 MB, free: 6.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2584, allocations: 0 / 452.8 MB, free: 6.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.508e-05/0.2584, allocations: 0 / 452.8 MB, free: 6.535 MB / 366.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.007639/0.2661, allocations: 4.662 MB / 457.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.2661, allocations: 8.031 kB / 457.5 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02378/0.2899, allocations: 3.081 MB / 460.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006932/0.2968, allocations: 3.291 MB / 463.8 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.297, allocations: 197 kB / 464 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004767/0.2975, allocations: 267.7 kB / 464.3 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.3094, allocations: 8.866 MB / 473.2 MB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.785e-05/0.3095, allocations: 47.59 kB / 473.2 MB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003275/0.3098, allocations: 127.9 kB / 473.3 MB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002852/0.3127, allocations: 1.763 MB / 475.1 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/0.3254, allocations: 7.792 MB / 482.9 MB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03612/0.3615, allocations: 35.86 MB / 0.5066 GB, free: 2.695 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007717/0.3692, allocations: 3.809 MB / 0.5103 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.3717, allocations: 2.158 MB / 0.5124 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003774/0.3721, allocations: 340.2 kB / 0.5127 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.3722, allocations: 51.44 kB / 0.5128 GB, free: 12.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.058e-06/0.3722, allocations: 0 / 0.5128 GB, free: 12.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05442/0.4266, allocations: 21.4 MB / 0.5337 GB, free: 6.602 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.4267, allocations: 248.6 kB / 0.5339 GB, free: 6.305 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005178/0.4319, allocations: 3.93 MB / 0.5378 GB, free: 2.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/0.4321, allocations: 53.7 kB / 0.5378 GB, free: 2.332 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.179/0.6111, allocations: 2.769 MB / 0.5405 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009309/0.6121, allocations: 0.7261 MB / 0.5412 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002502/0.6146, allocations: 1.176 MB / 0.5424 GB, free: 124.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.523e-05/0.6146, allocations: 305.7 kB / 0.5427 GB, free: 123.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003279/0.6179, allocations: 2.381 MB / 0.545 GB, free: 123.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003822/0.6218, allocations: 5.639 MB / 0.5505 GB, free: 118 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006888/0.6287, allocations: 8.575 MB / 0.5589 GB, free: 111.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.547e-05/0.6288, allocations: 31.25 kB / 0.5589 GB, free: 111.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01364/0.6424, allocations: 9.635 MB / 0.5683 GB, free: 105.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.229e-05/0.6425, allocations: 52 kB / 0.5684 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.6426, allocations: 119.9 kB / 0.5685 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004735/0.6473, allocations: 2.014 MB / 0.5704 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00322/0.6506, allocations: 1.277 MB / 0.5717 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.6623, allocations: 11.35 MB / 0.5828 GB, free: 90.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003579/0.6659, allocations: 343.4 kB / 0.5831 GB, free: 90.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003534/0.6663, allocations: 339.7 kB / 0.5834 GB, free: 90.33 MB / 462.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.00202/0.6683, allocations: 1.941 MB / 0.5853 GB, free: 88.38 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004401/0.6688, allocations: 347.6 kB / 0.5857 GB, free: 88.03 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007948/0.6767, allocations: 4.899 MB / 0.5904 GB, free: 83.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.6768, allocations: 7.969 kB / 0.5904 GB, free: 83.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.6768, allocations: 0 / 0.5904 GB, free: 83.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004966/0.6773, allocations: 408.2 kB / 0.5908 GB, free: 82.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003676/0.6776, allocations: 28 kB / 0.5909 GB, free: 82.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.6791, allocations: 135.8 kB / 0.591 GB, free: 82.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000278/0.6794, allocations: 140.7 kB / 0.5911 GB, free: 82.4 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008163/0.6875, allocations: 5.298 MB / 0.5963 GB, free: 77.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005788/0.6934, allocations: 6.185 MB / 0.6023 GB, free: 70.92 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001526/0.6949, allocations: 1.657 MB / 0.604 GB, free: 69.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002534/0.6974, allocations: 2.488 MB / 0.6064 GB, free: 66.8 MB / 462.1 MB Notification: Performance of Backend: time 4.31e-07/0.6974, allocations: 0 / 0.6064 GB, free: 66.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006857/0.7043, allocations: 4.561 MB / 0.6108 GB, free: 62.26 MB / 462.1 MB Notification: Performance of SimCode: time 0.00935/0.7137, allocations: 8.917 MB / 0.6195 GB, free: 53.32 MB / 462.1 MB Notification: Performance of Templates: time 0.06529/0.779, allocations: 52.66 MB / 0.671 GB, free: 0.8867 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