Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.0009381/0.0009381, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009078/0.0009078, allocations: 168.8 kB / 24.99 MB, free: 8.793 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 1.06/1.06, allocations: 177.1 MB / 205.3 MB, free: 5.594 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.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.62e-07/9.62e-07, allocations: 0 / 273.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23e-05/1.327e-05, allocations: 2.312 kB / 273.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.008535/0.008549, allocations: 11.61 MB / 284.7 MB, free: 6.152 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006154/0.0147, allocations: 4.118 MB / 288.8 MB, free: 2.023 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008332/0.01554, allocations: 87.56 kB / 288.9 MB, free: 1.938 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1083/0.1239, allocations: 2.949 MB / 291.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004484/0.1283, allocations: 2.056 MB / 293.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.1298, allocations: 0.896 MB / 294.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004728/0.1345, allocations: 5.386 MB / 300.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002727/0.1372, allocations: 3.534 MB / 303.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002438/0.1397, allocations: 2.611 MB / 306.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.1417, allocations: 2.652 MB / 309 MB, free: 9.816 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004904/0.1422, allocations: 360.3 kB / 309.3 MB, free: 9.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.1435, allocations: 1.236 MB / 310.5 MB, free: 9.434 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009391/0.1444, allocations: 2.25 MB / 312.8 MB, free: 7.809 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009893/0.1454, allocations: 1.421 MB / 314.2 MB, free: 6.453 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003001/0.1484, allocations: 5.017 MB / 319.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.1484, allocations: 0 / 319.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1484, allocations: 0 / 319.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.354e-05/0.1485, allocations: 0 / 319.2 MB, free: 1.773 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.005313/0.1538, allocations: 5.767 MB / 325 MB, free: 12.06 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.1538, allocations: 8.031 kB / 325 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005029/0.1589, allocations: 2.796 MB / 327.8 MB, free: 9.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002393/0.1612, allocations: 2.241 MB / 330.1 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.1614, allocations: 273.9 kB / 330.3 MB, free: 6.965 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005581/0.1619, allocations: 424.9 kB / 330.7 MB, free: 6.598 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009748/0.1717, allocations: 8.085 MB / 338.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.642e-05/0.1718, allocations: 48.05 kB / 338.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003158/0.1721, allocations: 173.1 kB / 339 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002086/0.1742, allocations: 2.163 MB / 341.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00914/0.1833, allocations: 4.846 MB / 346 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02762/0.2109, allocations: 49.49 MB / 395.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005596/0.2165, allocations: 2.862 MB / 398.4 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008149/0.2174, allocations: 0.6781 MB / 399.1 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005581/0.2229, allocations: 4.953 MB / 404 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.223, allocations: 58.64 kB / 404.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=183): time 3.136e-06/0.223, allocations: 0 / 404.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=205): time 0.02079/0.2438, allocations: 12.32 MB / 416.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009103/0.2447, allocations: 2.04 MB / 418.4 MB, free: 12.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003147/0.2478, allocations: 3.683 MB / 422.1 MB, free: 9.078 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.144e-05/0.2479, allocations: 56.05 kB / 422.2 MB, free: 9.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001689/0.2496, allocations: 3.708 MB / 425.9 MB, free: 5.328 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005117/0.2501, allocations: 0.8637 MB / 426.8 MB, free: 4.477 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/0.2513, allocations: 1.45 MB / 428.2 MB, free: 3.016 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.085e-05/0.2514, allocations: 484.7 kB / 428.7 MB, free: 2.539 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.2526, allocations: 0.7942 MB / 429.5 MB, free: 1.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1162/0.3688, allocations: 6.883 MB / 436.4 MB, free: 111.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006073/0.3749, allocations: 8.488 MB / 444.8 MB, free: 102.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.721e-05/0.375, allocations: 45.97 kB / 444.9 MB, free: 102.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01207/0.387, allocations: 7.311 MB / 452.2 MB, free: 101.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.852e-05/0.3871, allocations: 66.72 kB / 452.3 MB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004716/0.3918, allocations: 2.445 MB / 454.7 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004771/0.3966, allocations: 1.849 MB / 456.6 MB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/0.3991, allocations: 1.597 MB / 458.2 MB, free: 101.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003613/0.4027, allocations: 4.722 MB / 462.9 MB, free: 97.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002984/0.4057, allocations: 0.5039 MB / 463.4 MB, free: 97.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004129/0.4061, allocations: 418.8 kB / 463.8 MB, free: 97.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (856): * Single equations (assignments): 847 * 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.001335/0.4074, allocations: 0.7249 MB / 464.5 MB, free: 97.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004424/0.4079, allocations: 414.7 kB / 464.9 MB, free: 97.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002588/0.4105, allocations: 1.874 MB / 466.8 MB, free: 96.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001983/0.4124, allocations: 1.404 MB / 468.2 MB, free: 95.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.4125, allocations: 4 kB / 468.2 MB, free: 95.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.4125, allocations: 7.969 kB / 468.2 MB, free: 95.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008694/0.4212, allocations: 7.794 MB / 476 MB, free: 87.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/0.4212, allocations: 12 kB / 476 MB, free: 87.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/0.422, allocations: 375.5 kB / 476.4 MB, free: 87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.4232, allocations: 0.5689 MB / 476.9 MB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.4233, allocations: 62.39 kB / 477 MB, free: 86.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001852/0.4252, allocations: 4.177 MB / 481.2 MB, free: 81.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003893/0.4256, allocations: 1.914 MB / 483.1 MB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.4288, allocations: 3.56 MB / 486.7 MB, free: 76.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003928/0.4292, allocations: 369 kB / 487 MB, free: 76.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.4295, allocations: 59.97 kB / 487.1 MB, free: 76.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009043/0.4304, allocations: 197.6 kB / 487.3 MB, free: 75.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.4306, allocations: 188.1 kB / 487.5 MB, free: 75.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.838e-05/0.4307, allocations: 75.97 kB / 487.5 MB, free: 75.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001345/0.432, allocations: 1.567 MB / 489.1 MB, free: 74.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.432, allocations: 0 / 489.1 MB, free: 74.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00345/0.4355, allocations: 1.264 MB / 490.4 MB, free: 72.77 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.0003267/0.4358, allocations: 222.4 kB / 490.6 MB, free: 72.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004537/0.4403, allocations: 3.965 MB / 494.5 MB, free: 68.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.4403, allocations: 4 kB / 494.5 MB, free: 68.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.4419, allocations: 1.482 MB / 496 MB, free: 67.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.4433, allocations: 457.4 kB / 496.5 MB, free: 66.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00822/0.4516, allocations: 9.042 MB / 0.4937 GB, free: 57.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008699/0.4524, allocations: 1.339 MB / 0.495 GB, free: 55.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002128/0.4546, allocations: 1.723 MB / 0.4967 GB, free: 54.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004237/0.455, allocations: 268.4 kB / 0.4969 GB, free: 53.91 MB / 378.7 MB Notification: Performance of SimCode: time 1.693e-06/0.455, allocations: 4 kB / 0.4969 GB, free: 53.91 MB / 378.7 MB Notification: Performance of Templates: time 0.04272/0.4977, allocations: 36.38 MB / 0.5325 GB, free: 18.11 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.084981902036816]