Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 164.8 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8832/0.8832, allocations: 177 MB / 205.2 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273.4 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.368e-06/1.062e-05, allocations: 2.312 kB / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005355/0.005366, allocations: 7.536 MB / 280.9 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.008151, allocations: 2.589 MB / 283.5 MB, free: 7.051 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002946/0.008446, allocations: 43.81 kB / 283.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.009936, allocations: 1.53 MB / 285.1 MB, free: 5.473 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.01102, allocations: 1.053 MB / 286.1 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.01133, allocations: 279.1 kB / 286.4 MB, free: 4.141 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001385/0.01272, allocations: 2.219 MB / 288.6 MB, free: 1.918 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008852/0.0136, allocations: 1.442 MB / 290.1 MB, free: 456 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0917/0.1053, allocations: 1.235 MB / 291.3 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001412/0.1067, allocations: 1.165 MB / 292.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003095/0.107, allocations: 161.2 kB / 292.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009038/0.1079, allocations: 0.6094 MB / 293.2 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007679/0.1087, allocations: 1.225 MB / 294.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007455/0.1094, allocations: 0.7244 MB / 295.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002356/0.1118, allocations: 2.76 MB / 298 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1118, allocations: 0 / 298 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1118, allocations: 1.188 kB / 298 MB, free: 15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.633e-05/0.1119, allocations: 1.062 kB / 298 MB, free: 15 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.003023/0.1149, allocations: 2.782 MB / 300.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.115, allocations: 13.58 kB / 300.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002519/0.1175, allocations: 0.956 MB / 301.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009322/0.1184, allocations: 0.8873 MB / 302.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-05/0.1185, allocations: 151.9 kB / 302.7 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000252/0.1187, allocations: 208.5 kB / 302.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003629/0.1224, allocations: 3.893 MB / 306.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.125e-05/0.1224, allocations: 41.64 kB / 306.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.1226, allocations: 104.4 kB / 307 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001076/0.1237, allocations: 1.385 MB / 308.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002898/0.1266, allocations: 2.017 MB / 310.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.1378, allocations: 23.58 MB / 334 MB, free: 3.516 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003767/0.1416, allocations: 1.732 MB / 335.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.1419, allocations: 410 kB / 336.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002067/0.144, allocations: 2.304 MB / 338.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.144, allocations: 46.06 kB / 338.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 1.984e-06/0.144, allocations: 0 / 338.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.007049/0.151, allocations: 2.676 MB / 341.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.1511, allocations: 190.5 kB / 341.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.1524, allocations: 2.196 MB / 343.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/0.1525, allocations: 41.7 kB / 343.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008841/0.1533, allocations: 2.458 MB / 346 MB, free: 7.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/0.1536, allocations: 0.5114 MB / 346.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007621/0.1543, allocations: 1.02 MB / 347.5 MB, free: 6.586 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.884e-05/0.1544, allocations: 351 kB / 347.9 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005865/0.155, allocations: 0.5414 MB / 348.4 MB, free: 5.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.1569, allocations: 3.977 MB / 352.4 MB, free: 56 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003061/0.1599, allocations: 5.207 MB / 357.6 MB, free: 9.062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.421e-05/0.16, allocations: 36 kB / 357.6 MB, free: 9.027 MB / 314.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003182/0.1632, allocations: 3.625 MB / 361.3 MB, free: 5.383 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.1632, allocations: 63.12 kB / 361.3 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.573e-05/0.1633, allocations: 132.2 kB / 361.5 MB, free: 5.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.565e-05/0.1634, allocations: 168 kB / 361.6 MB, free: 5.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/0.1656, allocations: 1.349 MB / 363 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001102/0.1657, allocations: 251 kB / 363.2 MB, free: 3.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.1672, allocations: 0.7173 MB / 363.9 MB, free: 2.711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/0.1674, allocations: 304 kB / 364.2 MB, free: 2.414 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006088/0.168, allocations: 0.5782 MB / 364.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1682, allocations: 151.8 kB / 364.9 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.1684, allocations: 241.1 kB / 365.2 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.1684, allocations: 12 kB / 365.2 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1684, allocations: 7.984 kB / 365.2 MB, free: 1.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1685, allocations: 3.984 kB / 365.2 MB, free: 1.406 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.1703, allocations: 1.622 MB / 366.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1703, allocations: 8 kB / 366.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009069/0.1712, allocations: 295.6 kB / 367.1 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.1712, allocations: 4 kB / 367.1 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-05/0.1713, allocations: 35.97 kB / 367.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.1713, allocations: 4 kB / 367.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.1713, allocations: 5 kB / 367.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009077/0.1722, allocations: 1.402 MB / 368.6 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.1723, allocations: 210.2 kB / 368.8 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.1725, allocations: 27.92 kB / 368.8 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003644/0.1728, allocations: 20 kB / 368.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.913e-05/0.1729, allocations: 59.77 kB / 368.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.1729, allocations: 31.98 kB / 368.9 MB, free: 13.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006215/0.1736, allocations: 0.8154 MB / 369.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1736, allocations: 0 / 369.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001935/0.1755, allocations: 0.8419 MB / 370.6 MB, free: 11.97 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002136/0.1757, allocations: 140.2 kB / 370.7 MB, free: 11.83 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.1773, allocations: 1.98 MB / 372.7 MB, free: 9.863 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000136/0.1774, allocations: 88.16 kB / 372.8 MB, free: 9.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.1777, allocations: 238.3 kB / 373 MB, free: 9.527 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/0.1784, allocations: 223.9 kB / 373.2 MB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004637/0.183, allocations: 5.167 MB / 378.4 MB, free: 4.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006459/0.1837, allocations: 0.8189 MB / 379.2 MB, free: 3.234 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007988/0.1845, allocations: 396.9 kB / 379.6 MB, free: 2.844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004366/0.1849, allocations: 397.3 kB / 380 MB, free: 2.457 MB / 330.7 MB Notification: Performance of SimCode: time 8.52e-07/0.1849, allocations: 0 / 380 MB, free: 2.457 MB / 330.7 MB Notification: Performance of Templates: time 0.02482/0.2097, allocations: 17.4 MB / 397.4 MB, free: 1.238 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.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.090945539996028]