Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001351/0.001351, allocations: 85.95 kB / 23 MB, free: 1.5 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.001089/0.001089, allocations: 176.3 kB / 26.4 MB, free: 7.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.001/1.001, allocations: 158.6 MB / 188.3 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 252.3 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.844e-05, allocations: 6.25 kB / 252.3 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01088/0.01091, allocations: 11.35 MB / 263.6 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00871/0.01962, allocations: 4.09 MB / 267.7 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.02178, allocations: 87.56 kB / 267.8 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003761/0.02554, allocations: 2.916 MB / 270.7 MB, free: 4.707 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004741/0.03028, allocations: 2.103 MB / 272.8 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001902/0.03218, allocations: 0.9004 MB / 273.7 MB, free: 1.691 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00584/0.03802, allocations: 5.278 MB / 279 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00459/0.04261, allocations: 3.559 MB / 282.5 MB, free: 8.789 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005376/0.04799, allocations: 2.678 MB / 285.2 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004259/0.05224, allocations: 2.63 MB / 287.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001462/0.05371, allocations: 360 kB / 288.2 MB, free: 3.117 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002626/0.05633, allocations: 1.233 MB / 289.4 MB, free: 1.883 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002357/0.05869, allocations: 2.287 MB / 291.7 MB, free: 15.59 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003777/0.06247, allocations: 1.429 MB / 293.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00826/0.07073, allocations: 5.075 MB / 298.2 MB, free: 9.062 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.07073, allocations: 0 / 298.2 MB, free: 9.062 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.07073, allocations: 4 kB / 298.2 MB, free: 9.059 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002368/0.07097, allocations: 0 / 298.2 MB, free: 9.059 MB / 282.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.009046/0.08002, allocations: 5.519 MB / 303.8 MB, free: 3.473 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.08007, allocations: 8.031 kB / 303.8 MB, free: 3.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004651/0.08472, allocations: 1.726 MB / 305.5 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004082/0.0888, allocations: 2.07 MB / 307.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.089, allocations: 274.8 kB / 307.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008341/0.08984, allocations: 423.6 kB / 308.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01264/0.1025, allocations: 6.573 MB / 314.8 MB, free: 7.234 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001892/0.1027, allocations: 47.55 kB / 314.9 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004725/0.1031, allocations: 171.8 kB / 315 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002429/0.1056, allocations: 1.932 MB / 317 MB, free: 5.086 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009813/0.1154, allocations: 3.204 MB / 320.2 MB, free: 1.855 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1947/0.3101, allocations: 48.83 MB / 369 MB, free: 55.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005889/0.316, allocations: 2.56 MB / 371.6 MB, free: 55.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009354/0.3169, allocations: 0.5724 MB / 372.1 MB, free: 55.63 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006071/0.323, allocations: 4.736 MB / 376.9 MB, free: 54.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.3231, allocations: 57.67 kB / 376.9 MB, free: 54.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 3.787e-06/0.3231, allocations: 0 / 376.9 MB, free: 54.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01856/0.3416, allocations: 8.069 MB / 385 MB, free: 51.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006486/0.3423, allocations: 2.009 MB / 387 MB, free: 49.49 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003093/0.3454, allocations: 3.7 MB / 390.7 MB, free: 46.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00021/0.3456, allocations: 61.2 kB / 390.8 MB, free: 46.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/0.347, allocations: 3.743 MB / 394.5 MB, free: 43.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006129/0.3476, allocations: 0.8687 MB / 395.4 MB, free: 42.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001054/0.3486, allocations: 1.479 MB / 396.9 MB, free: 41.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.757e-05/0.3487, allocations: 476.8 kB / 397.3 MB, free: 40.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.3499, allocations: 0.7141 MB / 398 MB, free: 39.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002849/0.3527, allocations: 6.857 MB / 404.9 MB, free: 30.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005476/0.3582, allocations: 8.367 MB / 413.3 MB, free: 19.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/0.3583, allocations: 40 kB / 413.3 MB, free: 19.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.01088/0.3692, allocations: 5.912 MB / 419.2 MB, free: 13.63 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/0.3692, allocations: 68 kB / 419.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00378/0.373, allocations: 1.353 MB / 420.6 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003608/0.3766, allocations: 0.5972 MB / 421.2 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/0.3795, allocations: 1.532 MB / 422.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/0.3826, allocations: 4.222 MB / 427 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004066/0.3867, allocations: 314.4 kB / 427.3 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004993/0.3872, allocations: 360 kB / 427.6 MB, free: 4.949 MB / 330.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.0015/0.3887, allocations: 0.7157 MB / 428.4 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006088/0.3893, allocations: 417.6 kB / 428.8 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002175/0.3915, allocations: 1.548 MB / 430.3 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001795/0.3933, allocations: 1.043 MB / 431.4 MB, free: 1.164 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3933, allocations: 4 kB / 431.4 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.3933, allocations: 14.3 kB / 431.4 MB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.4052, allocations: 7.367 MB / 438.7 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/0.4052, allocations: 12 kB / 438.7 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.4064, allocations: 323.7 kB / 439.1 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.4075, allocations: 382 kB / 439.4 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000138/0.4077, allocations: 59.97 kB / 439.5 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/0.4102, allocations: 3.966 MB / 443.5 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008144/0.411, allocations: 1.886 MB / 445.3 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004467/0.4154, allocations: 3.146 MB / 448.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.4166, allocations: 0.509 MB / 449 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003229/0.417, allocations: 55.98 kB / 449.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008907/0.4178, allocations: 48 kB / 449.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.4181, allocations: 176.3 kB / 449.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.4182, allocations: 75.33 kB / 449.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00167/0.4199, allocations: 1.484 MB / 450.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4199, allocations: 0 / 450.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004441/0.4243, allocations: 1.293 MB / 452.1 MB, free: 11.44 MB / 362.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.0004606/0.4248, allocations: 249.5 kB / 452.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005312/0.4301, allocations: 3.563 MB / 455.9 MB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.4301, allocations: 4 kB / 455.9 MB, free: 7.594 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.4317, allocations: 1.206 MB / 457.1 MB, free: 6.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/0.4341, allocations: 472.1 kB / 457.6 MB, free: 5.891 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01442/0.4486, allocations: 8.997 MB / 466.6 MB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001431/0.45, allocations: 1.333 MB / 467.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002041/0.452, allocations: 0.5457 MB / 468.5 MB, free: 10.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009832/0.453, allocations: 0.6465 MB / 469.1 MB, free: 10 MB / 378.7 MB Notification: Performance of SimCode: time 2.424e-06/0.453, allocations: 4 kB / 469.1 MB, free: 9.996 MB / 378.7 MB Notification: Performance of Templates: time 0.06496/0.518, allocations: 41.22 MB / 0.4984 GB, free: 0.6875 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.639230341184884]