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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009902/0.0009902, allocations: 75.69 kB / 21.7 MB, free: 2.84 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 161.6 kB / 24.99 MB, free: 8.797 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9477/0.9477, allocations: 177 MB / 205.2 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.311e-05, allocations: 6.312 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01923/0.01926, allocations: 10.12 MB / 283.1 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009647/0.0289, allocations: 3.894 MB / 287 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.03006, allocations: 83.56 kB / 287.1 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002694/0.03275, allocations: 2.363 MB / 289.5 MB, free: 1.234 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1176/0.1504, allocations: 1.928 MB / 291.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.1518, allocations: 0.8329 MB / 292.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006089/0.1579, allocations: 5.997 MB / 298.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002921/0.1608, allocations: 3.008 MB / 301.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.1635, allocations: 2.308 MB / 303.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002226/0.1657, allocations: 2.402 MB / 305.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003943/0.1661, allocations: 309.2 kB / 306.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.1673, allocations: 1.139 MB / 307.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009397/0.1683, allocations: 1.984 MB / 309.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008233/0.1691, allocations: 1.211 MB / 310.6 MB, free: 9.672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003013/0.1721, allocations: 4.487 MB / 315.1 MB, free: 5.887 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1721, allocations: 0 / 315.1 MB, free: 5.887 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1721, allocations: 0 / 315.1 MB, free: 5.887 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.638e-05/0.1722, allocations: 0 / 315.1 MB, free: 5.887 MB / 266.7 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.004797/0.177, allocations: 5.129 MB / 320.2 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.177, allocations: 15.98 kB / 320.2 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01251/0.1895, allocations: 3.58 MB / 323.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004466/0.194, allocations: 2.938 MB / 326.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1941, allocations: 195.1 kB / 326.9 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003449/0.1944, allocations: 275.8 kB / 327.2 MB, free: 9.984 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006967/0.2014, allocations: 5.436 MB / 332.6 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-05/0.2015, allocations: 48.25 kB / 332.7 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002553/0.2017, allocations: 127.9 kB / 332.8 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001863/0.2036, allocations: 1.776 MB / 334.6 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005337/0.2089, allocations: 2.947 MB / 337.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02563/0.2346, allocations: 39 MB / 376.5 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003808/0.2384, allocations: 1.657 MB / 378.2 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000836/0.2392, allocations: 0.6604 MB / 378.8 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002057/0.2394, allocations: 92.95 kB / 378.9 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.2395, allocations: 57.66 kB / 379 MB, free: 4.922 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 5.279e-06/0.2395, allocations: 0 / 379 MB, free: 4.922 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.02814/0.2676, allocations: 14.89 MB / 393.9 MB, free: 6.047 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.274e-05/0.2677, allocations: 256.1 kB / 394.1 MB, free: 5.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/0.2708, allocations: 3.383 MB / 397.5 MB, free: 2.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.271, allocations: 56.75 kB / 397.6 MB, free: 2.293 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.2724, allocations: 3.035 MB / 400.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005645/0.2729, allocations: 0.7878 MB / 401.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/0.274, allocations: 1.252 MB / 402.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.2741, allocations: 480.8 kB / 403.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.2753, allocations: 0.7646 MB / 403.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00327/0.2786, allocations: 5.678 MB / 409.5 MB, free: 4.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006037/0.2846, allocations: 6.995 MB / 416.5 MB, free: 10.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.769e-05/0.2847, allocations: 39.92 kB / 416.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01105/0.2957, allocations: 6.109 MB / 422.7 MB, free: 4.797 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.755e-05/0.2958, allocations: 52 kB / 422.7 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/0.2959, allocations: 116 kB / 422.9 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004172/0.3001, allocations: 1.376 MB / 424.2 MB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003014/0.3031, allocations: 1.283 MB / 425.5 MB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007772/0.3108, allocations: 4.991 MB / 430.5 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/0.314, allocations: 403.4 kB / 430.9 MB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004097/0.3144, allocations: 340 kB / 431.2 MB, free: 12.14 MB / 394.7 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.001159/0.3155, allocations: 0.6109 MB / 431.8 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005822/0.3161, allocations: 392.5 kB / 432.2 MB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00547/0.3216, allocations: 2.56 MB / 434.8 MB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.3216, allocations: 20 kB / 434.8 MB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.3216, allocations: 11.98 kB / 434.8 MB, free: 8.516 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.3216, allocations: 7.969 kB / 434.8 MB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/0.3326, allocations: 6.394 MB / 441.2 MB, free: 2.094 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.3326, allocations: 0 / 441.2 MB, free: 2.094 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009001/0.3335, allocations: 267.6 kB / 441.5 MB, free: 1.832 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003826/0.3374, allocations: 1.208 MB / 442.7 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.3375, allocations: 28 kB / 442.7 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1193/0.4568, allocations: 4.222 MB / 446.9 MB, free: 127.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4568, allocations: 5.172 kB / 446.9 MB, free: 127.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006074/0.4629, allocations: 3.698 MB / 450.6 MB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005568/0.4635, allocations: 349.8 kB / 451 MB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002986/0.4637, allocations: 28.45 kB / 451 MB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009949/0.4647, allocations: 195.1 kB / 451.2 MB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/0.465, allocations: 120.7 kB / 451.3 MB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.9e-05/0.4651, allocations: 51.75 kB / 451.4 MB, free: 127.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001769/0.4669, allocations: 1.505 MB / 452.9 MB, free: 126.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4669, allocations: 5.156 kB / 452.9 MB, free: 126.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002945/0.4698, allocations: 1.194 MB / 454.1 MB, free: 126.9 MB / 394.7 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.000368/0.4702, allocations: 170 kB / 454.2 MB, free: 126.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004551/0.4748, allocations: 3.334 MB / 457.6 MB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4748, allocations: 3.531 kB / 457.6 MB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.4762, allocations: 1.094 MB / 458.7 MB, free: 126 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.4781, allocations: 436.5 kB / 459.1 MB, free: 126 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008904/0.487, allocations: 7.433 MB / 466.5 MB, free: 122.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00095/0.4879, allocations: 1.162 MB / 467.7 MB, free: 122.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002505/0.4904, allocations: 1.518 MB / 469.2 MB, free: 122.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005458/0.491, allocations: 237.3 kB / 469.4 MB, free: 121.9 MB / 394.7 MB Notification: Performance of SimCode: time 9.52e-07/0.491, allocations: 0 / 469.4 MB, free: 121.9 MB / 394.7 MB Notification: Performance of Templates: time 0.06933/0.5603, allocations: 42.26 MB / 0.4997 GB, free: 81.21 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.934450414031744]