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.001341/0.001341, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001038/0.001038, allocations: 168.4 kB / 25.61 MB, free: 8.586 MB / 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 0.9474/0.9474, allocations: 177.2 MB / 206.1 MB, free: 4.461 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.473e-06/1.473e-06, allocations: 0 / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.214e-05/2.362e-05, allocations: 5.406 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007875/0.007899, allocations: 9.846 MB / 284 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.01373, allocations: 3.878 MB / 287.9 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.01473, allocations: 83.56 kB / 288 MB, free: 6.547 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.01726, allocations: 2.328 MB / 290.3 MB, free: 4.211 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002996/0.02025, allocations: 1.948 MB / 292.3 MB, free: 2.254 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001072/0.02132, allocations: 0.8342 MB / 293.1 MB, free: 1.418 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005189/0.02651, allocations: 6.006 MB / 299.1 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002948/0.02946, allocations: 3.01 MB / 302.1 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003993/0.03345, allocations: 3.287 MB / 305.4 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003046/0.0365, allocations: 2.377 MB / 307.8 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005005/0.037, allocations: 312 kB / 308.1 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.0385, allocations: 1.123 MB / 309.2 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001738/0.04024, allocations: 1.987 MB / 311.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.04167, allocations: 1.215 MB / 312.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004778/0.04645, allocations: 4.5 MB / 316.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.04646, allocations: 0 / 316.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.04646, allocations: 0 / 316.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001025/0.04656, allocations: 0 / 316.9 MB, free: 9.504 MB / 298.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.005959/0.05252, allocations: 4.884 MB / 321.8 MB, free: 4.551 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.05255, allocations: 8.031 kB / 321.8 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/0.06438, allocations: 2.597 MB / 324.4 MB, free: 1.941 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003314/0.0677, allocations: 2.255 MB / 326.7 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.06781, allocations: 197.3 kB / 326.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003838/0.06819, allocations: 271.7 kB / 327.1 MB, free: 15.17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005876/0.07407, allocations: 4.959 MB / 332.1 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.644e-05/0.07415, allocations: 47.62 kB / 332.1 MB, free: 9.262 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.07438, allocations: 127.9 kB / 332.3 MB, free: 9.137 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001309/0.07569, allocations: 1.513 MB / 333.8 MB, free: 7.625 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004132/0.07982, allocations: 2.174 MB / 335.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1535/0.2334, allocations: 38.95 MB / 374.9 MB, free: 47.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003221/0.2366, allocations: 1.246 MB / 376.1 MB, free: 47.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005047/0.2371, allocations: 385.3 kB / 376.5 MB, free: 47.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004278/0.2414, allocations: 3.462 MB / 380 MB, free: 46.67 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.2414, allocations: 51.67 kB / 380 MB, free: 46.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 3.737e-06/0.2414, allocations: 0.9375 kB / 380 MB, free: 46.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01443/0.2558, allocations: 5.953 MB / 386 MB, free: 45.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.2559, allocations: 253.7 kB / 386.2 MB, free: 45.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002996/0.2589, allocations: 3.483 MB / 389.7 MB, free: 45.08 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.258e-05/0.259, allocations: 44.2 kB / 389.8 MB, free: 45.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.2601, allocations: 3.193 MB / 393 MB, free: 43.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003897/0.2605, allocations: 0.5744 MB / 393.5 MB, free: 42.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008787/0.2614, allocations: 1.239 MB / 394.8 MB, free: 41.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.843e-05/0.2614, allocations: 476.8 kB / 395.2 MB, free: 41.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008377/0.2622, allocations: 0.5182 MB / 395.7 MB, free: 40.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.2641, allocations: 5.748 MB / 401.5 MB, free: 32.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003256/0.2674, allocations: 6.702 MB / 408.2 MB, free: 24.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.314e-05/0.2675, allocations: 36 kB / 408.2 MB, free: 24 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.004928/0.2724, allocations: 4.504 MB / 412.7 MB, free: 19.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.739e-05/0.2724, allocations: 60 kB / 412.8 MB, free: 19.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.72e-05/0.2725, allocations: 120.9 kB / 412.9 MB, free: 19.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008807/0.2734, allocations: 405.3 kB / 413.3 MB, free: 18.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001839/0.2753, allocations: 1.228 MB / 414.5 MB, free: 17.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.277, allocations: 2.761 MB / 417.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/0.2795, allocations: 247.7 kB / 417.5 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/0.2797, allocations: 292 kB / 417.8 MB, free: 14.29 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.0008918/0.2806, allocations: 0.6123 MB / 418.4 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004258/0.281, allocations: 357.8 kB / 418.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.2821, allocations: 0.8702 MB / 419.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.2821, allocations: 16 kB / 419.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.2821, allocations: 8 kB / 419.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.2822, allocations: 10.16 kB / 419.7 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00499/0.2871, allocations: 4.165 MB / 423.9 MB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.2872, allocations: 8.781 kB / 423.9 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004228/0.2876, allocations: 179.7 kB / 424 MB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005991/0.2882, allocations: 242.1 kB / 424.3 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.2882, allocations: 35.98 kB / 424.3 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.2896, allocations: 2.467 MB / 426.8 MB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2896, allocations: 8 kB / 426.8 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.2913, allocations: 1.98 MB / 428.8 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005439/0.2919, allocations: 332.8 kB / 429.1 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002665/0.2922, allocations: 24 kB / 429.1 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.2928, allocations: 32 kB / 429.1 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.2929, allocations: 100.2 kB / 429.2 MB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.028e-05/0.293, allocations: 35.94 kB / 429.3 MB, free: 2.422 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001231/0.2942, allocations: 1.433 MB / 430.7 MB, free: 1 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2942, allocations: 7.938 kB / 430.7 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003146/0.2974, allocations: 0.9722 MB / 431.7 MB, free: 24 kB / 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.0003771/0.2977, allocations: 174.9 kB / 431.9 MB, free: 15.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003285/0.301, allocations: 2.476 MB / 434.3 MB, free: 13.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.301, allocations: 4.25 kB / 434.3 MB, free: 13.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009355/0.302, allocations: 0.5818 MB / 434.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.3037, allocations: 436.8 kB / 435.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008953/0.3126, allocations: 6.852 MB / 442.2 MB, free: 5.344 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001485/0.3141, allocations: 1.133 MB / 443.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001369/0.3155, allocations: 463.3 kB / 443.8 MB, free: 3.742 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008664/0.3164, allocations: 0.5645 MB / 444.4 MB, free: 3.176 MB / 346.7 MB Notification: Performance of SimCode: time 2.384e-06/0.3164, allocations: 0 / 444.4 MB, free: 3.176 MB / 346.7 MB Notification: Performance of Templates: time 0.04748/0.3638, allocations: 30.69 MB / 475 MB, free: 4.965 MB / 378.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 -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.013140545692295]