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.000943/0.000943, allocations: 84.06 kB / 21.19 MB, free: 3.379 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.0008586/0.0008586, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 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.916/0.916, allocations: 173.3 MB / 201.1 MB, free: 9.324 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.653e-06/1.653e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.508e-05/1.673e-05, allocations: 2.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01355/0.01357, allocations: 11.69 MB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007816/0.02139, allocations: 4.126 MB / 283.8 MB, free: 6.523 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006109/0.022, allocations: 83.56 kB / 283.9 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002729/0.02472, allocations: 2.959 MB / 286.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00228/0.027, allocations: 2.119 MB / 289 MB, free: 1.344 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008555/0.02786, allocations: 0.8849 MB / 289.9 MB, free: 468 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1061/0.134, allocations: 5.239 MB / 295.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004271/0.1383, allocations: 3.543 MB / 298.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003922/0.1422, allocations: 2.66 MB / 301.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002889/0.1451, allocations: 2.628 MB / 303.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007277/0.1458, allocations: 353.8 kB / 304.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.1473, allocations: 1.243 MB / 305.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001193/0.1485, allocations: 2.276 MB / 307.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.1498, allocations: 1.431 MB / 309.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0034/0.1532, allocations: 5.068 MB / 314.3 MB, free: 8.824 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.1532, allocations: 0 / 314.3 MB, free: 8.824 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1532, allocations: 0 / 314.3 MB, free: 8.824 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.621e-05/0.1532, allocations: 0 / 314.3 MB, free: 8.824 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.004747/0.158, allocations: 5.776 MB / 320.1 MB, free: 3.102 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.158, allocations: 8.922 kB / 320.1 MB, free: 3.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004197/0.1622, allocations: 2.737 MB / 322.8 MB, free: 404 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.1644, allocations: 2.229 MB / 325 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1645, allocations: 268.6 kB / 325.3 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005335/0.1651, allocations: 433.7 kB / 325.7 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008909/0.174, allocations: 8.058 MB / 333.8 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.559e-05/0.1741, allocations: 48.69 kB / 333.8 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003123/0.1744, allocations: 180.4 kB / 334 MB, free: 4.594 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001816/0.1762, allocations: 2.159 MB / 336.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007697/0.1839, allocations: 4.823 MB / 341 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02936/0.2132, allocations: 49.47 MB / 390.5 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005714/0.219, allocations: 2.851 MB / 393.3 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/0.2202, allocations: 0.6775 MB / 394 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007968/0.2281, allocations: 4.962 MB / 399 MB, free: 2.895 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/0.2282, allocations: 54.7 kB / 399 MB, free: 2.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=183): time 4.889e-06/0.2282, allocations: 0 / 399 MB, free: 2.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=205): time 0.02989/0.2581, allocations: 12.28 MB / 411.3 MB, free: 6.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001068/0.2591, allocations: 2.042 MB / 413.3 MB, free: 4.332 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004302/0.2634, allocations: 3.719 MB / 417.1 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001113/0.2635, allocations: 53.7 kB / 417.1 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00221/0.2658, allocations: 3.705 MB / 420.8 MB, free: 12.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008616/0.2666, allocations: 0.8642 MB / 421.7 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001518/0.2681, allocations: 1.449 MB / 423.1 MB, free: 10.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.62e-05/0.2682, allocations: 480.8 kB / 423.6 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.2698, allocations: 0.7863 MB / 424.4 MB, free: 9.293 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1221/0.3919, allocations: 6.897 MB / 431.3 MB, free: 109.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005923/0.3978, allocations: 8.5 MB / 439.8 MB, free: 101.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.454e-05/0.3979, allocations: 45.91 kB / 439.8 MB, free: 101.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.01102/0.4089, allocations: 7.252 MB / 447.1 MB, free: 99.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.599e-05/0.409, allocations: 66.75 kB / 447.1 MB, free: 99.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004844/0.4138, allocations: 2.38 MB / 449.5 MB, free: 99.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004683/0.4185, allocations: 1.754 MB / 451.3 MB, free: 99.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/0.4213, allocations: 1.597 MB / 452.9 MB, free: 99.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003393/0.4246, allocations: 4.712 MB / 457.6 MB, free: 95.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/0.4275, allocations: 0.5041 MB / 458.1 MB, free: 95.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000327/0.4278, allocations: 413.1 kB / 458.5 MB, free: 95.98 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.001158/0.429, allocations: 0.7175 MB / 459.2 MB, free: 95.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/0.4294, allocations: 413.7 kB / 459.6 MB, free: 95.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.4319, allocations: 1.885 MB / 461.5 MB, free: 95.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002301/0.4342, allocations: 1.404 MB / 462.9 MB, free: 95.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.4342, allocations: 6.594 kB / 462.9 MB, free: 95.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-05/0.4343, allocations: 7.828 kB / 462.9 MB, free: 95.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.4437, allocations: 7.788 MB / 470.7 MB, free: 89.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.4437, allocations: 16.86 kB / 470.7 MB, free: 89.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000762/0.4444, allocations: 363.5 kB / 471.1 MB, free: 89.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/0.4457, allocations: 0.5726 MB / 471.6 MB, free: 88.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.521e-05/0.4458, allocations: 63.91 kB / 471.7 MB, free: 88.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001871/0.4476, allocations: 4.177 MB / 475.9 MB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004542/0.4481, allocations: 1.923 MB / 477.8 MB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00365/0.4518, allocations: 3.556 MB / 481.4 MB, free: 78.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005905/0.4523, allocations: 372.4 kB / 481.7 MB, free: 78.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.4526, allocations: 59.98 kB / 481.8 MB, free: 78.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009143/0.4535, allocations: 191.7 kB / 482 MB, free: 78.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/0.4537, allocations: 176.4 kB / 482.1 MB, free: 77.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.531e-05/0.4538, allocations: 83.72 kB / 482.2 MB, free: 77.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001499/0.4553, allocations: 1.571 MB / 483.8 MB, free: 76.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4553, allocations: 0 / 483.8 MB, free: 76.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003609/0.4589, allocations: 1.294 MB / 485.1 MB, free: 75.07 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.0003851/0.4593, allocations: 237.9 kB / 485.3 MB, free: 74.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00482/0.4641, allocations: 3.964 MB / 489.3 MB, free: 70.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/0.4641, allocations: 4 kB / 489.3 MB, free: 70.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.4657, allocations: 1.477 MB / 490.8 MB, free: 69.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.4673, allocations: 467.8 kB / 491.2 MB, free: 68.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009219/0.4765, allocations: 9.028 MB / 0.4885 GB, free: 59.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009063/0.4774, allocations: 1.336 MB / 0.4898 GB, free: 58.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002475/0.4799, allocations: 1.731 MB / 0.4915 GB, free: 56.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004234/0.4803, allocations: 263.7 kB / 0.4918 GB, free: 56.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.903e-06/0.4803, allocations: 0 / 0.4918 GB, free: 56.22 MB / 378.7 MB Notification: Performance of Templates: time 0.04649/0.5268, allocations: 37.91 MB / 0.5288 GB, free: 18.91 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.072098483797163]