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.001449/0.001449, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001695/0.001695, allocations: 170.4 kB / 24.91 MB, free: 8.723 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.9284/0.9284, allocations: 177.1 MB / 205.3 MB, free: 5.113 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.343e-06/1.343e-06, allocations: 0 / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.285e-05/1.42e-05, allocations: 2.312 kB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01726/0.01727, allocations: 9.871 MB / 283.3 MB, free: 7.266 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.02936, allocations: 4.013 MB / 287.3 MB, free: 3.238 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005928/0.02995, allocations: 79.56 kB / 287.4 MB, free: 3.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002897/0.03285, allocations: 2.359 MB / 289.8 MB, free: 0.793 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.09851/0.1314, allocations: 1.97 MB / 291.7 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001309/0.1327, allocations: 0.8375 MB / 292.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005236/0.1379, allocations: 5.976 MB / 298.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003622/0.1415, allocations: 3.081 MB / 301.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.1444, allocations: 3.266 MB / 304.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.1463, allocations: 2.266 MB / 307.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003529/0.1466, allocations: 309.8 kB / 307.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001/0.1476, allocations: 1.132 MB / 308.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008086/0.1484, allocations: 1.982 MB / 310.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007189/0.1491, allocations: 1.215 MB / 311.8 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.1513, allocations: 4.493 MB / 316.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1513, allocations: 0 / 316.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1513, allocations: 0 / 316.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.563e-05/0.1513, allocations: 4 kB / 316.3 MB, free: 4.68 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.003423/0.1548, allocations: 4.335 MB / 320.6 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.577e-05/0.1548, allocations: 12.02 kB / 320.6 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003311/0.1581, allocations: 1.21 MB / 321.9 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/0.1605, allocations: 2.103 MB / 324 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.306e-05/0.1606, allocations: 195.1 kB / 324.1 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003028/0.1609, allocations: 275.2 kB / 324.4 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003801/0.1647, allocations: 4.43 MB / 328.8 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.599e-05/0.1647, allocations: 48.95 kB / 328.9 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/0.165, allocations: 131.3 kB / 329 MB, free: 8.242 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001399/0.1664, allocations: 1.514 MB / 330.5 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003113/0.1695, allocations: 2.201 MB / 332.7 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01672/0.1862, allocations: 28.06 MB / 360.8 MB, free: 8.652 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002477/0.1887, allocations: 1.273 MB / 362.1 MB, free: 7.383 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003518/0.189, allocations: 308.1 kB / 362.4 MB, free: 7.074 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003392/0.1924, allocations: 3.227 MB / 365.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1924, allocations: 55.2 kB / 365.7 MB, free: 3.809 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 2.424e-06/0.1924, allocations: 0 / 365.7 MB, free: 3.809 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.0113/0.2038, allocations: 5.351 MB / 371 MB, free: 14.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.2038, allocations: 244 kB / 371.2 MB, free: 14.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/0.2058, allocations: 3.122 MB / 374.4 MB, free: 11.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.332e-05/0.2059, allocations: 53.69 kB / 374.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.2071, allocations: 2.765 MB / 377.2 MB, free: 8.336 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.2074, allocations: 0.5544 MB / 377.7 MB, free: 7.777 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007622/0.2081, allocations: 1.06 MB / 378.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.659e-05/0.2082, allocations: 301.1 kB / 379.1 MB, free: 6.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000932/0.2091, allocations: 0.6863 MB / 379.8 MB, free: 5.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002372/0.2115, allocations: 4.08 MB / 383.9 MB, free: 15.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003157/0.2147, allocations: 5.145 MB / 389 MB, free: 9.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.941e-05/0.2147, allocations: 36 kB / 389 MB, free: 9.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.003515/0.2182, allocations: 3.831 MB / 392.9 MB, free: 5.215 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.314e-05/0.2182, allocations: 56 kB / 392.9 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.267e-05/0.2183, allocations: 120 kB / 393 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009388/0.2193, allocations: 403.9 kB / 393.4 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/0.2211, allocations: 1.236 MB / 394.7 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.2227, allocations: 2.168 MB / 396.8 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.2242, allocations: 247.7 kB / 397.1 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/0.2244, allocations: 288 kB / 397.4 MB, free: 0.6172 MB / 346.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.0006783/0.2251, allocations: 0.572 MB / 397.9 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002508/0.2253, allocations: 203.8 kB / 398.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009821/0.2263, allocations: 0.7803 MB / 398.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.2263, allocations: 16 kB / 398.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2263, allocations: 8 kB / 398.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.2263, allocations: 3.984 kB / 398.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003758/0.2301, allocations: 3.538 MB / 402.5 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.2301, allocations: 7.938 kB / 402.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.2305, allocations: 183.8 kB / 402.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006818/0.2312, allocations: 410.2 kB / 403.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.2312, allocations: 31.98 kB / 403.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.2325, allocations: 1.903 MB / 405 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2326, allocations: 11.94 kB / 405 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.2339, allocations: 1.674 MB / 406.7 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.2342, allocations: 313.7 kB / 407 MB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.2344, allocations: 31.94 kB / 407 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005561/0.2349, allocations: 35.98 kB / 407.1 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.235, allocations: 88.17 kB / 407.1 MB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.85e-05/0.2351, allocations: 39.98 kB / 407.2 MB, free: 6.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001108/0.2362, allocations: 1.166 MB / 408.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2362, allocations: 0 / 408.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002097/0.2383, allocations: 0.9726 MB / 409.3 MB, free: 4.281 MB / 362.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.0002393/0.2385, allocations: 156 kB / 409.5 MB, free: 4.121 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001865/0.2404, allocations: 2.251 MB / 411.7 MB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001305/0.2405, allocations: 96.47 kB / 411.8 MB, free: 1.773 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.241, allocations: 494.2 kB / 412.3 MB, free: 1.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.2423, allocations: 0.5903 MB / 412.9 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00611/0.2484, allocations: 6.729 MB / 419.6 MB, free: 9.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008342/0.2493, allocations: 1.121 MB / 420.7 MB, free: 8.664 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008779/0.2501, allocations: 465.3 kB / 421.2 MB, free: 8.207 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006895/0.2508, allocations: 0.5245 MB / 421.7 MB, free: 7.68 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2508, allocations: 0 / 421.7 MB, free: 7.68 MB / 378.7 MB Notification: Performance of Templates: time 0.1255/0.3764, allocations: 29.96 MB / 451.7 MB, free: 108.3 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: 3.359725588001311]