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.001147/0.001147, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.001024/0.001024, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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 1.029/1.029, allocations: 177 MB / 204.8 MB, free: 5.246 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.463e-06/1.463e-06, allocations: 0 / 272.9 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.565e-05/2.711e-05, allocations: 3.719 kB / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006977/0.007004, allocations: 7.752 MB / 280.7 MB, free: 9.496 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004472/0.01148, allocations: 2.511 MB / 283.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009176/0.01239, allocations: 43.81 kB / 283.2 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.01452, allocations: 1.538 MB / 284.8 MB, free: 5.391 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002147/0.01667, allocations: 1.053 MB / 285.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.01725, allocations: 283.1 kB / 286.1 MB, free: 4.055 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002332/0.01958, allocations: 2.207 MB / 288.3 MB, free: 1.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.02113, allocations: 1.388 MB / 289.7 MB, free: 436 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1344/0.1555, allocations: 1.236 MB / 290.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.1577, allocations: 1.224 MB / 292.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005572/0.1583, allocations: 160.9 kB / 292.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/0.1595, allocations: 0.6109 MB / 292.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.1605, allocations: 1.219 MB / 294.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.162, allocations: 0.7266 MB / 294.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003943/0.1659, allocations: 2.761 MB / 297.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1659, allocations: 0 / 297.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1659, allocations: 0 / 297.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001542/0.1661, allocations: 1.812 kB / 297.6 MB, free: 14.8 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.005611/0.1717, allocations: 3.213 MB / 300.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1717, allocations: 14.48 kB / 300.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004438/0.1762, allocations: 2.239 MB / 303.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.1778, allocations: 1.069 MB / 304.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-05/0.1779, allocations: 148.8 kB / 304.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002674/0.1781, allocations: 204.6 kB / 304.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007829/0.1859, allocations: 5.548 MB / 310.1 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.262e-05/0.186, allocations: 41.94 kB / 310.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002079/0.1862, allocations: 104.9 kB / 310.2 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001488/0.1877, allocations: 1.547 MB / 311.7 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006839/0.1946, allocations: 3.266 MB / 315 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0243/0.2189, allocations: 33.87 MB / 348.9 MB, free: 3.055 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009475/0.2283, allocations: 4.019 MB / 352.9 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005704/0.2289, allocations: 394 kB / 353.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003098/0.232, allocations: 2.655 MB / 355.9 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.232, allocations: 48.44 kB / 356 MB, free: 11.83 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 4.148e-06/0.232, allocations: 0 / 356 MB, free: 11.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01928/0.2513, allocations: 7.573 MB / 363.6 MB, free: 4.266 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001733/0.2515, allocations: 195.3 kB / 363.8 MB, free: 4.035 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003422/0.2549, allocations: 2.787 MB / 366.5 MB, free: 1.223 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.154e-05/0.255, allocations: 41.7 kB / 366.6 MB, free: 1.176 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001676/0.2567, allocations: 2.66 MB / 369.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004402/0.2571, allocations: 0.5269 MB / 369.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.2582, allocations: 1.172 MB / 370.9 MB, free: 12.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2583, allocations: 0.5158 MB / 371.5 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009039/0.2592, allocations: 0.5024 MB / 372 MB, free: 11.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003463/0.2627, allocations: 5.795 MB / 377.8 MB, free: 3.543 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005561/0.2682, allocations: 6.946 MB / 384.7 MB, free: 10.17 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.092e-05/0.2683, allocations: 39.94 kB / 384.7 MB, free: 10.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00582/0.2741, allocations: 4.546 MB / 389.3 MB, free: 5.586 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.2742, allocations: 60 kB / 389.3 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.2743, allocations: 128 kB / 389.5 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001228/0.2744, allocations: 168 kB / 389.6 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002974/0.2774, allocations: 1.451 MB / 391.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000198/0.2776, allocations: 255 kB / 391.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002515/0.2801, allocations: 0.733 MB / 392.1 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/0.2804, allocations: 340 kB / 392.4 MB, free: 2.465 MB / 346.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.001159/0.2816, allocations: 0.6093 MB / 393 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/0.2819, allocations: 268 kB / 393.3 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.2822, allocations: 249 kB / 393.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.128e-05/0.2822, allocations: 16 kB / 393.5 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.2822, allocations: 0 / 393.5 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.2822, allocations: 12.02 kB / 393.5 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003732/0.286, allocations: 2.515 MB / 396.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.286, allocations: 0 / 396.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.2872, allocations: 403.5 kB / 396.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.2872, allocations: 4 kB / 396.5 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.191e-05/0.2872, allocations: 35.98 kB / 396.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.2873, allocations: 8.859 kB / 396.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.2873, allocations: 14.22 kB / 396.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.2888, allocations: 1.746 MB / 398.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002209/0.289, allocations: 210.1 kB / 398.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.2891, allocations: 31.98 kB / 398.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.2896, allocations: 35.95 kB / 398.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.2896, allocations: 59.84 kB / 398.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/0.2897, allocations: 39.23 kB / 398.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001377/0.2911, allocations: 1.111 MB / 399.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2911, allocations: 3.938 kB / 399.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002859/0.2939, allocations: 0.8441 MB / 400.6 MB, free: 10.21 MB / 362.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.000336/0.2943, allocations: 158.6 kB / 400.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003184/0.2974, allocations: 2.26 MB / 403 MB, free: 7.809 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2974, allocations: 0 / 403 MB, free: 7.809 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.2978, allocations: 306.2 kB / 403.3 MB, free: 7.508 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.2988, allocations: 228 kB / 403.5 MB, free: 7.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007136/0.306, allocations: 5.535 MB / 409.1 MB, free: 1.691 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007428/0.3067, allocations: 0.8228 MB / 409.9 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002104/0.3088, allocations: 1.405 MB / 411.3 MB, free: 15.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003228/0.3091, allocations: 176.4 kB / 411.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of SimCode: time 2.104e-06/0.3091, allocations: 3.938 kB / 411.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of Templates: time 0.02852/0.3377, allocations: 15.16 MB / 426.6 MB, free: 0.5391 MB / 378.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.923337660264224]