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.00106/0.00106, allocations: 80.72 kB / 22.21 MB, free: 2.289 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.001077/0.001077, allocations: 149.2 kB / 25.59 MB, free: 8.934 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 0.9413/0.9413, allocations: 173.4 MB / 202.3 MB, free: 8.305 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.583e-06/1.583e-06, allocations: 0 / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.533e-05/1.691e-05, allocations: 3 kB / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.009951/0.009968, allocations: 11.33 MB / 280.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007341/0.01731, allocations: 4.089 MB / 284.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001596/0.0189, allocations: 79.62 kB / 284.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003093/0.022, allocations: 2.908 MB / 287.6 MB, free: 7.297 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003776/0.02577, allocations: 2.119 MB / 289.7 MB, free: 5.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.02705, allocations: 0.881 MB / 290.6 MB, free: 4.285 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00473/0.03178, allocations: 5.25 MB / 295.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003683/0.03547, allocations: 3.551 MB / 299.4 MB, free: 11.42 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003407/0.03887, allocations: 2.67 MB / 302.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003171/0.04204, allocations: 2.627 MB / 304.7 MB, free: 6.113 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008672/0.04291, allocations: 352 kB / 305.1 MB, free: 5.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.04471, allocations: 1.236 MB / 306.3 MB, free: 4.531 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001724/0.04644, allocations: 2.283 MB / 308.6 MB, free: 2.242 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002089/0.04853, allocations: 1.429 MB / 310 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005818/0.05435, allocations: 5.063 MB / 315.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.05435, allocations: 4 kB / 315.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.05435, allocations: 0 / 315.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001457/0.0545, allocations: 0 / 315.1 MB, free: 11.72 MB / 298.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.006893/0.06139, allocations: 5.508 MB / 320.6 MB, free: 6.148 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.06143, allocations: 8.031 kB / 320.6 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004123/0.06555, allocations: 1.726 MB / 322.3 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003235/0.06879, allocations: 2.027 MB / 324.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.06896, allocations: 274.8 kB / 324.6 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007065/0.06967, allocations: 427.6 kB / 325 MB, free: 1.645 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01085/0.08052, allocations: 6.562 MB / 331.6 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/0.08065, allocations: 55.48 kB / 331.6 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003914/0.08104, allocations: 171.8 kB / 331.8 MB, free: 9.742 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001837/0.08287, allocations: 1.928 MB / 333.7 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009693/0.09257, allocations: 3.215 MB / 337 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1819/0.2745, allocations: 48.82 MB / 385.8 MB, free: 30.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005155/0.2796, allocations: 2.569 MB / 388.3 MB, free: 30.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006315/0.2802, allocations: 0.5696 MB / 388.9 MB, free: 30.06 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005461/0.2857, allocations: 4.73 MB / 393.6 MB, free: 28.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.2857, allocations: 62.14 kB / 393.7 MB, free: 28.76 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 4.598e-06/0.2857, allocations: 0.5625 kB / 393.7 MB, free: 28.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01893/0.3047, allocations: 8.018 MB / 401.7 MB, free: 27.79 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006552/0.3053, allocations: 2.021 MB / 403.7 MB, free: 25.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.3085, allocations: 3.678 MB / 407.4 MB, free: 24.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001873/0.3087, allocations: 62.61 kB / 407.5 MB, free: 24.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.31, allocations: 3.743 MB / 411.2 MB, free: 21.83 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005747/0.3106, allocations: 0.8597 MB / 412.1 MB, free: 21.01 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001052/0.3116, allocations: 1.483 MB / 413.6 MB, free: 19.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.35e-05/0.3117, allocations: 480.7 kB / 414 MB, free: 19.19 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.3127, allocations: 0.7082 MB / 414.7 MB, free: 18.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002339/0.315, allocations: 6.865 MB / 421.6 MB, free: 9.066 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004611/0.3196, allocations: 8.366 MB / 430 MB, free: 14.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.972e-05/0.3197, allocations: 44 kB / 430 MB, free: 14.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.01076/0.3305, allocations: 5.91 MB / 435.9 MB, free: 9.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.597e-05/0.3305, allocations: 68 kB / 436 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004068/0.3346, allocations: 1.349 MB / 437.3 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003837/0.3384, allocations: 0.5991 MB / 437.9 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00335/0.3418, allocations: 1.532 MB / 439.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003897/0.3457, allocations: 4.232 MB / 443.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003679/0.3494, allocations: 291.8 kB / 444 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006282/0.35, allocations: 369.9 kB / 444.4 MB, free: 0.6094 MB / 346.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.001568/0.3516, allocations: 0.7145 MB / 445.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006317/0.3522, allocations: 413.6 kB / 445.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002509/0.3547, allocations: 1.57 MB / 447 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002/0.3567, allocations: 1.041 MB / 448.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.3567, allocations: 4 kB / 448.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.3567, allocations: 7.969 kB / 448.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01179/0.3685, allocations: 7.352 MB / 455.4 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.3685, allocations: 15.94 kB / 455.5 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008268/0.3694, allocations: 319.5 kB / 455.8 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.3705, allocations: 383.9 kB / 456.1 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/0.3706, allocations: 59.98 kB / 456.2 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002514/0.3732, allocations: 3.958 MB / 460.2 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007974/0.374, allocations: 1.886 MB / 462 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004072/0.378, allocations: 3.145 MB / 465.2 MB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007434/0.3788, allocations: 357.5 kB / 465.5 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003371/0.3791, allocations: 55.98 kB / 465.6 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008785/0.38, allocations: 47.28 kB / 465.6 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002205/0.3802, allocations: 180.3 kB / 465.8 MB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.3803, allocations: 67.97 kB / 465.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001616/0.3819, allocations: 1.463 MB / 467.3 MB, free: 9.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3819, allocations: 0 / 467.3 MB, free: 9.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004109/0.386, allocations: 1.295 MB / 468.6 MB, free: 8.207 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.0004402/0.3865, allocations: 241.8 kB / 468.9 MB, free: 7.973 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005068/0.3915, allocations: 3.577 MB / 472.5 MB, free: 4.449 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.3916, allocations: 4 kB / 472.5 MB, free: 4.445 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.3931, allocations: 1.207 MB / 473.7 MB, free: 3.219 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/0.395, allocations: 459 kB / 474.1 MB, free: 2.781 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/0.4072, allocations: 8.98 MB / 483.1 MB, free: 9.523 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001695/0.4089, allocations: 1.332 MB / 484.4 MB, free: 8.168 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001597/0.4105, allocations: 0.5457 MB / 485 MB, free: 7.617 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009388/0.4115, allocations: 0.6543 MB / 485.6 MB, free: 6.961 MB / 394.7 MB Notification: Performance of SimCode: time 1.764e-06/0.4115, allocations: 0 / 485.6 MB, free: 6.961 MB / 394.7 MB Notification: Performance of Templates: time 0.1814/0.5929, allocations: 40.78 MB / 0.5141 GB, free: 129.7 MB / 410.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.465083626098931]