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.001011/0.001011, allocations: 87.67 kB / 21.2 MB, free: 3.367 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.0009414/0.0009414, allocations: 156.5 kB / 24.55 MB, free: 12 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.9433/0.9433, allocations: 177 MB / 204.8 MB, free: 5.586 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.643e-06/1.643e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.284e-05/2.449e-05, allocations: 5.266 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.008726/0.00875, allocations: 10.16 MB / 283.1 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006039/0.01479, allocations: 3.905 MB / 287 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008031/0.01559, allocations: 83.56 kB / 287.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00256/0.01815, allocations: 2.375 MB / 289.4 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1266/0.1447, allocations: 1.926 MB / 291.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.1462, allocations: 0.8323 MB / 292.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005888/0.152, allocations: 5.998 MB / 298.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002739/0.1548, allocations: 3.019 MB / 301.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002363/0.1571, allocations: 2.305 MB / 303.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002086/0.1592, allocations: 2.4 MB / 305.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000412/0.1596, allocations: 310.5 kB / 306.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001146/0.1608, allocations: 1.137 MB / 307.4 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008589/0.1616, allocations: 1.984 MB / 309.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008295/0.1625, allocations: 1.208 MB / 310.5 MB, free: 9.562 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002728/0.1652, allocations: 4.5 MB / 315 MB, free: 5.637 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1652, allocations: 0 / 315 MB, free: 5.637 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1652, allocations: 0 / 315 MB, free: 5.637 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.078e-05/0.1653, allocations: 0 / 315 MB, free: 5.637 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.004786/0.1701, allocations: 5.118 MB / 320.2 MB, free: 0.543 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1701, allocations: 15.98 kB / 320.2 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0124/0.1825, allocations: 3.584 MB / 323.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004215/0.1867, allocations: 2.928 MB / 326.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.887e-05/0.1868, allocations: 203.8 kB / 326.9 MB, free: 9.977 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000347/0.1872, allocations: 272.6 kB / 327.2 MB, free: 9.742 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006203/0.1934, allocations: 5.438 MB / 332.6 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.382e-05/0.1935, allocations: 39.55 kB / 332.6 MB, free: 3.562 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/0.1937, allocations: 132.6 kB / 332.8 MB, free: 3.465 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001769/0.1955, allocations: 1.762 MB / 334.5 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005668/0.2011, allocations: 2.957 MB / 337.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02829/0.2294, allocations: 39.01 MB / 376.5 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003637/0.2331, allocations: 1.662 MB / 378.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008258/0.2339, allocations: 0.6477 MB / 378.8 MB, free: 4.844 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002009/0.2341, allocations: 100.2 kB / 378.9 MB, free: 4.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.2341, allocations: 50.39 kB / 379 MB, free: 4.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 3.917e-06/0.2341, allocations: 0 / 379 MB, free: 4.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.02777/0.2619, allocations: 14.9 MB / 393.9 MB, free: 5.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.262, allocations: 256.6 kB / 394.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003654/0.2657, allocations: 3.383 MB / 397.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.2658, allocations: 53.7 kB / 397.5 MB, free: 2.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/0.2672, allocations: 3.041 MB / 400.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005785/0.2678, allocations: 0.78 MB / 401.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001425/0.2692, allocations: 1.255 MB / 402.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.2694, allocations: 476.8 kB / 403.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.2705, allocations: 0.7647 MB / 403.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003481/0.274, allocations: 5.687 MB / 409.5 MB, free: 3.832 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005381/0.2794, allocations: 6.985 MB / 416.5 MB, free: 10.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.293e-05/0.2794, allocations: 43.69 kB / 416.6 MB, free: 10.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.008929/0.2883, allocations: 6.107 MB / 422.7 MB, free: 4.535 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.218e-05/0.2884, allocations: 52 kB / 422.7 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-05/0.2885, allocations: 116.2 kB / 422.8 MB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003202/0.2917, allocations: 1.38 MB / 424.2 MB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002197/0.2939, allocations: 1.291 MB / 425.5 MB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006199/0.3001, allocations: 4.98 MB / 430.5 MB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002348/0.3024, allocations: 415.3 kB / 430.9 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003138/0.3027, allocations: 332 kB / 431.2 MB, free: 11.87 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.001025/0.3038, allocations: 0.611 MB / 431.8 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004585/0.3042, allocations: 385.8 kB / 432.2 MB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004339/0.3086, allocations: 2.564 MB / 434.8 MB, free: 8.281 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.122e-05/0.3086, allocations: 20 kB / 434.8 MB, free: 8.262 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.3086, allocations: 8 kB / 434.8 MB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.3086, allocations: 11.91 kB / 434.8 MB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008889/0.3175, allocations: 6.396 MB / 441.2 MB, free: 1.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.3175, allocations: 0 / 441.2 MB, free: 1.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006725/0.3182, allocations: 271.6 kB / 441.5 MB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003121/0.3213, allocations: 1.208 MB / 442.7 MB, free: 348 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.3214, allocations: 35.91 kB / 442.7 MB, free: 316 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1478/0.4692, allocations: 4.21 MB / 446.9 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.4692, allocations: 6.984 kB / 446.9 MB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006442/0.4756, allocations: 3.692 MB / 450.6 MB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007563/0.4764, allocations: 343.8 kB / 450.9 MB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002596/0.4767, allocations: 31.77 kB / 451 MB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.4777, allocations: 199.4 kB / 451.2 MB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002663/0.478, allocations: 118.9 kB / 451.3 MB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.4781, allocations: 49.86 kB / 451.3 MB, free: 121.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001942/0.48, allocations: 1.505 MB / 452.8 MB, free: 121.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.839e-05/0.48, allocations: 1.906 kB / 452.8 MB, free: 121.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003488/0.4835, allocations: 1.191 MB / 454 MB, free: 121.4 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.0004204/0.484, allocations: 189.8 kB / 454.2 MB, free: 121.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004332/0.4883, allocations: 3.331 MB / 457.6 MB, free: 121 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4883, allocations: 0 / 457.6 MB, free: 121 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.4895, allocations: 1.085 MB / 458.6 MB, free: 120.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.491, allocations: 440.4 kB / 459.1 MB, free: 120.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008324/0.4993, allocations: 7.435 MB / 466.5 MB, free: 118.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008694/0.5002, allocations: 1.161 MB / 467.7 MB, free: 117.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001992/0.5022, allocations: 1.513 MB / 469.2 MB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004718/0.5026, allocations: 225.8 kB / 469.4 MB, free: 117.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.833e-06/0.5026, allocations: 4 kB / 469.4 MB, free: 117.8 MB / 394.7 MB Notification: Performance of Templates: time 0.04732/0.5499, allocations: 42.27 MB / 0.4997 GB, free: 78.63 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: 4.080640892032534]