Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009376/0.0009376, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009148/0.0009148, allocations: 142.4 kB / 25.59 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9054/0.9054, allocations: 173.4 MB / 202.2 MB, free: 8.316 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.252e-05/1.37e-05, allocations: 5.031 kB / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.008224/0.008237, allocations: 9.887 MB / 279.1 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005566/0.0138, allocations: 3.865 MB / 283 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.0149, allocations: 75.62 kB / 283 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.01726, allocations: 2.332 MB / 285.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002835/0.0201, allocations: 1.975 MB / 287.3 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009358/0.02103, allocations: 0.842 MB / 288.2 MB, free: 6.746 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004327/0.02536, allocations: 5.859 MB / 294 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002161/0.02752, allocations: 3.014 MB / 297.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003053/0.03057, allocations: 3.31 MB / 300.4 MB, free: 10.49 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.03254, allocations: 2.369 MB / 302.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003392/0.03288, allocations: 312 kB / 303 MB, free: 7.809 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.03417, allocations: 1.151 MB / 304.2 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001144/0.03531, allocations: 2.003 MB / 306.2 MB, free: 4.648 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.03652, allocations: 1.223 MB / 307.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003366/0.03989, allocations: 4.551 MB / 312 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.03989, allocations: 0 / 312 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.0399, allocations: 0 / 312 MB, free: 14.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.939e-05/0.03996, allocations: 0 / 312 MB, free: 14.85 MB / 298.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.00562/0.04558, allocations: 4.887 MB / 316.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.04561, allocations: 12.03 kB / 316.9 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/0.05686, allocations: 2.589 MB / 319.5 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003178/0.06003, allocations: 2.267 MB / 321.7 MB, free: 4.969 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.06014, allocations: 193.4 kB / 321.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003821/0.06053, allocations: 283.7 kB / 322.2 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005319/0.06584, allocations: 4.951 MB / 327.1 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.078e-05/0.06592, allocations: 35.7 kB / 327.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/0.06615, allocations: 131.9 kB / 327.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001512/0.06766, allocations: 1.517 MB / 328.8 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003363/0.07103, allocations: 2.182 MB / 331 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.139/0.21, allocations: 38.94 MB / 369.9 MB, free: 42.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.2129, allocations: 1.239 MB / 371.2 MB, free: 42.31 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004199/0.2133, allocations: 384.3 kB / 371.6 MB, free: 42.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003866/0.2172, allocations: 3.465 MB / 375 MB, free: 41.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.2172, allocations: 48.95 kB / 375.1 MB, free: 41.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 2.445e-06/0.2172, allocations: 0.5 kB / 375.1 MB, free: 41.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01316/0.2304, allocations: 5.968 MB / 381 MB, free: 40.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.2304, allocations: 249.8 kB / 381.3 MB, free: 40.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002425/0.2328, allocations: 3.491 MB / 384.8 MB, free: 39.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.079e-05/0.2329, allocations: 46.39 kB / 384.8 MB, free: 39.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.234, allocations: 3.198 MB / 388 MB, free: 38.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003097/0.2343, allocations: 0.5735 MB / 388.6 MB, free: 37.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000906/0.2352, allocations: 1.237 MB / 389.8 MB, free: 37.69 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.415e-05/0.2352, allocations: 480.5 kB / 390.3 MB, free: 37.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007452/0.2359, allocations: 0.5158 MB / 390.8 MB, free: 37.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/0.2382, allocations: 5.745 MB / 396.6 MB, free: 30.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003479/0.2416, allocations: 6.696 MB / 403.3 MB, free: 22.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.849e-05/0.2417, allocations: 36 kB / 403.3 MB, free: 22.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.006651/0.2483, allocations: 4.509 MB / 407.8 MB, free: 19.17 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.473e-05/0.2484, allocations: 60.22 kB / 407.9 MB, free: 19.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.2485, allocations: 120.9 kB / 408 MB, free: 19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.2497, allocations: 404.2 kB / 408.4 MB, free: 18.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003109/0.2529, allocations: 1.232 MB / 409.6 MB, free: 17.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002293/0.2551, allocations: 2.758 MB / 412.4 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.257, allocations: 247.8 kB / 412.6 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001983/0.2572, allocations: 289.3 kB / 412.9 MB, free: 14.01 MB / 330.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.0007269/0.2579, allocations: 0.6142 MB / 413.5 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002893/0.2582, allocations: 352.1 kB / 413.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.2593, allocations: 0.8927 MB / 414.7 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.2593, allocations: 16 kB / 414.8 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2593, allocations: 4 kB / 414.8 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.2593, allocations: 7.969 kB / 414.8 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004159/0.2635, allocations: 4.152 MB / 418.9 MB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.2635, allocations: 8 kB / 418.9 MB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.2639, allocations: 179.7 kB / 419.1 MB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005584/0.2645, allocations: 234.2 kB / 419.3 MB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.2645, allocations: 29.33 kB / 419.4 MB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.2657, allocations: 2.48 MB / 421.8 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2658, allocations: 11.94 kB / 421.8 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.2671, allocations: 1.977 MB / 423.8 MB, free: 3.258 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/0.2674, allocations: 336 kB / 424.2 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.2676, allocations: 39.98 kB / 424.2 MB, free: 2.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006142/0.2682, allocations: 30.19 kB / 424.2 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.2683, allocations: 96.16 kB / 424.3 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.696e-05/0.2683, allocations: 37.41 kB / 424.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000957/0.2693, allocations: 1.444 MB / 425.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2693, allocations: 0 / 425.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002194/0.2715, allocations: 0.9803 MB / 426.8 MB, free: 472 kB / 330.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.000237/0.2717, allocations: 193.1 kB / 427 MB, free: 272 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002615/0.2743, allocations: 2.481 MB / 429.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2743, allocations: 0 / 429.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005374/0.2749, allocations: 0.5904 MB / 430 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.2763, allocations: 427.3 kB / 430.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00776/0.284, allocations: 6.868 MB / 437.3 MB, free: 5.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009688/0.285, allocations: 1.131 MB / 438.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009725/0.286, allocations: 459.4 kB / 438.9 MB, free: 4.254 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007252/0.2867, allocations: 0.5684 MB / 439.5 MB, free: 3.684 MB / 346.7 MB Notification: Performance of SimCode: time 8.32e-07/0.2867, allocations: 0 / 439.5 MB, free: 3.684 MB / 346.7 MB Notification: Performance of Templates: time 0.05/0.3367, allocations: 30.83 MB / 470.3 MB, free: 5.422 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.775543502997607]