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.001103/0.001103, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00159/0.002693, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.000999/0.000999, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001413/0.002412, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8531/0.8531, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1407/0.9938, allocations: 52.48 MB / 238.5 MB, free: 7.637 MB / 234.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 2.875e-06/2.875e-06, allocations: 4 kB / 239.8 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.557e-05/2.844e-05, allocations: 2.312 kB / 239.8 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01148/0.01151, allocations: 10 MB / 249.8 MB, free: 12.31 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004966/0.01647, allocations: 4.035 MB / 253.8 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004237/0.0169, allocations: 79.56 kB / 253.9 MB, free: 8.211 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002081/0.01898, allocations: 2.245 MB / 256.1 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001863/0.02084, allocations: 1.958 MB / 258.1 MB, free: 3.996 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.02152, allocations: 0.7718 MB / 258.8 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003479/0.025, allocations: 5.264 MB / 264.1 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/0.02681, allocations: 2.62 MB / 266.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00247/0.02928, allocations: 3.052 MB / 269.8 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002165/0.03145, allocations: 2.249 MB / 272 MB, free: 5.961 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000573/0.03202, allocations: 312 kB / 272.3 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.0333, allocations: 1.178 MB / 273.5 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.0345, allocations: 1.804 MB / 275.3 MB, free: 2.668 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008808/0.03538, allocations: 1.001 MB / 276.3 MB, free: 1.664 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002991/0.03837, allocations: 4.177 MB / 280.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.308e-06/0.03838, allocations: 0 / 280.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.03839, allocations: 0 / 280.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.273e-05/0.03846, allocations: 4 kB / 280.5 MB, free: 13.46 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.004675/0.04313, allocations: 5.2 MB / 285.7 MB, free: 8.191 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.04317, allocations: 8.031 kB / 285.7 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003837/0.047, allocations: 1.222 MB / 286.9 MB, free: 6.961 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002324/0.04933, allocations: 2.112 MB / 289 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.753e-05/0.04942, allocations: 193.4 kB / 289.2 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002948/0.04971, allocations: 279.7 kB / 289.5 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004034/0.05374, allocations: 4.435 MB / 293.9 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.45e-05/0.05381, allocations: 43.64 kB / 294 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.05401, allocations: 135.9 kB / 294.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001373/0.05539, allocations: 1.419 MB / 295.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002848/0.05824, allocations: 2.203 MB / 297.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/0.07842, allocations: 28.05 MB / 325.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002712/0.08113, allocations: 1.252 MB / 327 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003572/0.08149, allocations: 312.2 kB / 327.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003982/0.08547, allocations: 3.204 MB / 330.6 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.08551, allocations: 51.16 kB / 330.6 MB, free: 9.383 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 4.498e-06/0.08551, allocations: 4 kB / 330.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01276/0.09827, allocations: 5.353 MB / 336 MB, free: 3.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.09832, allocations: 145.1 kB / 336.1 MB, free: 3.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00246/0.1008, allocations: 3.13 MB / 339.2 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.226e-05/0.1009, allocations: 45.7 kB / 339.3 MB, free: 0.625 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1065/0.2073, allocations: 2.768 MB / 342 MB, free: 69.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006309/0.208, allocations: 0.5545 MB / 342.6 MB, free: 69.24 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009719/0.2089, allocations: 1.059 MB / 343.7 MB, free: 69.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.123e-05/0.209, allocations: 304.2 kB / 344 MB, free: 68.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.21, allocations: 0.6822 MB / 344.6 MB, free: 68.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00163/0.2117, allocations: 4.089 MB / 348.7 MB, free: 64.23 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002925/0.2146, allocations: 5.549 MB / 354.3 MB, free: 59.78 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.017e-05/0.2146, allocations: 34.62 kB / 354.3 MB, free: 59.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.003883/0.2185, allocations: 3.839 MB / 358.1 MB, free: 59.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.2186, allocations: 58.62 kB / 358.2 MB, free: 59.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-05/0.2186, allocations: 129.7 kB / 358.3 MB, free: 59.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007743/0.2194, allocations: 402.2 kB / 358.7 MB, free: 59.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001877/0.2213, allocations: 1.375 MB / 360.1 MB, free: 59.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.2228, allocations: 2.159 MB / 362.3 MB, free: 57.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.2246, allocations: 246.2 kB / 362.5 MB, free: 57.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002317/0.2248, allocations: 292.4 kB / 362.8 MB, free: 57.75 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.0007327/0.2256, allocations: 0.5604 MB / 363.3 MB, free: 57.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.2258, allocations: 205.5 kB / 363.5 MB, free: 57.44 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009321/0.2267, allocations: 0.7861 MB / 364.3 MB, free: 57.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.2267, allocations: 12.97 kB / 364.3 MB, free: 57.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2267, allocations: 3.469 kB / 364.3 MB, free: 57.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.2267, allocations: 11.27 kB / 364.4 MB, free: 57.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.2301, allocations: 3.528 MB / 367.9 MB, free: 56.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.2301, allocations: 15.72 kB / 367.9 MB, free: 56.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/0.2306, allocations: 209.1 kB / 368.1 MB, free: 56.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.2308, allocations: 318.2 kB / 368.4 MB, free: 56.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006716/0.2315, allocations: 412.8 kB / 368.8 MB, free: 56.33 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-05/0.2315, allocations: 26.72 kB / 368.8 MB, free: 56.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.2328, allocations: 1.902 MB / 370.7 MB, free: 54.92 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.2328, allocations: 14.23 kB / 370.8 MB, free: 54.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.2342, allocations: 1.688 MB / 372.4 MB, free: 54 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002325/0.2344, allocations: 28.06 kB / 372.5 MB, free: 54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.235, allocations: 36.5 kB / 372.5 MB, free: 54 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.2351, allocations: 100.2 kB / 372.6 MB, free: 53.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.2351, allocations: 36.81 kB / 372.6 MB, free: 53.99 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000819/0.236, allocations: 1.167 MB / 373.8 MB, free: 53.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.236, allocations: 0 / 373.8 MB, free: 53.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002588/0.2385, allocations: 0.9799 MB / 374.8 MB, free: 52.42 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.0002699/0.2388, allocations: 178.8 kB / 375 MB, free: 52.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.2408, allocations: 2.352 MB / 377.3 MB, free: 50.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001297/0.241, allocations: 114.3 kB / 377.4 MB, free: 50.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.2414, allocations: 0.5428 MB / 378 MB, free: 49.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.2433, allocations: 3.119 MB / 381.1 MB, free: 46.49 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008152/0.2515, allocations: 6.906 MB / 388 MB, free: 39.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000656/0.2521, allocations: 1.119 MB / 389.1 MB, free: 38.75 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008696/0.253, allocations: 453.5 kB / 389.6 MB, free: 38.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005841/0.2536, allocations: 0.5206 MB / 390.1 MB, free: 37.79 MB / 330.7 MB Notification: Performance of SimCode: time 1.974e-06/0.2536, allocations: 0 / 390.1 MB, free: 37.79 MB / 330.7 MB Notification: Performance of Templates: time 0.03558/0.2892, allocations: 29.69 MB / 419.8 MB, free: 8.336 MB / 330.7 MB " [Timeout remaining time 660] 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.965767334215343]