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.0007902/0.0007902, allocations: 84 kB / 21.43 MB, free: 3.133 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.003681/0.003681, allocations: 145.7 kB / 24.68 MB, free: 9.426 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.8321/0.8321, allocations: 173.4 MB / 201.2 MB, free: 9.449 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.543e-06/1.543e-06, allocations: 0 / 319.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.734e-05/2.888e-05, allocations: 9.594 kB / 319.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007759/0.007788, allocations: 9.142 MB / 328.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006565/0.01435, allocations: 3.785 MB / 332.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.01603, allocations: 79.56 kB / 332.7 MB, free: 8.672 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003/0.01903, allocations: 2.269 MB / 335 MB, free: 6.395 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004104/0.02313, allocations: 1.967 MB / 336.9 MB, free: 4.422 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.02454, allocations: 0.8265 MB / 337.8 MB, free: 3.594 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005511/0.03005, allocations: 5.847 MB / 343.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003288/0.03333, allocations: 2.903 MB / 346.5 MB, free: 10.78 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003277/0.03661, allocations: 2.319 MB / 348.8 MB, free: 8.453 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002944/0.03956, allocations: 2.35 MB / 351.2 MB, free: 6.098 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006333/0.04019, allocations: 312 kB / 351.5 MB, free: 5.793 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001669/0.04186, allocations: 1.155 MB / 352.7 MB, free: 4.637 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00139/0.04325, allocations: 1.987 MB / 354.6 MB, free: 2.645 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001363/0.04461, allocations: 1.223 MB / 355.9 MB, free: 1.418 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006528/0.05114, allocations: 6.838 MB / 362.7 MB, free: 10.56 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.05115, allocations: 0 / 362.7 MB, free: 10.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.05115, allocations: 0 / 362.7 MB, free: 10.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001887/0.05134, allocations: 0 / 362.7 MB, free: 10.56 MB / 330.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.008862/0.0602, allocations: 4.79 MB / 367.5 MB, free: 5.711 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.06024, allocations: 12.92 kB / 367.5 MB, free: 5.699 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01187/0.07212, allocations: 3.189 MB / 370.7 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006058/0.07817, allocations: 3.197 MB / 373.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.07829, allocations: 201.4 kB / 374.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006035/0.0789, allocations: 279.7 kB / 374.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01068/0.08958, allocations: 8.955 MB / 383.3 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.08969, allocations: 47.64 kB / 383.4 MB, free: 5.105 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002653/0.08995, allocations: 131.9 kB / 383.5 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00178/0.09173, allocations: 1.774 MB / 385.3 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/0.102, allocations: 7.764 MB / 393 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03097/0.1329, allocations: 33.69 MB / 426.7 MB, free: 8.785 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00515/0.1381, allocations: 3.319 MB / 430 MB, free: 5.422 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002075/0.1402, allocations: 2.021 MB / 432.1 MB, free: 3.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002415/0.1404, allocations: 105 kB / 432.2 MB, free: 3.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.1404, allocations: 55.55 kB / 432.2 MB, free: 3.223 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 4.859e-06/0.1404, allocations: 0 / 432.2 MB, free: 3.223 MB / 394.7 MB Notification: Performance of matching and sorting (n=190): time 0.2021/0.3425, allocations: 22.01 MB / 454.2 MB, free: 119.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/0.3426, allocations: 254.5 kB / 454.5 MB, free: 119.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003779/0.3463, allocations: 3.878 MB / 458.4 MB, free: 117.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003531/0.3467, allocations: 53.73 kB / 458.4 MB, free: 117.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009161/0.3476, allocations: 2.876 MB / 461.3 MB, free: 116.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000609/0.3482, allocations: 0.7507 MB / 462 MB, free: 115.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009562/0.3492, allocations: 1.165 MB / 463.2 MB, free: 115.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.101e-05/0.3492, allocations: 301.1 kB / 463.5 MB, free: 115 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001919/0.3511, allocations: 2.389 MB / 465.9 MB, free: 114.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002663/0.3538, allocations: 5.74 MB / 471.6 MB, free: 108.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005463/0.3593, allocations: 8.578 MB / 480.2 MB, free: 98.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-05/0.3593, allocations: 32 kB / 480.2 MB, free: 98.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01083/0.3702, allocations: 9.587 MB / 489.8 MB, free: 89.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.066e-05/0.3702, allocations: 52 kB / 489.9 MB, free: 89.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.315e-05/0.3703, allocations: 116 kB / 490 MB, free: 89.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002877/0.3732, allocations: 2.014 MB / 492 MB, free: 87.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/0.3756, allocations: 1.283 MB / 493.3 MB, free: 85.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008655/0.3842, allocations: 11.17 MB / 0.4926 GB, free: 74.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003724/0.388, allocations: 403.5 kB / 0.493 GB, free: 74.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006381/0.3886, allocations: 338.6 kB / 0.4933 GB, free: 73.86 MB / 410.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.002422/0.391, allocations: 1.935 MB / 0.4952 GB, free: 71.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000705/0.3917, allocations: 337.7 kB / 0.4955 GB, free: 71.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004969/0.3967, allocations: 4.833 MB / 0.5003 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.431e-05/0.3967, allocations: 20 kB / 0.5003 GB, free: 66.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3967, allocations: 12 kB / 0.5003 GB, free: 66.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.822e-05/0.3968, allocations: 7.969 kB / 0.5003 GB, free: 66.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/0.4077, allocations: 9.062 MB / 0.5092 GB, free: 57.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.787e-05/0.4077, allocations: 0 / 0.5092 GB, free: 57.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008028/0.4085, allocations: 263.6 kB / 0.5094 GB, free: 57.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002686/0.4112, allocations: 1.85 MB / 0.5112 GB, free: 55.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001826/0.4114, allocations: 28 kB / 0.5112 GB, free: 55.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007846/0.4192, allocations: 10.23 MB / 0.5212 GB, free: 45.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4192, allocations: 0 / 0.5212 GB, free: 45.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007593/0.4268, allocations: 7.896 MB / 0.5289 GB, free: 37.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.428, allocations: 365.4 kB / 0.5293 GB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003658/0.4284, allocations: 35.94 kB / 0.5293 GB, free: 36.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.4295, allocations: 201.9 kB / 0.5295 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002876/0.4297, allocations: 121.1 kB / 0.5296 GB, free: 36.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.223e-05/0.4298, allocations: 44 kB / 0.5297 GB, free: 36.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002642/0.4325, allocations: 2.318 MB / 0.5319 GB, free: 34.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4325, allocations: 0 / 0.5319 GB, free: 34.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004385/0.4369, allocations: 1.215 MB / 0.5331 GB, free: 32.97 MB / 410.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.0004532/0.4373, allocations: 194.7 kB / 0.5333 GB, free: 32.78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005954/0.4433, allocations: 5.553 MB / 0.5387 GB, free: 27.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.4433, allocations: 0 / 0.5387 GB, free: 27.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.4451, allocations: 1.948 MB / 0.5406 GB, free: 25.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/0.4473, allocations: 426.5 kB / 0.541 GB, free: 24.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/0.4582, allocations: 9.873 MB / 0.5507 GB, free: 14.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/0.46, allocations: 2.522 MB / 0.5531 GB, free: 12.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009828/0.461, allocations: 276.4 kB / 0.5534 GB, free: 12.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.004e-06/0.461, allocations: 0 / 0.5534 GB, free: 12.12 MB / 410.7 MB Notification: Performance of Templates: time 0.2311/0.6921, allocations: 75.79 MB / 0.6274 GB, free: 142.8 MB / 458.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.12507809791714]