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.001494/0.001494, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.001795/0.001795, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.9529/0.9529, allocations: 177 MB / 204.8 MB, free: 5.594 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.583e-06/1.583e-06, allocations: 0 / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.619e-05/2.777e-05, allocations: 5.266 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01192/0.01195, allocations: 10.16 MB / 283.1 MB, free: 7.246 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007408/0.01936, allocations: 3.901 MB / 287 MB, free: 3.332 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.02076, allocations: 79.56 kB / 287.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003511/0.02427, allocations: 2.379 MB / 289.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1239/0.1482, allocations: 1.931 MB / 291.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.1496, allocations: 0.8366 MB / 292.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00632/0.1559, allocations: 5.993 MB / 298.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002795/0.1587, allocations: 3.016 MB / 301.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003092/0.1618, allocations: 3.273 MB / 304.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/0.1638, allocations: 2.365 MB / 306.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003752/0.1642, allocations: 313.6 kB / 307.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.1653, allocations: 1.138 MB / 308.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008417/0.1662, allocations: 1.986 MB / 310.3 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008467/0.167, allocations: 1.207 MB / 311.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002513/0.1695, allocations: 4.507 MB / 316 MB, free: 4.824 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1695, allocations: 0 / 316 MB, free: 4.824 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1695, allocations: 0 / 316 MB, free: 4.824 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.15e-05/0.1696, allocations: 0 / 316 MB, free: 4.824 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.004656/0.1742, allocations: 5.178 MB / 321.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1743, allocations: 11.98 kB / 321.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01181/0.1861, allocations: 3.504 MB / 324.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002918/0.189, allocations: 2.587 MB / 327.3 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.684e-05/0.1891, allocations: 198.7 kB / 327.5 MB, free: 9.566 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003159/0.1894, allocations: 272.2 kB / 327.7 MB, free: 9.332 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005851/0.1953, allocations: 5.429 MB / 333.2 MB, free: 3.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.955e-05/0.1953, allocations: 49 kB / 333.2 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/0.1956, allocations: 123.6 kB / 333.3 MB, free: 3.059 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001399/0.197, allocations: 1.661 MB / 335 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005069/0.2021, allocations: 2.769 MB / 337.8 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02574/0.2278, allocations: 39.32 MB / 377.1 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003084/0.2309, allocations: 1.419 MB / 378.5 MB, free: 5.227 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005711/0.2315, allocations: 461.1 kB / 379 MB, free: 4.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004086/0.2355, allocations: 3.687 MB / 382.6 MB, free: 1.078 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.2356, allocations: 48.86 kB / 382.7 MB, free: 1.023 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 2.796e-06/0.2356, allocations: 4 kB / 382.7 MB, free: 1.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01672/0.2523, allocations: 9.317 MB / 392 MB, free: 7.672 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/0.2524, allocations: 250.8 kB / 392.3 MB, free: 7.371 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003122/0.2555, allocations: 3.511 MB / 395.8 MB, free: 3.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.846e-05/0.2556, allocations: 48.83 kB / 395.8 MB, free: 3.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.2573, allocations: 3.157 MB / 399 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003677/0.2577, allocations: 0.5786 MB / 399.5 MB, free: 96 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009799/0.2586, allocations: 1.207 MB / 400.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.174e-05/0.2587, allocations: 480.8 kB / 401.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008971/0.2596, allocations: 0.5768 MB / 401.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003261/0.2629, allocations: 5.768 MB / 407.6 MB, free: 5.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004823/0.2677, allocations: 6.851 MB / 414.4 MB, free: 12.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.716e-05/0.2678, allocations: 36 kB / 414.5 MB, free: 12.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005686/0.2734, allocations: 4.883 MB / 419.3 MB, free: 7.621 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.2735, allocations: 56 kB / 419.4 MB, free: 7.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.427e-05/0.2736, allocations: 120 kB / 419.5 MB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009114/0.2745, allocations: 468.2 kB / 420 MB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/0.2765, allocations: 1.279 MB / 421.2 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.2791, allocations: 2.905 MB / 424.2 MB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/0.2812, allocations: 387.4 kB / 424.5 MB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002728/0.2815, allocations: 336 kB / 424.9 MB, free: 1.977 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009141/0.2824, allocations: 0.606 MB / 425.5 MB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003129/0.2827, allocations: 349.9 kB / 425.8 MB, free: 1.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.2842, allocations: 1.003 MB / 426.8 MB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.2843, allocations: 16 kB / 426.8 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2843, allocations: 4 kB / 426.8 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.2843, allocations: 7.984 kB / 426.8 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005475/0.2897, allocations: 4.319 MB / 431.2 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2898, allocations: 4.781 kB / 431.2 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.2902, allocations: 215.7 kB / 431.4 MB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008931/0.2911, allocations: 274.9 kB / 431.6 MB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.036e-05/0.2912, allocations: 31.92 kB / 431.7 MB, free: 11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001782/0.293, allocations: 2.58 MB / 434.3 MB, free: 8.309 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.293, allocations: 11.94 kB / 434.3 MB, free: 8.297 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.2949, allocations: 2.125 MB / 436.4 MB, free: 6.039 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.2953, allocations: 337.7 kB / 436.7 MB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.2955, allocations: 32 kB / 436.7 MB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006788/0.2961, allocations: 130.8 kB / 436.9 MB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.2963, allocations: 96.17 kB / 437 MB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.288e-05/0.2963, allocations: 43.94 kB / 437 MB, free: 5.414 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001871/0.2982, allocations: 1.551 MB / 438.6 MB, free: 3.875 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2982, allocations: 4 kB / 438.6 MB, free: 3.871 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002563/0.3008, allocations: 0.957 MB / 439.5 MB, free: 2.914 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (revolute1.w,damper.phi_rel,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 (105): * Single equations (assignments): 101 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003607/0.3011, allocations: 187.3 kB / 439.7 MB, free: 2.723 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003798/0.3049, allocations: 2.656 MB / 442.4 MB, free: 72 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3049, allocations: 4 kB / 442.4 MB, free: 68 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1122/0.4171, allocations: 0.6319 MB / 443 MB, free: 130.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/0.4192, allocations: 421.4 kB / 443.4 MB, free: 130.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008511/0.4277, allocations: 6.885 MB / 450.3 MB, free: 127.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.4288, allocations: 1.125 MB / 451.4 MB, free: 127.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002565/0.4314, allocations: 1.461 MB / 452.9 MB, free: 127.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000758/0.4321, allocations: 214.5 kB / 453.1 MB, free: 127.3 MB / 394.7 MB Notification: Performance of SimCode: time 2.124e-06/0.4321, allocations: 4 kB / 453.1 MB, free: 127.3 MB / 394.7 MB Notification: Performance of Templates: time 0.0405/0.4726, allocations: 28.36 MB / 481.5 MB, free: 108.3 MB / 394.7 MB " [Timeout remaining time 660] 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.709388060029596]