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.001138/0.001138, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001632/0.00277, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001072/0.001072, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001521/0.002593, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.8834/0.8834, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08801/0.9714, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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 8.72e-07/8.72e-07, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.039e-05/2.126e-05, allocations: 6.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007726/0.007747, allocations: 9.988 MB / 254.7 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005163/0.01291, allocations: 4.048 MB / 258.7 MB, free: 128 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005238/0.01343, allocations: 79.56 kB / 258.8 MB, free: 48 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.01546, allocations: 2.25 MB / 261.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002126/0.01759, allocations: 1.94 MB / 263 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008129/0.0184, allocations: 0.7641 MB / 263.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004414/0.02282, allocations: 5.474 MB / 269.3 MB, free: 5.594 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.02489, allocations: 2.608 MB / 271.9 MB, free: 2.922 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1088/0.1337, allocations: 3.034 MB / 274.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/0.1372, allocations: 2.246 MB / 277.1 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001112/0.1383, allocations: 312.5 kB / 277.4 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002017/0.1403, allocations: 1.168 MB / 278.6 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001511/0.1418, allocations: 1.781 MB / 280.4 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001537/0.1434, allocations: 0.9841 MB / 281.4 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004223/0.1476, allocations: 4.134 MB / 285.5 MB, free: 5.125 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.349e-05/0.1476, allocations: 3.406 kB / 285.5 MB, free: 5.125 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1476, allocations: 4.875 kB / 285.5 MB, free: 5.121 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001494/0.1477, allocations: 0 / 285.5 MB, free: 5.121 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.00559/0.1533, allocations: 5.202 MB / 290.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1534, allocations: 16.17 kB / 290.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003908/0.1573, allocations: 1.225 MB / 292 MB, free: 3.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002225/0.1595, allocations: 2.102 MB / 294.1 MB, free: 2.574 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.769e-05/0.1596, allocations: 200.4 kB / 294.3 MB, free: 2.566 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002979/0.1599, allocations: 268.8 kB / 294.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003785/0.1637, allocations: 4.428 MB / 299 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.239e-05/0.1638, allocations: 49.67 kB / 299 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/0.164, allocations: 132.1 kB / 299.1 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001021/0.165, allocations: 1.424 MB / 300.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003765/0.1688, allocations: 2.206 MB / 302.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01815/0.1869, allocations: 28.06 MB / 330.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/0.1895, allocations: 1.249 MB / 332.1 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.1898, allocations: 318.9 kB / 332.4 MB, free: 428 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003903/0.1937, allocations: 3.203 MB / 335.6 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1938, allocations: 49.75 kB / 335.6 MB, free: 13.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 2.134e-06/0.1938, allocations: 4 kB / 335.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.01195/0.2057, allocations: 5.347 MB / 341 MB, free: 7.895 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.2058, allocations: 145.2 kB / 341.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.208, allocations: 3.118 MB / 344.2 MB, free: 5.164 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.569e-05/0.2081, allocations: 56.34 kB / 344.3 MB, free: 5.105 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/0.2092, allocations: 2.771 MB / 347.1 MB, free: 2.496 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003081/0.2095, allocations: 0.5505 MB / 347.6 MB, free: 1.973 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/0.2106, allocations: 1.058 MB / 348.7 MB, free: 1.031 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.919e-05/0.2106, allocations: 309.1 kB / 349 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009309/0.2115, allocations: 0.6785 MB / 349.7 MB, free: 44 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.2138, allocations: 4.086 MB / 353.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003984/0.2178, allocations: 5.551 MB / 359.3 MB, free: 3.547 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.474e-05/0.2178, allocations: 32 kB / 359.3 MB, free: 3.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.004086/0.2219, allocations: 3.839 MB / 363.2 MB, free: 15.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.222, allocations: 60 kB / 363.2 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.798e-05/0.2221, allocations: 124 kB / 363.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007584/0.2228, allocations: 412.5 kB / 363.7 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/0.2248, allocations: 1.377 MB / 365.1 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/0.2267, allocations: 2.164 MB / 367.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.2284, allocations: 243.7 kB / 367.5 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002427/0.2286, allocations: 290 kB / 367.8 MB, free: 10.94 MB / 346.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.001085/0.2297, allocations: 0.566 MB / 368.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.2299, allocations: 199.8 kB / 368.6 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.231, allocations: 0.7869 MB / 369.4 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.231, allocations: 15.98 kB / 369.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.231, allocations: 0 / 369.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.231, allocations: 11.97 kB / 369.4 MB, free: 9.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0041/0.2351, allocations: 3.523 MB / 372.9 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/0.2351, allocations: 12 kB / 372.9 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000466/0.2356, allocations: 212.4 kB / 373.1 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.2359, allocations: 320.5 kB / 373.4 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007395/0.2367, allocations: 416.5 kB / 373.8 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.897e-05/0.2367, allocations: 28 kB / 373.9 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001552/0.2383, allocations: 1.896 MB / 375.8 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.2383, allocations: 11.88 kB / 375.8 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.2397, allocations: 1.684 MB / 377.5 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.2399, allocations: 31.94 kB / 377.5 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005788/0.2404, allocations: 38.72 kB / 377.5 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.2406, allocations: 92.17 kB / 377.6 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.974e-05/0.2406, allocations: 40 kB / 377.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009156/0.2415, allocations: 1.163 MB / 378.8 MB, free: 212 kB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2415, allocations: 0 / 378.8 MB, free: 212 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.002346/0.2439, allocations: 0.9726 MB / 379.8 MB, free: 15.23 MB / 362.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.000279/0.2441, allocations: 166.6 kB / 380 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.2463, allocations: 2.354 MB / 382.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001581/0.2465, allocations: 122.7 kB / 382.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005254/0.247, allocations: 0.5385 MB / 383 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.2494, allocations: 3.106 MB / 386.1 MB, free: 8.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00954/0.2589, allocations: 6.896 MB / 393 MB, free: 1.449 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008781/0.2598, allocations: 1.13 MB / 394.1 MB, free: 300 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000906/0.2607, allocations: 453.4 kB / 394.5 MB, free: 15.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006817/0.2614, allocations: 0.5089 MB / 395.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.2614, allocations: 0 / 395.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of Templates: time 0.0396/0.301, allocations: 29.56 MB / 424.6 MB, free: 1.973 MB / 394.7 MB " [Timeout remaining time 660] 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.095992611721158]