Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.0009118/0.0009118, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.0009285/0.0009285, allocations: 150.5 kB / 24.81 MB, free: 9.285 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 1.013/1.013, allocations: 173.3 MB / 201.4 MB, free: 9.203 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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.197e-05/1.391e-05, allocations: 2.312 kB / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.008519/0.008533, allocations: 11.32 MB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006002/0.01454, allocations: 4.097 MB / 283.8 MB, free: 6.684 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007643/0.0153, allocations: 83.56 kB / 283.9 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002968/0.01827, allocations: 2.904 MB / 286.8 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002704/0.02097, allocations: 2.115 MB / 288.9 MB, free: 1.562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.02199, allocations: 0.8888 MB / 289.8 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1151/0.1371, allocations: 5.236 MB / 295.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003848/0.141, allocations: 3.549 MB / 298.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00333/0.1443, allocations: 2.665 MB / 301.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002867/0.1472, allocations: 2.628 MB / 303.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009363/0.1481, allocations: 356.2 kB / 304.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00191/0.15, allocations: 1.241 MB / 305.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001147/0.1511, allocations: 2.279 MB / 307.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001332/0.1525, allocations: 1.425 MB / 309.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003123/0.1556, allocations: 5.07 MB / 314.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1556, allocations: 0 / 314.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1556, allocations: 0 / 314.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.738e-05/0.1557, allocations: 3.984 kB / 314.3 MB, free: 8.848 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.004313/0.16, allocations: 5.51 MB / 319.8 MB, free: 3.699 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.16, allocations: 8.922 kB / 319.8 MB, free: 3.691 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003409/0.1634, allocations: 1.726 MB / 321.5 MB, free: 2.004 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.1652, allocations: 2.031 MB / 323.5 MB, free: 108 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.1654, allocations: 265 kB / 323.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005602/0.1659, allocations: 432.4 kB / 324.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007615/0.1736, allocations: 6.567 MB / 330.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.785e-05/0.1736, allocations: 43.2 kB / 330.8 MB, free: 8.316 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002927/0.1739, allocations: 178.8 kB / 331 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001594/0.1755, allocations: 1.928 MB / 332.9 MB, free: 6.285 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006194/0.1817, allocations: 3.206 MB / 336.1 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02992/0.2117, allocations: 48.82 MB / 385 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005054/0.2167, allocations: 2.567 MB / 387.5 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005965/0.2173, allocations: 0.5777 MB / 388.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005082/0.2224, allocations: 4.741 MB / 392.9 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.2224, allocations: 50.7 kB / 392.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=183): time 3.196e-06/0.2224, allocations: 0 / 392.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=205): time 0.01654/0.239, allocations: 8.032 MB / 400.9 MB, free: 2.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001052/0.24, allocations: 2.012 MB / 403 MB, free: 336 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/0.2428, allocations: 3.682 MB / 406.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.974e-05/0.2429, allocations: 61.86 kB / 406.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.2448, allocations: 3.743 MB / 410.4 MB, free: 9.262 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005317/0.2453, allocations: 0.8645 MB / 411.3 MB, free: 8.391 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/0.2465, allocations: 1.475 MB / 412.8 MB, free: 6.902 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.2466, allocations: 484.7 kB / 413.3 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.2476, allocations: 0.7121 MB / 414 MB, free: 5.711 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004313/0.2519, allocations: 6.858 MB / 420.8 MB, free: 12.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006086/0.258, allocations: 8.364 MB / 429.2 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.33e-05/0.2581, allocations: 44 kB / 429.2 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.135/0.393, allocations: 5.903 MB / 435.1 MB, free: 111.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.182e-05/0.3931, allocations: 68 kB / 435.2 MB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003876/0.397, allocations: 1.348 MB / 436.5 MB, free: 111.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003471/0.4004, allocations: 0.5947 MB / 437.1 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002549/0.403, allocations: 1.534 MB / 438.7 MB, free: 110.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002965/0.406, allocations: 4.234 MB / 442.9 MB, free: 107.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002679/0.4086, allocations: 303.9 kB / 443.2 MB, free: 107.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003312/0.409, allocations: 362.1 kB / 443.6 MB, free: 107.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 666 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (857): * Single equations (assignments): 848 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001152/0.4101, allocations: 0.7285 MB / 444.3 MB, free: 107 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000364/0.4105, allocations: 410.3 kB / 444.7 MB, free: 107 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.4126, allocations: 1.561 MB / 446.2 MB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001614/0.4142, allocations: 1.038 MB / 447.3 MB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.4142, allocations: 3.625 kB / 447.3 MB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.4142, allocations: 13.38 kB / 447.3 MB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008305/0.4225, allocations: 7.341 MB / 454.6 MB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.4225, allocations: 18.08 kB / 454.7 MB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006718/0.4232, allocations: 321.2 kB / 455 MB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009923/0.4242, allocations: 375.1 kB / 455.3 MB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-05/0.4243, allocations: 62.59 kB / 455.4 MB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.4258, allocations: 3.964 MB / 459.4 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004285/0.4263, allocations: 1.899 MB / 461.3 MB, free: 99.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002719/0.429, allocations: 3.14 MB / 464.4 MB, free: 97.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.4293, allocations: 363.7 kB / 464.8 MB, free: 97.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.4295, allocations: 56.09 kB / 464.8 MB, free: 97.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007406/0.4302, allocations: 56 kB / 464.9 MB, free: 97.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.4304, allocations: 175.5 kB / 465 MB, free: 97.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-05/0.4305, allocations: 62.17 kB / 465.1 MB, free: 97.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001005/0.4315, allocations: 1.467 MB / 466.6 MB, free: 96.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4315, allocations: 0 / 466.6 MB, free: 96.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002979/0.4345, allocations: 1.291 MB / 467.9 MB, free: 95.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003233/0.4348, allocations: 240.3 kB / 468.1 MB, free: 95.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.4381, allocations: 3.575 MB / 471.7 MB, free: 91.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4381, allocations: 4 kB / 471.7 MB, free: 91.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.4392, allocations: 1.203 MB / 472.9 MB, free: 90.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.4406, allocations: 460.3 kB / 473.3 MB, free: 90.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008166/0.4488, allocations: 8.984 MB / 482.3 MB, free: 81.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009355/0.4497, allocations: 1.332 MB / 483.6 MB, free: 80.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001111/0.4508, allocations: 0.5532 MB / 484.2 MB, free: 79.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007834/0.4516, allocations: 0.6465 MB / 484.8 MB, free: 78.82 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.4516, allocations: 0 / 484.8 MB, free: 78.82 MB / 378.7 MB Notification: Performance of Templates: time 0.04704/0.4987, allocations: 39.87 MB / 0.5124 GB, free: 39.41 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.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: 4.084484836086631]