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.001445/0.001445, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001614/0.001614, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 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 1.485/1.485, allocations: 177.2 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.974e-06/1.974e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.968e-05/3.165e-05, allocations: 6.312 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01309/0.01313, allocations: 9.134 MB / 281.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0086/0.02173, allocations: 3.788 MB / 285.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.02287, allocations: 79.56 kB / 285.3 MB, free: 4.758 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004613/0.02749, allocations: 2.281 MB / 287.6 MB, free: 2.469 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00526/0.03275, allocations: 1.94 MB / 289.6 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1337/0.1664, allocations: 0.8383 MB / 290.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007208/0.1736, allocations: 5.979 MB / 296.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003722/0.1774, allocations: 3.009 MB / 299.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003011/0.1804, allocations: 2.293 MB / 301.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002865/0.1832, allocations: 2.366 MB / 304 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005561/0.1838, allocations: 317.8 kB / 304.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001764/0.1855, allocations: 1.135 MB / 305.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001264/0.1868, allocations: 1.983 MB / 307.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.188, allocations: 1.21 MB / 308.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00485/0.1929, allocations: 6.831 MB / 315.5 MB, free: 4.855 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.1929, allocations: 0 / 315.5 MB, free: 4.855 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1929, allocations: 0 / 315.5 MB, free: 4.855 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.732e-05/0.193, allocations: 0 / 315.5 MB, free: 4.855 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.007889/0.2009, allocations: 4.818 MB / 320.3 MB, free: 80 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.2009, allocations: 8.031 kB / 320.3 MB, free: 72 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02536/0.2263, allocations: 3.62 MB / 324 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008713/0.235, allocations: 3.211 MB / 327.2 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.2352, allocations: 205 kB / 327.4 MB, free: 9.199 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007747/0.2359, allocations: 273.1 kB / 327.6 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0169/0.2528, allocations: 9.058 MB / 336.7 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001259/0.253, allocations: 49.09 kB / 336.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000386/0.2534, allocations: 128 kB / 336.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003382/0.2567, allocations: 1.775 MB / 338.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01587/0.2726, allocations: 7.869 MB / 346.5 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05245/0.3251, allocations: 33.97 MB / 380.5 MB, free: 3.379 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00838/0.3334, allocations: 2.923 MB / 383.4 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003402/0.3368, allocations: 2.055 MB / 385.5 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004268/0.3373, allocations: 127.8 kB / 385.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/0.3373, allocations: 47.56 kB / 385.6 MB, free: 14.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=161): time 4.008e-06/0.3373, allocations: 4 kB / 385.6 MB, free: 14.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=190): time 0.08417/0.4215, allocations: 29.23 MB / 414.9 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002098/0.4217, allocations: 256.6 kB / 415.1 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006402/0.4281, allocations: 3.842 MB / 419 MB, free: 12.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006678/0.4288, allocations: 60.38 kB / 419 MB, free: 12.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002895/0.4317, allocations: 2.86 MB / 421.9 MB, free: 9.926 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00141/0.4331, allocations: 0.7446 MB / 422.6 MB, free: 9.191 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002199/0.4353, allocations: 1.167 MB / 423.8 MB, free: 8.012 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.4355, allocations: 301.1 kB / 424.1 MB, free: 7.715 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004497/0.44, allocations: 2.611 MB / 426.7 MB, free: 5.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1517/0.5917, allocations: 5.933 MB / 432.6 MB, free: 116.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009661/0.6013, allocations: 8.998 MB / 441.6 MB, free: 110.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001872/0.6015, allocations: 35.22 kB / 441.7 MB, free: 110.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=743) (initialization): time 0.0196/0.6211, allocations: 10.98 MB / 452.6 MB, free: 106.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.428e-05/0.6212, allocations: 50.22 kB / 452.7 MB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001345/0.6213, allocations: 114.4 kB / 452.8 MB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008015/0.6293, allocations: 3.096 MB / 455.9 MB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003699/0.633, allocations: 1.281 MB / 457.2 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/0.6489, allocations: 13.63 MB / 470.8 MB, free: 94.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005696/0.6546, allocations: 439 kB / 471.2 MB, free: 94.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001236/0.6558, allocations: 332 kB / 471.6 MB, free: 94.15 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.003201/0.659, allocations: 1.933 MB / 473.5 MB, free: 92.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009865/0.66, allocations: 389 kB / 473.9 MB, free: 92.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/0.6702, allocations: 6.035 MB / 479.9 MB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.916e-05/0.6702, allocations: 26.02 kB / 479.9 MB, free: 86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.6702, allocations: 8 kB / 479.9 MB, free: 85.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.82e-05/0.6703, allocations: 11.97 kB / 480 MB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/0.6885, allocations: 10.74 MB / 490.7 MB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.106e-05/0.6885, allocations: 3.938 kB / 490.7 MB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.6898, allocations: 275.6 kB / 491 MB, free: 75.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007861/0.6977, allocations: 2.939 MB / 493.9 MB, free: 72.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003764/0.6981, allocations: 28 kB / 493.9 MB, free: 72.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01375/0.7118, allocations: 12.58 MB / 0.4946 GB, free: 59.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.7118, allocations: 14.73 kB / 0.4946 GB, free: 59.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01388/0.7257, allocations: 9.519 MB / 0.5039 GB, free: 50.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.7271, allocations: 355.1 kB / 0.5043 GB, free: 49.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001029/0.7281, allocations: 31.59 kB / 0.5043 GB, free: 49.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002236/0.7304, allocations: 235.6 kB / 0.5045 GB, free: 49.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004942/0.7309, allocations: 117 kB / 0.5047 GB, free: 49.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/0.731, allocations: 51.98 kB / 0.5047 GB, free: 49.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003021/0.734, allocations: 2.297 MB / 0.5069 GB, free: 47 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.734, allocations: 3.938 kB / 0.5069 GB, free: 47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005532/0.7396, allocations: 1.242 MB / 0.5082 GB, free: 45.76 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.0005472/0.7401, allocations: 185.5 kB / 0.5083 GB, free: 45.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008532/0.7487, allocations: 6.018 MB / 0.5142 GB, free: 39.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.7487, allocations: 0 / 0.5142 GB, free: 39.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00269/0.7513, allocations: 2.197 MB / 0.5164 GB, free: 37.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/0.754, allocations: 446.2 kB / 0.5168 GB, free: 36.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.7674, allocations: 9.65 MB / 0.5262 GB, free: 27.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002404/0.7698, allocations: 2.552 MB / 0.5287 GB, free: 24.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003376/0.7732, allocations: 1.777 MB / 0.5304 GB, free: 22.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007839/0.774, allocations: 220.4 kB / 0.5306 GB, free: 22.71 MB / 378.7 MB Notification: Performance of SimCode: time 1.773e-06/0.774, allocations: 0 / 0.5306 GB, free: 22.71 MB / 378.7 MB Notification: Performance of Templates: time 0.2037/0.9777, allocations: 46.37 MB / 0.5759 GB, free: 122 MB / 394.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.651462830021046]