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.001849/0.001849, allocations: 95.59 kB / 20.97 MB, free: 3.445 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.001905/0.001905, allocations: 156.9 kB / 24.27 MB, free: 152 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 1.539/1.539, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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.763e-06/1.763e-06, allocations: 0 / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.057e-05, allocations: 2.312 kB / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0256/0.02563, allocations: 10.09 MB / 282.3 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01513/0.04076, allocations: 3.89 MB / 286.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.04303, allocations: 79.56 kB / 286.3 MB, free: 3.684 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009365/0.0524, allocations: 2.355 MB / 288.6 MB, free: 1.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1459/0.1983, allocations: 1.934 MB / 290.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001749/0.2001, allocations: 0.8369 MB / 291.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007816/0.2079, allocations: 5.996 MB / 297.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003129/0.211, allocations: 3.013 MB / 300.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003011/0.214, allocations: 2.306 MB / 302.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0027/0.2167, allocations: 2.4 MB / 305.1 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004971/0.2172, allocations: 312 kB / 305.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001676/0.2189, allocations: 1.132 MB / 306.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001224/0.2201, allocations: 1.983 MB / 308.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.2213, allocations: 1.209 MB / 309.7 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004728/0.226, allocations: 6.799 MB / 316.5 MB, free: 3.645 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.226, allocations: 4 kB / 316.5 MB, free: 3.641 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.226, allocations: 4 kB / 316.5 MB, free: 3.637 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.764e-05/0.2261, allocations: 0 / 316.5 MB, free: 3.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.009458/0.2355, allocations: 5.529 MB / 322.1 MB, free: 14.13 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.2356, allocations: 11.98 kB / 322.1 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02993/0.2655, allocations: 3.576 MB / 325.7 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009218/0.2747, allocations: 3.023 MB / 328.7 MB, free: 7.652 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.2749, allocations: 197.7 kB / 328.9 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007058/0.2756, allocations: 268.3 kB / 329.1 MB, free: 7.258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.2873, allocations: 5.826 MB / 335 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002374/0.2876, allocations: 45.33 kB / 335 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003569/0.2879, allocations: 128.2 kB / 335.1 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003485/0.2914, allocations: 1.767 MB / 336.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009599/0.301, allocations: 3.248 MB / 340.1 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05443/0.3554, allocations: 42.4 MB / 382.6 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006697/0.3621, allocations: 1.747 MB / 384.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.3636, allocations: 0.6632 MB / 385 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003353/0.3639, allocations: 96.81 kB / 385.1 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/0.364, allocations: 57.48 kB / 385.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 4.118e-06/0.364, allocations: 0 / 385.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=190): time 0.05361/0.4176, allocations: 15.12 MB / 400.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001798/0.4178, allocations: 248.6 kB / 400.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00671/0.4245, allocations: 4.223 MB / 404.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003997/0.4249, allocations: 53.7 kB / 404.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003079/0.428, allocations: 3.236 MB / 408 MB, free: 7.027 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001436/0.4294, allocations: 0.8308 MB / 408.8 MB, free: 6.207 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002316/0.4317, allocations: 1.475 MB / 410.3 MB, free: 4.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002362/0.4319, allocations: 480.8 kB / 410.8 MB, free: 4.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002008/0.434, allocations: 0.835 MB / 411.6 MB, free: 3.402 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006981/0.4409, allocations: 5.946 MB / 417.5 MB, free: 11.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.4517, allocations: 7.487 MB / 425 MB, free: 1.641 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/0.4518, allocations: 43.94 kB / 425.1 MB, free: 1.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01572/0.4676, allocations: 6.264 MB / 431.3 MB, free: 11.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.849e-05/0.4677, allocations: 56.19 kB / 431.4 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/0.4678, allocations: 116 kB / 431.5 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005844/0.4736, allocations: 1.403 MB / 432.9 MB, free: 9.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004284/0.4779, allocations: 1.287 MB / 434.2 MB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.4886, allocations: 5.215 MB / 439.4 MB, free: 3.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004264/0.4929, allocations: 407.4 kB / 439.8 MB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000681/0.4936, allocations: 343 kB / 440.1 MB, free: 2.398 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.001695/0.4953, allocations: 0.6852 MB / 440.8 MB, free: 1.699 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008113/0.4961, allocations: 385.7 kB / 441.2 MB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1245/0.6206, allocations: 2.619 MB / 443.8 MB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.82e-05/0.6206, allocations: 21.12 kB / 443.8 MB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/0.6206, allocations: 7.469 kB / 443.9 MB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.633e-05/0.6207, allocations: 11.55 kB / 443.9 MB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/0.6383, allocations: 7.303 MB / 451.2 MB, free: 125.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.6383, allocations: 1.781 kB / 451.2 MB, free: 125.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.6396, allocations: 266.3 kB / 451.4 MB, free: 125.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005499/0.6451, allocations: 1.227 MB / 452.7 MB, free: 125.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004079/0.6456, allocations: 31.59 kB / 452.7 MB, free: 125.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008456/0.654, allocations: 4.434 MB / 457.1 MB, free: 123.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.654, allocations: 0 / 457.1 MB, free: 123.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008297/0.6623, allocations: 3.861 MB / 461 MB, free: 122.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.6634, allocations: 353.1 kB / 461.3 MB, free: 122.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004357/0.6638, allocations: 27.5 kB / 461.4 MB, free: 122.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/0.6656, allocations: 195.2 kB / 461.5 MB, free: 122 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/0.666, allocations: 114.4 kB / 461.7 MB, free: 122 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.6662, allocations: 49.78 kB / 461.7 MB, free: 122 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002504/0.6687, allocations: 1.79 MB / 463.5 MB, free: 121.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.6687, allocations: 0 / 463.5 MB, free: 121.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004419/0.6731, allocations: 1.199 MB / 464.7 MB, free: 121.2 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.0004281/0.6735, allocations: 178.5 kB / 464.9 MB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006056/0.6796, allocations: 3.652 MB / 468.5 MB, free: 119.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.6796, allocations: 6.156 kB / 468.5 MB, free: 119.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001893/0.6815, allocations: 1.172 MB / 469.7 MB, free: 119.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.6841, allocations: 435.7 kB / 470.1 MB, free: 119.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.6953, allocations: 7.495 MB / 477.6 MB, free: 112.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002186/0.6974, allocations: 2.312 MB / 479.9 MB, free: 110.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003095/0.7005, allocations: 1.515 MB / 481.4 MB, free: 108.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006894/0.7012, allocations: 232.4 kB / 481.7 MB, free: 108.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7012, allocations: 4 kB / 481.7 MB, free: 108.4 MB / 394.7 MB Notification: Performance of Templates: time 0.06151/0.7627, allocations: 42.22 MB / 0.5116 GB, free: 66.7 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.512145949993283]