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.0008291/0.0008291, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008643/0.0008643, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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.9058/0.9058, allocations: 173.3 MB / 201.1 MB, free: 9.355 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.353e-06/1.353e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.119e-05, allocations: 6.312 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007892/0.007914, allocations: 10.19 MB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005873/0.01379, allocations: 3.909 MB / 282.1 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.0148, allocations: 79.56 kB / 282.2 MB, free: 8.195 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002439/0.01723, allocations: 2.355 MB / 284.5 MB, free: 5.832 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002846/0.02008, allocations: 1.983 MB / 286.5 MB, free: 3.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.0211, allocations: 0.8459 MB / 287.4 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1113/0.1324, allocations: 5.817 MB / 293.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003857/0.1362, allocations: 3.009 MB / 296.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005694/0.1419, allocations: 3.298 MB / 299.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004417/0.1463, allocations: 2.366 MB / 301.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.1474, allocations: 312.5 kB / 302.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002104/0.1495, allocations: 1.152 MB / 303.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.1511, allocations: 2.009 MB / 305.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.153, allocations: 1.224 MB / 306.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006174/0.1592, allocations: 4.551 MB / 311.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.1592, allocations: 0 / 311.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1592, allocations: 0 / 311.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002851/0.1595, allocations: 3.938 kB / 311.1 MB, free: 11.36 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.00689/0.1663, allocations: 5.181 MB / 316.3 MB, free: 7.391 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1664, allocations: 12.91 kB / 316.3 MB, free: 7.379 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.1778, allocations: 3.504 MB / 319.8 MB, free: 3.902 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003691/0.1815, allocations: 2.593 MB / 322.4 MB, free: 1.414 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.959e-05/0.1816, allocations: 194.8 kB / 322.6 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004717/0.182, allocations: 271 kB / 322.9 MB, free: 1.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006917/0.189, allocations: 5.441 MB / 328.3 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-05/0.1891, allocations: 41.47 kB / 328.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/0.1893, allocations: 128.8 kB / 328.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001441/0.1907, allocations: 1.659 MB / 330.1 MB, free: 9.109 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005803/0.1965, allocations: 2.766 MB / 332.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02844/0.225, allocations: 39.32 MB / 372.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003419/0.2284, allocations: 1.421 MB / 373.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006929/0.2291, allocations: 455.7 kB / 374.1 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005176/0.2343, allocations: 3.692 MB / 377.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.2343, allocations: 56.12 kB / 377.8 MB, free: 8.699 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 4.087e-06/0.2343, allocations: 0 / 377.8 MB, free: 8.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01801/0.2523, allocations: 9.312 MB / 387.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.2e-05/0.2524, allocations: 247.7 kB / 387.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.2562, allocations: 3.511 MB / 390.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.138e-05/0.2562, allocations: 49.69 kB / 390.9 MB, free: 11.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001523/0.2578, allocations: 3.164 MB / 394.1 MB, free: 8.336 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004632/0.2582, allocations: 0.5735 MB / 394.7 MB, free: 7.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/0.2592, allocations: 1.21 MB / 395.9 MB, free: 6.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.7e-05/0.2593, allocations: 484.7 kB / 396.4 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009806/0.2603, allocations: 0.5768 MB / 396.9 MB, free: 5.492 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/0.2639, allocations: 5.772 MB / 402.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004963/0.2689, allocations: 6.843 MB / 409.5 MB, free: 4.375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-05/0.269, allocations: 40 kB / 409.6 MB, free: 4.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.006544/0.2755, allocations: 4.887 MB / 414.5 MB, free: 15.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.579e-05/0.2756, allocations: 56 kB / 414.5 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001034/0.2757, allocations: 120 kB / 414.6 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009588/0.2766, allocations: 460.2 kB / 415.1 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/0.2787, allocations: 1.287 MB / 416.4 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/0.2811, allocations: 2.904 MB / 419.3 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/0.2834, allocations: 379.5 kB / 419.7 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002865/0.2837, allocations: 340.7 kB / 420 MB, free: 9.801 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.001032/0.2847, allocations: 0.6079 MB / 420.6 MB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003945/0.2851, allocations: 363.3 kB / 420.9 MB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.2868, allocations: 0.9952 MB / 421.9 MB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.2868, allocations: 16 kB / 422 MB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.2868, allocations: 4 kB / 422 MB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.2868, allocations: 7.969 kB / 422 MB, free: 7.781 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005503/0.2923, allocations: 4.309 MB / 426.3 MB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.2923, allocations: 8 kB / 426.3 MB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004911/0.2928, allocations: 219.7 kB / 426.5 MB, free: 3.125 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000663/0.2935, allocations: 269.8 kB / 426.8 MB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.2935, allocations: 31.98 kB / 426.8 MB, free: 2.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.2956, allocations: 2.571 MB / 429.4 MB, free: 144 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.2956, allocations: 15.97 kB / 429.4 MB, free: 128 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1193/0.4149, allocations: 2.113 MB / 431.5 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007682/0.4157, allocations: 344.9 kB / 431.8 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003657/0.4161, allocations: 30.67 kB / 431.9 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.4172, allocations: 127 kB / 432 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.4174, allocations: 100.1 kB / 432.1 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.401e-05/0.4175, allocations: 49.2 kB / 432.1 MB, free: 112.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002666/0.4202, allocations: 1.552 MB / 433.7 MB, free: 112.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4202, allocations: 0 / 433.7 MB, free: 112.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004274/0.4245, allocations: 0.9839 MB / 434.7 MB, free: 112.5 MB / 378.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.0004653/0.4249, allocations: 189.3 kB / 434.9 MB, free: 112.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004668/0.4296, allocations: 2.666 MB / 437.5 MB, free: 112.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.4296, allocations: 0 / 437.5 MB, free: 112.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009467/0.4305, allocations: 0.6354 MB / 438.2 MB, free: 111.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002775/0.4333, allocations: 433.7 kB / 438.6 MB, free: 111.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009076/0.4424, allocations: 6.888 MB / 445.5 MB, free: 108.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009213/0.4433, allocations: 1.129 MB / 446.6 MB, free: 108.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002159/0.4455, allocations: 1.456 MB / 448.1 MB, free: 108.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.4459, allocations: 217.5 kB / 448.3 MB, free: 108.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.974e-06/0.4459, allocations: 0 / 448.3 MB, free: 108.6 MB / 378.7 MB Notification: Performance of Templates: time 0.03851/0.4844, allocations: 28.5 MB / 476.8 MB, free: 87.48 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.6951787788420916]