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.001047/0.001047, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001615/0.002662, allocations: 449.7 kB / 10.37 MB, free: 328 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.0008372/0.0008372, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.007046/0.007883, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.972/0.972, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08688/1.059, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.253e-06/1.253e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.017e-05/1.142e-05, allocations: 4.984 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005525/0.005536, allocations: 7.148 MB / 251.7 MB, free: 7.121 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004279/0.009815, allocations: 3.288 MB / 255 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004087/0.01022, allocations: 43.81 kB / 255 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.01132, allocations: 1.062 MB / 256.1 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001743/0.01306, allocations: 1.4 MB / 257.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006848/0.01375, allocations: 458.9 kB / 257.9 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.01579, allocations: 2.957 MB / 260.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.01682, allocations: 1.41 MB / 262.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009801/0.0178, allocations: 1.367 MB / 263.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.01887, allocations: 1.34 MB / 265 MB, free: 9.742 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001821/0.01905, allocations: 179.9 kB / 265.2 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001004/0.02005, allocations: 0.9944 MB / 266.2 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005776/0.02063, allocations: 1.048 MB / 267.2 MB, free: 7.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004671/0.0211, allocations: 0.584 MB / 267.8 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001853/0.02295, allocations: 2.732 MB / 270.5 MB, free: 4.191 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.02296, allocations: 0 / 270.5 MB, free: 4.191 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.02296, allocations: 0 / 270.5 MB, free: 4.191 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.886e-05/0.02299, allocations: 0 / 270.5 MB, free: 4.191 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.002838/0.02583, allocations: 3.337 MB / 273.9 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.641e-05/0.02586, allocations: 8.031 kB / 273.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1083/0.1341, allocations: 0.9289 MB / 274.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.1357, allocations: 1.037 MB / 275.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1358, allocations: 131.3 kB / 276 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004518/0.1362, allocations: 252.7 kB / 276.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003501/0.1397, allocations: 3.262 MB / 279.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.028e-05/0.1398, allocations: 28.59 kB / 279.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/0.1399, allocations: 85.89 kB / 279.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001114/0.141, allocations: 1.206 MB / 280.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.1441, allocations: 1.848 MB / 282.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/0.1548, allocations: 20.12 MB / 302.8 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.1566, allocations: 1.082 MB / 303.8 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.1569, allocations: 253.2 kB / 304.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002145/0.159, allocations: 2.207 MB / 306.3 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.159, allocations: 50.94 kB / 306.3 MB, free: 11.35 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 2.144e-06/0.159, allocations: 0 / 306.3 MB, free: 11.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.007907/0.1669, allocations: 4.01 MB / 310.4 MB, free: 8.316 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006658/0.1676, allocations: 1.481 MB / 311.8 MB, free: 6.719 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.169, allocations: 2.159 MB / 314 MB, free: 4.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.012e-05/0.1691, allocations: 44.83 kB / 314 MB, free: 4.863 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008179/0.1699, allocations: 2.079 MB / 316.1 MB, free: 2.891 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002822/0.1702, allocations: 0.5183 MB / 316.6 MB, free: 2.402 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006587/0.1709, allocations: 0.8545 MB / 317.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.489e-05/0.1709, allocations: 357.8 kB / 317.8 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008788/0.1718, allocations: 0.6244 MB / 318.5 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001945/0.1738, allocations: 3.319 MB / 321.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003034/0.1768, allocations: 4.382 MB / 326.2 MB, free: 6.688 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.909e-05/0.1768, allocations: 28 kB / 326.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006241/0.1831, allocations: 3.769 MB / 330 MB, free: 2.879 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.112e-05/0.1831, allocations: 52.25 kB / 330 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00343/0.1865, allocations: 1.078 MB / 331.1 MB, free: 1.734 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003753/0.1903, allocations: 0.8531 MB / 331.9 MB, free: 0.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.192, allocations: 1.08 MB / 333 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004387/0.1964, allocations: 4.051 MB / 337.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.1979, allocations: 215.8 kB / 337.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002113/0.1981, allocations: 243.9 kB / 337.5 MB, free: 11.16 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.0006984/0.1988, allocations: 498.8 kB / 338 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.199, allocations: 147.8 kB / 338.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002421/0.1993, allocations: 259.7 kB / 338.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00171/0.201, allocations: 0.8354 MB / 339.2 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.201, allocations: 4 kB / 339.2 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.201, allocations: 7.984 kB / 339.3 MB, free: 9.402 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004604/0.2056, allocations: 3.185 MB / 342.4 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.2056, allocations: 4.094 kB / 342.4 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004117/0.206, allocations: 167.8 kB / 342.6 MB, free: 6.152 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.2062, allocations: 210.3 kB / 342.8 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/0.2083, allocations: 0.7781 MB / 343.6 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.305e-05/0.2084, allocations: 31.97 kB / 343.6 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.2115, allocations: 3.764 MB / 347.4 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000485/0.212, allocations: 1.342 MB / 348.7 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00274/0.2148, allocations: 1.938 MB / 350.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.2149, allocations: 27.98 kB / 350.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.2154, allocations: 20.09 kB / 350.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.2155, allocations: 80.47 kB / 350.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.792e-05/0.2156, allocations: 39.73 kB / 350.8 MB, free: 13.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005478/0.2161, allocations: 0.7378 MB / 351.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2161, allocations: 0 / 351.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001926/0.2181, allocations: 0.8592 MB / 352.4 MB, free: 12.13 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.0002799/0.2183, allocations: 159.5 kB / 352.6 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.2208, allocations: 2.316 MB / 354.9 MB, free: 9.695 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.902e-05/0.2208, allocations: 59.94 kB / 355 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009415/0.2218, allocations: 0.7777 MB / 355.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009916/0.2228, allocations: 0.5375 MB / 356.3 MB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006118/0.2289, allocations: 5.049 MB / 361.3 MB, free: 3.199 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006621/0.2296, allocations: 0.7954 MB / 362.1 MB, free: 2.383 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006694/0.2302, allocations: 329.9 kB / 362.4 MB, free: 2.055 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/0.2307, allocations: 378.7 kB / 362.8 MB, free: 1.684 MB / 330.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2307, allocations: 0 / 362.8 MB, free: 1.684 MB / 330.7 MB Notification: Performance of Templates: time 0.03809/0.2688, allocations: 31 MB / 393.8 MB, free: 2.93 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.515914162620902]