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.001957/0.001957, allocations: 92.27 kB / 20.96 MB, free: 3.445 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.001567/0.001567, allocations: 152.9 kB / 24.26 MB, free: 148 kB / 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 1.463/1.463, allocations: 177 MB / 204.5 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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: 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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 272.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.735e-05/2.885e-05, allocations: 2.312 kB / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01287/0.01289, allocations: 9.128 MB / 281.3 MB, free: 8.602 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008948/0.02184, allocations: 3.792 MB / 285.1 MB, free: 4.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.02363, allocations: 79.56 kB / 285.2 MB, free: 4.719 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00513/0.02876, allocations: 2.293 MB / 287.5 MB, free: 2.418 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005076/0.03384, allocations: 1.933 MB / 289.4 MB, free: 488 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1287/0.1625, allocations: 0.8344 MB / 290.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00911/0.1716, allocations: 5.982 MB / 296.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004344/0.1759, allocations: 3.003 MB / 299.3 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00378/0.1797, allocations: 2.299 MB / 301.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00355/0.1833, allocations: 2.363 MB / 303.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001441/0.1847, allocations: 317.2 kB / 304.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002556/0.1873, allocations: 1.139 MB / 305.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001517/0.1888, allocations: 1.973 MB / 307.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.1901, allocations: 1.212 MB / 308.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005965/0.1961, allocations: 6.839 MB / 315.4 MB, free: 4.895 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1961, allocations: 0 / 315.4 MB, free: 4.895 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1961, allocations: 3.938 kB / 315.4 MB, free: 4.891 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001771/0.1963, allocations: 0 / 315.4 MB, free: 4.891 MB / 266.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.009769/0.2061, allocations: 4.811 MB / 320.2 MB, free: 120 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2061, allocations: 15.98 kB / 320.2 MB, free: 104 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02631/0.2324, allocations: 3.625 MB / 323.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00844/0.2408, allocations: 3.206 MB / 327.1 MB, free: 9.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.2411, allocations: 198.4 kB / 327.3 MB, free: 9.238 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001467/0.2426, allocations: 272.3 kB / 327.5 MB, free: 9.004 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01827/0.2608, allocations: 9.065 MB / 336.6 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000178/0.261, allocations: 52.33 kB / 336.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005585/0.2616, allocations: 130.1 kB / 336.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003496/0.2651, allocations: 1.773 MB / 338.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0183/0.2834, allocations: 7.868 MB / 346.4 MB, free: 5.859 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05587/0.3392, allocations: 33.98 MB / 380.4 MB, free: 3.406 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01282/0.3521, allocations: 2.91 MB / 383.3 MB, free: 484 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00491/0.357, allocations: 2.064 MB / 385.4 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006159/0.3576, allocations: 120.8 kB / 385.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.551e-05/0.3577, allocations: 51.56 kB / 385.5 MB, free: 14.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=161): time 8.165e-06/0.3577, allocations: 0 / 385.5 MB, free: 14.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=190): time 0.1097/0.4673, allocations: 29.23 MB / 414.8 MB, free: 1.023 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004782/0.4678, allocations: 259.9 kB / 415 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007902/0.4757, allocations: 3.845 MB / 418.8 MB, free: 12.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006097/0.4763, allocations: 57.7 kB / 418.9 MB, free: 12.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003116/0.4795, allocations: 2.862 MB / 421.8 MB, free: 9.957 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002005/0.4815, allocations: 0.7427 MB / 422.5 MB, free: 9.223 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003649/0.4851, allocations: 1.166 MB / 423.7 MB, free: 8.047 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.4853, allocations: 301.1 kB / 424 MB, free: 7.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004813/0.4901, allocations: 2.615 MB / 426.6 MB, free: 5.129 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1492/0.6393, allocations: 5.933 MB / 432.5 MB, free: 116.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0108/0.6501, allocations: 9.001 MB / 441.5 MB, free: 110.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001748/0.6502, allocations: 35.28 kB / 441.6 MB, free: 110.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=743) (initialization): time 0.02064/0.6709, allocations: 10.97 MB / 452.5 MB, free: 106.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.004e-05/0.671, allocations: 58.3 kB / 452.6 MB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.6711, allocations: 110.1 kB / 452.7 MB, free: 106.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008101/0.6792, allocations: 3.094 MB / 455.8 MB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00452/0.6837, allocations: 1.283 MB / 457.1 MB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0158/0.6995, allocations: 13.63 MB / 470.7 MB, free: 94.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005574/0.7051, allocations: 440 kB / 471.1 MB, free: 94.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/0.7062, allocations: 332 kB / 471.5 MB, free: 94.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 509 * 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 (680): * Single equations (assignments): 676 * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002729/0.7089, allocations: 1.935 MB / 473.4 MB, free: 92.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008839/0.7098, allocations: 390.7 kB / 473.8 MB, free: 92.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/0.72, allocations: 6.035 MB / 479.8 MB, free: 86.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-05/0.72, allocations: 20 kB / 479.8 MB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.777e-05/0.7201, allocations: 8 kB / 479.8 MB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.728e-05/0.7201, allocations: 11.97 kB / 479.8 MB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01834/0.7384, allocations: 10.74 MB / 490.6 MB, free: 75.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.431e-05/0.7385, allocations: 0 / 490.6 MB, free: 75.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.7398, allocations: 276.5 kB / 490.9 MB, free: 75.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007798/0.7476, allocations: 2.936 MB / 493.8 MB, free: 72.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004085/0.748, allocations: 28 kB / 493.8 MB, free: 72.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01476/0.7628, allocations: 12.59 MB / 0.4945 GB, free: 59.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.7628, allocations: 0 / 0.4945 GB, free: 59.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/0.778, allocations: 9.521 MB / 0.5038 GB, free: 50.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/0.7794, allocations: 353.8 kB / 0.5042 GB, free: 49.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001224/0.7806, allocations: 28 kB / 0.5042 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/0.7834, allocations: 235.6 kB / 0.5044 GB, free: 49.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006951/0.7841, allocations: 121.6 kB / 0.5045 GB, free: 49.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00024/0.7843, allocations: 45.31 kB / 0.5046 GB, free: 49.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003154/0.7875, allocations: 2.301 MB / 0.5068 GB, free: 47.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7875, allocations: 0 / 0.5068 GB, free: 47.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00603/0.7935, allocations: 1.245 MB / 0.5081 GB, free: 45.81 MB / 378.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 (134): * Single equations (assignments): 130 * 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,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005379/0.794, allocations: 181.5 kB / 0.5082 GB, free: 45.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008337/0.8024, allocations: 6.012 MB / 0.5141 GB, free: 39.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/0.8024, allocations: 0 / 0.5141 GB, free: 39.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002934/0.8053, allocations: 2.21 MB / 0.5163 GB, free: 37.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002857/0.8082, allocations: 449.4 kB / 0.5167 GB, free: 37.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01418/0.8224, allocations: 9.658 MB / 0.5261 GB, free: 27.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002638/0.825, allocations: 2.537 MB / 0.5286 GB, free: 24.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00354/0.8285, allocations: 1.777 MB / 0.5303 GB, free: 22.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008883/0.8294, allocations: 228.4 kB / 0.5305 GB, free: 22.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.784e-06/0.8294, allocations: 0 / 0.5305 GB, free: 22.75 MB / 378.7 MB Notification: Performance of Templates: time 0.2168/1.046, allocations: 46.37 MB / 0.5758 GB, free: 122 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] 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: 6.914079153910279]