Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0011/0.0011, allocations: 84.98 kB / 22.99 MB, free: 1.508 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.001173/0.001173, allocations: 177.4 kB / 26.39 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9236/0.9236, allocations: 158.6 MB / 188.3 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 4 kB / 252.3 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.083e-05, allocations: 2.312 kB / 252.3 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.00782/0.007841, allocations: 9.921 MB / 262.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00601/0.01385, allocations: 3.863 MB / 266.1 MB, free: 9.379 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009721/0.01482, allocations: 83.56 kB / 266.1 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002366/0.01719, allocations: 2.332 MB / 268.5 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002683/0.01987, allocations: 1.979 MB / 270.4 MB, free: 4.969 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.02094, allocations: 0.8459 MB / 271.3 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004352/0.02529, allocations: 5.52 MB / 276.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002848/0.02814, allocations: 3.033 MB / 279.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003253/0.03139, allocations: 2.959 MB / 282.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002543/0.03393, allocations: 2.377 MB / 285.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000495/0.03443, allocations: 316 kB / 285.5 MB, free: 5.848 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001392/0.03582, allocations: 1.143 MB / 286.6 MB, free: 4.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.03716, allocations: 2.01 MB / 288.6 MB, free: 2.688 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001351/0.03851, allocations: 1.238 MB / 289.9 MB, free: 1.445 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00429/0.0428, allocations: 4.543 MB / 294.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.0428, allocations: 0 / 294.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.0428, allocations: 0 / 294.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001228/0.04293, allocations: 7.938 kB / 294.4 MB, free: 12.88 MB / 282.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.006949/0.04987, allocations: 4.899 MB / 299.3 MB, free: 7.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.04991, allocations: 15.98 kB / 299.3 MB, free: 7.895 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01494/0.06486, allocations: 2.605 MB / 302 MB, free: 5.285 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00343/0.06829, allocations: 2.302 MB / 304.3 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.06842, allocations: 197.4 kB / 304.4 MB, free: 2.734 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004071/0.06882, allocations: 275.8 kB / 304.7 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006583/0.07541, allocations: 4.951 MB / 309.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.02e-05/0.0755, allocations: 47.58 kB / 309.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002858/0.07578, allocations: 127.9 kB / 309.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001691/0.07747, allocations: 1.513 MB / 311.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004579/0.08205, allocations: 2.166 MB / 313.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02929/0.1113, allocations: 38.97 MB / 352.5 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1012/0.2126, allocations: 1.226 MB / 353.7 MB, free: 96.15 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006662/0.2132, allocations: 394.3 kB / 354.1 MB, free: 96.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005046/0.2183, allocations: 3.476 MB / 357.6 MB, free: 95.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2183, allocations: 56.09 kB / 357.6 MB, free: 95.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 3.707e-06/0.2183, allocations: 0 / 357.6 MB, free: 95.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01767/0.236, allocations: 5.995 MB / 363.6 MB, free: 94.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.236, allocations: 243.9 kB / 363.9 MB, free: 94.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003155/0.2392, allocations: 3.516 MB / 367.4 MB, free: 93.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.988e-05/0.2392, allocations: 46.25 kB / 367.4 MB, free: 93.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.2405, allocations: 3.196 MB / 370.6 MB, free: 91.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/0.2409, allocations: 0.5762 MB / 371.2 MB, free: 91.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001154/0.2421, allocations: 1.241 MB / 372.4 MB, free: 90.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.096e-05/0.2421, allocations: 488.4 kB / 372.9 MB, free: 89.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000902/0.243, allocations: 0.5119 MB / 373.4 MB, free: 89.15 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002229/0.2452, allocations: 5.748 MB / 379.2 MB, free: 81.23 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/0.249, allocations: 6.697 MB / 385.9 MB, free: 72.63 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.749e-05/0.2491, allocations: 32 kB / 385.9 MB, free: 72.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005875/0.255, allocations: 4.509 MB / 390.4 MB, free: 68.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5e-05/0.255, allocations: 60.25 kB / 390.5 MB, free: 68.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.066e-05/0.2551, allocations: 123.9 kB / 390.6 MB, free: 67.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009803/0.2561, allocations: 403.4 kB / 391 MB, free: 67.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002401/0.2585, allocations: 1.225 MB / 392.2 MB, free: 66.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.2605, allocations: 2.75 MB / 395 MB, free: 63.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003264/0.2638, allocations: 255.8 kB / 395.2 MB, free: 63.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003103/0.2641, allocations: 293.6 kB / 395.5 MB, free: 62.89 MB / 330.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.0009813/0.2651, allocations: 0.6108 MB / 396.1 MB, free: 62.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004403/0.2655, allocations: 353.8 kB / 396.5 MB, free: 61.92 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.2669, allocations: 0.8899 MB / 397.3 MB, free: 61.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.2669, allocations: 19.98 kB / 397.4 MB, free: 61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.2669, allocations: 0 / 397.4 MB, free: 61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.2669, allocations: 10.92 kB / 397.4 MB, free: 61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005754/0.2727, allocations: 4.18 MB / 401.6 MB, free: 56.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.168e-06/0.2727, allocations: 4 kB / 401.6 MB, free: 56.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005757/0.2733, allocations: 183.7 kB / 401.7 MB, free: 56.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007592/0.274, allocations: 227.8 kB / 402 MB, free: 56.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.771e-05/0.2741, allocations: 35.97 kB / 402 MB, free: 56.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001572/0.2757, allocations: 2.467 MB / 404.5 MB, free: 53.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.2757, allocations: 11.94 kB / 404.5 MB, free: 53.63 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.2773, allocations: 1.989 MB / 406.5 MB, free: 51.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006513/0.278, allocations: 449.5 kB / 406.9 MB, free: 51.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002418/0.2782, allocations: 36 kB / 406.9 MB, free: 51.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006645/0.2789, allocations: 28 kB / 407 MB, free: 51.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.279, allocations: 100.1 kB / 407.1 MB, free: 50.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.2791, allocations: 39.98 kB / 407.1 MB, free: 50.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001243/0.2803, allocations: 1.461 MB / 408.6 MB, free: 49.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2803, allocations: 0 / 408.6 MB, free: 49.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00324/0.2835, allocations: 0.9881 MB / 409.6 MB, free: 48.44 MB / 330.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.0003047/0.2839, allocations: 188 kB / 409.7 MB, free: 48.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.2866, allocations: 2.479 MB / 412.2 MB, free: 45.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.2866, allocations: 4 kB / 412.2 MB, free: 45.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005161/0.2871, allocations: 0.5864 MB / 412.8 MB, free: 45.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.2888, allocations: 422.5 kB / 413.2 MB, free: 44.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007181/0.296, allocations: 6.897 MB / 420.1 MB, free: 37.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000789/0.2968, allocations: 1.133 MB / 421.2 MB, free: 36.54 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001116/0.2979, allocations: 475.2 kB / 421.7 MB, free: 36.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006945/0.2986, allocations: 0.5606 MB / 422.3 MB, free: 35.51 MB / 330.7 MB Notification: Performance of SimCode: time 2.494e-06/0.2986, allocations: 0 / 422.3 MB, free: 35.51 MB / 330.7 MB Notification: Performance of Templates: time 0.04144/0.3401, allocations: 31.32 MB / 453.6 MB, free: 4.191 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.8342338488437235]