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.0009024/0.0009024, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009418/0.0009418, allocations: 169.9 kB / 24.91 MB, free: 8.723 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 0.9131/0.9131, allocations: 177.1 MB / 205.3 MB, free: 5.117 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 1.433e-06/1.433e-06, allocations: 0 / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.285e-05/1.429e-05, allocations: 2.312 kB / 273.5 MB, free: 1.109 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.008535/0.008549, allocations: 11.34 MB / 284.9 MB, free: 5.723 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008243/0.01679, allocations: 4.26 MB / 289.1 MB, free: 1.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.01793, allocations: 79.62 kB / 289.2 MB, free: 1.371 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1312/0.1491, allocations: 2.887 MB / 292.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005298/0.1544, allocations: 2.047 MB / 294.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.156, allocations: 0.898 MB / 295 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00645/0.1624, allocations: 5.393 MB / 300.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004564/0.167, allocations: 3.402 MB / 303.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004514/0.1715, allocations: 2.593 MB / 306.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003587/0.1751, allocations: 2.503 MB / 308.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008812/0.176, allocations: 353.1 kB / 309.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002043/0.178, allocations: 1.257 MB / 310.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.1792, allocations: 2.243 MB / 312.8 MB, free: 7.582 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.1805, allocations: 1.41 MB / 314.2 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003943/0.1844, allocations: 5.011 MB / 319.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1844, allocations: 0 / 319.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1844, allocations: 0 / 319.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.508e-05/0.1845, allocations: 0 / 319.2 MB, free: 1.57 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.005234/0.1897, allocations: 4.867 MB / 324 MB, free: 13.08 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1897, allocations: 12.02 kB / 324.1 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003484/0.1932, allocations: 1.307 MB / 325.4 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.1955, allocations: 1.886 MB / 327.3 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.1957, allocations: 268.7 kB / 327.5 MB, free: 9.836 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005757/0.1963, allocations: 431 kB / 327.9 MB, free: 9.465 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007449/0.2037, allocations: 5.873 MB / 333.8 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.322e-05/0.2038, allocations: 48.52 kB / 333.9 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003137/0.2041, allocations: 169.7 kB / 334 MB, free: 3.125 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001757/0.2059, allocations: 1.934 MB / 336 MB, free: 1.227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006396/0.2123, allocations: 3.161 MB / 339.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02634/0.2386, allocations: 34.85 MB / 374 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004975/0.2436, allocations: 2.442 MB / 376.4 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007392/0.2443, allocations: 478.1 kB / 376.9 MB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005515/0.2498, allocations: 4.306 MB / 381.2 MB, free: 3.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.2499, allocations: 51.88 kB / 381.2 MB, free: 3.602 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 4.519e-06/0.2499, allocations: 0 / 381.2 MB, free: 3.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01773/0.2676, allocations: 7.358 MB / 388.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007753/0.2684, allocations: 1.488 MB / 390.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002983/0.2714, allocations: 3.305 MB / 393.4 MB, free: 7.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.2715, allocations: 57.7 kB / 393.4 MB, free: 7.207 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.2729, allocations: 3.348 MB / 396.8 MB, free: 3.824 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005442/0.2735, allocations: 0.8333 MB / 397.6 MB, free: 2.984 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/0.2748, allocations: 1.279 MB / 398.9 MB, free: 1.695 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.2749, allocations: 305.1 kB / 399.2 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/0.2764, allocations: 0.886 MB / 400.1 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003466/0.2799, allocations: 4.884 MB / 405 MB, free: 9.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005436/0.2853, allocations: 6.481 MB / 411.5 MB, free: 1.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.049e-05/0.2854, allocations: 43.94 kB / 411.5 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.008837/0.2942, allocations: 5.082 MB / 416.6 MB, free: 11.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.217e-05/0.2943, allocations: 68 kB / 416.6 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003862/0.2982, allocations: 1.177 MB / 417.8 MB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00351/0.3017, allocations: 0.5918 MB / 418.4 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002971/0.3046, allocations: 1.61 MB / 420 MB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003186/0.3078, allocations: 3.121 MB / 423.1 MB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003009/0.3108, allocations: 307.6 kB / 423.4 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.3112, allocations: 356 kB / 423.8 MB, free: 4.418 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.001163/0.3123, allocations: 0.6847 MB / 424.5 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/0.3127, allocations: 243.7 kB / 424.7 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/0.3148, allocations: 1.357 MB / 426.1 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001548/0.3164, allocations: 0.8515 MB / 426.9 MB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3164, allocations: 0 / 426.9 MB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.3164, allocations: 11.97 kB / 426.9 MB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007892/0.3243, allocations: 5.963 MB / 432.9 MB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.3243, allocations: 12 kB / 432.9 MB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008975/0.3252, allocations: 348.3 kB / 433.2 MB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/0.3265, allocations: 0.5318 MB / 433.8 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.3266, allocations: 67.95 kB / 433.8 MB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.3286, allocations: 2.841 MB / 436.7 MB, free: 6.949 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006938/0.3293, allocations: 1.365 MB / 438.1 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00291/0.3322, allocations: 2.633 MB / 440.7 MB, free: 2.629 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003759/0.3326, allocations: 345.4 kB / 441 MB, free: 2.289 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.3329, allocations: 63.97 kB / 441.1 MB, free: 2.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008349/0.3337, allocations: 52 kB / 441.1 MB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.3339, allocations: 176.3 kB / 441.3 MB, free: 2.004 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.334, allocations: 63.97 kB / 441.4 MB, free: 1.941 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00109/0.3351, allocations: 1.194 MB / 442.6 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3351, allocations: 0 / 442.6 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.1236/0.4587, allocations: 1.259 MB / 443.8 MB, free: 122.8 MB / 394.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.0005848/0.4593, allocations: 212.7 kB / 444 MB, free: 122.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005014/0.4643, allocations: 3.241 MB / 447.3 MB, free: 122.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001846/0.4645, allocations: 101.8 kB / 447.4 MB, free: 122.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.4658, allocations: 1.018 MB / 448.4 MB, free: 122 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.468, allocations: 0.6777 MB / 449.1 MB, free: 122 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008526/0.4765, allocations: 8.561 MB / 457.6 MB, free: 118.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009597/0.4775, allocations: 1.332 MB / 459 MB, free: 118 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001102/0.4786, allocations: 0.5396 MB / 459.5 MB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008295/0.4794, allocations: 0.6087 MB / 460.1 MB, free: 117.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/0.4794, allocations: 0 / 460.1 MB, free: 117.8 MB / 394.7 MB Notification: Performance of Templates: time 0.05422/0.5336, allocations: 39.52 MB / 499.6 MB, free: 88.61 MB / 394.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 -s gbode -gbm=radauIIA3 -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: 3.8937406381592155]