Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009629/0.0009629, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.012/1.012, allocations: 177.1 MB / 205 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.721e-05/2.914e-05, allocations: 2.312 kB / 273 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0118/0.01183, allocations: 10.14 MB / 283.1 MB, free: 7.297 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009305/0.02113, allocations: 3.913 MB / 287.1 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002911/0.02405, allocations: 79.56 kB / 287.1 MB, free: 3.293 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005525/0.02957, allocations: 2.371 MB / 289.5 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.128/0.1575, allocations: 1.927 MB / 291.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.1592, allocations: 0.837 MB / 292.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007343/0.1666, allocations: 5.989 MB / 298.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004308/0.1709, allocations: 3.015 MB / 301.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004316/0.1752, allocations: 2.312 MB / 303.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003367/0.1785, allocations: 2.404 MB / 306 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008712/0.1794, allocations: 310.8 kB / 306.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.1811, allocations: 1.125 MB / 307.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.1826, allocations: 1.988 MB / 309.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.1841, allocations: 1.212 MB / 310.6 MB, free: 9.641 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004215/0.1884, allocations: 4.499 MB / 315.1 MB, free: 5.746 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1884, allocations: 0 / 315.1 MB, free: 5.746 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1884, allocations: 0 / 315.1 MB, free: 5.746 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001469/0.1885, allocations: 0 / 315.1 MB, free: 5.746 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.006188/0.1947, allocations: 5.122 MB / 320.2 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.1947, allocations: 12.03 kB / 320.2 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01265/0.2074, allocations: 3.587 MB / 323.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005387/0.2128, allocations: 2.927 MB / 326.8 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.2129, allocations: 197.7 kB / 327 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004324/0.2133, allocations: 279.1 kB / 327.2 MB, free: 9.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007588/0.2209, allocations: 5.434 MB / 332.7 MB, free: 3.688 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001089/0.221, allocations: 39.36 kB / 332.7 MB, free: 3.668 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002594/0.2213, allocations: 128.1 kB / 332.8 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002007/0.2233, allocations: 1.768 MB / 334.6 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006058/0.2294, allocations: 2.958 MB / 337.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0277/0.2571, allocations: 39.01 MB / 376.6 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003887/0.261, allocations: 1.665 MB / 378.2 MB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008996/0.2619, allocations: 0.6458 MB / 378.9 MB, free: 4.941 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00026/0.2621, allocations: 96.94 kB / 379 MB, free: 4.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.977e-05/0.2622, allocations: 53.77 kB / 379 MB, free: 4.785 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 8.255e-06/0.2622, allocations: 0 / 379 MB, free: 4.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.02981/0.292, allocations: 14.9 MB / 393.9 MB, free: 5.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.802e-05/0.2921, allocations: 256.6 kB / 394.2 MB, free: 5.605 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003507/0.2956, allocations: 3.386 MB / 397.6 MB, free: 2.211 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001552/0.2958, allocations: 53.7 kB / 397.6 MB, free: 2.152 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001737/0.2975, allocations: 3.038 MB / 400.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006233/0.2981, allocations: 0.7735 MB / 401.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/0.2993, allocations: 1.255 MB / 402.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2994, allocations: 480.8 kB / 403.1 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.3007, allocations: 0.7608 MB / 403.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003491/0.3042, allocations: 5.687 MB / 409.6 MB, free: 3.941 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005888/0.3101, allocations: 6.99 MB / 416.6 MB, free: 10.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.976e-05/0.3101, allocations: 35.75 kB / 416.6 MB, free: 10.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.009241/0.3194, allocations: 6.113 MB / 422.7 MB, free: 4.645 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.314e-05/0.3194, allocations: 52.94 kB / 422.8 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.53e-05/0.3195, allocations: 115.9 kB / 422.9 MB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003207/0.3227, allocations: 1.389 MB / 424.3 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/0.3251, allocations: 1.283 MB / 425.6 MB, free: 1.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006161/0.3312, allocations: 4.975 MB / 430.5 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002954/0.3342, allocations: 403.4 kB / 430.9 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004292/0.3346, allocations: 340 kB / 431.3 MB, free: 11.99 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.001256/0.3359, allocations: 0.6148 MB / 431.9 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005534/0.3364, allocations: 383.9 kB / 432.3 MB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/0.3407, allocations: 2.568 MB / 434.8 MB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/0.3407, allocations: 20 kB / 434.8 MB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.3407, allocations: 8 kB / 434.8 MB, free: 8.371 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.3407, allocations: 11.97 kB / 434.9 MB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009956/0.3507, allocations: 6.396 MB / 441.3 MB, free: 1.934 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.3507, allocations: 4 kB / 441.3 MB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007177/0.3514, allocations: 263.6 kB / 441.5 MB, free: 1.672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003006/0.3544, allocations: 1.214 MB / 442.7 MB, free: 464 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.3545, allocations: 28 kB / 442.8 MB, free: 436 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1552/0.5098, allocations: 4.214 MB / 447 MB, free: 122.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5098, allocations: 6.781 kB / 447 MB, free: 122.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007064/0.5168, allocations: 3.692 MB / 450.7 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.5178, allocations: 343.5 kB / 451 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003579/0.5182, allocations: 30.47 kB / 451 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.5193, allocations: 195.7 kB / 451.2 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003322/0.5196, allocations: 126.1 kB / 451.4 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.5197, allocations: 50.05 kB / 451.4 MB, free: 121.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00234/0.5221, allocations: 1.506 MB / 452.9 MB, free: 121.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.5221, allocations: 0 / 452.9 MB, free: 121.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004047/0.5261, allocations: 1.191 MB / 454.1 MB, free: 121.3 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.00049/0.5266, allocations: 183.7 kB / 454.3 MB, free: 121.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00505/0.5316, allocations: 3.335 MB / 457.6 MB, free: 120.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5317, allocations: 0 / 457.6 MB, free: 120.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.5331, allocations: 1.094 MB / 458.7 MB, free: 120.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.535, allocations: 433.9 kB / 459.1 MB, free: 120.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009639/0.5446, allocations: 7.43 MB / 466.6 MB, free: 117.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008889/0.5455, allocations: 1.166 MB / 467.7 MB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002191/0.5477, allocations: 1.515 MB / 469.2 MB, free: 117.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005136/0.5482, allocations: 235 kB / 469.5 MB, free: 117.6 MB / 394.7 MB Notification: Performance of SimCode: time 2.174e-06/0.5482, allocations: 0 / 469.5 MB, free: 117.6 MB / 394.7 MB Notification: Performance of Templates: time 0.0488/0.597, allocations: 42.28 MB / 0.4998 GB, free: 78.64 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.28682190971449]