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.001599/0.001599, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001059/0.001059, allocations: 142.3 kB / 24.97 MB, free: 8.812 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.9079/0.9079, allocations: 173.4 MB / 201.5 MB, free: 9.348 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.262e-06/1.262e-06, allocations: 0 / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.486e-05/1.612e-05, allocations: 9.906 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007687/0.007703, allocations: 10.16 MB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005235/0.01294, allocations: 3.886 MB / 282.1 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007329/0.01367, allocations: 83.56 kB / 282.2 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002339/0.01601, allocations: 2.359 MB / 284.6 MB, free: 6.172 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002372/0.01838, allocations: 1.975 MB / 286.5 MB, free: 4.188 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009381/0.01932, allocations: 0.8381 MB / 287.4 MB, free: 3.348 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1111/0.1304, allocations: 5.827 MB / 293.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003853/0.1342, allocations: 3.008 MB / 296.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003545/0.1378, allocations: 2.328 MB / 298.5 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003054/0.1408, allocations: 2.398 MB / 300.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007168/0.1416, allocations: 310 kB / 301.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.1431, allocations: 1.152 MB / 302.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.1441, allocations: 2.005 MB / 304.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001297/0.1454, allocations: 1.227 MB / 305.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003308/0.1487, allocations: 4.543 MB / 310.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1488, allocations: 0 / 310.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1488, allocations: 0 / 310.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001475/0.1489, allocations: 0 / 310.2 MB, free: 12.16 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.005388/0.1543, allocations: 5.128 MB / 315.3 MB, free: 8.629 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1543, allocations: 9.578 kB / 315.3 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01213/0.1665, allocations: 3.589 MB / 318.9 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003303/0.1698, allocations: 2.937 MB / 321.8 MB, free: 2.316 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.528e-05/0.1698, allocations: 203.9 kB / 322 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.1701, allocations: 277.1 kB / 322.3 MB, free: 1.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005661/0.1758, allocations: 5.431 MB / 327.7 MB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.989e-05/0.1759, allocations: 45.19 kB / 327.8 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/0.1761, allocations: 129 kB / 327.9 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001801/0.1779, allocations: 1.77 MB / 329.7 MB, free: 9.895 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005764/0.1837, allocations: 2.951 MB / 332.6 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02481/0.2085, allocations: 39.01 MB / 371.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003617/0.2121, allocations: 1.657 MB / 373.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008191/0.2129, allocations: 0.6486 MB / 374 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/0.2131, allocations: 92.95 kB / 374 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.2132, allocations: 55.17 kB / 374.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 4.499e-06/0.2132, allocations: 0 / 374.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.02933/0.2425, allocations: 14.92 MB / 389 MB, free: 13.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.855e-05/0.2426, allocations: 248.6 kB / 389.3 MB, free: 13.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003469/0.2461, allocations: 3.392 MB / 392.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.2462, allocations: 49.7 kB / 392.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.2476, allocations: 3.045 MB / 395.7 MB, free: 7.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007235/0.2484, allocations: 0.7878 MB / 396.5 MB, free: 6.402 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/0.2495, allocations: 1.254 MB / 397.8 MB, free: 5.133 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.2496, allocations: 476.8 kB / 398.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.2509, allocations: 0.7608 MB / 399 MB, free: 3.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003473/0.2544, allocations: 5.687 MB / 404.7 MB, free: 12.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006457/0.2609, allocations: 6.988 MB / 411.7 MB, free: 3.012 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.903e-05/0.2609, allocations: 36 kB / 411.7 MB, free: 2.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01242/0.2733, allocations: 6.108 MB / 417.8 MB, free: 12.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.75e-05/0.2734, allocations: 56 kB / 417.9 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000145/0.2735, allocations: 112 kB / 418 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004116/0.2776, allocations: 1.395 MB / 419.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/0.2798, allocations: 1.279 MB / 420.7 MB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006857/0.2867, allocations: 4.992 MB / 425.7 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003385/0.2901, allocations: 407.3 kB / 426.1 MB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004409/0.2905, allocations: 340 kB / 426.4 MB, free: 4.176 MB / 378.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.001302/0.2918, allocations: 0.6031 MB / 427 MB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006105/0.2924, allocations: 385.8 kB / 427.4 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005765/0.2982, allocations: 2.572 MB / 429.9 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/0.2982, allocations: 26.97 kB / 430 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.2982, allocations: 8 kB / 430 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.2983, allocations: 7.969 kB / 430 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1272/0.4254, allocations: 6.379 MB / 436.4 MB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.4254, allocations: 1.594 kB / 436.4 MB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008154/0.4263, allocations: 266.4 kB / 436.6 MB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003157/0.4294, allocations: 1.216 MB / 437.8 MB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/0.4295, allocations: 31.53 kB / 437.9 MB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005049/0.4346, allocations: 4.228 MB / 442.1 MB, free: 116.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4346, allocations: 1.781 kB / 442.1 MB, free: 116.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0055/0.4401, allocations: 3.7 MB / 445.8 MB, free: 115.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005938/0.4407, allocations: 346.1 kB / 446.1 MB, free: 115.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/0.441, allocations: 30.94 kB / 446.2 MB, free: 115.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009773/0.442, allocations: 199.6 kB / 446.4 MB, free: 115.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002592/0.4422, allocations: 117.6 kB / 446.5 MB, free: 115.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.108e-05/0.4423, allocations: 49.72 kB / 446.5 MB, free: 115.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001696/0.444, allocations: 1.508 MB / 448 MB, free: 115.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.444, allocations: 0 / 448 MB, free: 115.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002753/0.4468, allocations: 1.214 MB / 449.2 MB, free: 115 MB / 378.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.0003408/0.4471, allocations: 193.9 kB / 449.4 MB, free: 114.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003721/0.4508, allocations: 3.336 MB / 452.8 MB, free: 113.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4508, allocations: 3.969 kB / 452.8 MB, free: 113.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.452, allocations: 1.091 MB / 453.9 MB, free: 113.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.4533, allocations: 438.1 kB / 454.3 MB, free: 113.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007473/0.4608, allocations: 7.432 MB / 461.7 MB, free: 108.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000772/0.4616, allocations: 1.174 MB / 462.9 MB, free: 107.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001874/0.4634, allocations: 1.515 MB / 464.4 MB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004481/0.4639, allocations: 228.4 kB / 464.6 MB, free: 105.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.273e-06/0.4639, allocations: 4 kB / 464.6 MB, free: 105.9 MB / 378.7 MB Notification: Performance of Templates: time 0.04306/0.507, allocations: 42.4 MB / 0.4952 GB, free: 64 MB / 378.7 MB " [Timeout remaining time 659] 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.985342802014202]