Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009605/0.0009605, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8868/0.8868, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.149e-05/1.308e-05, allocations: 6.844 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.006814/0.006827, allocations: 9.141 MB / 333.7 MB, free: 6.695 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004339/0.01117, allocations: 3.796 MB / 337.5 MB, free: 2.887 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004912/0.01166, allocations: 79.56 kB / 337.5 MB, free: 2.809 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002595/0.01425, allocations: 2.254 MB / 339.8 MB, free: 0.543 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0022/0.01645, allocations: 1.944 MB / 341.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009301/0.01738, allocations: 0.8186 MB / 342.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004188/0.02157, allocations: 6.002 MB / 348.6 MB, free: 7.758 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002091/0.02366, allocations: 2.899 MB / 351.5 MB, free: 4.809 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.02576, allocations: 2.3 MB / 353.8 MB, free: 2.504 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001725/0.02749, allocations: 2.358 MB / 356.1 MB, free: 144 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002768/0.02776, allocations: 308 kB / 356.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.02889, allocations: 1.135 MB / 357.6 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.02993, allocations: 1.987 MB / 359.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.03106, allocations: 1.332 MB / 360.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004368/0.03543, allocations: 7.103 MB / 368 MB, free: 4.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.03544, allocations: 7.984 kB / 368 MB, free: 4.242 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.03544, allocations: 0 / 368 MB, free: 4.242 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.471e-05/0.03547, allocations: 0 / 368 MB, free: 4.242 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.006224/0.0417, allocations: 5.055 MB / 373 MB, free: 15.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.04174, allocations: 11.98 kB / 373.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000492/0.04223, allocations: 0.6245 MB / 373.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07414/0.1164, allocations: 12.72 MB / 386.4 MB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005899/0.1223, allocations: 3.305 MB / 389.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-05/0.1224, allocations: 205.2 kB / 389.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003511/0.1227, allocations: 267.8 kB / 390.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008767/0.1315, allocations: 8.834 MB / 399 MB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.109e-05/0.1316, allocations: 47.59 kB / 399 MB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000232/0.1318, allocations: 127.9 kB / 399.2 MB, free: 4.234 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001667/0.1335, allocations: 1.766 MB / 400.9 MB, free: 2.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008238/0.1417, allocations: 7.522 MB / 408.5 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02519/0.1669, allocations: 33.98 MB / 442.4 MB, free: 7.988 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004306/0.1712, allocations: 3.194 MB / 445.6 MB, free: 4.758 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/0.1729, allocations: 1.9 MB / 447.5 MB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001848/0.1731, allocations: 92.81 kB / 447.6 MB, free: 2.758 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.1731, allocations: 59.48 kB / 447.7 MB, free: 2.688 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.357e-06/0.1731, allocations: 0 / 447.7 MB, free: 2.688 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.1951/0.3683, allocations: 20.68 MB / 468.4 MB, free: 107 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/0.3683, allocations: 256.6 kB / 468.6 MB, free: 106.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003519/0.3719, allocations: 4.492 MB / 473.1 MB, free: 102.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.372, allocations: 53.7 kB / 473.2 MB, free: 102.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008937/0.3729, allocations: 2.897 MB / 476.1 MB, free: 99.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003572/0.3732, allocations: 0.7396 MB / 476.8 MB, free: 98.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008145/0.374, allocations: 1.096 MB / 477.9 MB, free: 97.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.316e-05/0.3741, allocations: 313 kB / 478.2 MB, free: 97.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.3759, allocations: 2.162 MB / 480.4 MB, free: 95.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003203/0.3791, allocations: 5.51 MB / 485.9 MB, free: 88.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005852/0.3849, allocations: 8.189 MB / 494.1 MB, free: 78.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.394e-05/0.385, allocations: 35.94 kB / 494.1 MB, free: 78.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.008131/0.3931, allocations: 8.636 MB / 0.4909 GB, free: 69.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.197e-05/0.3931, allocations: 56.22 kB / 0.491 GB, free: 69.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-05/0.3932, allocations: 116.9 kB / 0.4911 GB, free: 69.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002162/0.3954, allocations: 1.499 MB / 0.4926 GB, free: 68.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/0.3971, allocations: 1.224 MB / 0.4938 GB, free: 66.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007519/0.4047, allocations: 9.811 MB / 0.5034 GB, free: 56.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002747/0.4074, allocations: 379.5 kB / 0.5037 GB, free: 56.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.4076, allocations: 332 kB / 0.504 GB, free: 56.29 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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001975/0.4096, allocations: 1.941 MB / 0.5059 GB, free: 54.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.41, allocations: 369.5 kB / 0.5063 GB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004104/0.4141, allocations: 4.139 MB / 0.5103 GB, free: 49.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.4141, allocations: 23.83 kB / 0.5103 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.4141, allocations: 12 kB / 0.5104 GB, free: 49.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.4141, allocations: 7.969 kB / 0.5104 GB, free: 49.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008371/0.4225, allocations: 8.936 MB / 0.5191 GB, free: 40.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.4225, allocations: 3.938 kB / 0.5191 GB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006098/0.4231, allocations: 263.6 kB / 0.5193 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/0.425, allocations: 1.351 MB / 0.5207 GB, free: 39.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/0.4251, allocations: 28 kB / 0.5207 GB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006443/0.4315, allocations: 8.833 MB / 0.5293 GB, free: 30.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4315, allocations: 5.969 kB / 0.5293 GB, free: 30.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005814/0.4373, allocations: 7.038 MB / 0.5362 GB, free: 23.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.4378, allocations: 409.3 kB / 0.5366 GB, free: 22.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002361/0.4381, allocations: 35.88 kB / 0.5366 GB, free: 22.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009656/0.439, allocations: 175.7 kB / 0.5368 GB, free: 22.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.4392, allocations: 117.1 kB / 0.5369 GB, free: 22.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.129e-05/0.4393, allocations: 44 kB / 0.5369 GB, free: 22.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002316/0.4416, allocations: 2.786 MB / 0.5397 GB, free: 19.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4416, allocations: 4 kB / 0.5397 GB, free: 19.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003003/0.4446, allocations: 1.162 MB / 0.5408 GB, free: 18.47 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006152/0.4508, allocations: 7.702 MB / 0.5483 GB, free: 10.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004601/0.4554, allocations: 5.158 MB / 0.5534 GB, free: 5.582 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4554, allocations: 0 / 0.5534 GB, free: 5.582 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001688/0.4571, allocations: 1.936 MB / 0.5552 GB, free: 3.633 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.4586, allocations: 0.4955 MB / 0.5557 GB, free: 3.152 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0442/0.5028, allocations: 46.81 MB / 0.6014 GB, free: 15.36 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002176/0.505, allocations: 2.543 MB / 0.6039 GB, free: 12.79 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002568/0.5076, allocations: 1.831 MB / 0.6057 GB, free: 10.95 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00174/0.5093, allocations: 1.766 MB / 0.6074 GB, free: 9.188 MB / 474.7 MB Notification: Performance of SimCode: time 2.655e-06/0.5093, allocations: 0 / 0.6074 GB, free: 9.188 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2245/0.7338, allocations: 78.59 MB / 0.6842 GB, free: 104.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/11.02, allocations: 10.88 kB / 0.6842 GB, free: 104.1 MB / 474.7 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 13.14675913285464]