Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001169/0.001169, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001662/0.002831, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001124/0.001124, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001003/0.002127, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9323/0.9323, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1034/1.036, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.813e-05/1.94e-05, allocations: 2.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005479/0.005499, allocations: 7.155 MB / 251.9 MB, free: 7.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004214/0.009713, allocations: 3.291 MB / 255.2 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004046/0.01012, allocations: 39.81 kB / 255.2 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001248/0.01137, allocations: 1.07 MB / 256.3 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001487/0.01285, allocations: 1.4 MB / 257.7 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004861/0.01334, allocations: 447 kB / 258.1 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002094/0.01543, allocations: 2.937 MB / 261 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009156/0.01635, allocations: 1.422 MB / 262.5 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009077/0.01726, allocations: 1.367 MB / 263.8 MB, free: 11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009893/0.01825, allocations: 1.344 MB / 265.2 MB, free: 9.656 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.01841, allocations: 176 kB / 265.3 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.01959, allocations: 0.9905 MB / 266.3 MB, free: 8.492 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005511/0.02014, allocations: 1.052 MB / 267.4 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004336/0.02058, allocations: 0.588 MB / 268 MB, free: 6.848 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001826/0.0224, allocations: 2.724 MB / 270.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.02241, allocations: 0 / 270.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.02241, allocations: 0 / 270.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.02244, allocations: 0 / 270.7 MB, free: 4.113 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.003047/0.02548, allocations: 3.337 MB / 274 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.657e-05/0.02551, allocations: 8.031 kB / 274 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1097/0.1352, allocations: 0.926 MB / 275 MB, free: 19.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/0.1372, allocations: 1.036 MB / 276 MB, free: 19.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.1373, allocations: 134.4 kB / 276.1 MB, free: 19.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000505/0.1378, allocations: 249.6 kB / 276.4 MB, free: 19.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004046/0.1418, allocations: 3.27 MB / 279.6 MB, free: 18.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.424e-05/0.1419, allocations: 26.06 kB / 279.7 MB, free: 18.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/0.1421, allocations: 87.55 kB / 279.8 MB, free: 18.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001186/0.1433, allocations: 1.125 MB / 280.9 MB, free: 18.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003287/0.1466, allocations: 1.845 MB / 282.7 MB, free: 18.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01144/0.158, allocations: 20.13 MB / 302.9 MB, free: 3.012 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.1599, allocations: 1.08 MB / 303.9 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002487/0.1602, allocations: 251.9 kB / 304.2 MB, free: 2.672 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002136/0.1623, allocations: 2.214 MB / 306.4 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.1623, allocations: 54.77 kB / 306.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of pre-optimization done (n=112): time 2.605e-06/0.1623, allocations: 0 / 306.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of matching and sorting (n=125): time 0.008526/0.1709, allocations: 4.056 MB / 310.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007525/0.1716, allocations: 1.471 MB / 312 MB, free: 10.92 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.1732, allocations: 2.157 MB / 314.1 MB, free: 8.988 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.003e-05/0.1733, allocations: 41.7 kB / 314.2 MB, free: 8.941 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008462/0.1741, allocations: 2.073 MB / 316.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003334/0.1745, allocations: 0.5272 MB / 316.8 MB, free: 6.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007375/0.1752, allocations: 0.8583 MB / 317.6 MB, free: 5.449 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.12e-05/0.1753, allocations: 349.8 kB / 318 MB, free: 5.102 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009292/0.1762, allocations: 0.6244 MB / 318.6 MB, free: 4.469 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001983/0.1782, allocations: 3.311 MB / 321.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003306/0.1815, allocations: 4.666 MB / 326.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.725e-05/0.1815, allocations: 32 kB / 326.6 MB, free: 9.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006113/0.1877, allocations: 3.765 MB / 330.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.1877, allocations: 49.75 kB / 330.4 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.95e-05/0.1878, allocations: 104 kB / 330.5 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003915/0.1917, allocations: 0.8553 MB / 331.4 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00181/0.1935, allocations: 1.08 MB / 332.5 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/0.1981, allocations: 4.015 MB / 336.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.2002, allocations: 215.8 kB / 336.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002471/0.2005, allocations: 248 kB / 336.9 MB, free: 15.14 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008397/0.2013, allocations: 484.2 kB / 337.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002459/0.2015, allocations: 147.8 kB / 337.5 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.2018, allocations: 263.7 kB / 337.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001757/0.2036, allocations: 0.8393 MB / 338.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.2036, allocations: 4 kB / 338.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.2036, allocations: 3.984 kB / 338.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00482/0.2084, allocations: 3.174 MB / 341.8 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.2084, allocations: 11.98 kB / 341.8 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004354/0.2089, allocations: 163.9 kB / 342 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002359/0.2091, allocations: 214.4 kB / 342.2 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.211, allocations: 0.7894 MB / 343 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.299e-05/0.2111, allocations: 39.97 kB / 343 MB, free: 8.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003331/0.2144, allocations: 3.731 MB / 346.8 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005537/0.215, allocations: 1.334 MB / 348.1 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002616/0.2176, allocations: 1.948 MB / 350 MB, free: 1.535 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001595/0.2178, allocations: 27.94 kB / 350.1 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.2182, allocations: 23.98 kB / 350.1 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.2184, allocations: 88.03 kB / 350.2 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.663e-05/0.2185, allocations: 28.05 kB / 350.2 MB, free: 1.375 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006333/0.2191, allocations: 0.7553 MB / 351 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2191, allocations: 0 / 351 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002267/0.2214, allocations: 0.8515 MB / 351.8 MB, free: 15.74 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000318/0.2217, allocations: 162.6 kB / 352 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002827/0.2245, allocations: 2.394 MB / 354.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.512e-05/0.2246, allocations: 63.88 kB / 354.4 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.226, allocations: 1.107 MB / 355.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.2275, allocations: 1.649 MB / 357.2 MB, free: 10.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006675/0.2341, allocations: 5.047 MB / 362.2 MB, free: 5.016 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006444/0.2348, allocations: 0.7819 MB / 363 MB, free: 4.215 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007277/0.2355, allocations: 329.9 kB / 363.3 MB, free: 3.887 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004794/0.236, allocations: 377.1 kB / 363.7 MB, free: 3.516 MB / 330.7 MB Notification: Performance of SimCode: time 1.583e-06/0.236, allocations: 4 kB / 363.7 MB, free: 3.512 MB / 330.7 MB Notification: Performance of Templates: time 0.05006/0.2861, allocations: 29.6 MB / 393.3 MB, free: 6.02 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1836067587137222]